]> sourceware.org Git - lvm2.git/blob - configure
Various small cleanups and fixes related to monitoring.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_default_prefix=/usr
639 ac_subst_vars='LTLIBOBJS
640 usrsbindir
641 usrlibdir
642 udevdir
643 udev_prefix
644 tmpdir
645 kernelvsn
646 missingkernel
647 kerneldir
648 interface
649 WRITE_INSTALL
650 UDEV_SYNC
651 UDEV_RULES
652 UDEV_PC
653 UDEV_LIBS
654 TESTING
655 STATIC_LINK
656 STATICDIR
657 SNAPSHOTS
658 SELINUX_PC
659 SELINUX_LIBS
660 READLINE_LIBS
661 PTHREAD_LIBS
662 POOL
663 PKGCONFIG
664 REPLICATORS
665 MIRRORS
666 LVM_RELEASE_DATE
667 LVM_RELEASE
668 LVM_PATCHLEVEL
669 LVM_MINOR
670 LVM_MAJOR
671 LVM_LIBAPI
672 LVM_VERSION
673 LVM1_FALLBACK
674 LVM1
675 LOCALEDIR
676 LIB_SUFFIX
677 LDDEPS
678 JOBS
679 INTL_PACKAGE
680 INTL
681 HAVE_REALTIME
682 HAVE_LIBDL
683 FSADM
684 DM_LIB_PATCHLEVEL
685 DM_LIB_VERSION
686 DM_IOCTLS
687 DM_DEVICE_UID
688 DM_DEVICE_MODE
689 DM_DEVICE_GID
690 DM_COMPAT
691 DMEVENTD_PATH
692 DMEVENTD
693 DL_LIBS
694 DEVMAPPER
695 DEFAULT_RUN_DIR
696 DEFAULT_LOCK_DIR
697 DEFAULT_CACHE_SUBDIR
698 DEFAULT_BACKUP_SUBDIR
699 DEFAULT_ARCHIVE_SUBDIR
700 DEFAULT_SYS_DIR
701 DEBUG
702 COPTIMISE_FLAG
703 CONFDIR
704 CMDLIB
705 CLVMD
706 CLUSTER
707 CLDWHOLEARCHIVE
708 CLDNOWHOLEARCHIVE
709 CLDFLAGS
710 BUILD_DMEVENTD
711 BUILD_CMIRRORD
712 APPLIB
713 MODPROBE_CMD
714 MSGFMT
715 LVM2CMD_LIB
716 LVM2APP_LIB
717 VALGRIND
718 RUBY19
719 GENPNG
720 GENHTML
721 LCOV
722 SACKPT_LIBS
723 SACKPT_CFLAGS
724 DLM_LIBS
725 DLM_CFLAGS
726 CPG_LIBS
727 CPG_CFLAGS
728 CONFDB_LIBS
729 CONFDB_CFLAGS
730 SALCK_LIBS
731 SALCK_CFLAGS
732 QUORUM_LIBS
733 QUORUM_CFLAGS
734 COROSYNC_LIBS
735 COROSYNC_CFLAGS
736 CMAN_LIBS
737 CMAN_CFLAGS
738 GULM_LIBS
739 GULM_CFLAGS
740 CCS_LIBS
741 CCS_CFLAGS
742 PKGCONFIGINIT_LIBS
743 PKGCONFIGINIT_CFLAGS
744 PKG_CONFIG
745 POW_LIB
746 LIBOBJS
747 ALLOCA
748 CSCOPE_CMD
749 CFLOW_CMD
750 RANLIB
751 MKDIR_P
752 SET_MAKE
753 LN_S
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 EGREP
758 GREP
759 CPP
760 OBJEXT
761 EXEEXT
762 ac_ct_CC
763 CPPFLAGS
764 LDFLAGS
765 CFLAGS
766 CC
767 AWK
768 SED
769 target_os
770 target_vendor
771 target_cpu
772 target
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_static_link
822 with_user
823 with_group
824 with_device_uid
825 with_device_gid
826 with_device_mode
827 enable_lvm1_fallback
828 with_lvm1
829 with_pool
830 with_cluster
831 with_snapshots
832 with_mirrors
833 with_replicators
834 enable_readline
835 enable_realtime
836 with_clvmd
837 with_clvmd_pidfile
838 enable_cmirrord
839 with_cmirrord_pidfile
840 enable_debug
841 with_optimisation
842 enable_profiling
843 enable_testing
844 enable_valgrind_pool
845 enable_devmapper
846 enable_udev_sync
847 enable_udev_rules
848 enable_compat
849 enable_units_compat
850 enable_ioctl
851 enable_o_direct
852 enable_applib
853 enable_cmdlib
854 enable_pkgconfig
855 enable_write_install
856 enable_fsadm
857 enable_dmeventd
858 enable_selinux
859 enable_nls
860 with_localedir
861 with_confdir
862 with_staticdir
863 with_usrlibdir
864 with_usrsbindir
865 with_udev_prefix
866 with_udevdir
867 with_dmeventd_pidfile
868 with_dmeventd_path
869 with_default_run_dir
870 with_default_system_dir
871 with_default_archive_subdir
872 with_default_backup_subdir
873 with_default_cache_subdir
874 with_default_locking_dir
875 with_interface
876 '
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CPP
886 PKG_CONFIG
887 PKGCONFIGINIT_CFLAGS
888 PKGCONFIGINIT_LIBS
889 CCS_CFLAGS
890 CCS_LIBS
891 GULM_CFLAGS
892 GULM_LIBS
893 CMAN_CFLAGS
894 CMAN_LIBS
895 COROSYNC_CFLAGS
896 COROSYNC_LIBS
897 QUORUM_CFLAGS
898 QUORUM_LIBS
899 SALCK_CFLAGS
900 SALCK_LIBS
901 CONFDB_CFLAGS
902 CONFDB_LIBS
903 CPG_CFLAGS
904 CPG_LIBS
905 DLM_CFLAGS
906 DLM_LIBS
907 SACKPT_CFLAGS
908 SACKPT_LIBS'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 ac_unrecognized_opts=
915 ac_unrecognized_sep=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
951 htmldir='${docdir}'
952 dvidir='${docdir}'
953 pdfdir='${docdir}'
954 psdir='${docdir}'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
958
959 ac_prev=
960 ac_dashdash=
961 for ac_option
962 do
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
966 ac_prev=
967 continue
968 fi
969
970 case $ac_option in
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1005
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1039
1040 -enable-* | --enable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1076
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1081
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1111
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1185
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1216
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1226
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1233
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1244
1245 -with-* | --with-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1250 { (exit 1); exit 1; }; }
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255 "with_$ac_useropt"
1256 "*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=\$ac_optarg ;;
1261
1262 -without-* | --without-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1267 { (exit 1); exit 1; }; }
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288 x_includes=$ac_optarg ;;
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295 x_libraries=$ac_optarg ;;
1296
1297 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1298 Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
1300 ;;
1301
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307 { (exit 1); exit 1; }; }
1308 eval $ac_envvar=\$ac_optarg
1309 export $ac_envvar ;;
1310
1311 *)
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317 ;;
1318
1319 esac
1320 done
1321
1322 if test -n "$ac_prev"; then
1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1325 { (exit 1); exit 1; }; }
1326 fi
1327
1328 if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1332 { (exit 1); exit 1; }; } ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335 fi
1336
1337 # Check all directory arguments for consistency.
1338 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1342 do
1343 eval ac_val=\$$ac_var
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1423 fi
1424 else
1425 ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1436 pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440 fi
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1453
1454 #
1455 # Report the --help message.
1456 #
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461 \`configure' configures this package to adapt to many kinds of systems.
1462
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468 Defaults for the options are specified in brackets.
1469
1470 Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1486
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1491
1492 For better control, use the options below.
1493
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1515
1516 cat <<\_ACEOF
1517
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526
1527 cat <<\_ACEOF
1528
1529 Optional Features:
1530 --disable-option-checking ignore unrecognized --enable/--with options
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533 --enable-static_link use this to link the tools to their libraries
1534 statically (default is dynamic linking
1535 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1536 device-mapper is missing from the kernel
1537 --disable-readline disable readline support
1538 --enable-realtime enable realtime clock support
1539 --enable-cmirrord enable the cluster mirror log daemon
1540 --enable-debug enable debugging
1541 --enable-profiling gather gcov profiling data
1542 --enable-testing enable testing targets in the makefile
1543 --enable-valgrind-pool enable valgrind awareness of pools
1544 --disable-devmapper disable LVM2 device-mapper interaction
1545 --enable-udev_sync enable synchronisation with udev processing
1546 --enable-udev_rules install rule files needed for udev synchronisation
1547 --enable-compat enable support for old device-mapper versions
1548 --enable-units-compat enable output compatibility with old versions that
1549 that do not use KiB-style unit suffixes
1550 --disable-driver disable calls to device-mapper in the kernel
1551 --disable-o_direct disable O_DIRECT
1552 --enable-applib build application library
1553 --enable-cmdlib build shared command library
1554 --enable-pkgconfig install pkgconfig support
1555 --enable-write_install install user writable files
1556 --disable-fsadm disable fsadm
1557 --enable-dmeventd enable the device-mapper event daemon
1558 --disable-selinux disable selinux support
1559 --enable-nls enable Native Language Support
1560
1561 Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-user=USER set the owner of installed files [USER=]
1565 --with-group=GROUP set the group owner of installed files [GROUP=]
1566 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1567 --with-device-gid=GID set the group used for new device nodes [GID=0]
1568 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
1569 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1570 [TYPE=internal]
1571 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1572 [TYPE=internal]
1573 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1574 [TYPE=internal]
1575 --with-snapshots=TYPE snapshot support: internal/shared/none
1576 [TYPE=internal]
1577 --with-mirrors=TYPE mirror support: internal/shared/none
1578 [TYPE=internal]
1579 --with-replicators=TYPE replicator support: internal/shared/none
1580 [TYPE=none]
1581 --with-clvmd=TYPE build cluster LVM Daemon
1582 The following cluster manager combinations are valid:
1583 * cman,gulm (RHEL4 or equivalent)
1584 * cman (RHEL5 or equivalent)
1585 * cman,corosync,openais (or selection of them)
1586 * singlenode (localhost only)
1587 * all (autodetect)
1588 * none (disable build)
1589 [TYPE=none]
1590 --with-clvmd-pidfile=PATH
1591 clvmd pidfile [/var/run/clvmd.pid]
1592 --with-cmirrord-pidfile=PATH
1593 cmirrord pidfile [/var/run/cmirrord.pid]
1594 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1595 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1596 --with-confdir=DIR configuration files in DIR [/etc]
1597 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1598 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1599 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1600 --with-udev-prefix=UPREFIX
1601 install udev rule files in UPREFIX [EPREFIX]
1602 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1603 --with-dmeventd-pidfile=PATH
1604 dmeventd pidfile [/var/run/dmeventd.pid]
1605 --with-dmeventd-path=PATH
1606 dmeventd path [EPREFIX/sbin/dmeventd]
1607 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1608 --with-default-system-dir=DIR
1609 default LVM system directory [/etc/lvm]
1610 --with-default-archive-subdir=SUBDIR
1611 default metadata archive subdir [archive]
1612 --with-default-backup-subdir=SUBDIR
1613 default metadata backup subdir [backup]
1614 --with-default-cache-subdir=SUBDIR
1615 default metadata cache subdir [cache]
1616 --with-default-locking-dir=DIR
1617 default locking directory [/var/lock/lvm]
1618 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
1619
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CPP C preprocessor
1629 PKG_CONFIG path to pkg-config utility
1630 PKGCONFIGINIT_CFLAGS
1631 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1632 PKGCONFIGINIT_LIBS
1633 linker flags for PKGCONFIGINIT, overriding pkg-config
1634 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1635 CCS_LIBS linker flags for CCS, overriding pkg-config
1636 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1637 GULM_LIBS linker flags for GULM, overriding pkg-config
1638 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1639 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1640 COROSYNC_CFLAGS
1641 C compiler flags for COROSYNC, overriding pkg-config
1642 COROSYNC_LIBS
1643 linker flags for COROSYNC, overriding pkg-config
1644 QUORUM_CFLAGS
1645 C compiler flags for QUORUM, overriding pkg-config
1646 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1647 SALCK_CFLAGS
1648 C compiler flags for SALCK, overriding pkg-config
1649 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1650 CONFDB_CFLAGS
1651 C compiler flags for CONFDB, overriding pkg-config
1652 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1653 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1654 CPG_LIBS linker flags for CPG, overriding pkg-config
1655 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1656 DLM_LIBS linker flags for DLM, overriding pkg-config
1657 SACKPT_CFLAGS
1658 C compiler flags for SACKPT, overriding pkg-config
1659 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1660
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1663
1664 _ACEOF
1665 ac_status=$?
1666 fi
1667
1668 if test "$ac_init_help" = "recursive"; then
1669 # If there are subdirs, report their specific --help.
1670 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1671 test -d "$ac_dir" ||
1672 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1673 continue
1674 ac_builddir=.
1675
1676 case "$ac_dir" in
1677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *)
1679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1680 # A ".." for each directory in $ac_dir_suffix.
1681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1682 case $ac_top_builddir_sub in
1683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1685 esac ;;
1686 esac
1687 ac_abs_top_builddir=$ac_pwd
1688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1689 # for backward compatibility:
1690 ac_top_builddir=$ac_top_build_prefix
1691
1692 case $srcdir in
1693 .) # We are building in place.
1694 ac_srcdir=.
1695 ac_top_srcdir=$ac_top_builddir_sub
1696 ac_abs_top_srcdir=$ac_pwd ;;
1697 [\\/]* | ?:[\\/]* ) # Absolute name.
1698 ac_srcdir=$srcdir$ac_dir_suffix;
1699 ac_top_srcdir=$srcdir
1700 ac_abs_top_srcdir=$srcdir ;;
1701 *) # Relative name.
1702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703 ac_top_srcdir=$ac_top_build_prefix$srcdir
1704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1705 esac
1706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707
1708 cd "$ac_dir" || { ac_status=$?; continue; }
1709 # Check for guested configure.
1710 if test -f "$ac_srcdir/configure.gnu"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713 elif test -f "$ac_srcdir/configure"; then
1714 echo &&
1715 $SHELL "$ac_srcdir/configure" --help=recursive
1716 else
1717 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1718 fi || ac_status=$?
1719 cd "$ac_pwd" || { ac_status=$?; break; }
1720 done
1721 fi
1722
1723 test -n "$ac_init_help" && exit $ac_status
1724 if $ac_init_version; then
1725 cat <<\_ACEOF
1726 configure
1727 generated by GNU Autoconf 2.63
1728
1729 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1730 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1731 This configure script is free software; the Free Software Foundation
1732 gives unlimited permission to copy, distribute and modify it.
1733 _ACEOF
1734 exit
1735 fi
1736 cat >config.log <<_ACEOF
1737 This file contains any messages produced by compilers while
1738 running configure, to aid debugging if configure makes a mistake.
1739
1740 It was created by $as_me, which was
1741 generated by GNU Autoconf 2.63. Invocation command line was
1742
1743 $ $0 $@
1744
1745 _ACEOF
1746 exec 5>>config.log
1747 {
1748 cat <<_ASUNAME
1749 ## --------- ##
1750 ## Platform. ##
1751 ## --------- ##
1752
1753 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761
1762 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1765 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1766 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769
1770 _ASUNAME
1771
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1774 do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 $as_echo "PATH: $as_dir"
1778 done
1779 IFS=$as_save_IFS
1780
1781 } >&5
1782
1783 cat >&5 <<_ACEOF
1784
1785
1786 ## ----------- ##
1787 ## Core tests. ##
1788 ## ----------- ##
1789
1790 _ACEOF
1791
1792
1793 # Keep a trace of the command line.
1794 # Strip out --no-create and --no-recursion so they do not pile up.
1795 # Strip out --silent because we don't want to record it for future runs.
1796 # Also quote any args containing shell meta-characters.
1797 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_configure_args=
1799 ac_configure_args0=
1800 ac_configure_args1=
1801 ac_must_keep_next=false
1802 for ac_pass in 1 2
1803 do
1804 for ac_arg
1805 do
1806 case $ac_arg in
1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809 | -silent | --silent | --silen | --sile | --sil)
1810 continue ;;
1811 *\'*)
1812 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813 esac
1814 case $ac_pass in
1815 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1816 2)
1817 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1818 if test $ac_must_keep_next = true; then
1819 ac_must_keep_next=false # Got value, back to normal.
1820 else
1821 case $ac_arg in
1822 *=* | --config-cache | -C | -disable-* | --disable-* \
1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825 | -with-* | --with-* | -without-* | --without-* | --x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828 esac
1829 ;;
1830 -* ) ac_must_keep_next=true ;;
1831 esac
1832 fi
1833 ac_configure_args="$ac_configure_args '$ac_arg'"
1834 ;;
1835 esac
1836 done
1837 done
1838 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1839 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1840
1841 # When interrupted or exit'd, cleanup temporary files, and complete
1842 # config.log. We remove comments because anyway the quotes in there
1843 # would cause problems or look ugly.
1844 # WARNING: Use '\'' to represent an apostrophe within the trap.
1845 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1846 trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1848 {
1849 echo
1850
1851 cat <<\_ASBOX
1852 ## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##
1855 _ASBOX
1856 echo
1857 # The following way of writing the cache mishandles newlines in values,
1858 (
1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860 eval ac_val=\$$ac_var
1861 case $ac_val in #(
1862 *${as_nl}*)
1863 case $ac_var in #(
1864 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1866 esac
1867 case $ac_var in #(
1868 _ | IFS | as_nl) ;; #(
1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1870 *) $as_unset $ac_var ;;
1871 esac ;;
1872 esac
1873 done
1874 (set) 2>&1 |
1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876 *${as_nl}ac_space=\ *)
1877 sed -n \
1878 "s/'\''/'\''\\\\'\'''\''/g;
1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880 ;; #(
1881 *)
1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883 ;;
1884 esac |
1885 sort
1886 )
1887 echo
1888
1889 cat <<\_ASBOX
1890 ## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##
1893 _ASBOX
1894 echo
1895 for ac_var in $ac_subst_vars
1896 do
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 esac
1901 $as_echo "$ac_var='\''$ac_val'\''"
1902 done | sort
1903 echo
1904
1905 if test -n "$ac_subst_files"; then
1906 cat <<\_ASBOX
1907 ## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##
1910 _ASBOX
1911 echo
1912 for ac_var in $ac_subst_files
1913 do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 esac
1918 $as_echo "$ac_var='\''$ac_val'\''"
1919 done | sort
1920 echo
1921 fi
1922
1923 if test -s confdefs.h; then
1924 cat <<\_ASBOX
1925 ## ----------- ##
1926 ## confdefs.h. ##
1927 ## ----------- ##
1928 _ASBOX
1929 echo
1930 cat confdefs.h
1931 echo
1932 fi
1933 test "$ac_signal" != 0 &&
1934 $as_echo "$as_me: caught signal $ac_signal"
1935 $as_echo "$as_me: exit $exit_status"
1936 } >&5
1937 rm -f core *.core core.conftest.* &&
1938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939 exit $exit_status
1940 ' 0
1941 for ac_signal in 1 2 13 15; do
1942 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943 done
1944 ac_signal=0
1945
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest* confdefs.h
1948
1949 # Predefined preprocessor variables.
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 _ACEOF
1954
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 _ACEOF
1959
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 _ACEOF
1964
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 _ACEOF
1969
1970
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 _ACEOF
1974
1975
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer an explicitly selected file to automatically selected ones.
1978 ac_site_file1=NONE
1979 ac_site_file2=NONE
1980 if test -n "$CONFIG_SITE"; then
1981 ac_site_file1=$CONFIG_SITE
1982 elif test "x$prefix" != xNONE; then
1983 ac_site_file1=$prefix/share/config.site
1984 ac_site_file2=$prefix/etc/config.site
1985 else
1986 ac_site_file1=$ac_default_prefix/share/config.site
1987 ac_site_file2=$ac_default_prefix/etc/config.site
1988 fi
1989 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1990 do
1991 test "x$ac_site_file" = xNONE && continue
1992 if test -r "$ac_site_file"; then
1993 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1994 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1995 sed 's/^/| /' "$ac_site_file" >&5
1996 . "$ac_site_file"
1997 fi
1998 done
1999
2000 if test -r "$cache_file"; then
2001 # Some versions of bash will fail to source /dev/null (special
2002 # files actually), so we avoid doing that.
2003 if test -f "$cache_file"; then
2004 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2005 $as_echo "$as_me: loading cache $cache_file" >&6;}
2006 case $cache_file in
2007 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2008 *) . "./$cache_file";;
2009 esac
2010 fi
2011 else
2012 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2013 $as_echo "$as_me: creating cache $cache_file" >&6;}
2014 >$cache_file
2015 fi
2016
2017 # Check that the precious variables saved in the cache have kept the same
2018 # value.
2019 ac_cache_corrupted=false
2020 for ac_var in $ac_precious_vars; do
2021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2022 eval ac_new_set=\$ac_env_${ac_var}_set
2023 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2024 eval ac_new_val=\$ac_env_${ac_var}_value
2025 case $ac_old_set,$ac_new_set in
2026 set,)
2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2029 ac_cache_corrupted=: ;;
2030 ,set)
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2032 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2033 ac_cache_corrupted=: ;;
2034 ,);;
2035 *)
2036 if test "x$ac_old_val" != "x$ac_new_val"; then
2037 # differences in whitespace do not lead to failure.
2038 ac_old_val_w=`echo x $ac_old_val`
2039 ac_new_val_w=`echo x $ac_new_val`
2040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2042 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043 ac_cache_corrupted=:
2044 else
2045 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047 eval $ac_var=\$ac_old_val
2048 fi
2049 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2050 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2051 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2052 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2053 fi;;
2054 esac
2055 # Pass precious variables to config.status.
2056 if test "$ac_new_set" = set; then
2057 case $ac_new_val in
2058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 *) ac_arg=$ac_var=$ac_new_val ;;
2060 esac
2061 case " $ac_configure_args " in
2062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2063 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2064 esac
2065 fi
2066 done
2067 if $ac_cache_corrupted; then
2068 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2071 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2073 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2074 { (exit 1); exit 1; }; }
2075 fi
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093 ac_ext=c
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098
2099
2100
2101 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2102
2103
2104 ################################################################################
2105 ac_aux_dir=
2106 for ac_dir in autoconf "$srcdir"/autoconf; do
2107 if test -f "$ac_dir/install-sh"; then
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install-sh -c"
2110 break
2111 elif test -f "$ac_dir/install.sh"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/install.sh -c"
2114 break
2115 elif test -f "$ac_dir/shtool"; then
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/shtool install -c"
2118 break
2119 fi
2120 done
2121 if test -z "$ac_aux_dir"; then
2122 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2123 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2124 { (exit 1); exit 1; }; }
2125 fi
2126
2127 # These three variables are undocumented and unsupported,
2128 # and are intended to be withdrawn in a future Autoconf release.
2129 # They can cause serious problems if a builder's source tree is in a directory
2130 # whose full name contains unusual characters.
2131 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2132 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2133 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2134
2135
2136
2137 ################################################################################
2138 # Make sure we can run config.sub.
2139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2140 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2141 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2142 { (exit 1); exit 1; }; }
2143
2144 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2145 $as_echo_n "checking build system type... " >&6; }
2146 if test "${ac_cv_build+set}" = set; then
2147 $as_echo_n "(cached) " >&6
2148 else
2149 ac_build_alias=$build_alias
2150 test "x$ac_build_alias" = x &&
2151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2152 test "x$ac_build_alias" = x &&
2153 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2154 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2155 { (exit 1); exit 1; }; }
2156 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2157 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2158 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2159 { (exit 1); exit 1; }; }
2160
2161 fi
2162 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2163 $as_echo "$ac_cv_build" >&6; }
2164 case $ac_cv_build in
2165 *-*-*) ;;
2166 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2167 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2168 { (exit 1); exit 1; }; };;
2169 esac
2170 build=$ac_cv_build
2171 ac_save_IFS=$IFS; IFS='-'
2172 set x $ac_cv_build
2173 shift
2174 build_cpu=$1
2175 build_vendor=$2
2176 shift; shift
2177 # Remember, the first character of IFS is used to create $*,
2178 # except with old shells:
2179 build_os=$*
2180 IFS=$ac_save_IFS
2181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2182
2183
2184 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2185 $as_echo_n "checking host system type... " >&6; }
2186 if test "${ac_cv_host+set}" = set; then
2187 $as_echo_n "(cached) " >&6
2188 else
2189 if test "x$host_alias" = x; then
2190 ac_cv_host=$ac_cv_build
2191 else
2192 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2193 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2194 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2196 fi
2197
2198 fi
2199 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200 $as_echo "$ac_cv_host" >&6; }
2201 case $ac_cv_host in
2202 *-*-*) ;;
2203 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2204 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2205 { (exit 1); exit 1; }; };;
2206 esac
2207 host=$ac_cv_host
2208 ac_save_IFS=$IFS; IFS='-'
2209 set x $ac_cv_host
2210 shift
2211 host_cpu=$1
2212 host_vendor=$2
2213 shift; shift
2214 # Remember, the first character of IFS is used to create $*,
2215 # except with old shells:
2216 host_os=$*
2217 IFS=$ac_save_IFS
2218 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2219
2220
2221 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2222 $as_echo_n "checking target system type... " >&6; }
2223 if test "${ac_cv_target+set}" = set; then
2224 $as_echo_n "(cached) " >&6
2225 else
2226 if test "x$target_alias" = x; then
2227 ac_cv_target=$ac_cv_host
2228 else
2229 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2230 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2231 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2232 { (exit 1); exit 1; }; }
2233 fi
2234
2235 fi
2236 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2237 $as_echo "$ac_cv_target" >&6; }
2238 case $ac_cv_target in
2239 *-*-*) ;;
2240 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2241 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2242 { (exit 1); exit 1; }; };;
2243 esac
2244 target=$ac_cv_target
2245 ac_save_IFS=$IFS; IFS='-'
2246 set x $ac_cv_target
2247 shift
2248 target_cpu=$1
2249 target_vendor=$2
2250 shift; shift
2251 # Remember, the first character of IFS is used to create $*,
2252 # except with old shells:
2253 target_os=$*
2254 IFS=$ac_save_IFS
2255 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2256
2257
2258 # The aliases save the names the user supplied, while $host etc.
2259 # will get canonicalized.
2260 test -n "$target_alias" &&
2261 test "$program_prefix$program_suffix$program_transform_name" = \
2262 NONENONEs,x,x, &&
2263 program_prefix=${target_alias}-
2264
2265 case "$host_os" in
2266 linux*)
2267 CFLAGS="$CFLAGS"
2268 COPTIMISE_FLAG="-O2"
2269 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2270 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2271 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2272 LDDEPS="$LDDEPS .export.sym"
2273 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2274 LIB_SUFFIX=so
2275 DEVMAPPER=yes
2276 ODIRECT=yes
2277 DM_IOCTLS=yes
2278 SELINUX=yes
2279 CLUSTER=internal
2280 FSADM=yes
2281 ;;
2282 darwin*)
2283 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2284 COPTIMISE_FLAG="-O2"
2285 CLDFLAGS="$CLDFLAGS"
2286 CLDWHOLEARCHIVE="-all_load"
2287 CLDNOWHOLEARCHIVE=
2288 LIB_SUFFIX=dylib
2289 DEVMAPPER=yes
2290 ODIRECT=no
2291 DM_IOCTLS=no
2292 SELINUX=no
2293 CLUSTER=none
2294 FSADM=no
2295 ;;
2296 esac
2297
2298 ################################################################################
2299 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2300 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2301 if test "${ac_cv_path_SED+set}" = set; then
2302 $as_echo_n "(cached) " >&6
2303 else
2304 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2305 for ac_i in 1 2 3 4 5 6 7; do
2306 ac_script="$ac_script$as_nl$ac_script"
2307 done
2308 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2309 $as_unset ac_script || ac_script=
2310 if test -z "$SED"; then
2311 ac_path_SED_found=false
2312 # Loop through the user's path and test for each of PROGNAME-LIST
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_prog in sed gsed; do
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2321 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2322 # Check for GNU ac_path_SED and select it if it is found.
2323 # Check for GNU $ac_path_SED
2324 case `"$ac_path_SED" --version 2>&1` in
2325 *GNU*)
2326 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2327 *)
2328 ac_count=0
2329 $as_echo_n 0123456789 >"conftest.in"
2330 while :
2331 do
2332 cat "conftest.in" "conftest.in" >"conftest.tmp"
2333 mv "conftest.tmp" "conftest.in"
2334 cp "conftest.in" "conftest.nl"
2335 $as_echo '' >> "conftest.nl"
2336 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2338 ac_count=`expr $ac_count + 1`
2339 if test $ac_count -gt ${ac_path_SED_max-0}; then
2340 # Best one so far, save it but keep looking for a better one
2341 ac_cv_path_SED="$ac_path_SED"
2342 ac_path_SED_max=$ac_count
2343 fi
2344 # 10*(2^10) chars as input seems more than enough
2345 test $ac_count -gt 10 && break
2346 done
2347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2348 esac
2349
2350 $ac_path_SED_found && break 3
2351 done
2352 done
2353 done
2354 IFS=$as_save_IFS
2355 if test -z "$ac_cv_path_SED"; then
2356 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2357 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2358 { (exit 1); exit 1; }; }
2359 fi
2360 else
2361 ac_cv_path_SED=$SED
2362 fi
2363
2364 fi
2365 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2366 $as_echo "$ac_cv_path_SED" >&6; }
2367 SED="$ac_cv_path_SED"
2368 rm -f conftest.sed
2369
2370 for ac_prog in gawk mawk nawk awk
2371 do
2372 # Extract the first word of "$ac_prog", so it can be a program name with args.
2373 set dummy $ac_prog; ac_word=$2
2374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if test "${ac_cv_prog_AWK+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$AWK"; then
2380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_AWK="$ac_prog"
2390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 AWK=$ac_cv_prog_AWK
2400 if test -n "$AWK"; then
2401 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2402 $as_echo "$AWK" >&6; }
2403 else
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408
2409 test -n "$AWK" && break
2410 done
2411
2412 ac_ext=c
2413 ac_cpp='$CPP $CPPFLAGS'
2414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417 if test -n "$ac_tool_prefix"; then
2418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2419 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2424 else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 CC=$ac_cv_prog_CC
2446 if test -n "$CC"; then
2447 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2448 $as_echo "$CC" >&6; }
2449 else
2450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454
2455 fi
2456 if test -z "$ac_cv_prog_CC"; then
2457 ac_ct_CC=$CC
2458 # Extract the first word of "gcc", so it can be a program name with args.
2459 set dummy gcc; ac_word=$2
2460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_ac_ct_CC="gcc"
2476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486 if test -n "$ac_ct_CC"; then
2487 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2488 $as_echo "$ac_ct_CC" >&6; }
2489 else
2490 { $as_echo "$as_me:$LINENO: result: no" >&5
2491 $as_echo "no" >&6; }
2492 fi
2493
2494 if test "x$ac_ct_CC" = x; then
2495 CC=""
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498 yes:)
2499 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2501 ac_tool_warned=yes ;;
2502 esac
2503 CC=$ac_ct_CC
2504 fi
2505 else
2506 CC="$ac_cv_prog_CC"
2507 fi
2508
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}cc; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2517 else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}cc"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541 $as_echo "$CC" >&6; }
2542 else
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2545 fi
2546
2547
2548 fi
2549 fi
2550 if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 ac_prog_rejected=no
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2571 continue
2572 fi
2573 ac_cv_prog_CC="cc"
2574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577 done
2578 done
2579 IFS=$as_save_IFS
2580
2581 if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2584 shift
2585 if test $# != 0; then
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2589 shift
2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2591 fi
2592 fi
2593 fi
2594 fi
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2598 $as_echo "$CC" >&6; }
2599 else
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2601 $as_echo "no" >&6; }
2602 fi
2603
2604
2605 fi
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 for ac_prog in cl.exe
2609 do
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 CC=$ac_cv_prog_CC
2638 if test -n "$CC"; then
2639 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2640 $as_echo "$CC" >&6; }
2641 else
2642 { $as_echo "$as_me:$LINENO: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 test -n "$CC" && break
2648 done
2649 fi
2650 if test -z "$CC"; then
2651 ac_ct_CC=$CC
2652 for ac_prog in cl.exe
2653 do
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_CC="$ac_prog"
2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 $as_echo "$ac_ct_CC" >&6; }
2685 else
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691 test -n "$ac_ct_CC" && break
2692 done
2693
2694 if test "x$ac_ct_CC" = x; then
2695 CC=""
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698 yes:)
2699 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701 ac_tool_warned=yes ;;
2702 esac
2703 CC=$ac_ct_CC
2704 fi
2705 fi
2706
2707 fi
2708
2709
2710 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2713 See \`config.log' for more details." >&5
2714 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }; }
2717
2718 # Provide some information about the compiler.
2719 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2720 set X $ac_compile
2721 ac_compiler=$2
2722 { (ac_try="$ac_compiler --version >&5"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2728 $as_echo "$ac_try_echo") >&5
2729 (eval "$ac_compiler --version >&5") 2>&5
2730 ac_status=$?
2731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (ac_try="$ac_compiler -v >&5"
2734 case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737 esac
2738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2739 $as_echo "$ac_try_echo") >&5
2740 (eval "$ac_compiler -v >&5") 2>&5
2741 ac_status=$?
2742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (ac_try="$ac_compiler -V >&5"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750 $as_echo "$ac_try_echo") >&5
2751 (eval "$ac_compiler -V >&5") 2>&5
2752 ac_status=$?
2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2762
2763 int
2764 main ()
2765 {
2766
2767 ;
2768 return 0;
2769 }
2770 _ACEOF
2771 ac_clean_files_save=$ac_clean_files
2772 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2773 # Try to create an executable without -o first, disregard a.out.
2774 # It will help us diagnose broken compilers, and finding out an intuition
2775 # of exeext.
2776 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2777 $as_echo_n "checking for C compiler default output file name... " >&6; }
2778 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2779
2780 # The possible output files:
2781 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2782
2783 ac_rmfiles=
2784 for ac_file in $ac_files
2785 do
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789 esac
2790 done
2791 rm -f $ac_rmfiles
2792
2793 if { (ac_try="$ac_link_default"
2794 case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2799 $as_echo "$ac_try_echo") >&5
2800 (eval "$ac_link_default") 2>&5
2801 ac_status=$?
2802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; then
2804 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2807 # so that the user can short-circuit this test for compilers unknown to
2808 # Autoconf.
2809 for ac_file in $ac_files ''
2810 do
2811 test -f "$ac_file" || continue
2812 case $ac_file in
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2814 ;;
2815 [ab].out )
2816 # We found the default executable, but exeext='' is most
2817 # certainly right.
2818 break;;
2819 *.* )
2820 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821 then :; else
2822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 fi
2824 # We set ac_cv_exeext here because the later test for it is not
2825 # safe: cross compilers may not add the suffix if given an `-o'
2826 # argument, so we may need to know it at that point already.
2827 # Even if this section looks crufty: it has the advantage of
2828 # actually working.
2829 break;;
2830 * )
2831 break;;
2832 esac
2833 done
2834 test "$ac_cv_exeext" = no && ac_cv_exeext=
2835
2836 else
2837 ac_file=''
2838 fi
2839
2840 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2841 $as_echo "$ac_file" >&6; }
2842 if test -z "$ac_file"; then
2843 $as_echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2849 See \`config.log' for more details." >&5
2850 $as_echo "$as_me: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&2;}
2852 { (exit 77); exit 77; }; }; }
2853 fi
2854
2855 ac_exeext=$ac_cv_exeext
2856
2857 # Check that the compiler produces executables we can run. If not, either
2858 # the compiler is broken, or we cross compile.
2859 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860 $as_echo_n "checking whether the C compiler works... " >&6; }
2861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862 # If not cross compiling, check that we can run a simple program.
2863 if test "$cross_compiling" != yes; then
2864 if { ac_try='./$ac_file'
2865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870 $as_echo "$ac_try_echo") >&5
2871 (eval "$ac_try") 2>&5
2872 ac_status=$?
2873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 cross_compiling=no
2876 else
2877 if test "$cross_compiling" = maybe; then
2878 cross_compiling=yes
2879 else
2880 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&5
2885 $as_echo "$as_me: error: cannot run C compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }; }
2889 fi
2890 fi
2891 fi
2892 { $as_echo "$as_me:$LINENO: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894
2895 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2896 ac_clean_files=$ac_clean_files_save
2897 # Check that the compiler produces executables we can run. If not, either
2898 # the compiler is broken, or we cross compile.
2899 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2900 $as_echo_n "checking whether we are cross compiling... " >&6; }
2901 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2902 $as_echo "$cross_compiling" >&6; }
2903
2904 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2905 $as_echo_n "checking for suffix of executables... " >&6; }
2906 if { (ac_try="$ac_link"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912 $as_echo "$ac_try_echo") >&5
2913 (eval "$ac_link") 2>&5
2914 ac_status=$?
2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919 # work properly (i.e., refer to `conftest.exe'), while it won't with
2920 # `rm'.
2921 for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926 break;;
2927 * ) break;;
2928 esac
2929 done
2930 else
2931 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&5
2935 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }; }
2938 fi
2939
2940 rm -f conftest$ac_cv_exeext
2941 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942 $as_echo "$ac_cv_exeext" >&6; }
2943
2944 rm -f conftest.$ac_ext
2945 EXEEXT=$ac_cv_exeext
2946 ac_exeext=$EXEEXT
2947 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948 $as_echo_n "checking for suffix of object files... " >&6; }
2949 if test "${ac_cv_objext+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2951 else
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962
2963 ;
2964 return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.o conftest.obj
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975 (eval "$ac_compile") 2>&5
2976 ac_status=$?
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; then
2979 for ac_file in conftest.o conftest.obj conftest.*; do
2980 test -f "$ac_file" || continue;
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2984 break;;
2985 esac
2986 done
2987 else
2988 $as_echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }; }
2998 fi
2999
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 fi
3002 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 $as_echo "$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3005 ac_objext=$OBJEXT
3006 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 $as_echo_n "(cached) " >&6
3010 else
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017
3018 int
3019 main ()
3020 {
3021 #ifndef __GNUC__
3022 choke me
3023 #endif
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3036 $as_echo "$ac_try_echo") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } && {
3044 test -z "$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 } && test -s conftest.$ac_objext; then
3047 ac_compiler_gnu=yes
3048 else
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 ac_compiler_gnu=no
3053 fi
3054
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058 fi
3059 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061 if test $ac_compiler_gnu = yes; then
3062 GCC=yes
3063 else
3064 GCC=
3065 fi
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h. */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083
3084 int
3085 main ()
3086 {
3087
3088 ;
3089 return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3099 $as_echo "$ac_try_echo") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3110 ac_cv_prog_cc_g=yes
3111 else
3112 $as_echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 CFLAGS=""
3116 cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h. */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122
3123 int
3124 main ()
3125 {
3126
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138 $as_echo "$ac_try_echo") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3149 :
3150 else
3151 $as_echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h. */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3162
3163 int
3164 main ()
3165 {
3166
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3178 $as_echo "$ac_try_echo") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3189 ac_cv_prog_cc_g=yes
3190 else
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3205 fi
3206 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207 $as_echo "$ac_cv_prog_cc_g" >&6; }
3208 if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210 elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3212 CFLAGS="-g -O2"
3213 else
3214 CFLAGS="-g"
3215 fi
3216 else
3217 if test "$GCC" = yes; then
3218 CFLAGS="-O2"
3219 else
3220 CFLAGS=
3221 fi
3222 fi
3223 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3227 else
3228 ac_cv_prog_cc_c89=no
3229 ac_save_CC=$CC
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #include <stdarg.h>
3237 #include <stdio.h>
3238 #include <sys/types.h>
3239 #include <sys/stat.h>
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3244 char **p;
3245 int i;
3246 {
3247 return p[i];
3248 }
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3250 {
3251 char *s;
3252 va_list v;
3253 va_start (v,p);
3254 s = g (p, va_arg (v,int));
3255 va_end (v);
3256 return s;
3257 }
3258
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
3262 as 'x'. The following induces an error, until -std is added to get
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
3265 that's true only with -std. */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3270 #define FOO(x) 'x'
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 int argc;
3278 char **argv;
3279 int
3280 main ()
3281 {
3282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 do
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298 $as_echo "$ac_try_echo") >&5
3299 (eval "$ac_compile") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } && {
3306 test -z "$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 } && test -s conftest.$ac_objext; then
3309 ac_cv_prog_cc_c89=$ac_arg
3310 else
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314
3315 fi
3316
3317 rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
3319 done
3320 rm -f conftest.$ac_ext
3321 CC=$ac_save_CC
3322
3323 fi
3324 # AC_CACHE_VAL
3325 case "x$ac_cv_prog_cc_c89" in
3326 x)
3327 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3328 $as_echo "none needed" >&6; } ;;
3329 xno)
3330 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3331 $as_echo "unsupported" >&6; } ;;
3332 *)
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3336 esac
3337
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344
3345
3346
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3353 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3354 # On Suns, sometimes $CPP names a directory.
3355 if test -n "$CPP" && test -d "$CPP"; then
3356 CPP=
3357 fi
3358 if test -z "$CPP"; then
3359 if test "${ac_cv_prog_CPP+set}" = set; then
3360 $as_echo_n "(cached) " >&6
3361 else
3362 # Double quotes because CPP needs to be expanded
3363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 do
3365 ac_preproc_ok=false
3366 for ac_c_preproc_warn_flag in '' yes
3367 do
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h. */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3380 #ifdef __STDC__
3381 # include <limits.h>
3382 #else
3383 # include <assert.h>
3384 #endif
3385 Syntax error
3386 _ACEOF
3387 if { (ac_try="$ac_cpp conftest.$ac_ext"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393 $as_echo "$ac_try_echo") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
3399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null && {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 }; then
3404 :
3405 else
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 # Broken: fails on valid input.
3410 continue
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null && {
3439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 }; then
3442 # Broken: success on invalid input.
3443 continue
3444 else
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 # Passes both tests.
3449 ac_preproc_ok=:
3450 break
3451 fi
3452
3453 rm -f conftest.err conftest.$ac_ext
3454
3455 done
3456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457 rm -f conftest.err conftest.$ac_ext
3458 if $ac_preproc_ok; then
3459 break
3460 fi
3461
3462 done
3463 ac_cv_prog_CPP=$CPP
3464
3465 fi
3466 CPP=$ac_cv_prog_CPP
3467 else
3468 ac_cv_prog_CPP=$CPP
3469 fi
3470 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3471 $as_echo "$CPP" >&6; }
3472 ac_preproc_ok=false
3473 for ac_c_preproc_warn_flag in '' yes
3474 do
3475 # Use a header file that comes with gcc, so configuring glibc
3476 # with a fresh cross-compiler works.
3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478 # <limits.h> exists even on freestanding compilers.
3479 # On the NeXT, cc -E runs the code through the compiler's parser,
3480 # not just through cpp. "Syntax error" is here to catch this case.
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487 #ifdef __STDC__
3488 # include <limits.h>
3489 #else
3490 # include <assert.h>
3491 #endif
3492 Syntax error
3493 _ACEOF
3494 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } >/dev/null && {
3508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 }; then
3511 :
3512 else
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 # Broken: fails on valid input.
3517 continue
3518 fi
3519
3520 rm -f conftest.err conftest.$ac_ext
3521
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538 $as_echo "$ac_try_echo") >&5
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 }; then
3549 # Broken: success on invalid input.
3550 continue
3551 else
3552 $as_echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3554
3555 # Passes both tests.
3556 ac_preproc_ok=:
3557 break
3558 fi
3559
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 done
3563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564 rm -f conftest.err conftest.$ac_ext
3565 if $ac_preproc_ok; then
3566 :
3567 else
3568 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3571 See \`config.log' for more details." >&5
3572 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3573 See \`config.log' for more details." >&2;}
3574 { (exit 1); exit 1; }; }; }
3575 fi
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
3583
3584 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3585 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3586 if test "${ac_cv_path_GREP+set}" = set; then
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -z "$GREP"; then
3590 ac_path_GREP_found=false
3591 # Loop through the user's path and test for each of PROGNAME-LIST
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3594 do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_prog in grep ggrep; do
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3600 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3601 # Check for GNU ac_path_GREP and select it if it is found.
3602 # Check for GNU $ac_path_GREP
3603 case `"$ac_path_GREP" --version 2>&1` in
3604 *GNU*)
3605 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3606 *)
3607 ac_count=0
3608 $as_echo_n 0123456789 >"conftest.in"
3609 while :
3610 do
3611 cat "conftest.in" "conftest.in" >"conftest.tmp"
3612 mv "conftest.tmp" "conftest.in"
3613 cp "conftest.in" "conftest.nl"
3614 $as_echo 'GREP' >> "conftest.nl"
3615 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3617 ac_count=`expr $ac_count + 1`
3618 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3619 # Best one so far, save it but keep looking for a better one
3620 ac_cv_path_GREP="$ac_path_GREP"
3621 ac_path_GREP_max=$ac_count
3622 fi
3623 # 10*(2^10) chars as input seems more than enough
3624 test $ac_count -gt 10 && break
3625 done
3626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3627 esac
3628
3629 $ac_path_GREP_found && break 3
3630 done
3631 done
3632 done
3633 IFS=$as_save_IFS
3634 if test -z "$ac_cv_path_GREP"; then
3635 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3636 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3637 { (exit 1); exit 1; }; }
3638 fi
3639 else
3640 ac_cv_path_GREP=$GREP
3641 fi
3642
3643 fi
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3645 $as_echo "$ac_cv_path_GREP" >&6; }
3646 GREP="$ac_cv_path_GREP"
3647
3648
3649 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3650 $as_echo_n "checking for egrep... " >&6; }
3651 if test "${ac_cv_path_EGREP+set}" = set; then
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3655 then ac_cv_path_EGREP="$GREP -E"
3656 else
3657 if test -z "$EGREP"; then
3658 ac_path_EGREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_prog in egrep; do
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3669 # Check for GNU ac_path_EGREP and select it if it is found.
3670 # Check for GNU $ac_path_EGREP
3671 case `"$ac_path_EGREP" --version 2>&1` in
3672 *GNU*)
3673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3674 *)
3675 ac_count=0
3676 $as_echo_n 0123456789 >"conftest.in"
3677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 $as_echo 'EGREP' >> "conftest.nl"
3683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_EGREP="$ac_path_EGREP"
3689 ac_path_EGREP_max=$ac_count
3690 fi
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3696
3697 $ac_path_EGREP_found && break 3
3698 done
3699 done
3700 done
3701 IFS=$as_save_IFS
3702 if test -z "$ac_cv_path_EGREP"; then
3703 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3705 { (exit 1); exit 1; }; }
3706 fi
3707 else
3708 ac_cv_path_EGREP=$EGREP
3709 fi
3710
3711 fi
3712 fi
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3714 $as_echo "$ac_cv_path_EGREP" >&6; }
3715 EGREP="$ac_cv_path_EGREP"
3716
3717
3718 if test $ac_cv_c_compiler_gnu = yes; then
3719 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3720 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3721 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3722 $as_echo_n "(cached) " >&6
3723 else
3724 ac_pattern="Autoconf.*'x'"
3725 cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h. */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 #include <sgtty.h>
3732 Autoconf TIOCGETP
3733 _ACEOF
3734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3736 ac_cv_prog_gcc_traditional=yes
3737 else
3738 ac_cv_prog_gcc_traditional=no
3739 fi
3740 rm -f conftest*
3741
3742
3743 if test $ac_cv_prog_gcc_traditional = no; then
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <termio.h>
3751 Autoconf TCGETA
3752 _ACEOF
3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3755 ac_cv_prog_gcc_traditional=yes
3756 fi
3757 rm -f conftest*
3758
3759 fi
3760 fi
3761 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3762 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3763 if test $ac_cv_prog_gcc_traditional = yes; then
3764 CC="$CC -traditional"
3765 fi
3766 fi
3767
3768 # Find a good install program. We prefer a C program (faster),
3769 # so one script is as good as another. But avoid the broken or
3770 # incompatible versions:
3771 # SysV /etc/install, /usr/sbin/install
3772 # SunOS /usr/etc/install
3773 # IRIX /sbin/install
3774 # AIX /bin/install
3775 # AmigaOS /C/install, which installs bootblocks on floppy discs
3776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3779 # OS/2's system install, which has a completely different semantic
3780 # ./install, which can be erroneously created by make from ./install.sh.
3781 # Reject install programs that cannot install multiple files.
3782 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3783 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3784 if test -z "$INSTALL"; then
3785 if test "${ac_cv_path_install+set}" = set; then
3786 $as_echo_n "(cached) " >&6
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 # Account for people who put trailing slashes in PATH elements.
3794 case $as_dir/ in
3795 ./ | .// | /cC/* | \
3796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3797 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3798 /usr/ucb/* ) ;;
3799 *)
3800 # OSF1 and SCO ODT 3.0 have their own names for install.
3801 # Don't use installbsd from OSF since it installs stuff as root
3802 # by default.
3803 for ac_prog in ginstall scoinst install; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3806 if test $ac_prog = install &&
3807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3808 # AIX install. It has an incompatible calling convention.
3809 :
3810 elif test $ac_prog = install &&
3811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # program-specific install script used by HP pwplus--don't use.
3813 :
3814 else
3815 rm -rf conftest.one conftest.two conftest.dir
3816 echo one > conftest.one
3817 echo two > conftest.two
3818 mkdir conftest.dir
3819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3820 test -s conftest.one && test -s conftest.two &&
3821 test -s conftest.dir/conftest.one &&
3822 test -s conftest.dir/conftest.two
3823 then
3824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3825 break 3
3826 fi
3827 fi
3828 fi
3829 done
3830 done
3831 ;;
3832 esac
3833
3834 done
3835 IFS=$as_save_IFS
3836
3837 rm -rf conftest.one conftest.two conftest.dir
3838
3839 fi
3840 if test "${ac_cv_path_install+set}" = set; then
3841 INSTALL=$ac_cv_path_install
3842 else
3843 # As a last resort, use the slow shell script. Don't cache a
3844 # value for INSTALL within a source directory, because that will
3845 # break other packages using the cache if that directory is
3846 # removed, or if the value is a relative name.
3847 INSTALL=$ac_install_sh
3848 fi
3849 fi
3850 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3851 $as_echo "$INSTALL" >&6; }
3852
3853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3854 # It thinks the first close brace ends the variable substitution.
3855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3856
3857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3858
3859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3860
3861 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3862 $as_echo_n "checking whether ln -s works... " >&6; }
3863 LN_S=$as_ln_s
3864 if test "$LN_S" = "ln -s"; then
3865 { $as_echo "$as_me:$LINENO: result: yes" >&5
3866 $as_echo "yes" >&6; }
3867 else
3868 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3869 $as_echo "no, using $LN_S" >&6; }
3870 fi
3871
3872 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3873 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3874 set x ${MAKE-make}
3875 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3876 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat >conftest.make <<\_ACEOF
3880 SHELL = /bin/sh
3881 all:
3882 @echo '@@@%%%=$(MAKE)=@@@%%%'
3883 _ACEOF
3884 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3885 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3886 *@@@%%%=?*=@@@%%%*)
3887 eval ac_cv_prog_make_${ac_make}_set=yes;;
3888 *)
3889 eval ac_cv_prog_make_${ac_make}_set=no;;
3890 esac
3891 rm -f conftest.make
3892 fi
3893 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3894 { $as_echo "$as_me:$LINENO: result: yes" >&5
3895 $as_echo "yes" >&6; }
3896 SET_MAKE=
3897 else
3898 { $as_echo "$as_me:$LINENO: result: no" >&5
3899 $as_echo "no" >&6; }
3900 SET_MAKE="MAKE=${MAKE-make}"
3901 fi
3902
3903 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3904 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3905 if test -z "$MKDIR_P"; then
3906 if test "${ac_cv_path_mkdir+set}" = set; then
3907 $as_echo_n "(cached) " >&6
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in mkdir gmkdir; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3917 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3918 'mkdir (GNU coreutils) '* | \
3919 'mkdir (coreutils) '* | \
3920 'mkdir (fileutils) '4.1*)
3921 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3922 break 3;;
3923 esac
3924 done
3925 done
3926 done
3927 IFS=$as_save_IFS
3928
3929 fi
3930
3931 if test "${ac_cv_path_mkdir+set}" = set; then
3932 MKDIR_P="$ac_cv_path_mkdir -p"
3933 else
3934 # As a last resort, use the slow shell script. Don't cache a
3935 # value for MKDIR_P within a source directory, because that will
3936 # break other packages using the cache if that directory is
3937 # removed, or if the value is a relative name.
3938 test -d ./--version && rmdir ./--version
3939 MKDIR_P="$ac_install_sh -d"
3940 fi
3941 fi
3942 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3943 $as_echo "$MKDIR_P" >&6; }
3944
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_RANLIB+set}" = set; then
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$RANLIB"; then
3954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 RANLIB=$ac_cv_prog_RANLIB
3974 if test -n "$RANLIB"; then
3975 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3976 $as_echo "$RANLIB" >&6; }
3977 else
3978 { $as_echo "$as_me:$LINENO: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 fi
3984 if test -z "$ac_cv_prog_RANLIB"; then
3985 ac_ct_RANLIB=$RANLIB
3986 # Extract the first word of "ranlib", so it can be a program name with args.
3987 set dummy ranlib; ac_word=$2
3988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -n "$ac_ct_RANLIB"; then
3994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 ac_cv_prog_ac_ct_RANLIB="ranlib"
4004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4014 if test -n "$ac_ct_RANLIB"; then
4015 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4016 $as_echo "$ac_ct_RANLIB" >&6; }
4017 else
4018 { $as_echo "$as_me:$LINENO: result: no" >&5
4019 $as_echo "no" >&6; }
4020 fi
4021
4022 if test "x$ac_ct_RANLIB" = x; then
4023 RANLIB=":"
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026 yes:)
4027 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 RANLIB=$ac_ct_RANLIB
4032 fi
4033 else
4034 RANLIB="$ac_cv_prog_RANLIB"
4035 fi
4036
4037 # Extract the first word of "cflow", so it can be a program name with args.
4038 set dummy cflow; ac_word=$2
4039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
4042 $as_echo_n "(cached) " >&6
4043 else
4044 case $CFLOW_CMD in
4045 [\\/]* | ?:[\\/]*)
4046 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4047 ;;
4048 *)
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060 done
4061 done
4062 IFS=$as_save_IFS
4063
4064 ;;
4065 esac
4066 fi
4067 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4068 if test -n "$CFLOW_CMD"; then
4069 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4070 $as_echo "$CFLOW_CMD" >&6; }
4071 else
4072 { $as_echo "$as_me:$LINENO: result: no" >&5
4073 $as_echo "no" >&6; }
4074 fi
4075
4076
4077 # Extract the first word of "cscope", so it can be a program name with args.
4078 set dummy cscope; ac_word=$2
4079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4083 else
4084 case $CSCOPE_CMD in
4085 [\\/]* | ?:[\\/]*)
4086 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4087 ;;
4088 *)
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100 done
4101 done
4102 IFS=$as_save_IFS
4103
4104 ;;
4105 esac
4106 fi
4107 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4108 if test -n "$CSCOPE_CMD"; then
4109 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4110 $as_echo "$CSCOPE_CMD" >&6; }
4111 else
4112 { $as_echo "$as_me:$LINENO: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117
4118 ################################################################################
4119
4120
4121
4122
4123
4124 ac_header_dirent=no
4125 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4126 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4127 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4128 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4130 $as_echo_n "(cached) " >&6
4131 else
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 #include <$ac_hdr>
4140
4141 int
4142 main ()
4143 {
4144 if ((DIR *) 0)
4145 return 0;
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4168 eval "$as_ac_Header=yes"
4169 else
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 eval "$as_ac_Header=no"
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 fi
4178 ac_res=`eval 'as_val=${'$as_ac_Header'}
4179 $as_echo "$as_val"'`
4180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4181 $as_echo "$ac_res" >&6; }
4182 as_val=`eval 'as_val=${'$as_ac_Header'}
4183 $as_echo "$as_val"'`
4184 if test "x$as_val" = x""yes; then
4185 cat >>confdefs.h <<_ACEOF
4186 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4187 _ACEOF
4188
4189 ac_header_dirent=$ac_hdr; break
4190 fi
4191
4192 done
4193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4194 if test $ac_header_dirent = dirent.h; then
4195 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4196 $as_echo_n "checking for library containing opendir... " >&6; }
4197 if test "${ac_cv_search_opendir+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_func_search_save_LIBS=$LIBS
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207
4208 /* Override any GCC internal prototype to avoid an error.
4209 Use char because int might match the return type of a GCC
4210 builtin and then its argument prototype would still apply. */
4211 #ifdef __cplusplus
4212 extern "C"
4213 #endif
4214 char opendir ();
4215 int
4216 main ()
4217 {
4218 return opendir ();
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 for ac_lib in '' dir; do
4224 if test -z "$ac_lib"; then
4225 ac_res="none required"
4226 else
4227 ac_res=-l$ac_lib
4228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4229 fi
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (ac_try="$ac_link"
4232 case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4237 $as_echo "$ac_try_echo") >&5
4238 (eval "$ac_link") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } && {
4245 test -z "$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4247 } && test -s conftest$ac_exeext && {
4248 test "$cross_compiling" = yes ||
4249 $as_test_x conftest$ac_exeext
4250 }; then
4251 ac_cv_search_opendir=$ac_res
4252 else
4253 $as_echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256
4257 fi
4258
4259 rm -rf conftest.dSYM
4260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4261 conftest$ac_exeext
4262 if test "${ac_cv_search_opendir+set}" = set; then
4263 break
4264 fi
4265 done
4266 if test "${ac_cv_search_opendir+set}" = set; then
4267 :
4268 else
4269 ac_cv_search_opendir=no
4270 fi
4271 rm conftest.$ac_ext
4272 LIBS=$ac_func_search_save_LIBS
4273 fi
4274 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4275 $as_echo "$ac_cv_search_opendir" >&6; }
4276 ac_res=$ac_cv_search_opendir
4277 if test "$ac_res" != no; then
4278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4279
4280 fi
4281
4282 else
4283 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4284 $as_echo_n "checking for library containing opendir... " >&6; }
4285 if test "${ac_cv_search_opendir+set}" = set; then
4286 $as_echo_n "(cached) " >&6
4287 else
4288 ac_func_search_save_LIBS=$LIBS
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295
4296 /* Override any GCC internal prototype to avoid an error.
4297 Use char because int might match the return type of a GCC
4298 builtin and then its argument prototype would still apply. */
4299 #ifdef __cplusplus
4300 extern "C"
4301 #endif
4302 char opendir ();
4303 int
4304 main ()
4305 {
4306 return opendir ();
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 for ac_lib in '' x; do
4312 if test -z "$ac_lib"; then
4313 ac_res="none required"
4314 else
4315 ac_res=-l$ac_lib
4316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4317 fi
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4325 $as_echo "$ac_try_echo") >&5
4326 (eval "$ac_link") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest$ac_exeext && {
4336 test "$cross_compiling" = yes ||
4337 $as_test_x conftest$ac_exeext
4338 }; then
4339 ac_cv_search_opendir=$ac_res
4340 else
4341 $as_echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344
4345 fi
4346
4347 rm -rf conftest.dSYM
4348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4349 conftest$ac_exeext
4350 if test "${ac_cv_search_opendir+set}" = set; then
4351 break
4352 fi
4353 done
4354 if test "${ac_cv_search_opendir+set}" = set; then
4355 :
4356 else
4357 ac_cv_search_opendir=no
4358 fi
4359 rm conftest.$ac_ext
4360 LIBS=$ac_func_search_save_LIBS
4361 fi
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4363 $as_echo "$ac_cv_search_opendir" >&6; }
4364 ac_res=$ac_cv_search_opendir
4365 if test "$ac_res" != no; then
4366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4367
4368 fi
4369
4370 fi
4371
4372 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4373 $as_echo_n "checking for ANSI C header files... " >&6; }
4374 if test "${ac_cv_header_stdc+set}" = set; then
4375 $as_echo_n "(cached) " >&6
4376 else
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <stdlib.h>
4384 #include <stdarg.h>
4385 #include <string.h>
4386 #include <float.h>
4387
4388 int
4389 main ()
4390 {
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (ac_try="$ac_compile"
4398 case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4403 $as_echo "$ac_try_echo") >&5
4404 (eval "$ac_compile") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } && {
4411 test -z "$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4413 } && test -s conftest.$ac_objext; then
4414 ac_cv_header_stdc=yes
4415 else
4416 $as_echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_cv_header_stdc=no
4420 fi
4421
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <string.h>
4433
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "memchr" >/dev/null 2>&1; then
4437 :
4438 else
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest*
4442
4443 fi
4444
4445 if test $ac_cv_header_stdc = yes; then
4446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <stdlib.h>
4454
4455 _ACEOF
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457 $EGREP "free" >/dev/null 2>&1; then
4458 :
4459 else
4460 ac_cv_header_stdc=no
4461 fi
4462 rm -f conftest*
4463
4464 fi
4465
4466 if test $ac_cv_header_stdc = yes; then
4467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4468 if test "$cross_compiling" = yes; then
4469 :
4470 else
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <ctype.h>
4478 #include <stdlib.h>
4479 #if ((' ' & 0x0FF) == 0x020)
4480 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4481 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4482 #else
4483 # define ISLOWER(c) \
4484 (('a' <= (c) && (c) <= 'i') \
4485 || ('j' <= (c) && (c) <= 'r') \
4486 || ('s' <= (c) && (c) <= 'z'))
4487 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4488 #endif
4489
4490 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4491 int
4492 main ()
4493 {
4494 int i;
4495 for (i = 0; i < 256; i++)
4496 if (XOR (islower (i), ISLOWER (i))
4497 || toupper (i) != TOUPPER (i))
4498 return 2;
4499 return 0;
4500 }
4501 _ACEOF
4502 rm -f conftest$ac_exeext
4503 if { (ac_try="$ac_link"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4509 $as_echo "$ac_try_echo") >&5
4510 (eval "$ac_link") 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4519 $as_echo "$ac_try_echo") >&5
4520 (eval "$ac_try") 2>&5
4521 ac_status=$?
4522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 :
4525 else
4526 $as_echo "$as_me: program exited with status $ac_status" >&5
4527 $as_echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ( exit $ac_status )
4531 ac_cv_header_stdc=no
4532 fi
4533 rm -rf conftest.dSYM
4534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4535 fi
4536
4537
4538 fi
4539 fi
4540 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4541 $as_echo "$ac_cv_header_stdc" >&6; }
4542 if test $ac_cv_header_stdc = yes; then
4543
4544 cat >>confdefs.h <<\_ACEOF
4545 #define STDC_HEADERS 1
4546 _ACEOF
4547
4548 fi
4549
4550 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4561 inttypes.h stdint.h unistd.h
4562 do
4563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4565 $as_echo_n "checking for $ac_header... " >&6; }
4566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4567 $as_echo_n "(cached) " >&6
4568 else
4569 cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h. */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 $ac_includes_default
4576
4577 #include <$ac_header>
4578 _ACEOF
4579 rm -f conftest.$ac_objext
4580 if { (ac_try="$ac_compile"
4581 case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584 esac
4585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586 $as_echo "$ac_try_echo") >&5
4587 (eval "$ac_compile") 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && {
4594 test -z "$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 } && test -s conftest.$ac_objext; then
4597 eval "$as_ac_Header=yes"
4598 else
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 eval "$as_ac_Header=no"
4603 fi
4604
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 ac_res=`eval 'as_val=${'$as_ac_Header'}
4608 $as_echo "$as_val"'`
4609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4610 $as_echo "$ac_res" >&6; }
4611 as_val=`eval 'as_val=${'$as_ac_Header'}
4612 $as_echo "$as_val"'`
4613 if test "x$as_val" = x""yes; then
4614 cat >>confdefs.h <<_ACEOF
4615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4616 _ACEOF
4617
4618 fi
4619
4620 done
4621
4622
4623 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4624 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4625 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <sys/types.h>
4635 int
4636 main ()
4637 {
4638 return makedev(0, 0);
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext conftest$ac_exeext
4644 if { (ac_try="$ac_link"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651 (eval "$ac_link") 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest$ac_exeext && {
4661 test "$cross_compiling" = yes ||
4662 $as_test_x conftest$ac_exeext
4663 }; then
4664 ac_cv_header_sys_types_h_makedev=yes
4665 else
4666 $as_echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 ac_cv_header_sys_types_h_makedev=no
4670 fi
4671
4672 rm -rf conftest.dSYM
4673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4674 conftest$ac_exeext conftest.$ac_ext
4675
4676 fi
4677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4678 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4679
4680 if test $ac_cv_header_sys_types_h_makedev = no; then
4681 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4682 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4683 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4684 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4686 fi
4687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4688 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4689 else
4690 # Is the header compilable?
4691 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4692 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h. */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 $ac_includes_default
4700 #include <sys/mkdev.h>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (ac_try="$ac_compile"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4709 $as_echo "$ac_try_echo") >&5
4710 (eval "$ac_compile") 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest.$ac_objext; then
4720 ac_header_compiler=yes
4721 else
4722 $as_echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 ac_header_compiler=no
4726 fi
4727
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730 $as_echo "$ac_header_compiler" >&6; }
4731
4732 # Is the header present?
4733 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4734 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
4735 cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h. */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h. */
4741 #include <sys/mkdev.h>
4742 _ACEOF
4743 if { (ac_try="$ac_cpp conftest.$ac_ext"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null && {
4757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 }; then
4760 ac_header_preproc=yes
4761 else
4762 $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_header_preproc=no
4766 fi
4767
4768 rm -f conftest.err conftest.$ac_ext
4769 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4770 $as_echo "$ac_header_preproc" >&6; }
4771
4772 # So? What about this header?
4773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4774 yes:no: )
4775 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4776 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4778 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
4779 ac_header_preproc=yes
4780 ;;
4781 no:yes:* )
4782 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4783 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4785 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4787 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4789 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4791 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4793 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
4794
4795 ;;
4796 esac
4797 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4798 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4799 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4800 $as_echo_n "(cached) " >&6
4801 else
4802 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4803 fi
4804 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4805 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4806
4807 fi
4808 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4809
4810 cat >>confdefs.h <<\_ACEOF
4811 #define MAJOR_IN_MKDEV 1
4812 _ACEOF
4813
4814 fi
4815
4816
4817
4818 if test $ac_cv_header_sys_mkdev_h = no; then
4819 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4820 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4821 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4822 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4824 fi
4825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4826 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4827 else
4828 # Is the header compilable?
4829 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4830 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 $ac_includes_default
4838 #include <sys/sysmacros.h>
4839 _ACEOF
4840 rm -f conftest.$ac_objext
4841 if { (ac_try="$ac_compile"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
4858 ac_header_compiler=yes
4859 else
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ac_header_compiler=no
4864 fi
4865
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4868 $as_echo "$ac_header_compiler" >&6; }
4869
4870 # Is the header present?
4871 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4872 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
4873 cat >conftest.$ac_ext <<_ACEOF
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4879 #include <sys/sysmacros.h>
4880 _ACEOF
4881 if { (ac_try="$ac_cpp conftest.$ac_ext"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 }; then
4898 ac_header_preproc=yes
4899 else
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 ac_header_preproc=no
4904 fi
4905
4906 rm -f conftest.err conftest.$ac_ext
4907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4908 $as_echo "$ac_header_preproc" >&6; }
4909
4910 # So? What about this header?
4911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4912 yes:no: )
4913 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4914 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4915 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4916 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
4917 ac_header_preproc=yes
4918 ;;
4919 no:yes:* )
4920 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4921 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4923 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4925 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4926 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4927 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4928 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4929 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4930 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4931 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
4932
4933 ;;
4934 esac
4935 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4936 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4937 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4938 $as_echo_n "(cached) " >&6
4939 else
4940 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4941 fi
4942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4943 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4944
4945 fi
4946 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4947
4948 cat >>confdefs.h <<\_ACEOF
4949 #define MAJOR_IN_SYSMACROS 1
4950 _ACEOF
4951
4952 fi
4953
4954
4955 fi
4956 fi
4957
4958 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4959 $as_echo_n "checking for ANSI C header files... " >&6; }
4960 if test "${ac_cv_header_stdc+set}" = set; then
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <stdlib.h>
4970 #include <stdarg.h>
4971 #include <string.h>
4972 #include <float.h>
4973
4974 int
4975 main ()
4976 {
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (ac_try="$ac_compile"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989 $as_echo "$ac_try_echo") >&5
4990 (eval "$ac_compile") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest.$ac_objext; then
5000 ac_cv_header_stdc=yes
5001 else
5002 $as_echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 ac_cv_header_stdc=no
5006 fi
5007
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009
5010 if test $ac_cv_header_stdc = yes; then
5011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <string.h>
5019
5020 _ACEOF
5021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5022 $EGREP "memchr" >/dev/null 2>&1; then
5023 :
5024 else
5025 ac_cv_header_stdc=no
5026 fi
5027 rm -f conftest*
5028
5029 fi
5030
5031 if test $ac_cv_header_stdc = yes; then
5032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 #include <stdlib.h>
5040
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "free" >/dev/null 2>&1; then
5044 :
5045 else
5046 ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest*
5049
5050 fi
5051
5052 if test $ac_cv_header_stdc = yes; then
5053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5054 if test "$cross_compiling" = yes; then
5055 :
5056 else
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 #include <ctype.h>
5064 #include <stdlib.h>
5065 #if ((' ' & 0x0FF) == 0x020)
5066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068 #else
5069 # define ISLOWER(c) \
5070 (('a' <= (c) && (c) <= 'i') \
5071 || ('j' <= (c) && (c) <= 'r') \
5072 || ('s' <= (c) && (c) <= 'z'))
5073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074 #endif
5075
5076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5077 int
5078 main ()
5079 {
5080 int i;
5081 for (i = 0; i < 256; i++)
5082 if (XOR (islower (i), ISLOWER (i))
5083 || toupper (i) != TOUPPER (i))
5084 return 2;
5085 return 0;
5086 }
5087 _ACEOF
5088 rm -f conftest$ac_exeext
5089 if { (ac_try="$ac_link"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5095 $as_echo "$ac_try_echo") >&5
5096 (eval "$ac_link") 2>&5
5097 ac_status=$?
5098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5100 { (case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105 $as_echo "$ac_try_echo") >&5
5106 (eval "$ac_try") 2>&5
5107 ac_status=$?
5108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 :
5111 else
5112 $as_echo "$as_me: program exited with status $ac_status" >&5
5113 $as_echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ( exit $ac_status )
5117 ac_cv_header_stdc=no
5118 fi
5119 rm -rf conftest.dSYM
5120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121 fi
5122
5123
5124 fi
5125 fi
5126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5127 $as_echo "$ac_cv_header_stdc" >&6; }
5128 if test $ac_cv_header_stdc = yes; then
5129
5130 cat >>confdefs.h <<\_ACEOF
5131 #define STDC_HEADERS 1
5132 _ACEOF
5133
5134 fi
5135
5136 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5137 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5138 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5139 $as_echo_n "(cached) " >&6
5140 else
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <sys/types.h>
5148 #include <sys/wait.h>
5149 #ifndef WEXITSTATUS
5150 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5151 #endif
5152 #ifndef WIFEXITED
5153 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5154 #endif
5155
5156 int
5157 main ()
5158 {
5159 int s;
5160 wait (&s);
5161 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 rm -f conftest.$ac_objext
5167 if { (ac_try="$ac_compile"
5168 case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171 esac
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174 (eval "$ac_compile") 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && {
5181 test -z "$ac_c_werror_flag" ||
5182 test ! -s conftest.err
5183 } && test -s conftest.$ac_objext; then
5184 ac_cv_header_sys_wait_h=yes
5185 else
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 ac_cv_header_sys_wait_h=no
5190 fi
5191
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 fi
5194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5195 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5196 if test $ac_cv_header_sys_wait_h = yes; then
5197
5198 cat >>confdefs.h <<\_ACEOF
5199 #define HAVE_SYS_WAIT_H 1
5200 _ACEOF
5201
5202 fi
5203
5204 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5205 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5206 if test "${ac_cv_header_time+set}" = set; then
5207 $as_echo_n "(cached) " >&6
5208 else
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <sys/types.h>
5216 #include <sys/time.h>
5217 #include <time.h>
5218
5219 int
5220 main ()
5221 {
5222 if ((struct tm *) 0)
5223 return 0;
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5230 case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233 esac
5234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5235 $as_echo "$ac_try_echo") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest.$ac_objext; then
5246 ac_cv_header_time=yes
5247 else
5248 $as_echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5250
5251 ac_cv_header_time=no
5252 fi
5253
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 fi
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5257 $as_echo "$ac_cv_header_time" >&6; }
5258 if test $ac_cv_header_time = yes; then
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define TIME_WITH_SYS_TIME 1
5262 _ACEOF
5263
5264 fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5282 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5283 sys/wait.h time.h
5284 do
5285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 $as_echo_n "checking for $ac_header... " >&6; }
5289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5290 $as_echo_n "(cached) " >&6
5291 fi
5292 ac_res=`eval 'as_val=${'$as_ac_Header'}
5293 $as_echo "$as_val"'`
5294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5295 $as_echo "$ac_res" >&6; }
5296 else
5297 # Is the header compilable?
5298 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5299 $as_echo_n "checking $ac_header usability... " >&6; }
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5307 #include <$ac_header>
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
5327 ac_header_compiler=yes
5328 else
5329 $as_echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 ac_header_compiler=no
5333 fi
5334
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5337 $as_echo "$ac_header_compiler" >&6; }
5338
5339 # Is the header present?
5340 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5341 $as_echo_n "checking $ac_header presence... " >&6; }
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 #include <$ac_header>
5349 _ACEOF
5350 if { (ac_try="$ac_cpp conftest.$ac_ext"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5356 $as_echo "$ac_try_echo") >&5
5357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } >/dev/null && {
5364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5365 test ! -s conftest.err
5366 }; then
5367 ac_header_preproc=yes
5368 else
5369 $as_echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 ac_header_preproc=no
5373 fi
5374
5375 rm -f conftest.err conftest.$ac_ext
5376 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5377 $as_echo "$ac_header_preproc" >&6; }
5378
5379 # So? What about this header?
5380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5381 yes:no: )
5382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5383 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5386 ac_header_preproc=yes
5387 ;;
5388 no:yes:* )
5389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5390 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5392 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5394 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5396 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5400 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5401
5402 ;;
5403 esac
5404 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 $as_echo_n "checking for $ac_header... " >&6; }
5406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5407 $as_echo_n "(cached) " >&6
5408 else
5409 eval "$as_ac_Header=\$ac_header_preproc"
5410 fi
5411 ac_res=`eval 'as_val=${'$as_ac_Header'}
5412 $as_echo "$as_val"'`
5413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5414 $as_echo "$ac_res" >&6; }
5415
5416 fi
5417 as_val=`eval 'as_val=${'$as_ac_Header'}
5418 $as_echo "$as_val"'`
5419 if test "x$as_val" = x""yes; then
5420 cat >>confdefs.h <<_ACEOF
5421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422 _ACEOF
5423
5424 else
5425 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5426 $as_echo "$as_me: error: bailing out" >&2;}
5427 { (exit 1); exit 1; }; }
5428 fi
5429
5430 done
5431
5432
5433 case "$host_os" in
5434 linux*)
5435
5436
5437
5438 for ac_header in asm/byteorder.h linux/fs.h malloc.h
5439 do
5440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 $as_echo_n "checking for $ac_header... " >&6; }
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 $as_echo_n "(cached) " >&6
5446 fi
5447 ac_res=`eval 'as_val=${'$as_ac_Header'}
5448 $as_echo "$as_val"'`
5449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5450 $as_echo "$ac_res" >&6; }
5451 else
5452 # Is the header compilable?
5453 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454 $as_echo_n "checking $ac_header usability... " >&6; }
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 #include <$ac_header>
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5471 $as_echo "$ac_try_echo") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_header_compiler=yes
5483 else
5484 $as_echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_header_compiler=no
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5492 $as_echo "$ac_header_compiler" >&6; }
5493
5494 # Is the header present?
5495 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5496 $as_echo_n "checking $ac_header presence... " >&6; }
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <$ac_header>
5504 _ACEOF
5505 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5511 $as_echo "$ac_try_echo") >&5
5512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null && {
5519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5520 test ! -s conftest.err
5521 }; then
5522 ac_header_preproc=yes
5523 else
5524 $as_echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_header_preproc=no
5528 fi
5529
5530 rm -f conftest.err conftest.$ac_ext
5531 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5532 $as_echo "$ac_header_preproc" >&6; }
5533
5534 # So? What about this header?
5535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5536 yes:no: )
5537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5538 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5541 ac_header_preproc=yes
5542 ;;
5543 no:yes:* )
5544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5545 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5547 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5549 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5551 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5555 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556
5557 ;;
5558 esac
5559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 $as_echo_n "checking for $ac_header... " >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 $as_echo_n "(cached) " >&6
5563 else
5564 eval "$as_ac_Header=\$ac_header_preproc"
5565 fi
5566 ac_res=`eval 'as_val=${'$as_ac_Header'}
5567 $as_echo "$as_val"'`
5568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5569 $as_echo "$ac_res" >&6; }
5570
5571 fi
5572 as_val=`eval 'as_val=${'$as_ac_Header'}
5573 $as_echo "$as_val"'`
5574 if test "x$as_val" = x""yes; then
5575 cat >>confdefs.h <<_ACEOF
5576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5577 _ACEOF
5578
5579 else
5580 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5581 $as_echo "$as_me: error: bailing out" >&2;}
5582 { (exit 1); exit 1; }; }
5583 fi
5584
5585 done
5586 ;;
5587 darwin*)
5588
5589
5590 for ac_header in machine/endian.h sys/disk.h
5591 do
5592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5595 $as_echo_n "checking for $ac_header... " >&6; }
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 $as_echo_n "(cached) " >&6
5598 fi
5599 ac_res=`eval 'as_val=${'$as_ac_Header'}
5600 $as_echo "$as_val"'`
5601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5602 $as_echo "$ac_res" >&6; }
5603 else
5604 # Is the header compilable?
5605 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606 $as_echo_n "checking $ac_header usability... " >&6; }
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 #include <$ac_header>
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5623 $as_echo "$ac_try_echo") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 ac_header_compiler=yes
5635 else
5636 $as_echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 ac_header_compiler=no
5640 fi
5641
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5644 $as_echo "$ac_header_compiler" >&6; }
5645
5646 # Is the header present?
5647 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5648 $as_echo_n "checking $ac_header presence... " >&6; }
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <$ac_header>
5656 _ACEOF
5657 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5663 $as_echo "$ac_try_echo") >&5
5664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null && {
5671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 }; then
5674 ac_header_preproc=yes
5675 else
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 ac_header_preproc=no
5680 fi
5681
5682 rm -f conftest.err conftest.$ac_ext
5683 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5684 $as_echo "$ac_header_preproc" >&6; }
5685
5686 # So? What about this header?
5687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5688 yes:no: )
5689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5690 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5692 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5693 ac_header_preproc=yes
5694 ;;
5695 no:yes:* )
5696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5697 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5699 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5701 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5703 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5705 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5707 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5708
5709 ;;
5710 esac
5711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5712 $as_echo_n "checking for $ac_header... " >&6; }
5713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5714 $as_echo_n "(cached) " >&6
5715 else
5716 eval "$as_ac_Header=\$ac_header_preproc"
5717 fi
5718 ac_res=`eval 'as_val=${'$as_ac_Header'}
5719 $as_echo "$as_val"'`
5720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5721 $as_echo "$ac_res" >&6; }
5722
5723 fi
5724 as_val=`eval 'as_val=${'$as_ac_Header'}
5725 $as_echo "$as_val"'`
5726 if test "x$as_val" = x""yes; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5729 _ACEOF
5730
5731 else
5732 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5733 $as_echo "$as_me: error: bailing out" >&2;}
5734 { (exit 1); exit 1; }; }
5735 fi
5736
5737 done
5738 ;;
5739 esac
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5758 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5759 sys/types.h unistd.h
5760 do
5761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 $as_echo_n "checking for $ac_header... " >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 $as_echo_n "(cached) " >&6
5767 fi
5768 ac_res=`eval 'as_val=${'$as_ac_Header'}
5769 $as_echo "$as_val"'`
5770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5771 $as_echo "$ac_res" >&6; }
5772 else
5773 # Is the header compilable?
5774 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5775 $as_echo_n "checking $ac_header usability... " >&6; }
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5783 #include <$ac_header>
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5792 $as_echo "$ac_try_echo") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_header_compiler=yes
5804 else
5805 $as_echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_header_compiler=no
5809 fi
5810
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813 $as_echo "$ac_header_compiler" >&6; }
5814
5815 # Is the header present?
5816 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817 $as_echo_n "checking $ac_header presence... " >&6; }
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #include <$ac_header>
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832 $as_echo "$ac_try_echo") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 }; then
5843 ac_header_preproc=yes
5844 else
5845 $as_echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_header_preproc=no
5849 fi
5850
5851 rm -f conftest.err conftest.$ac_ext
5852 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853 $as_echo "$ac_header_preproc" >&6; }
5854
5855 # So? What about this header?
5856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 yes:no: )
5858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5863 ;;
5864 no:yes:* )
5865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5868 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5872 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877
5878 ;;
5879 esac
5880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 $as_echo_n "checking for $ac_header... " >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 $as_echo_n "(cached) " >&6
5884 else
5885 eval "$as_ac_Header=\$ac_header_preproc"
5886 fi
5887 ac_res=`eval 'as_val=${'$as_ac_Header'}
5888 $as_echo "$as_val"'`
5889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5890 $as_echo "$ac_res" >&6; }
5891
5892 fi
5893 as_val=`eval 'as_val=${'$as_ac_Header'}
5894 $as_echo "$as_val"'`
5895 if test "x$as_val" = x""yes; then
5896 cat >>confdefs.h <<_ACEOF
5897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5898 _ACEOF
5899
5900 else
5901 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5902 $as_echo "$as_me: error: bailing out" >&2;}
5903 { (exit 1); exit 1; }; }
5904 fi
5905
5906 done
5907
5908
5909
5910 for ac_header in termios.h sys/statvfs.h
5911 do
5912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5915 $as_echo_n "checking for $ac_header... " >&6; }
5916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5917 $as_echo_n "(cached) " >&6
5918 fi
5919 ac_res=`eval 'as_val=${'$as_ac_Header'}
5920 $as_echo "$as_val"'`
5921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5922 $as_echo "$ac_res" >&6; }
5923 else
5924 # Is the header compilable?
5925 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926 $as_echo_n "checking $ac_header usability... " >&6; }
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 #include <$ac_header>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (ac_try="$ac_compile"
5938 case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943 $as_echo "$ac_try_echo") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
5954 ac_header_compiler=yes
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_header_compiler=no
5960 fi
5961
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5964 $as_echo "$ac_header_compiler" >&6; }
5965
5966 # Is the header present?
5967 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5968 $as_echo_n "checking $ac_header presence... " >&6; }
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 #include <$ac_header>
5976 _ACEOF
5977 if { (ac_try="$ac_cpp conftest.$ac_ext"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983 $as_echo "$ac_try_echo") >&5
5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null && {
5991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 }; then
5994 ac_header_preproc=yes
5995 else
5996 $as_echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_header_preproc=no
6000 fi
6001
6002 rm -f conftest.err conftest.$ac_ext
6003 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6004 $as_echo "$ac_header_preproc" >&6; }
6005
6006 # So? What about this header?
6007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6008 yes:no: )
6009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6010 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6013 ac_header_preproc=yes
6014 ;;
6015 no:yes:* )
6016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6017 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6019 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6021 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6023 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6025 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6027 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6028
6029 ;;
6030 esac
6031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 $as_echo_n "checking for $ac_header... " >&6; }
6033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6034 $as_echo_n "(cached) " >&6
6035 else
6036 eval "$as_ac_Header=\$ac_header_preproc"
6037 fi
6038 ac_res=`eval 'as_val=${'$as_ac_Header'}
6039 $as_echo "$as_val"'`
6040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6041 $as_echo "$ac_res" >&6; }
6042
6043 fi
6044 as_val=`eval 'as_val=${'$as_ac_Header'}
6045 $as_echo "$as_val"'`
6046 if test "x$as_val" = x""yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049 _ACEOF
6050
6051 fi
6052
6053 done
6054
6055
6056 ################################################################################
6057 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6058 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6059 if test "${ac_cv_c_const+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068
6069 int
6070 main ()
6071 {
6072 /* FIXME: Include the comments suggested by Paul. */
6073 #ifndef __cplusplus
6074 /* Ultrix mips cc rejects this. */
6075 typedef int charset[2];
6076 const charset cs;
6077 /* SunOS 4.1.1 cc rejects this. */
6078 char const *const *pcpcc;
6079 char **ppc;
6080 /* NEC SVR4.0.2 mips cc rejects this. */
6081 struct point {int x, y;};
6082 static struct point const zero = {0,0};
6083 /* AIX XL C 1.02.0.0 rejects this.
6084 It does not let you subtract one const X* pointer from another in
6085 an arm of an if-expression whose if-part is not a constant
6086 expression */
6087 const char *g = "string";
6088 pcpcc = &g + (g ? g-g : 0);
6089 /* HPUX 7.0 cc rejects these. */
6090 ++pcpcc;
6091 ppc = (char**) pcpcc;
6092 pcpcc = (char const *const *) ppc;
6093 { /* SCO 3.2v4 cc rejects this. */
6094 char *t;
6095 char const *s = 0 ? (char *) 0 : (char const *) 0;
6096
6097 *t++ = 0;
6098 if (s) return 0;
6099 }
6100 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6101 int x[] = {25, 17};
6102 const int *foo = &x[0];
6103 ++foo;
6104 }
6105 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6106 typedef const int *iptr;
6107 iptr p = 0;
6108 ++p;
6109 }
6110 { /* AIX XL C 1.02.0.0 rejects this saying
6111 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6112 struct s { int j; const int *ap[3]; };
6113 struct s *b; b->j = 5;
6114 }
6115 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6116 const int foo = 10;
6117 if (!foo) return 0;
6118 }
6119 return !cs[0] && !zero.x;
6120 #endif
6121
6122 ;
6123 return 0;
6124 }
6125 _ACEOF
6126 rm -f conftest.$ac_objext
6127 if { (ac_try="$ac_compile"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133 $as_echo "$ac_try_echo") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 ac_cv_c_const=yes
6145 else
6146 $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_cv_c_const=no
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6155 $as_echo "$ac_cv_c_const" >&6; }
6156 if test $ac_cv_c_const = no; then
6157
6158 cat >>confdefs.h <<\_ACEOF
6159 #define const /**/
6160 _ACEOF
6161
6162 fi
6163
6164 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6165 $as_echo_n "checking for inline... " >&6; }
6166 if test "${ac_cv_c_inline+set}" = set; then
6167 $as_echo_n "(cached) " >&6
6168 else
6169 ac_cv_c_inline=no
6170 for ac_kw in inline __inline__ __inline; do
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 #ifndef __cplusplus
6178 typedef int foo_t;
6179 static $ac_kw foo_t static_foo () {return 0; }
6180 $ac_kw foo_t foo () {return 0; }
6181 #endif
6182
6183 _ACEOF
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6186 case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189 esac
6190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191 $as_echo "$ac_try_echo") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
6202 ac_cv_c_inline=$ac_kw
6203 else
6204 $as_echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207
6208 fi
6209
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 test "$ac_cv_c_inline" != no && break
6212 done
6213
6214 fi
6215 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6216 $as_echo "$ac_cv_c_inline" >&6; }
6217
6218
6219 case $ac_cv_c_inline in
6220 inline | yes) ;;
6221 *)
6222 case $ac_cv_c_inline in
6223 no) ac_val=;;
6224 *) ac_val=$ac_cv_c_inline;;
6225 esac
6226 cat >>confdefs.h <<_ACEOF
6227 #ifndef __cplusplus
6228 #define inline $ac_val
6229 #endif
6230 _ACEOF
6231 ;;
6232 esac
6233
6234 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6235 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6236 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6237 $as_echo_n "(cached) " >&6
6238 else
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 int
6247 main ()
6248 {
6249 static struct stat ac_aggr;
6250 if (ac_aggr.st_rdev)
6251 return 0;
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263 $as_echo "$ac_try_echo") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_cv_member_struct_stat_st_rdev=yes
6275 else
6276 $as_echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 cat >conftest.$ac_ext <<_ACEOF
6280 /* confdefs.h. */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6285 $ac_includes_default
6286 int
6287 main ()
6288 {
6289 static struct stat ac_aggr;
6290 if (sizeof ac_aggr.st_rdev)
6291 return 0;
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 ac_cv_member_struct_stat_st_rdev=yes
6315 else
6316 $as_echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 ac_cv_member_struct_stat_st_rdev=no
6320 fi
6321
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6328 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6329 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6330
6331 cat >>confdefs.h <<_ACEOF
6332 #define HAVE_STRUCT_STAT_ST_RDEV 1
6333 _ACEOF
6334
6335
6336 fi
6337
6338 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
6339 $as_echo_n "checking for off_t... " >&6; }
6340 if test "${ac_cv_type_off_t+set}" = set; then
6341 $as_echo_n "(cached) " >&6
6342 else
6343 ac_cv_type_off_t=no
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 $ac_includes_default
6351 int
6352 main ()
6353 {
6354 if (sizeof (off_t))
6355 return 0;
6356 ;
6357 return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (ac_try="$ac_compile"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6367 $as_echo "$ac_try_echo") >&5
6368 (eval "$ac_compile") 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && {
6375 test -z "$ac_c_werror_flag" ||
6376 test ! -s conftest.err
6377 } && test -s conftest.$ac_objext; then
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 int
6386 main ()
6387 {
6388 if (sizeof ((off_t)))
6389 return 0;
6390 ;
6391 return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 :
6413 else
6414 $as_echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_cv_type_off_t=yes
6418 fi
6419
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 else
6422 $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425
6426 fi
6427
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6431 $as_echo "$ac_cv_type_off_t" >&6; }
6432 if test "x$ac_cv_type_off_t" = x""yes; then
6433 :
6434 else
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define off_t long int
6438 _ACEOF
6439
6440 fi
6441
6442 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6443 $as_echo_n "checking for pid_t... " >&6; }
6444 if test "${ac_cv_type_pid_t+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6446 else
6447 ac_cv_type_pid_t=no
6448 cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h. */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6454 $ac_includes_default
6455 int
6456 main ()
6457 {
6458 if (sizeof (pid_t))
6459 return 0;
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 rm -f conftest.$ac_objext
6465 if { (ac_try="$ac_compile"
6466 case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469 esac
6470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6471 $as_echo "$ac_try_echo") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 $ac_includes_default
6489 int
6490 main ()
6491 {
6492 if (sizeof ((pid_t)))
6493 return 0;
6494 ;
6495 return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6500 case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6505 $as_echo "$ac_try_echo") >&5
6506 (eval "$ac_compile") 2>conftest.er1
6507 ac_status=$?
6508 grep -v '^ *+' conftest.er1 >conftest.err
6509 rm -f conftest.er1
6510 cat conftest.err >&5
6511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && {
6513 test -z "$ac_c_werror_flag" ||
6514 test ! -s conftest.err
6515 } && test -s conftest.$ac_objext; then
6516 :
6517 else
6518 $as_echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6520
6521 ac_cv_type_pid_t=yes
6522 fi
6523
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 else
6526 $as_echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529
6530 fi
6531
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 fi
6534 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6535 $as_echo "$ac_cv_type_pid_t" >&6; }
6536 if test "x$ac_cv_type_pid_t" = x""yes; then
6537 :
6538 else
6539
6540 cat >>confdefs.h <<_ACEOF
6541 #define pid_t int
6542 _ACEOF
6543
6544 fi
6545
6546 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6547 $as_echo_n "checking return type of signal handlers... " >&6; }
6548 if test "${ac_cv_type_signal+set}" = set; then
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <sys/types.h>
6558 #include <signal.h>
6559
6560 int
6561 main ()
6562 {
6563 return *(signal (0, 0)) (0) == 1;
6564 ;
6565 return 0;
6566 }
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6570 case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573 esac
6574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575 $as_echo "$ac_try_echo") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_cv_type_signal=int
6587 else
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_cv_type_signal=void
6592 fi
6593
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6597 $as_echo "$ac_cv_type_signal" >&6; }
6598
6599 cat >>confdefs.h <<_ACEOF
6600 #define RETSIGTYPE $ac_cv_type_signal
6601 _ACEOF
6602
6603
6604 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6605 $as_echo_n "checking for size_t... " >&6; }
6606 if test "${ac_cv_type_size_t+set}" = set; then
6607 $as_echo_n "(cached) " >&6
6608 else
6609 ac_cv_type_size_t=no
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 int
6618 main ()
6619 {
6620 if (sizeof (size_t))
6621 return 0;
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6628 case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631 esac
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h. */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 $ac_includes_default
6651 int
6652 main ()
6653 {
6654 if (sizeof ((size_t)))
6655 return 0;
6656 ;
6657 return 0;
6658 }
6659 _ACEOF
6660 rm -f conftest.$ac_objext
6661 if { (ac_try="$ac_compile"
6662 case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 :
6679 else
6680 $as_echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 ac_cv_type_size_t=yes
6684 fi
6685
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 else
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691
6692 fi
6693
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 fi
6696 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6697 $as_echo "$ac_cv_type_size_t" >&6; }
6698 if test "x$ac_cv_type_size_t" = x""yes; then
6699 :
6700 else
6701
6702 cat >>confdefs.h <<_ACEOF
6703 #define size_t unsigned int
6704 _ACEOF
6705
6706 fi
6707
6708 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6709 $as_echo_n "checking for mode_t... " >&6; }
6710 if test "${ac_cv_type_mode_t+set}" = set; then
6711 $as_echo_n "(cached) " >&6
6712 else
6713 ac_cv_type_mode_t=no
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 $ac_includes_default
6721 int
6722 main ()
6723 {
6724 if (sizeof (mode_t))
6725 return 0;
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6755 int
6756 main ()
6757 {
6758 if (sizeof ((mode_t)))
6759 return 0;
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (ac_try="$ac_compile"
6766 case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6769 esac
6770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771 $as_echo "$ac_try_echo") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.$ac_objext; then
6782 :
6783 else
6784 $as_echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6786
6787 ac_cv_type_mode_t=yes
6788 fi
6789
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 else
6792 $as_echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795
6796 fi
6797
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 fi
6800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6801 $as_echo "$ac_cv_type_mode_t" >&6; }
6802 if test "x$ac_cv_type_mode_t" = x""yes; then
6803 :
6804 else
6805
6806 cat >>confdefs.h <<_ACEOF
6807 #define mode_t int
6808 _ACEOF
6809
6810 fi
6811
6812
6813 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6814 $as_echo_n "checking for int8_t... " >&6; }
6815 if test "${ac_cv_c_int8_t+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817 else
6818 ac_cv_c_int8_t=no
6819 for ac_type in 'int8_t' 'int' 'long int' \
6820 'long long int' 'short int' 'signed char'; do
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 $ac_includes_default
6828 int
6829 main ()
6830 {
6831 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6832 test_array [0] = 0
6833
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext
6839 if { (ac_try="$ac_compile"
6840 case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843 esac
6844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845 $as_echo "$ac_try_echo") >&5
6846 (eval "$ac_compile") 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest.$ac_objext; then
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6863 int
6864 main ()
6865 {
6866 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6867 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6868 test_array [0] = 0
6869
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 rm -f conftest.$ac_objext
6875 if { (ac_try="$ac_compile"
6876 case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881 $as_echo "$ac_try_echo") >&5
6882 (eval "$ac_compile") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest.$ac_objext; then
6892 :
6893 else
6894 $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 case $ac_type in
6898 int8_t) ac_cv_c_int8_t=yes ;;
6899 *) ac_cv_c_int8_t=$ac_type ;;
6900 esac
6901
6902 fi
6903
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 else
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909
6910 fi
6911
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 test "$ac_cv_c_int8_t" != no && break
6914 done
6915 fi
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6917 $as_echo "$ac_cv_c_int8_t" >&6; }
6918 case $ac_cv_c_int8_t in #(
6919 no|yes) ;; #(
6920 *)
6921
6922 cat >>confdefs.h <<_ACEOF
6923 #define int8_t $ac_cv_c_int8_t
6924 _ACEOF
6925 ;;
6926 esac
6927
6928
6929 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6930 $as_echo_n "checking for int16_t... " >&6; }
6931 if test "${ac_cv_c_int16_t+set}" = set; then
6932 $as_echo_n "(cached) " >&6
6933 else
6934 ac_cv_c_int16_t=no
6935 for ac_type in 'int16_t' 'int' 'long int' \
6936 'long long int' 'short int' 'signed char'; do
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 $ac_includes_default
6944 int
6945 main ()
6946 {
6947 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6948 test_array [0] = 0
6949
6950 ;
6951 return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6979 int
6980 main ()
6981 {
6982 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6983 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6984 test_array [0] = 0
6985
6986 ;
6987 return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest.$ac_objext
6991 if { (ac_try="$ac_compile"
6992 case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_compile") 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 :
7009 else
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 case $ac_type in
7014 int16_t) ac_cv_c_int16_t=yes ;;
7015 *) ac_cv_c_int16_t=$ac_type ;;
7016 esac
7017
7018 fi
7019
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 else
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025
7026 fi
7027
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 test "$ac_cv_c_int16_t" != no && break
7030 done
7031 fi
7032 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7033 $as_echo "$ac_cv_c_int16_t" >&6; }
7034 case $ac_cv_c_int16_t in #(
7035 no|yes) ;; #(
7036 *)
7037
7038 cat >>confdefs.h <<_ACEOF
7039 #define int16_t $ac_cv_c_int16_t
7040 _ACEOF
7041 ;;
7042 esac
7043
7044
7045 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7046 $as_echo_n "checking for int32_t... " >&6; }
7047 if test "${ac_cv_c_int32_t+set}" = set; then
7048 $as_echo_n "(cached) " >&6
7049 else
7050 ac_cv_c_int32_t=no
7051 for ac_type in 'int32_t' 'int' 'long int' \
7052 'long long int' 'short int' 'signed char'; do
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 $ac_includes_default
7060 int
7061 main ()
7062 {
7063 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7064 test_array [0] = 0
7065
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7095 int
7096 main ()
7097 {
7098 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7099 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7100 test_array [0] = 0
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7108 case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
7124 :
7125 else
7126 $as_echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 case $ac_type in
7130 int32_t) ac_cv_c_int32_t=yes ;;
7131 *) ac_cv_c_int32_t=$ac_type ;;
7132 esac
7133
7134 fi
7135
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 else
7138 $as_echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141
7142 fi
7143
7144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 test "$ac_cv_c_int32_t" != no && break
7146 done
7147 fi
7148 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7149 $as_echo "$ac_cv_c_int32_t" >&6; }
7150 case $ac_cv_c_int32_t in #(
7151 no|yes) ;; #(
7152 *)
7153
7154 cat >>confdefs.h <<_ACEOF
7155 #define int32_t $ac_cv_c_int32_t
7156 _ACEOF
7157 ;;
7158 esac
7159
7160
7161 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7162 $as_echo_n "checking for int64_t... " >&6; }
7163 if test "${ac_cv_c_int64_t+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7165 else
7166 ac_cv_c_int64_t=no
7167 for ac_type in 'int64_t' 'int' 'long int' \
7168 'long long int' 'short int' 'signed char'; do
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7176 int
7177 main ()
7178 {
7179 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7180 test_array [0] = 0
7181
7182 ;
7183 return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193 $as_echo "$ac_try_echo") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 $ac_includes_default
7211 int
7212 main ()
7213 {
7214 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7215 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7216 test_array [0] = 0
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (ac_try="$ac_compile"
7224 case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227 esac
7228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.$ac_objext; then
7240 :
7241 else
7242 $as_echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7244
7245 case $ac_type in
7246 int64_t) ac_cv_c_int64_t=yes ;;
7247 *) ac_cv_c_int64_t=$ac_type ;;
7248 esac
7249
7250 fi
7251
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 else
7254 $as_echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257
7258 fi
7259
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 test "$ac_cv_c_int64_t" != no && break
7262 done
7263 fi
7264 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7265 $as_echo "$ac_cv_c_int64_t" >&6; }
7266 case $ac_cv_c_int64_t in #(
7267 no|yes) ;; #(
7268 *)
7269
7270 cat >>confdefs.h <<_ACEOF
7271 #define int64_t $ac_cv_c_int64_t
7272 _ACEOF
7273 ;;
7274 esac
7275
7276 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7277 $as_echo_n "checking for ssize_t... " >&6; }
7278 if test "${ac_cv_type_ssize_t+set}" = set; then
7279 $as_echo_n "(cached) " >&6
7280 else
7281 ac_cv_type_ssize_t=no
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 $ac_includes_default
7289 int
7290 main ()
7291 {
7292 if (sizeof (ssize_t))
7293 return 0;
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7316 cat >conftest.$ac_ext <<_ACEOF
7317 /* confdefs.h. */
7318 _ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 $ac_includes_default
7323 int
7324 main ()
7325 {
7326 if (sizeof ((ssize_t)))
7327 return 0;
7328 ;
7329 return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (ac_try="$ac_compile"
7334 case "(($ac_try" in
7335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336 *) ac_try_echo=$ac_try;;
7337 esac
7338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7339 $as_echo "$ac_try_echo") >&5
7340 (eval "$ac_compile") 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.$ac_objext; then
7350 :
7351 else
7352 $as_echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ac_cv_type_ssize_t=yes
7356 fi
7357
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 else
7360 $as_echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363
7364 fi
7365
7366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 fi
7368 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7369 $as_echo "$ac_cv_type_ssize_t" >&6; }
7370 if test "x$ac_cv_type_ssize_t" = x""yes; then
7371 :
7372 else
7373
7374 cat >>confdefs.h <<_ACEOF
7375 #define ssize_t int
7376 _ACEOF
7377
7378 fi
7379
7380 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7381 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7382 if test "${ac_cv_type_uid_t+set}" = set; then
7383 $as_echo_n "(cached) " >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 #include <sys/types.h>
7392
7393 _ACEOF
7394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395 $EGREP "uid_t" >/dev/null 2>&1; then
7396 ac_cv_type_uid_t=yes
7397 else
7398 ac_cv_type_uid_t=no
7399 fi
7400 rm -f conftest*
7401
7402 fi
7403 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7404 $as_echo "$ac_cv_type_uid_t" >&6; }
7405 if test $ac_cv_type_uid_t = no; then
7406
7407 cat >>confdefs.h <<\_ACEOF
7408 #define uid_t int
7409 _ACEOF
7410
7411
7412 cat >>confdefs.h <<\_ACEOF
7413 #define gid_t int
7414 _ACEOF
7415
7416 fi
7417
7418
7419 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7420 $as_echo_n "checking for uint8_t... " >&6; }
7421 if test "${ac_cv_c_uint8_t+set}" = set; then
7422 $as_echo_n "(cached) " >&6
7423 else
7424 ac_cv_c_uint8_t=no
7425 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h. */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 $ac_includes_default
7434 int
7435 main ()
7436 {
7437 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7438 test_array [0] = 0
7439
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext
7445 if { (ac_try="$ac_compile"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7451 $as_echo "$ac_try_echo") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7462 case $ac_type in
7463 uint8_t) ac_cv_c_uint8_t=yes ;;
7464 *) ac_cv_c_uint8_t=$ac_type ;;
7465 esac
7466
7467 else
7468 $as_echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471
7472 fi
7473
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 test "$ac_cv_c_uint8_t" != no && break
7476 done
7477 fi
7478 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7479 $as_echo "$ac_cv_c_uint8_t" >&6; }
7480 case $ac_cv_c_uint8_t in #(
7481 no|yes) ;; #(
7482 *)
7483
7484 cat >>confdefs.h <<\_ACEOF
7485 #define _UINT8_T 1
7486 _ACEOF
7487
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define uint8_t $ac_cv_c_uint8_t
7491 _ACEOF
7492 ;;
7493 esac
7494
7495
7496 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7497 $as_echo_n "checking for uint16_t... " >&6; }
7498 if test "${ac_cv_c_uint16_t+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500 else
7501 ac_cv_c_uint16_t=no
7502 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7503 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 int
7512 main ()
7513 {
7514 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7515 test_array [0] = 0
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (ac_try="$ac_compile"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7528 $as_echo "$ac_try_echo") >&5
7529 (eval "$ac_compile") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest.$ac_objext; then
7539 case $ac_type in
7540 uint16_t) ac_cv_c_uint16_t=yes ;;
7541 *) ac_cv_c_uint16_t=$ac_type ;;
7542 esac
7543
7544 else
7545 $as_echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 test "$ac_cv_c_uint16_t" != no && break
7553 done
7554 fi
7555 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7556 $as_echo "$ac_cv_c_uint16_t" >&6; }
7557 case $ac_cv_c_uint16_t in #(
7558 no|yes) ;; #(
7559 *)
7560
7561
7562 cat >>confdefs.h <<_ACEOF
7563 #define uint16_t $ac_cv_c_uint16_t
7564 _ACEOF
7565 ;;
7566 esac
7567
7568
7569 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7570 $as_echo_n "checking for uint32_t... " >&6; }
7571 if test "${ac_cv_c_uint32_t+set}" = set; then
7572 $as_echo_n "(cached) " >&6
7573 else
7574 ac_cv_c_uint32_t=no
7575 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7576 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7577 cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h. */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 $ac_includes_default
7584 int
7585 main ()
7586 {
7587 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7588 test_array [0] = 0
7589
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7603 ac_status=$?
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
7612 case $ac_type in
7613 uint32_t) ac_cv_c_uint32_t=yes ;;
7614 *) ac_cv_c_uint32_t=$ac_type ;;
7615 esac
7616
7617 else
7618 $as_echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621
7622 fi
7623
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 test "$ac_cv_c_uint32_t" != no && break
7626 done
7627 fi
7628 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7629 $as_echo "$ac_cv_c_uint32_t" >&6; }
7630 case $ac_cv_c_uint32_t in #(
7631 no|yes) ;; #(
7632 *)
7633
7634 cat >>confdefs.h <<\_ACEOF
7635 #define _UINT32_T 1
7636 _ACEOF
7637
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define uint32_t $ac_cv_c_uint32_t
7641 _ACEOF
7642 ;;
7643 esac
7644
7645
7646 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7647 $as_echo_n "checking for uint64_t... " >&6; }
7648 if test "${ac_cv_c_uint64_t+set}" = set; then
7649 $as_echo_n "(cached) " >&6
7650 else
7651 ac_cv_c_uint64_t=no
7652 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7653 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 $ac_includes_default
7661 int
7662 main ()
7663 {
7664 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7665 test_array [0] = 0
7666
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7673 case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676 esac
7677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678 $as_echo "$ac_try_echo") >&5
7679 (eval "$ac_compile") 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest.$ac_objext; then
7689 case $ac_type in
7690 uint64_t) ac_cv_c_uint64_t=yes ;;
7691 *) ac_cv_c_uint64_t=$ac_type ;;
7692 esac
7693
7694 else
7695 $as_echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698
7699 fi
7700
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 test "$ac_cv_c_uint64_t" != no && break
7703 done
7704 fi
7705 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7706 $as_echo "$ac_cv_c_uint64_t" >&6; }
7707 case $ac_cv_c_uint64_t in #(
7708 no|yes) ;; #(
7709 *)
7710
7711 cat >>confdefs.h <<\_ACEOF
7712 #define _UINT64_T 1
7713 _ACEOF
7714
7715
7716 cat >>confdefs.h <<_ACEOF
7717 #define uint64_t $ac_cv_c_uint64_t
7718 _ACEOF
7719 ;;
7720 esac
7721
7722 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7723 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
7724 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7725 $as_echo_n "(cached) " >&6
7726 else
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 $ac_includes_default
7734 int
7735 main ()
7736 {
7737 static struct stat ac_aggr;
7738 if (ac_aggr.st_rdev)
7739 return 0;
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext
7745 if { (ac_try="$ac_compile"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7751 $as_echo "$ac_try_echo") >&5
7752 (eval "$ac_compile") 2>conftest.er1
7753 ac_status=$?
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
7757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest.$ac_objext; then
7762 ac_cv_member_struct_stat_st_rdev=yes
7763 else
7764 $as_echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h. */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7773 $ac_includes_default
7774 int
7775 main ()
7776 {
7777 static struct stat ac_aggr;
7778 if (sizeof ac_aggr.st_rdev)
7779 return 0;
7780 ;
7781 return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7791 $as_echo "$ac_try_echo") >&5
7792 (eval "$ac_compile") 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.$ac_objext; then
7802 ac_cv_member_struct_stat_st_rdev=yes
7803 else
7804 $as_echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807 ac_cv_member_struct_stat_st_rdev=no
7808 fi
7809
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 fi
7812
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 fi
7815 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7816 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7817 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
7818
7819 cat >>confdefs.h <<_ACEOF
7820 #define HAVE_STRUCT_STAT_ST_RDEV 1
7821 _ACEOF
7822
7823
7824 fi
7825
7826 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7827 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7828 if test "${ac_cv_struct_tm+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <sys/types.h>
7838 #include <time.h>
7839
7840 int
7841 main ()
7842 {
7843 struct tm tm;
7844 int *p = &tm.tm_sec;
7845 return !p;
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7857 $as_echo "$ac_try_echo") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7868 ac_cv_struct_tm=time.h
7869 else
7870 $as_echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_cv_struct_tm=sys/time.h
7874 fi
7875
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 fi
7878 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7879 $as_echo "$ac_cv_struct_tm" >&6; }
7880 if test $ac_cv_struct_tm = sys/time.h; then
7881
7882 cat >>confdefs.h <<\_ACEOF
7883 #define TM_IN_SYS_TIME 1
7884 _ACEOF
7885
7886 fi
7887
7888
7889 ################################################################################
7890 { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7891 $as_echo_n "checking for library containing floor... " >&6; }
7892 if test "${ac_cv_search_floor+set}" = set; then
7893 $as_echo_n "(cached) " >&6
7894 else
7895 ac_func_search_save_LIBS=$LIBS
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h. */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902
7903 /* Override any GCC internal prototype to avoid an error.
7904 Use char because int might match the return type of a GCC
7905 builtin and then its argument prototype would still apply. */
7906 #ifdef __cplusplus
7907 extern "C"
7908 #endif
7909 char floor ();
7910 int
7911 main ()
7912 {
7913 return floor ();
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 for ac_lib in '' m; do
7919 if test -z "$ac_lib"; then
7920 ac_res="none required"
7921 else
7922 ac_res=-l$ac_lib
7923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7924 fi
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (ac_try="$ac_link"
7927 case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930 esac
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933 (eval "$ac_link") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest$ac_exeext && {
7943 test "$cross_compiling" = yes ||
7944 $as_test_x conftest$ac_exeext
7945 }; then
7946 ac_cv_search_floor=$ac_res
7947 else
7948 $as_echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951
7952 fi
7953
7954 rm -rf conftest.dSYM
7955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7956 conftest$ac_exeext
7957 if test "${ac_cv_search_floor+set}" = set; then
7958 break
7959 fi
7960 done
7961 if test "${ac_cv_search_floor+set}" = set; then
7962 :
7963 else
7964 ac_cv_search_floor=no
7965 fi
7966 rm conftest.$ac_ext
7967 LIBS=$ac_func_search_save_LIBS
7968 fi
7969 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7970 $as_echo "$ac_cv_search_floor" >&6; }
7971 ac_res=$ac_cv_search_floor
7972 if test "$ac_res" != no; then
7973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7974
7975 else
7976 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7977 $as_echo "$as_me: error: bailing out" >&2;}
7978 { (exit 1); exit 1; }; }
7979 fi
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 for ac_func in floor ftruncate gethostname getpagesize \
8007 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8008 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8009 strstr strtol strtoul uname
8010 do
8011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8013 $as_echo_n "checking for $ac_func... " >&6; }
8014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8015 $as_echo_n "(cached) " >&6
8016 else
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8025 #define $ac_func innocuous_$ac_func
8026
8027 /* System header to define __stub macros and hopefully few prototypes,
8028 which can conflict with char $ac_func (); below.
8029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030 <limits.h> exists even on freestanding compilers. */
8031
8032 #ifdef __STDC__
8033 # include <limits.h>
8034 #else
8035 # include <assert.h>
8036 #endif
8037
8038 #undef $ac_func
8039
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 char $ac_func ();
8047 /* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
8050 #if defined __stub_$ac_func || defined __stub___$ac_func
8051 choke me
8052 #endif
8053
8054 int
8055 main ()
8056 {
8057 return $ac_func ();
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext conftest$ac_exeext
8063 if { (ac_try="$ac_link"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_link") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest$ac_exeext && {
8080 test "$cross_compiling" = yes ||
8081 $as_test_x conftest$ac_exeext
8082 }; then
8083 eval "$as_ac_var=yes"
8084 else
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 eval "$as_ac_var=no"
8089 fi
8090
8091 rm -rf conftest.dSYM
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093 conftest$ac_exeext conftest.$ac_ext
8094 fi
8095 ac_res=`eval 'as_val=${'$as_ac_var'}
8096 $as_echo "$as_val"'`
8097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8098 $as_echo "$ac_res" >&6; }
8099 as_val=`eval 'as_val=${'$as_ac_var'}
8100 $as_echo "$as_val"'`
8101 if test "x$as_val" = x""yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8104 _ACEOF
8105
8106 else
8107 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8108 $as_echo "$as_me: error: bailing out" >&2;}
8109 { (exit 1); exit 1; }; }
8110 fi
8111 done
8112
8113
8114 for ac_func in siginterrupt
8115 do
8116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8118 $as_echo_n "checking for $ac_func... " >&6; }
8119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8120 $as_echo_n "(cached) " >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130 #define $ac_func innocuous_$ac_func
8131
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char $ac_func (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8136
8137 #ifdef __STDC__
8138 # include <limits.h>
8139 #else
8140 # include <assert.h>
8141 #endif
8142
8143 #undef $ac_func
8144
8145 /* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 char $ac_func ();
8152 /* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155 #if defined __stub_$ac_func || defined __stub___$ac_func
8156 choke me
8157 #endif
8158
8159 int
8160 main ()
8161 {
8162 return $ac_func ();
8163 ;
8164 return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8169 case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172 esac
8173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174 $as_echo "$ac_try_echo") >&5
8175 (eval "$ac_link") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest$ac_exeext && {
8185 test "$cross_compiling" = yes ||
8186 $as_test_x conftest$ac_exeext
8187 }; then
8188 eval "$as_ac_var=yes"
8189 else
8190 $as_echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 eval "$as_ac_var=no"
8194 fi
8195
8196 rm -rf conftest.dSYM
8197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8198 conftest$ac_exeext conftest.$ac_ext
8199 fi
8200 ac_res=`eval 'as_val=${'$as_ac_var'}
8201 $as_echo "$as_val"'`
8202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8203 $as_echo "$ac_res" >&6; }
8204 as_val=`eval 'as_val=${'$as_ac_var'}
8205 $as_echo "$as_val"'`
8206 if test "x$as_val" = x""yes; then
8207 cat >>confdefs.h <<_ACEOF
8208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209 _ACEOF
8210
8211 fi
8212 done
8213
8214 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8215 # for constant arguments. Useless!
8216 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8217 $as_echo_n "checking for working alloca.h... " >&6; }
8218 if test "${ac_cv_working_alloca_h+set}" = set; then
8219 $as_echo_n "(cached) " >&6
8220 else
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 #include <alloca.h>
8228 int
8229 main ()
8230 {
8231 char *p = (char *) alloca (2 * sizeof (int));
8232 if (p) return 0;
8233 ;
8234 return 0;
8235 }
8236 _ACEOF
8237 rm -f conftest.$ac_objext conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8239 case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242 esac
8243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8244 $as_echo "$ac_try_echo") >&5
8245 (eval "$ac_link") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest$ac_exeext && {
8255 test "$cross_compiling" = yes ||
8256 $as_test_x conftest$ac_exeext
8257 }; then
8258 ac_cv_working_alloca_h=yes
8259 else
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_cv_working_alloca_h=no
8264 fi
8265
8266 rm -rf conftest.dSYM
8267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8268 conftest$ac_exeext conftest.$ac_ext
8269 fi
8270 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8271 $as_echo "$ac_cv_working_alloca_h" >&6; }
8272 if test $ac_cv_working_alloca_h = yes; then
8273
8274 cat >>confdefs.h <<\_ACEOF
8275 #define HAVE_ALLOCA_H 1
8276 _ACEOF
8277
8278 fi
8279
8280 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8281 $as_echo_n "checking for alloca... " >&6; }
8282 if test "${ac_cv_func_alloca_works+set}" = set; then
8283 $as_echo_n "(cached) " >&6
8284 else
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 #ifdef __GNUC__
8292 # define alloca __builtin_alloca
8293 #else
8294 # ifdef _MSC_VER
8295 # include <malloc.h>
8296 # define alloca _alloca
8297 # else
8298 # ifdef HAVE_ALLOCA_H
8299 # include <alloca.h>
8300 # else
8301 # ifdef _AIX
8302 #pragma alloca
8303 # else
8304 # ifndef alloca /* predefined by HP cc +Olibcalls */
8305 char *alloca ();
8306 # endif
8307 # endif
8308 # endif
8309 # endif
8310 #endif
8311
8312 int
8313 main ()
8314 {
8315 char *p = (char *) alloca (1);
8316 if (p) return 0;
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext conftest$ac_exeext
8322 if { (ac_try="$ac_link"
8323 case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326 esac
8327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8328 $as_echo "$ac_try_echo") >&5
8329 (eval "$ac_link") 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } && {
8336 test -z "$ac_c_werror_flag" ||
8337 test ! -s conftest.err
8338 } && test -s conftest$ac_exeext && {
8339 test "$cross_compiling" = yes ||
8340 $as_test_x conftest$ac_exeext
8341 }; then
8342 ac_cv_func_alloca_works=yes
8343 else
8344 $as_echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_func_alloca_works=no
8348 fi
8349
8350 rm -rf conftest.dSYM
8351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8352 conftest$ac_exeext conftest.$ac_ext
8353 fi
8354 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8355 $as_echo "$ac_cv_func_alloca_works" >&6; }
8356
8357 if test $ac_cv_func_alloca_works = yes; then
8358
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_ALLOCA 1
8361 _ACEOF
8362
8363 else
8364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8365 # that cause trouble. Some versions do not even contain alloca or
8366 # contain a buggy version. If you still want to use their alloca,
8367 # use ar to extract alloca.o from them instead of compiling alloca.c.
8368
8369 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8370
8371 cat >>confdefs.h <<\_ACEOF
8372 #define C_ALLOCA 1
8373 _ACEOF
8374
8375
8376 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8377 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8378 if test "${ac_cv_os_cray+set}" = set; then
8379 $as_echo_n "(cached) " >&6
8380 else
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 #if defined CRAY && ! defined CRAY2
8388 webecray
8389 #else
8390 wenotbecray
8391 #endif
8392
8393 _ACEOF
8394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8395 $EGREP "webecray" >/dev/null 2>&1; then
8396 ac_cv_os_cray=yes
8397 else
8398 ac_cv_os_cray=no
8399 fi
8400 rm -f conftest*
8401
8402 fi
8403 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8404 $as_echo "$ac_cv_os_cray" >&6; }
8405 if test $ac_cv_os_cray = yes; then
8406 for ac_func in _getb67 GETB67 getb67; do
8407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8409 $as_echo_n "checking for $ac_func... " >&6; }
8410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8421 #define $ac_func innocuous_$ac_func
8422
8423 /* System header to define __stub macros and hopefully few prototypes,
8424 which can conflict with char $ac_func (); below.
8425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8426 <limits.h> exists even on freestanding compilers. */
8427
8428 #ifdef __STDC__
8429 # include <limits.h>
8430 #else
8431 # include <assert.h>
8432 #endif
8433
8434 #undef $ac_func
8435
8436 /* Override any GCC internal prototype to avoid an error.
8437 Use char because int might match the return type of a GCC
8438 builtin and then its argument prototype would still apply. */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 char $ac_func ();
8443 /* The GNU C library defines this for functions which it implements
8444 to always fail with ENOSYS. Some functions are actually named
8445 something starting with __ and the normal name is an alias. */
8446 #if defined __stub_$ac_func || defined __stub___$ac_func
8447 choke me
8448 #endif
8449
8450 int
8451 main ()
8452 {
8453 return $ac_func ();
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (ac_try="$ac_link"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$ac_try_echo") >&5
8466 (eval "$ac_link") 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest$ac_exeext && {
8476 test "$cross_compiling" = yes ||
8477 $as_test_x conftest$ac_exeext
8478 }; then
8479 eval "$as_ac_var=yes"
8480 else
8481 $as_echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 eval "$as_ac_var=no"
8485 fi
8486
8487 rm -rf conftest.dSYM
8488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8489 conftest$ac_exeext conftest.$ac_ext
8490 fi
8491 ac_res=`eval 'as_val=${'$as_ac_var'}
8492 $as_echo "$as_val"'`
8493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8494 $as_echo "$ac_res" >&6; }
8495 as_val=`eval 'as_val=${'$as_ac_var'}
8496 $as_echo "$as_val"'`
8497 if test "x$as_val" = x""yes; then
8498
8499 cat >>confdefs.h <<_ACEOF
8500 #define CRAY_STACKSEG_END $ac_func
8501 _ACEOF
8502
8503 break
8504 fi
8505
8506 done
8507 fi
8508
8509 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8510 $as_echo_n "checking stack direction for C alloca... " >&6; }
8511 if test "${ac_cv_c_stack_direction+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8513 else
8514 if test "$cross_compiling" = yes; then
8515 ac_cv_c_stack_direction=0
8516 else
8517 cat >conftest.$ac_ext <<_ACEOF
8518 /* confdefs.h. */
8519 _ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 int
8525 find_stack_direction ()
8526 {
8527 static char *addr = 0;
8528 auto char dummy;
8529 if (addr == 0)
8530 {
8531 addr = &dummy;
8532 return find_stack_direction ();
8533 }
8534 else
8535 return (&dummy > addr) ? 1 : -1;
8536 }
8537
8538 int
8539 main ()
8540 {
8541 return find_stack_direction () < 0;
8542 }
8543 _ACEOF
8544 rm -f conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8546 case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549 esac
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_link") 2>&5
8553 ac_status=$?
8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_try") 2>&5
8563 ac_status=$?
8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_c_stack_direction=1
8567 else
8568 $as_echo "$as_me: program exited with status $ac_status" >&5
8569 $as_echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 ( exit $ac_status )
8573 ac_cv_c_stack_direction=-1
8574 fi
8575 rm -rf conftest.dSYM
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8577 fi
8578
8579
8580 fi
8581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8582 $as_echo "$ac_cv_c_stack_direction" >&6; }
8583
8584 cat >>confdefs.h <<_ACEOF
8585 #define STACK_DIRECTION $ac_cv_c_stack_direction
8586 _ACEOF
8587
8588
8589 fi
8590
8591 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8592 $as_echo_n "checking whether closedir returns void... " >&6; }
8593 if test "${ac_cv_func_closedir_void+set}" = set; then
8594 $as_echo_n "(cached) " >&6
8595 else
8596 if test "$cross_compiling" = yes; then
8597 ac_cv_func_closedir_void=yes
8598 else
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #include <$ac_header_dirent>
8607 #ifndef __cplusplus
8608 int closedir ();
8609 #endif
8610
8611 int
8612 main ()
8613 {
8614 return closedir (opendir (".")) != 0;
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8626 $as_echo "$ac_try_echo") >&5
8627 (eval "$ac_link") 2>&5
8628 ac_status=$?
8629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634 esac
8635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8636 $as_echo "$ac_try_echo") >&5
8637 (eval "$ac_try") 2>&5
8638 ac_status=$?
8639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_func_closedir_void=no
8642 else
8643 $as_echo "$as_me: program exited with status $ac_status" >&5
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 ( exit $ac_status )
8648 ac_cv_func_closedir_void=yes
8649 fi
8650 rm -rf conftest.dSYM
8651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8652 fi
8653
8654
8655 fi
8656 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8657 $as_echo "$ac_cv_func_closedir_void" >&6; }
8658 if test $ac_cv_func_closedir_void = yes; then
8659
8660 cat >>confdefs.h <<\_ACEOF
8661 #define CLOSEDIR_VOID 1
8662 _ACEOF
8663
8664 fi
8665
8666
8667 for ac_header in unistd.h
8668 do
8669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 $as_echo_n "checking for $ac_header... " >&6; }
8673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8674 $as_echo_n "(cached) " >&6
8675 fi
8676 ac_res=`eval 'as_val=${'$as_ac_Header'}
8677 $as_echo "$as_val"'`
8678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8679 $as_echo "$ac_res" >&6; }
8680 else
8681 # Is the header compilable?
8682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8683 $as_echo_n "checking $ac_header usability... " >&6; }
8684 cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 #include <$ac_header>
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8700 $as_echo "$ac_try_echo") >&5
8701 (eval "$ac_compile") 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest.$ac_objext; then
8711 ac_header_compiler=yes
8712 else
8713 $as_echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_header_compiler=no
8717 fi
8718
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8721 $as_echo "$ac_header_compiler" >&6; }
8722
8723 # Is the header present?
8724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8725 $as_echo_n "checking $ac_header presence... " >&6; }
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h. */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 #include <$ac_header>
8733 _ACEOF
8734 if { (ac_try="$ac_cpp conftest.$ac_ext"
8735 case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738 esac
8739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8740 $as_echo "$ac_try_echo") >&5
8741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } >/dev/null && {
8748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 }; then
8751 ac_header_preproc=yes
8752 else
8753 $as_echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_header_preproc=no
8757 fi
8758
8759 rm -f conftest.err conftest.$ac_ext
8760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8761 $as_echo "$ac_header_preproc" >&6; }
8762
8763 # So? What about this header?
8764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8765 yes:no: )
8766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8770 ac_header_preproc=yes
8771 ;;
8772 no:yes:* )
8773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8776 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8780 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785
8786 ;;
8787 esac
8788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8789 $as_echo_n "checking for $ac_header... " >&6; }
8790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791 $as_echo_n "(cached) " >&6
8792 else
8793 eval "$as_ac_Header=\$ac_header_preproc"
8794 fi
8795 ac_res=`eval 'as_val=${'$as_ac_Header'}
8796 $as_echo "$as_val"'`
8797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8798 $as_echo "$ac_res" >&6; }
8799
8800 fi
8801 as_val=`eval 'as_val=${'$as_ac_Header'}
8802 $as_echo "$as_val"'`
8803 if test "x$as_val" = x""yes; then
8804 cat >>confdefs.h <<_ACEOF
8805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8806 _ACEOF
8807
8808 fi
8809
8810 done
8811
8812 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
8813 $as_echo_n "checking for working chown... " >&6; }
8814 if test "${ac_cv_func_chown_works+set}" = set; then
8815 $as_echo_n "(cached) " >&6
8816 else
8817 if test "$cross_compiling" = yes; then
8818 ac_cv_func_chown_works=no
8819 else
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8827 #include <fcntl.h>
8828
8829 int
8830 main ()
8831 {
8832 char *f = "conftest.chown";
8833 struct stat before, after;
8834
8835 if (creat (f, 0600) < 0)
8836 return 1;
8837 if (stat (f, &before) < 0)
8838 return 1;
8839 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8840 return 1;
8841 if (stat (f, &after) < 0)
8842 return 1;
8843 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8844
8845 ;
8846 return 0;
8847 }
8848 _ACEOF
8849 rm -f conftest$ac_exeext
8850 if { (ac_try="$ac_link"
8851 case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854 esac
8855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856 $as_echo "$ac_try_echo") >&5
8857 (eval "$ac_link") 2>&5
8858 ac_status=$?
8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866 $as_echo "$ac_try_echo") >&5
8867 (eval "$ac_try") 2>&5
8868 ac_status=$?
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_func_chown_works=yes
8872 else
8873 $as_echo "$as_me: program exited with status $ac_status" >&5
8874 $as_echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ( exit $ac_status )
8878 ac_cv_func_chown_works=no
8879 fi
8880 rm -rf conftest.dSYM
8881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8882 fi
8883
8884
8885 rm -f conftest.chown
8886
8887 fi
8888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8889 $as_echo "$ac_cv_func_chown_works" >&6; }
8890 if test $ac_cv_func_chown_works = yes; then
8891
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_CHOWN 1
8894 _ACEOF
8895
8896 fi
8897
8898
8899 for ac_header in vfork.h
8900 do
8901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 $as_echo_n "checking for $ac_header... " >&6; }
8905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8906 $as_echo_n "(cached) " >&6
8907 fi
8908 ac_res=`eval 'as_val=${'$as_ac_Header'}
8909 $as_echo "$as_val"'`
8910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8911 $as_echo "$ac_res" >&6; }
8912 else
8913 # Is the header compilable?
8914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915 $as_echo_n "checking $ac_header usability... " >&6; }
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 #include <$ac_header>
8924 _ACEOF
8925 rm -f conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8927 case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
8943 ac_header_compiler=yes
8944 else
8945 $as_echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8947
8948 ac_header_compiler=no
8949 fi
8950
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8953 $as_echo "$ac_header_compiler" >&6; }
8954
8955 # Is the header present?
8956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8957 $as_echo_n "checking $ac_header presence... " >&6; }
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 #include <$ac_header>
8965 _ACEOF
8966 if { (ac_try="$ac_cpp conftest.$ac_ext"
8967 case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970 esac
8971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8972 $as_echo "$ac_try_echo") >&5
8973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } >/dev/null && {
8980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8981 test ! -s conftest.err
8982 }; then
8983 ac_header_preproc=yes
8984 else
8985 $as_echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_header_preproc=no
8989 fi
8990
8991 rm -f conftest.err conftest.$ac_ext
8992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8993 $as_echo "$ac_header_preproc" >&6; }
8994
8995 # So? What about this header?
8996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8997 yes:no: )
8998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9002 ac_header_preproc=yes
9003 ;;
9004 no:yes:* )
9005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9017
9018 ;;
9019 esac
9020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9021 $as_echo_n "checking for $ac_header... " >&6; }
9022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9023 $as_echo_n "(cached) " >&6
9024 else
9025 eval "$as_ac_Header=\$ac_header_preproc"
9026 fi
9027 ac_res=`eval 'as_val=${'$as_ac_Header'}
9028 $as_echo "$as_val"'`
9029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9030 $as_echo "$ac_res" >&6; }
9031
9032 fi
9033 as_val=`eval 'as_val=${'$as_ac_Header'}
9034 $as_echo "$as_val"'`
9035 if test "x$as_val" = x""yes; then
9036 cat >>confdefs.h <<_ACEOF
9037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9038 _ACEOF
9039
9040 fi
9041
9042 done
9043
9044
9045
9046 for ac_func in fork vfork
9047 do
9048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9049 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9050 $as_echo_n "checking for $ac_func... " >&6; }
9051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h. */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9062 #define $ac_func innocuous_$ac_func
9063
9064 /* System header to define __stub macros and hopefully few prototypes,
9065 which can conflict with char $ac_func (); below.
9066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9067 <limits.h> exists even on freestanding compilers. */
9068
9069 #ifdef __STDC__
9070 # include <limits.h>
9071 #else
9072 # include <assert.h>
9073 #endif
9074
9075 #undef $ac_func
9076
9077 /* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
9080 #ifdef __cplusplus
9081 extern "C"
9082 #endif
9083 char $ac_func ();
9084 /* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087 #if defined __stub_$ac_func || defined __stub___$ac_func
9088 choke me
9089 #endif
9090
9091 int
9092 main ()
9093 {
9094 return $ac_func ();
9095 ;
9096 return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext conftest$ac_exeext
9100 if { (ac_try="$ac_link"
9101 case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104 esac
9105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106 $as_echo "$ac_try_echo") >&5
9107 (eval "$ac_link") 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } && {
9114 test -z "$ac_c_werror_flag" ||
9115 test ! -s conftest.err
9116 } && test -s conftest$ac_exeext && {
9117 test "$cross_compiling" = yes ||
9118 $as_test_x conftest$ac_exeext
9119 }; then
9120 eval "$as_ac_var=yes"
9121 else
9122 $as_echo "$as_me: failed program was:" >&5
9123 sed 's/^/| /' conftest.$ac_ext >&5
9124
9125 eval "$as_ac_var=no"
9126 fi
9127
9128 rm -rf conftest.dSYM
9129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9130 conftest$ac_exeext conftest.$ac_ext
9131 fi
9132 ac_res=`eval 'as_val=${'$as_ac_var'}
9133 $as_echo "$as_val"'`
9134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9135 $as_echo "$ac_res" >&6; }
9136 as_val=`eval 'as_val=${'$as_ac_var'}
9137 $as_echo "$as_val"'`
9138 if test "x$as_val" = x""yes; then
9139 cat >>confdefs.h <<_ACEOF
9140 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9141 _ACEOF
9142
9143 fi
9144 done
9145
9146 if test "x$ac_cv_func_fork" = xyes; then
9147 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9148 $as_echo_n "checking for working fork... " >&6; }
9149 if test "${ac_cv_func_fork_works+set}" = set; then
9150 $as_echo_n "(cached) " >&6
9151 else
9152 if test "$cross_compiling" = yes; then
9153 ac_cv_func_fork_works=cross
9154 else
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 $ac_includes_default
9162 int
9163 main ()
9164 {
9165
9166 /* By Ruediger Kuhlmann. */
9167 return fork () < 0;
9168
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest$ac_exeext
9174 if { (ac_try="$ac_link"
9175 case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178 esac
9179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180 $as_echo "$ac_try_echo") >&5
9181 (eval "$ac_link") 2>&5
9182 ac_status=$?
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9185 { (case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188 esac
9189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9190 $as_echo "$ac_try_echo") >&5
9191 (eval "$ac_try") 2>&5
9192 ac_status=$?
9193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9195 ac_cv_func_fork_works=yes
9196 else
9197 $as_echo "$as_me: program exited with status $ac_status" >&5
9198 $as_echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ( exit $ac_status )
9202 ac_cv_func_fork_works=no
9203 fi
9204 rm -rf conftest.dSYM
9205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9206 fi
9207
9208
9209 fi
9210 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9211 $as_echo "$ac_cv_func_fork_works" >&6; }
9212
9213 else
9214 ac_cv_func_fork_works=$ac_cv_func_fork
9215 fi
9216 if test "x$ac_cv_func_fork_works" = xcross; then
9217 case $host in
9218 *-*-amigaos* | *-*-msdosdjgpp*)
9219 # Override, as these systems have only a dummy fork() stub
9220 ac_cv_func_fork_works=no
9221 ;;
9222 *)
9223 ac_cv_func_fork_works=yes
9224 ;;
9225 esac
9226 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9227 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9228 fi
9229 ac_cv_func_vfork_works=$ac_cv_func_vfork
9230 if test "x$ac_cv_func_vfork" = xyes; then
9231 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9232 $as_echo_n "checking for working vfork... " >&6; }
9233 if test "${ac_cv_func_vfork_works+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9235 else
9236 if test "$cross_compiling" = yes; then
9237 ac_cv_func_vfork_works=cross
9238 else
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h. */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 /* Thanks to Paul Eggert for this test. */
9246 $ac_includes_default
9247 #include <sys/wait.h>
9248 #ifdef HAVE_VFORK_H
9249 # include <vfork.h>
9250 #endif
9251 /* On some sparc systems, changes by the child to local and incoming
9252 argument registers are propagated back to the parent. The compiler
9253 is told about this with #include <vfork.h>, but some compilers
9254 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9255 static variable whose address is put into a register that is
9256 clobbered by the vfork. */
9257 static void
9258 #ifdef __cplusplus
9259 sparc_address_test (int arg)
9260 # else
9261 sparc_address_test (arg) int arg;
9262 #endif
9263 {
9264 static pid_t child;
9265 if (!child) {
9266 child = vfork ();
9267 if (child < 0) {
9268 perror ("vfork");
9269 _exit(2);
9270 }
9271 if (!child) {
9272 arg = getpid();
9273 write(-1, "", 0);
9274 _exit (arg);
9275 }
9276 }
9277 }
9278
9279 int
9280 main ()
9281 {
9282 pid_t parent = getpid ();
9283 pid_t child;
9284
9285 sparc_address_test (0);
9286
9287 child = vfork ();
9288
9289 if (child == 0) {
9290 /* Here is another test for sparc vfork register problems. This
9291 test uses lots of local variables, at least as many local
9292 variables as main has allocated so far including compiler
9293 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9294 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9295 reuse the register of parent for one of the local variables,
9296 since it will think that parent can't possibly be used any more
9297 in this routine. Assigning to the local variable will thus
9298 munge parent in the parent process. */
9299 pid_t
9300 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9301 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9302 /* Convince the compiler that p..p7 are live; otherwise, it might
9303 use the same hardware register for all 8 local variables. */
9304 if (p != p1 || p != p2 || p != p3 || p != p4
9305 || p != p5 || p != p6 || p != p7)
9306 _exit(1);
9307
9308 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9309 from child file descriptors. If the child closes a descriptor
9310 before it execs or exits, this munges the parent's descriptor
9311 as well. Test for this by closing stdout in the child. */
9312 _exit(close(fileno(stdout)) != 0);
9313 } else {
9314 int status;
9315 struct stat st;
9316
9317 while (wait(&status) != child)
9318 ;
9319 return (
9320 /* Was there some problem with vforking? */
9321 child < 0
9322
9323 /* Did the child fail? (This shouldn't happen.) */
9324 || status
9325
9326 /* Did the vfork/compiler bug occur? */
9327 || parent != getpid()
9328
9329 /* Did the file descriptor bug occur? */
9330 || fstat(fileno(stdout), &st) != 0
9331 );
9332 }
9333 }
9334 _ACEOF
9335 rm -f conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9337 case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340 esac
9341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9342 $as_echo "$ac_try_echo") >&5
9343 (eval "$ac_link") 2>&5
9344 ac_status=$?
9345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9347 { (case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352 $as_echo "$ac_try_echo") >&5
9353 (eval "$ac_try") 2>&5
9354 ac_status=$?
9355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 ac_cv_func_vfork_works=yes
9358 else
9359 $as_echo "$as_me: program exited with status $ac_status" >&5
9360 $as_echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 ( exit $ac_status )
9364 ac_cv_func_vfork_works=no
9365 fi
9366 rm -rf conftest.dSYM
9367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9368 fi
9369
9370
9371 fi
9372 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9373 $as_echo "$ac_cv_func_vfork_works" >&6; }
9374
9375 fi;
9376 if test "x$ac_cv_func_fork_works" = xcross; then
9377 ac_cv_func_vfork_works=$ac_cv_func_vfork
9378 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9379 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9380 fi
9381
9382 if test "x$ac_cv_func_vfork_works" = xyes; then
9383
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_WORKING_VFORK 1
9386 _ACEOF
9387
9388 else
9389
9390 cat >>confdefs.h <<\_ACEOF
9391 #define vfork fork
9392 _ACEOF
9393
9394 fi
9395 if test "x$ac_cv_func_fork_works" = xyes; then
9396
9397 cat >>confdefs.h <<\_ACEOF
9398 #define HAVE_WORKING_FORK 1
9399 _ACEOF
9400
9401 fi
9402
9403 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9404 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
9405 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9406 $as_echo_n "(cached) " >&6
9407 else
9408 rm -f conftest.sym conftest.file
9409 echo >conftest.file
9410 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9411 if test "$cross_compiling" = yes; then
9412 ac_cv_func_lstat_dereferences_slashed_symlink=no
9413 else
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h. */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 $ac_includes_default
9421 int
9422 main ()
9423 {
9424 struct stat sbuf;
9425 /* Linux will dereference the symlink and fail.
9426 That is better in the sense that it means we will not
9427 have to compile and use the lstat wrapper. */
9428 return lstat ("conftest.sym/", &sbuf) == 0;
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 rm -f conftest$ac_exeext
9434 if { (ac_try="$ac_link"
9435 case "(($ac_try" in
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9438 esac
9439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9440 $as_echo "$ac_try_echo") >&5
9441 (eval "$ac_link") 2>&5
9442 ac_status=$?
9443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9445 { (case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448 esac
9449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450 $as_echo "$ac_try_echo") >&5
9451 (eval "$ac_try") 2>&5
9452 ac_status=$?
9453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9456 else
9457 $as_echo "$as_me: program exited with status $ac_status" >&5
9458 $as_echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ( exit $ac_status )
9462 ac_cv_func_lstat_dereferences_slashed_symlink=no
9463 fi
9464 rm -rf conftest.dSYM
9465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9466 fi
9467
9468
9469 else
9470 # If the `ln -s' command failed, then we probably don't even
9471 # have an lstat function.
9472 ac_cv_func_lstat_dereferences_slashed_symlink=no
9473 fi
9474 rm -f conftest.sym conftest.file
9475
9476 fi
9477 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9478 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9479
9480 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9481
9482 cat >>confdefs.h <<_ACEOF
9483 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9484 _ACEOF
9485
9486
9487 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9488 case " $LIBOBJS " in
9489 *" lstat.$ac_objext "* ) ;;
9490 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9491 ;;
9492 esac
9493
9494 fi
9495
9496 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9497 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
9498 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
9499 $as_echo_n "(cached) " >&6
9500 else
9501 if test "$cross_compiling" = yes; then
9502 ac_cv_func_lstat_empty_string_bug=yes
9503 else
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h. */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9511 int
9512 main ()
9513 {
9514 struct stat sbuf;
9515 return lstat ("", &sbuf) == 0;
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9522 case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525 esac
9526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9527 $as_echo "$ac_try_echo") >&5
9528 (eval "$ac_link") 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9532 { (case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9537 $as_echo "$ac_try_echo") >&5
9538 (eval "$ac_try") 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_func_lstat_empty_string_bug=no
9543 else
9544 $as_echo "$as_me: program exited with status $ac_status" >&5
9545 $as_echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ( exit $ac_status )
9549 ac_cv_func_lstat_empty_string_bug=yes
9550 fi
9551 rm -rf conftest.dSYM
9552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9553 fi
9554
9555
9556 fi
9557 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9558 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
9559 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9560 case " $LIBOBJS " in
9561 *" lstat.$ac_objext "* ) ;;
9562 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9563 ;;
9564 esac
9565
9566
9567 cat >>confdefs.h <<_ACEOF
9568 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9569 _ACEOF
9570
9571 fi
9572
9573
9574 for ac_header in stdlib.h
9575 do
9576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9579 $as_echo_n "checking for $ac_header... " >&6; }
9580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9581 $as_echo_n "(cached) " >&6
9582 fi
9583 ac_res=`eval 'as_val=${'$as_ac_Header'}
9584 $as_echo "$as_val"'`
9585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9586 $as_echo "$ac_res" >&6; }
9587 else
9588 # Is the header compilable?
9589 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9590 $as_echo_n "checking $ac_header usability... " >&6; }
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h. */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 $ac_includes_default
9598 #include <$ac_header>
9599 _ACEOF
9600 rm -f conftest.$ac_objext
9601 if { (ac_try="$ac_compile"
9602 case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9607 $as_echo "$ac_try_echo") >&5
9608 (eval "$ac_compile") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest.$ac_objext; then
9618 ac_header_compiler=yes
9619 else
9620 $as_echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 ac_header_compiler=no
9624 fi
9625
9626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9628 $as_echo "$ac_header_compiler" >&6; }
9629
9630 # Is the header present?
9631 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9632 $as_echo_n "checking $ac_header presence... " >&6; }
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h. */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 #include <$ac_header>
9640 _ACEOF
9641 if { (ac_try="$ac_cpp conftest.$ac_ext"
9642 case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645 esac
9646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9647 $as_echo "$ac_try_echo") >&5
9648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } >/dev/null && {
9655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 }; then
9658 ac_header_preproc=yes
9659 else
9660 $as_echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_header_preproc=no
9664 fi
9665
9666 rm -f conftest.err conftest.$ac_ext
9667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668 $as_echo "$ac_header_preproc" >&6; }
9669
9670 # So? What about this header?
9671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9672 yes:no: )
9673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9674 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9676 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9677 ac_header_preproc=yes
9678 ;;
9679 no:yes:* )
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9685 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9687 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9691 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9692
9693 ;;
9694 esac
9695 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9696 $as_echo_n "checking for $ac_header... " >&6; }
9697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 $as_echo_n "(cached) " >&6
9699 else
9700 eval "$as_ac_Header=\$ac_header_preproc"
9701 fi
9702 ac_res=`eval 'as_val=${'$as_ac_Header'}
9703 $as_echo "$as_val"'`
9704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9705 $as_echo "$ac_res" >&6; }
9706
9707 fi
9708 as_val=`eval 'as_val=${'$as_ac_Header'}
9709 $as_echo "$as_val"'`
9710 if test "x$as_val" = x""yes; then
9711 cat >>confdefs.h <<_ACEOF
9712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9713 _ACEOF
9714
9715 fi
9716
9717 done
9718
9719 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9720 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9721 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9722 $as_echo_n "(cached) " >&6
9723 else
9724 if test "$cross_compiling" = yes; then
9725 ac_cv_func_malloc_0_nonnull=no
9726 else
9727 cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h. */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9734 # include <stdlib.h>
9735 #else
9736 char *malloc ();
9737 #endif
9738
9739 int
9740 main ()
9741 {
9742 return ! malloc (0);
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_link") 2>&5
9756 ac_status=$?
9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762 esac
9763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764 $as_echo "$ac_try_echo") >&5
9765 (eval "$ac_try") 2>&5
9766 ac_status=$?
9767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_func_malloc_0_nonnull=yes
9770 else
9771 $as_echo "$as_me: program exited with status $ac_status" >&5
9772 $as_echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775 ( exit $ac_status )
9776 ac_cv_func_malloc_0_nonnull=no
9777 fi
9778 rm -rf conftest.dSYM
9779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9780 fi
9781
9782
9783 fi
9784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9785 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9786 if test $ac_cv_func_malloc_0_nonnull = yes; then
9787
9788 cat >>confdefs.h <<\_ACEOF
9789 #define HAVE_MALLOC 1
9790 _ACEOF
9791
9792 else
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_MALLOC 0
9795 _ACEOF
9796
9797 case " $LIBOBJS " in
9798 *" malloc.$ac_objext "* ) ;;
9799 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9800 ;;
9801 esac
9802
9803
9804 cat >>confdefs.h <<\_ACEOF
9805 #define malloc rpl_malloc
9806 _ACEOF
9807
9808 fi
9809
9810
9811
9812 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9813 $as_echo_n "checking for working memcmp... " >&6; }
9814 if test "${ac_cv_func_memcmp_working+set}" = set; then
9815 $as_echo_n "(cached) " >&6
9816 else
9817 if test "$cross_compiling" = yes; then
9818 ac_cv_func_memcmp_working=no
9819 else
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 $ac_includes_default
9827 int
9828 main ()
9829 {
9830
9831 /* Some versions of memcmp are not 8-bit clean. */
9832 char c0 = '\100', c1 = '\200', c2 = '\201';
9833 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9834 return 1;
9835
9836 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9837 or more and with at least one buffer not starting on a 4-byte boundary.
9838 William Lewis provided this test program. */
9839 {
9840 char foo[21];
9841 char bar[21];
9842 int i;
9843 for (i = 0; i < 4; i++)
9844 {
9845 char *a = foo + i;
9846 char *b = bar + i;
9847 strcpy (a, "--------01111111");
9848 strcpy (b, "--------10000000");
9849 if (memcmp (a, b, 16) >= 0)
9850 return 1;
9851 }
9852 return 0;
9853 }
9854
9855 ;
9856 return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9866 $as_echo "$ac_try_echo") >&5
9867 (eval "$ac_link") 2>&5
9868 ac_status=$?
9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9876 $as_echo "$ac_try_echo") >&5
9877 (eval "$ac_try") 2>&5
9878 ac_status=$?
9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_func_memcmp_working=yes
9882 else
9883 $as_echo "$as_me: program exited with status $ac_status" >&5
9884 $as_echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ( exit $ac_status )
9888 ac_cv_func_memcmp_working=no
9889 fi
9890 rm -rf conftest.dSYM
9891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9892 fi
9893
9894
9895 fi
9896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9897 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9898 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9899 *" memcmp.$ac_objext "* ) ;;
9900 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9901 ;;
9902 esac
9903
9904
9905
9906
9907 for ac_header in stdlib.h unistd.h
9908 do
9909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9912 $as_echo_n "checking for $ac_header... " >&6; }
9913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9914 $as_echo_n "(cached) " >&6
9915 fi
9916 ac_res=`eval 'as_val=${'$as_ac_Header'}
9917 $as_echo "$as_val"'`
9918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9919 $as_echo "$ac_res" >&6; }
9920 else
9921 # Is the header compilable?
9922 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9923 $as_echo_n "checking $ac_header usability... " >&6; }
9924 cat >conftest.$ac_ext <<_ACEOF
9925 /* confdefs.h. */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9930 $ac_includes_default
9931 #include <$ac_header>
9932 _ACEOF
9933 rm -f conftest.$ac_objext
9934 if { (ac_try="$ac_compile"
9935 case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9940 $as_echo "$ac_try_echo") >&5
9941 (eval "$ac_compile") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest.$ac_objext; then
9951 ac_header_compiler=yes
9952 else
9953 $as_echo "$as_me: failed program was:" >&5
9954 sed 's/^/| /' conftest.$ac_ext >&5
9955
9956 ac_header_compiler=no
9957 fi
9958
9959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9961 $as_echo "$ac_header_compiler" >&6; }
9962
9963 # Is the header present?
9964 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9965 $as_echo_n "checking $ac_header presence... " >&6; }
9966 cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h. */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h. */
9972 #include <$ac_header>
9973 _ACEOF
9974 if { (ac_try="$ac_cpp conftest.$ac_ext"
9975 case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978 esac
9979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9980 $as_echo "$ac_try_echo") >&5
9981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } >/dev/null && {
9988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 }; then
9991 ac_header_preproc=yes
9992 else
9993 $as_echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 ac_header_preproc=no
9997 fi
9998
9999 rm -f conftest.err conftest.$ac_ext
10000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10001 $as_echo "$ac_header_preproc" >&6; }
10002
10003 # So? What about this header?
10004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10005 yes:no: )
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10010 ac_header_preproc=yes
10011 ;;
10012 no:yes:* )
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10014 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10024 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10025
10026 ;;
10027 esac
10028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10029 $as_echo_n "checking for $ac_header... " >&6; }
10030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10031 $as_echo_n "(cached) " >&6
10032 else
10033 eval "$as_ac_Header=\$ac_header_preproc"
10034 fi
10035 ac_res=`eval 'as_val=${'$as_ac_Header'}
10036 $as_echo "$as_val"'`
10037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10038 $as_echo "$ac_res" >&6; }
10039
10040 fi
10041 as_val=`eval 'as_val=${'$as_ac_Header'}
10042 $as_echo "$as_val"'`
10043 if test "x$as_val" = x""yes; then
10044 cat >>confdefs.h <<_ACEOF
10045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10046 _ACEOF
10047
10048 fi
10049
10050 done
10051
10052
10053 for ac_func in getpagesize
10054 do
10055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10056 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10057 $as_echo_n "checking for $ac_func... " >&6; }
10058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10059 $as_echo_n "(cached) " >&6
10060 else
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10069 #define $ac_func innocuous_$ac_func
10070
10071 /* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char $ac_func (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
10075
10076 #ifdef __STDC__
10077 # include <limits.h>
10078 #else
10079 # include <assert.h>
10080 #endif
10081
10082 #undef $ac_func
10083
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char $ac_func ();
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined __stub_$ac_func || defined __stub___$ac_func
10095 choke me
10096 #endif
10097
10098 int
10099 main ()
10100 {
10101 return $ac_func ();
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10113 $as_echo "$ac_try_echo") >&5
10114 (eval "$ac_link") 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext && {
10124 test "$cross_compiling" = yes ||
10125 $as_test_x conftest$ac_exeext
10126 }; then
10127 eval "$as_ac_var=yes"
10128 else
10129 $as_echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 eval "$as_ac_var=no"
10133 fi
10134
10135 rm -rf conftest.dSYM
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138 fi
10139 ac_res=`eval 'as_val=${'$as_ac_var'}
10140 $as_echo "$as_val"'`
10141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10142 $as_echo "$ac_res" >&6; }
10143 as_val=`eval 'as_val=${'$as_ac_var'}
10144 $as_echo "$as_val"'`
10145 if test "x$as_val" = x""yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10148 _ACEOF
10149
10150 fi
10151 done
10152
10153 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10154 $as_echo_n "checking for working mmap... " >&6; }
10155 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10156 $as_echo_n "(cached) " >&6
10157 else
10158 if test "$cross_compiling" = yes; then
10159 ac_cv_func_mmap_fixed_mapped=no
10160 else
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h. */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 /* malloc might have been renamed as rpl_malloc. */
10169 #undef malloc
10170
10171 /* Thanks to Mike Haertel and Jim Avera for this test.
10172 Here is a matrix of mmap possibilities:
10173 mmap private not fixed
10174 mmap private fixed at somewhere currently unmapped
10175 mmap private fixed at somewhere already mapped
10176 mmap shared not fixed
10177 mmap shared fixed at somewhere currently unmapped
10178 mmap shared fixed at somewhere already mapped
10179 For private mappings, we should verify that changes cannot be read()
10180 back from the file, nor mmap's back from the file at a different
10181 address. (There have been systems where private was not correctly
10182 implemented like the infamous i386 svr4.0, and systems where the
10183 VM page cache was not coherent with the file system buffer cache
10184 like early versions of FreeBSD and possibly contemporary NetBSD.)
10185 For shared mappings, we should conversely verify that changes get
10186 propagated back to all the places they're supposed to be.
10187
10188 Grep wants private fixed already mapped.
10189 The main things grep needs to know about mmap are:
10190 * does it exist and is it safe to write into the mmap'd area
10191 * how to use it (BSD variants) */
10192
10193 #include <fcntl.h>
10194 #include <sys/mman.h>
10195
10196 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10197 char *malloc ();
10198 #endif
10199
10200 /* This mess was copied from the GNU getpagesize.h. */
10201 #ifndef HAVE_GETPAGESIZE
10202 /* Assume that all systems that can run configure have sys/param.h. */
10203 # ifndef HAVE_SYS_PARAM_H
10204 # define HAVE_SYS_PARAM_H 1
10205 # endif
10206
10207 # ifdef _SC_PAGESIZE
10208 # define getpagesize() sysconf(_SC_PAGESIZE)
10209 # else /* no _SC_PAGESIZE */
10210 # ifdef HAVE_SYS_PARAM_H
10211 # include <sys/param.h>
10212 # ifdef EXEC_PAGESIZE
10213 # define getpagesize() EXEC_PAGESIZE
10214 # else /* no EXEC_PAGESIZE */
10215 # ifdef NBPG
10216 # define getpagesize() NBPG * CLSIZE
10217 # ifndef CLSIZE
10218 # define CLSIZE 1
10219 # endif /* no CLSIZE */
10220 # else /* no NBPG */
10221 # ifdef NBPC
10222 # define getpagesize() NBPC
10223 # else /* no NBPC */
10224 # ifdef PAGESIZE
10225 # define getpagesize() PAGESIZE
10226 # endif /* PAGESIZE */
10227 # endif /* no NBPC */
10228 # endif /* no NBPG */
10229 # endif /* no EXEC_PAGESIZE */
10230 # else /* no HAVE_SYS_PARAM_H */
10231 # define getpagesize() 8192 /* punt totally */
10232 # endif /* no HAVE_SYS_PARAM_H */
10233 # endif /* no _SC_PAGESIZE */
10234
10235 #endif /* no HAVE_GETPAGESIZE */
10236
10237 int
10238 main ()
10239 {
10240 char *data, *data2, *data3;
10241 int i, pagesize;
10242 int fd;
10243
10244 pagesize = getpagesize ();
10245
10246 /* First, make a file with some known garbage in it. */
10247 data = (char *) malloc (pagesize);
10248 if (!data)
10249 return 1;
10250 for (i = 0; i < pagesize; ++i)
10251 *(data + i) = rand ();
10252 umask (0);
10253 fd = creat ("conftest.mmap", 0600);
10254 if (fd < 0)
10255 return 1;
10256 if (write (fd, data, pagesize) != pagesize)
10257 return 1;
10258 close (fd);
10259
10260 /* Next, try to mmap the file at a fixed address which already has
10261 something else allocated at it. If we can, also make sure that
10262 we see the same garbage. */
10263 fd = open ("conftest.mmap", O_RDWR);
10264 if (fd < 0)
10265 return 1;
10266 data2 = (char *) malloc (2 * pagesize);
10267 if (!data2)
10268 return 1;
10269 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10270 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10271 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10272 return 1;
10273 for (i = 0; i < pagesize; ++i)
10274 if (*(data + i) != *(data2 + i))
10275 return 1;
10276
10277 /* Finally, make sure that changes to the mapped area do not
10278 percolate back to the file as seen by read(). (This is a bug on
10279 some variants of i386 svr4.0.) */
10280 for (i = 0; i < pagesize; ++i)
10281 *(data2 + i) = *(data2 + i) + 1;
10282 data3 = (char *) malloc (pagesize);
10283 if (!data3)
10284 return 1;
10285 if (read (fd, data3, pagesize) != pagesize)
10286 return 1;
10287 for (i = 0; i < pagesize; ++i)
10288 if (*(data + i) != *(data3 + i))
10289 return 1;
10290 close (fd);
10291 return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299 esac
10300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301 $as_echo "$ac_try_echo") >&5
10302 (eval "$ac_link") 2>&5
10303 ac_status=$?
10304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10311 $as_echo "$ac_try_echo") >&5
10312 (eval "$ac_try") 2>&5
10313 ac_status=$?
10314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_func_mmap_fixed_mapped=yes
10317 else
10318 $as_echo "$as_me: program exited with status $ac_status" >&5
10319 $as_echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ( exit $ac_status )
10323 ac_cv_func_mmap_fixed_mapped=no
10324 fi
10325 rm -rf conftest.dSYM
10326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10327 fi
10328
10329
10330 fi
10331 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10332 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10334
10335 cat >>confdefs.h <<\_ACEOF
10336 #define HAVE_MMAP 1
10337 _ACEOF
10338
10339 fi
10340 rm -f conftest.mmap
10341
10342
10343 for ac_header in stdlib.h
10344 do
10345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348 $as_echo_n "checking for $ac_header... " >&6; }
10349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 $as_echo_n "(cached) " >&6
10351 fi
10352 ac_res=`eval 'as_val=${'$as_ac_Header'}
10353 $as_echo "$as_val"'`
10354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355 $as_echo "$ac_res" >&6; }
10356 else
10357 # Is the header compilable?
10358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359 $as_echo_n "checking $ac_header usability... " >&6; }
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 #include <$ac_header>
10368 _ACEOF
10369 rm -f conftest.$ac_objext
10370 if { (ac_try="$ac_compile"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10388 else
10389 $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 ac_header_compiler=no
10393 fi
10394
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 $as_echo "$ac_header_compiler" >&6; }
10398
10399 # Is the header present?
10400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 $as_echo_n "checking $ac_header presence... " >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <$ac_header>
10409 _ACEOF
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414 esac
10415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416 $as_echo "$ac_try_echo") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 }; then
10427 ac_header_preproc=yes
10428 else
10429 $as_echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10431
10432 ac_header_preproc=no
10433 fi
10434
10435 rm -f conftest.err conftest.$ac_ext
10436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437 $as_echo "$ac_header_preproc" >&6; }
10438
10439 # So? What about this header?
10440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 yes:no: )
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10447 ;;
10448 no:yes:* )
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461
10462 ;;
10463 esac
10464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 $as_echo_n "checking for $ac_header... " >&6; }
10466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 $as_echo_n "(cached) " >&6
10468 else
10469 eval "$as_ac_Header=\$ac_header_preproc"
10470 fi
10471 ac_res=`eval 'as_val=${'$as_ac_Header'}
10472 $as_echo "$as_val"'`
10473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10474 $as_echo "$ac_res" >&6; }
10475
10476 fi
10477 as_val=`eval 'as_val=${'$as_ac_Header'}
10478 $as_echo "$as_val"'`
10479 if test "x$as_val" = x""yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 fi
10485
10486 done
10487
10488 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10489 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10490 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test "$cross_compiling" = yes; then
10494 ac_cv_func_realloc_0_nonnull=no
10495 else
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h. */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10503 # include <stdlib.h>
10504 #else
10505 char *realloc ();
10506 #endif
10507
10508 int
10509 main ()
10510 {
10511 return ! realloc (0, 0);
10512 ;
10513 return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest$ac_exeext
10517 if { (ac_try="$ac_link"
10518 case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521 esac
10522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523 $as_echo "$ac_try_echo") >&5
10524 (eval "$ac_link") 2>&5
10525 ac_status=$?
10526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531 esac
10532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10533 $as_echo "$ac_try_echo") >&5
10534 (eval "$ac_try") 2>&5
10535 ac_status=$?
10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 ac_cv_func_realloc_0_nonnull=yes
10539 else
10540 $as_echo "$as_me: program exited with status $ac_status" >&5
10541 $as_echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 ( exit $ac_status )
10545 ac_cv_func_realloc_0_nonnull=no
10546 fi
10547 rm -rf conftest.dSYM
10548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10549 fi
10550
10551
10552 fi
10553 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10554 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10555 if test $ac_cv_func_realloc_0_nonnull = yes; then
10556
10557 cat >>confdefs.h <<\_ACEOF
10558 #define HAVE_REALLOC 1
10559 _ACEOF
10560
10561 else
10562 cat >>confdefs.h <<\_ACEOF
10563 #define HAVE_REALLOC 0
10564 _ACEOF
10565
10566 case " $LIBOBJS " in
10567 *" realloc.$ac_objext "* ) ;;
10568 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10569 ;;
10570 esac
10571
10572
10573 cat >>confdefs.h <<\_ACEOF
10574 #define realloc rpl_realloc
10575 _ACEOF
10576
10577 fi
10578
10579
10580
10581 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10582 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10583 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
10584 $as_echo_n "(cached) " >&6
10585 else
10586 if test "$cross_compiling" = yes; then
10587 ac_cv_func_stat_empty_string_bug=yes
10588 else
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10595 $ac_includes_default
10596 int
10597 main ()
10598 {
10599 struct stat sbuf;
10600 return stat ("", &sbuf) == 0;
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_link") 2>&5
10614 ac_status=$?
10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10622 $as_echo "$ac_try_echo") >&5
10623 (eval "$ac_try") 2>&5
10624 ac_status=$?
10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_func_stat_empty_string_bug=no
10628 else
10629 $as_echo "$as_me: program exited with status $ac_status" >&5
10630 $as_echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ( exit $ac_status )
10634 ac_cv_func_stat_empty_string_bug=yes
10635 fi
10636 rm -rf conftest.dSYM
10637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10638 fi
10639
10640
10641 fi
10642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10643 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10644 if test $ac_cv_func_stat_empty_string_bug = yes; then
10645 case " $LIBOBJS " in
10646 *" stat.$ac_objext "* ) ;;
10647 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10648 ;;
10649 esac
10650
10651
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_STAT_EMPTY_STRING_BUG 1
10654 _ACEOF
10655
10656 fi
10657
10658 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10659 $as_echo_n "checking for working strtod... " >&6; }
10660 if test "${ac_cv_func_strtod+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10662 else
10663 if test "$cross_compiling" = yes; then
10664 ac_cv_func_strtod=no
10665 else
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h. */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672
10673 $ac_includes_default
10674 #ifndef strtod
10675 double strtod ();
10676 #endif
10677 int
10678 main()
10679 {
10680 {
10681 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10682 char *string = " +69";
10683 char *term;
10684 double value;
10685 value = strtod (string, &term);
10686 if (value != 69 || term != (string + 4))
10687 return 1;
10688 }
10689
10690 {
10691 /* Under Solaris 2.4, strtod returns the wrong value for the
10692 terminating character under some conditions. */
10693 char *string = "NaN";
10694 char *term;
10695 strtod (string, &term);
10696 if (term != string && *(term - 1) == 0)
10697 return 1;
10698 }
10699 return 0;
10700 }
10701
10702 _ACEOF
10703 rm -f conftest$ac_exeext
10704 if { (ac_try="$ac_link"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711 (eval "$ac_link") 2>&5
10712 ac_status=$?
10713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718 esac
10719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10720 $as_echo "$ac_try_echo") >&5
10721 (eval "$ac_try") 2>&5
10722 ac_status=$?
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_func_strtod=yes
10726 else
10727 $as_echo "$as_me: program exited with status $ac_status" >&5
10728 $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ( exit $ac_status )
10732 ac_cv_func_strtod=no
10733 fi
10734 rm -rf conftest.dSYM
10735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10736 fi
10737
10738
10739 fi
10740 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10741 $as_echo "$ac_cv_func_strtod" >&6; }
10742 if test $ac_cv_func_strtod = no; then
10743 case " $LIBOBJS " in
10744 *" strtod.$ac_objext "* ) ;;
10745 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10746 ;;
10747 esac
10748
10749 { $as_echo "$as_me:$LINENO: checking for pow" >&5
10750 $as_echo_n "checking for pow... " >&6; }
10751 if test "${ac_cv_func_pow+set}" = set; then
10752 $as_echo_n "(cached) " >&6
10753 else
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 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762 #define pow innocuous_pow
10763
10764 /* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char pow (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
10768
10769 #ifdef __STDC__
10770 # include <limits.h>
10771 #else
10772 # include <assert.h>
10773 #endif
10774
10775 #undef pow
10776
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char pow ();
10784 /* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
10787 #if defined __stub_pow || defined __stub___pow
10788 choke me
10789 #endif
10790
10791 int
10792 main ()
10793 {
10794 return pow ();
10795 ;
10796 return 0;
10797 }
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804 esac
10805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806 $as_echo "$ac_try_echo") >&5
10807 (eval "$ac_link") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext && {
10817 test "$cross_compiling" = yes ||
10818 $as_test_x conftest$ac_exeext
10819 }; then
10820 ac_cv_func_pow=yes
10821 else
10822 $as_echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_func_pow=no
10826 fi
10827
10828 rm -rf conftest.dSYM
10829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830 conftest$ac_exeext conftest.$ac_ext
10831 fi
10832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10833 $as_echo "$ac_cv_func_pow" >&6; }
10834
10835 if test $ac_cv_func_pow = no; then
10836 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10837 $as_echo_n "checking for pow in -lm... " >&6; }
10838 if test "${ac_cv_lib_m_pow+set}" = set; then
10839 $as_echo_n "(cached) " >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lm $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char pow ();
10857 int
10858 main ()
10859 {
10860 return pow ();
10861 ;
10862 return 0;
10863 }
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870 esac
10871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_link") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest$ac_exeext && {
10883 test "$cross_compiling" = yes ||
10884 $as_test_x conftest$ac_exeext
10885 }; then
10886 ac_cv_lib_m_pow=yes
10887 else
10888 $as_echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_cv_lib_m_pow=no
10892 fi
10893
10894 rm -rf conftest.dSYM
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10900 $as_echo "$ac_cv_lib_m_pow" >&6; }
10901 if test "x$ac_cv_lib_m_pow" = x""yes; then
10902 POW_LIB=-lm
10903 else
10904 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10905 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10906 fi
10907
10908 fi
10909
10910 fi
10911
10912
10913 for ac_func in vprintf
10914 do
10915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10916 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10917 $as_echo_n "checking for $ac_func... " >&6; }
10918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10919 $as_echo_n "(cached) " >&6
10920 else
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10929 #define $ac_func innocuous_$ac_func
10930
10931 /* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func (); below.
10933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10934 <limits.h> exists even on freestanding compilers. */
10935
10936 #ifdef __STDC__
10937 # include <limits.h>
10938 #else
10939 # include <assert.h>
10940 #endif
10941
10942 #undef $ac_func
10943
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char $ac_func ();
10951 /* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954 #if defined __stub_$ac_func || defined __stub___$ac_func
10955 choke me
10956 #endif
10957
10958 int
10959 main ()
10960 {
10961 return $ac_func ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (ac_try="$ac_link"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10973 $as_echo "$ac_try_echo") >&5
10974 (eval "$ac_link") 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
10979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } && {
10981 test -z "$ac_c_werror_flag" ||
10982 test ! -s conftest.err
10983 } && test -s conftest$ac_exeext && {
10984 test "$cross_compiling" = yes ||
10985 $as_test_x conftest$ac_exeext
10986 }; then
10987 eval "$as_ac_var=yes"
10988 else
10989 $as_echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10991
10992 eval "$as_ac_var=no"
10993 fi
10994
10995 rm -rf conftest.dSYM
10996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997 conftest$ac_exeext conftest.$ac_ext
10998 fi
10999 ac_res=`eval 'as_val=${'$as_ac_var'}
11000 $as_echo "$as_val"'`
11001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11002 $as_echo "$ac_res" >&6; }
11003 as_val=`eval 'as_val=${'$as_ac_var'}
11004 $as_echo "$as_val"'`
11005 if test "x$as_val" = x""yes; then
11006 cat >>confdefs.h <<_ACEOF
11007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11008 _ACEOF
11009
11010 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11011 $as_echo_n "checking for _doprnt... " >&6; }
11012 if test "${ac_cv_func__doprnt+set}" = set; then
11013 $as_echo_n "(cached) " >&6
11014 else
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define _doprnt innocuous__doprnt
11024
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char _doprnt (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11029
11030 #ifdef __STDC__
11031 # include <limits.h>
11032 #else
11033 # include <assert.h>
11034 #endif
11035
11036 #undef _doprnt
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char _doprnt ();
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub__doprnt || defined __stub____doprnt
11049 choke me
11050 #endif
11051
11052 int
11053 main ()
11054 {
11055 return _doprnt ();
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11080 }; then
11081 ac_cv_func__doprnt=yes
11082 else
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_cv_func__doprnt=no
11087 fi
11088
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11092 fi
11093 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11094 $as_echo "$ac_cv_func__doprnt" >&6; }
11095 if test "x$ac_cv_func__doprnt" = x""yes; then
11096
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_DOPRNT 1
11099 _ACEOF
11100
11101 fi
11102
11103 fi
11104 done
11105
11106
11107
11108 ################################################################################
11109 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11110 $as_echo_n "checking whether to use static linking... " >&6; }
11111 # Check whether --enable-static_link was given.
11112 if test "${enable_static_link+set}" = set; then
11113 enableval=$enable_static_link; STATIC_LINK=$enableval
11114 else
11115 STATIC_LINK=no
11116 fi
11117
11118 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11119 $as_echo "$STATIC_LINK" >&6; }
11120
11121 ################################################################################
11122
11123
11124 ################################################################################
11125 { $as_echo "$as_me:$LINENO: checking file owner" >&5
11126 $as_echo_n "checking file owner... " >&6; }
11127
11128 # Check whether --with-user was given.
11129 if test "${with_user+set}" = set; then
11130 withval=$with_user; OWNER=$withval
11131 fi
11132
11133 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11134 $as_echo "$OWNER" >&6; }
11135
11136 if test x$OWNER != x; then
11137 INSTALL="$INSTALL -o $OWNER"
11138 fi
11139
11140 ################################################################################
11141 { $as_echo "$as_me:$LINENO: checking group owner" >&5
11142 $as_echo_n "checking group owner... " >&6; }
11143
11144 # Check whether --with-group was given.
11145 if test "${with_group+set}" = set; then
11146 withval=$with_group; GROUP=$withval
11147 fi
11148
11149 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11150 $as_echo "$GROUP" >&6; }
11151
11152 if test x$GROUP != x; then
11153 INSTALL="$INSTALL -g $GROUP"
11154 fi
11155
11156 ################################################################################
11157 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
11158 $as_echo_n "checking device node uid... " >&6; }
11159
11160
11161 # Check whether --with-device-uid was given.
11162 if test "${with_device_uid+set}" = set; then
11163 withval=$with_device_uid; DM_DEVICE_UID=$withval
11164 else
11165 DM_DEVICE_UID=0
11166 fi
11167
11168 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11169 $as_echo "$DM_DEVICE_UID" >&6; }
11170
11171 ################################################################################
11172 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
11173 $as_echo_n "checking device node gid... " >&6; }
11174
11175
11176 # Check whether --with-device-gid was given.
11177 if test "${with_device_gid+set}" = set; then
11178 withval=$with_device_gid; DM_DEVICE_GID=$withval
11179 else
11180 DM_DEVICE_GID=0
11181 fi
11182
11183 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11184 $as_echo "$DM_DEVICE_GID" >&6; }
11185
11186 ################################################################################
11187 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
11188 $as_echo_n "checking device node mode... " >&6; }
11189
11190
11191 # Check whether --with-device-mode was given.
11192 if test "${with_device_mode+set}" = set; then
11193 withval=$with_device_mode; DM_DEVICE_MODE=$withval
11194 else
11195 DM_DEVICE_MODE=0600
11196 fi
11197
11198 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11199 $as_echo "$DM_DEVICE_MODE" >&6; }
11200
11201 ################################################################################
11202 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11203 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
11204 # Check whether --enable-lvm1_fallback was given.
11205 if test "${enable_lvm1_fallback+set}" = set; then
11206 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11207 else
11208 LVM1_FALLBACK=no
11209 fi
11210
11211 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11212 $as_echo "$LVM1_FALLBACK" >&6; }
11213
11214 if test x$LVM1_FALLBACK = xyes; then
11215
11216 cat >>confdefs.h <<\_ACEOF
11217 #define LVM1_FALLBACK 1
11218 _ACEOF
11219
11220 fi
11221
11222 ################################################################################
11223 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11224 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
11225
11226 # Check whether --with-lvm1 was given.
11227 if test "${with_lvm1+set}" = set; then
11228 withval=$with_lvm1; LVM1=$withval
11229 else
11230 LVM1=internal
11231 fi
11232
11233 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11234 $as_echo "$LVM1" >&6; }
11235
11236 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
11237 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
11238 " >&5
11239 $as_echo "$as_me: error: --with-lvm1 parameter invalid
11240 " >&2;}
11241 { (exit 1); exit 1; }; }
11242 fi;
11243
11244 if test x$LVM1 = xinternal; then
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define LVM1_INTERNAL 1
11248 _ACEOF
11249
11250 fi
11251
11252 ################################################################################
11253 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11254 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
11255
11256 # Check whether --with-pool was given.
11257 if test "${with_pool+set}" = set; then
11258 withval=$with_pool; POOL=$withval
11259 else
11260 POOL=internal
11261 fi
11262
11263 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
11264 $as_echo "$POOL" >&6; }
11265
11266 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
11267 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
11268 " >&5
11269 $as_echo "$as_me: error: --with-pool parameter invalid
11270 " >&2;}
11271 { (exit 1); exit 1; }; }
11272 fi;
11273
11274 if test x$POOL = xinternal; then
11275
11276 cat >>confdefs.h <<\_ACEOF
11277 #define POOL_INTERNAL 1
11278 _ACEOF
11279
11280 fi
11281
11282 ################################################################################
11283 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11284 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
11285
11286 # Check whether --with-cluster was given.
11287 if test "${with_cluster+set}" = set; then
11288 withval=$with_cluster; CLUSTER=$withval
11289 fi
11290
11291 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11292 $as_echo "$CLUSTER" >&6; }
11293
11294 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
11295 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
11296 " >&5
11297 $as_echo "$as_me: error: --with-cluster parameter invalid
11298 " >&2;}
11299 { (exit 1); exit 1; }; }
11300 fi;
11301
11302 if test x$CLUSTER = xinternal; then
11303
11304 cat >>confdefs.h <<\_ACEOF
11305 #define CLUSTER_LOCKING_INTERNAL 1
11306 _ACEOF
11307
11308 fi
11309
11310 ################################################################################
11311 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11312 $as_echo_n "checking whether to include snapshots... " >&6; }
11313
11314 # Check whether --with-snapshots was given.
11315 if test "${with_snapshots+set}" = set; then
11316 withval=$with_snapshots; SNAPSHOTS=$withval
11317 else
11318 SNAPSHOTS=internal
11319 fi
11320
11321 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11322 $as_echo "$SNAPSHOTS" >&6; }
11323
11324 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
11325 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
11326 " >&5
11327 $as_echo "$as_me: error: --with-snapshots parameter invalid
11328 " >&2;}
11329 { (exit 1); exit 1; }; }
11330 fi;
11331
11332 if test x$SNAPSHOTS = xinternal; then
11333
11334 cat >>confdefs.h <<\_ACEOF
11335 #define SNAPSHOT_INTERNAL 1
11336 _ACEOF
11337
11338 fi
11339
11340 ################################################################################
11341 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11342 $as_echo_n "checking whether to include mirrors... " >&6; }
11343
11344 # Check whether --with-mirrors was given.
11345 if test "${with_mirrors+set}" = set; then
11346 withval=$with_mirrors; MIRRORS=$withval
11347 else
11348 MIRRORS=internal
11349 fi
11350
11351 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11352 $as_echo "$MIRRORS" >&6; }
11353
11354 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
11355 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
11356 " >&5
11357 $as_echo "$as_me: error: --with-mirrors parameter invalid
11358 " >&2;}
11359 { (exit 1); exit 1; }; }
11360 fi;
11361
11362 if test x$MIRRORS = xinternal; then
11363
11364 cat >>confdefs.h <<\_ACEOF
11365 #define MIRRORED_INTERNAL 1
11366 _ACEOF
11367
11368 fi
11369
11370 ################################################################################
11371 { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11372 $as_echo_n "checking whether to include replicators... " >&6; }
11373
11374 # Check whether --with-replicators was given.
11375 if test "${with_replicators+set}" = set; then
11376 withval=$with_replicators; REPLICATORS=$withval
11377 else
11378 REPLICATORS=none
11379 fi
11380
11381 { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11382 $as_echo "$REPLICATORS" >&6; }
11383
11384 case "$REPLICATORS" in
11385 none|shared) ;;
11386 internal)
11387 cat >>confdefs.h <<\_ACEOF
11388 #define REPLICATOR_INTERNAL 1
11389 _ACEOF
11390 ;;
11391 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11392 $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11393 { (exit 1); exit 1; }; } ;;
11394 esac
11395
11396 ################################################################################
11397 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11398 $as_echo_n "checking whether to enable readline... " >&6; }
11399 # Check whether --enable-readline was given.
11400 if test "${enable_readline+set}" = set; then
11401 enableval=$enable_readline; READLINE=$enableval
11402 else
11403 READLINE=maybe
11404 fi
11405
11406 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11407 $as_echo "$READLINE" >&6; }
11408
11409 ################################################################################
11410 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11411 $as_echo_n "checking whether to enable realtime support... " >&6; }
11412 # Check whether --enable-realtime was given.
11413 if test "${enable_realtime+set}" = set; then
11414 enableval=$enable_realtime; REALTIME=$enableval
11415 fi
11416
11417 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11418 $as_echo "$REALTIME" >&6; }
11419
11420 ################################################################################
11421 pkg_config_init() {
11422
11423
11424 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11425 if test -n "$ac_tool_prefix"; then
11426 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11427 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11429 $as_echo_n "checking for $ac_word... " >&6; }
11430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11431 $as_echo_n "(cached) " >&6
11432 else
11433 case $PKG_CONFIG in
11434 [\\/]* | ?:[\\/]*)
11435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11436 ;;
11437 *)
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $PATH
11440 do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449 done
11450 done
11451 IFS=$as_save_IFS
11452
11453 ;;
11454 esac
11455 fi
11456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11457 if test -n "$PKG_CONFIG"; then
11458 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11459 $as_echo "$PKG_CONFIG" >&6; }
11460 else
11461 { $as_echo "$as_me:$LINENO: result: no" >&5
11462 $as_echo "no" >&6; }
11463 fi
11464
11465
11466 fi
11467 if test -z "$ac_cv_path_PKG_CONFIG"; then
11468 ac_pt_PKG_CONFIG=$PKG_CONFIG
11469 # Extract the first word of "pkg-config", so it can be a program name with args.
11470 set dummy pkg-config; ac_word=$2
11471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11474 $as_echo_n "(cached) " >&6
11475 else
11476 case $ac_pt_PKG_CONFIG in
11477 [\\/]* | ?:[\\/]*)
11478 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11479 ;;
11480 *)
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492 done
11493 done
11494 IFS=$as_save_IFS
11495
11496 ;;
11497 esac
11498 fi
11499 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11500 if test -n "$ac_pt_PKG_CONFIG"; then
11501 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11502 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11503 else
11504 { $as_echo "$as_me:$LINENO: result: no" >&5
11505 $as_echo "no" >&6; }
11506 fi
11507
11508 if test "x$ac_pt_PKG_CONFIG" = x; then
11509 PKG_CONFIG=""
11510 else
11511 case $cross_compiling:$ac_tool_warned in
11512 yes:)
11513 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11515 ac_tool_warned=yes ;;
11516 esac
11517 PKG_CONFIG=$ac_pt_PKG_CONFIG
11518 fi
11519 else
11520 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11521 fi
11522
11523 fi
11524 if test -n "$PKG_CONFIG"; then
11525 _pkg_min_version=0.9.0
11526 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11527 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11528 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11529 { $as_echo "$as_me:$LINENO: result: yes" >&5
11530 $as_echo "yes" >&6; }
11531 else
11532 { $as_echo "$as_me:$LINENO: result: no" >&5
11533 $as_echo "no" >&6; }
11534 PKG_CONFIG=""
11535 fi
11536
11537 fi
11538
11539 pkg_failed=no
11540 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11541 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
11542
11543 if test -n "$PKGCONFIGINIT_CFLAGS"; then
11544 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
11545 elif test -n "$PKG_CONFIG"; then
11546 if test -n "$PKG_CONFIG" && \
11547 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11548 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11549 ac_status=$?
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; then
11552 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
11553 else
11554 pkg_failed=yes
11555 fi
11556 else
11557 pkg_failed=untried
11558 fi
11559 if test -n "$PKGCONFIGINIT_LIBS"; then
11560 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
11561 elif test -n "$PKG_CONFIG"; then
11562 if test -n "$PKG_CONFIG" && \
11563 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11564 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11565 ac_status=$?
11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; then
11568 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
11569 else
11570 pkg_failed=yes
11571 fi
11572 else
11573 pkg_failed=untried
11574 fi
11575
11576
11577
11578 if test $pkg_failed = yes; then
11579
11580 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11581 _pkg_short_errors_supported=yes
11582 else
11583 _pkg_short_errors_supported=no
11584 fi
11585 if test $_pkg_short_errors_supported = yes; then
11586 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
11587 else
11588 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
11589 fi
11590 # Put the nasty error message in config.log where it belongs
11591 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
11592
11593 { $as_echo "$as_me:$LINENO: result: no" >&5
11594 $as_echo "no" >&6; }
11595 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11596 $as_echo "pkg-config initialized" >&6; }
11597 elif test $pkg_failed = untried; then
11598 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11599 $as_echo "pkg-config initialized" >&6; }
11600 else
11601 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11602 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
11603 { $as_echo "$as_me:$LINENO: result: yes" >&5
11604 $as_echo "yes" >&6; }
11605 :
11606 fi
11607 PKGCONFIG_INIT=1
11608 }
11609
11610 ################################################################################
11611 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11612 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11613
11614 # Check whether --with-clvmd was given.
11615 if test "${with_clvmd+set}" = set; then
11616 withval=$with_clvmd; CLVMD=$withval
11617 else
11618 CLVMD=none
11619 fi
11620
11621 if test x$CLVMD = xyes; then
11622 CLVMD=all
11623 fi
11624 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11625 $as_echo "$CLVMD" >&6; }
11626
11627 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11628 CLUSTER=internal
11629 fi
11630
11631 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11632 pkg_config_init
11633 fi
11634
11635
11636 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11637 BUILDGULM=yes
11638 fi
11639 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11640 BUILDCOROSYNC=yes
11641 fi
11642 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11643 BUILDOPENAIS=yes
11644 fi
11645 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11646 BUILDCMAN=yes
11647 fi
11648
11649 if test x$BUILDGULM = xyes; then
11650 if test x$BUILDCOROSYNC = xyes || \
11651 test x$BUILDOPENAIS = xyes; then
11652 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11653 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11654 { (exit 1); exit 1; }; }
11655 fi
11656 fi
11657
11658 soft_bailout() {
11659 NOTFOUND=1
11660 }
11661
11662 hard_bailout() {
11663 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11664 $as_echo "$as_me: error: bailing out" >&2;}
11665 { (exit 1); exit 1; }; }
11666 }
11667
11668 if test x$CLVMD = xall; then
11669 bailout=soft_bailout
11670 BUILDGULM=yes
11671 BUILDCMAN=yes
11672 BUILDCOROSYNC=yes
11673 BUILDOPENAIS=yes
11674 else
11675 bailout=hard_bailout
11676 fi
11677
11678 check_lib_no_libs() {
11679 lib_no_libs_arg1=$1
11680 shift
11681 lib_no_libs_arg2=$1
11682 shift
11683 lib_no_libs_args=$@
11684
11685 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11686 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11687 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11688 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11689 $as_echo_n "(cached) " >&6
11690 else
11691 ac_check_lib_save_LIBS=$LIBS
11692 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h. */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char $lib_no_libs_arg2 ();
11707 int
11708 main ()
11709 {
11710 return $lib_no_libs_arg2 ();
11711 ;
11712 return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext conftest$ac_exeext
11716 if { (ac_try="$ac_link"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720 esac
11721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11722 $as_echo "$ac_try_echo") >&5
11723 (eval "$ac_link") 2>conftest.er1
11724 ac_status=$?
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext && {
11733 test "$cross_compiling" = yes ||
11734 $as_test_x conftest$ac_exeext
11735 }; then
11736 eval "$as_ac_Lib=yes"
11737 else
11738 $as_echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 eval "$as_ac_Lib=no"
11742 fi
11743
11744 rm -rf conftest.dSYM
11745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11748 fi
11749 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11750 $as_echo "$as_val"'`
11751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11752 $as_echo "$ac_res" >&6; }
11753 as_val=`eval 'as_val=${'$as_ac_Lib'}
11754 $as_echo "$as_val"'`
11755 if test "x$as_val" = x""yes; then
11756 cat >>confdefs.h <<_ACEOF
11757 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11758 _ACEOF
11759
11760 LIBS="-l$lib_no_libs_arg1 $LIBS"
11761
11762 else
11763 $bailout
11764 fi
11765
11766 LIBS=$ac_check_lib_save_LIBS
11767 }
11768
11769 if test x$BUILDGULM = xyes; then
11770
11771 pkg_failed=no
11772 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
11773 $as_echo_n "checking for CCS... " >&6; }
11774
11775 if test -n "$CCS_CFLAGS"; then
11776 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
11777 elif test -n "$PKG_CONFIG"; then
11778 if test -n "$PKG_CONFIG" && \
11779 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11780 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11781 ac_status=$?
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; then
11784 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
11785 else
11786 pkg_failed=yes
11787 fi
11788 else
11789 pkg_failed=untried
11790 fi
11791 if test -n "$CCS_LIBS"; then
11792 pkg_cv_CCS_LIBS="$CCS_LIBS"
11793 elif test -n "$PKG_CONFIG"; then
11794 if test -n "$PKG_CONFIG" && \
11795 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11796 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11797 ac_status=$?
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; then
11800 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
11801 else
11802 pkg_failed=yes
11803 fi
11804 else
11805 pkg_failed=untried
11806 fi
11807
11808
11809
11810 if test $pkg_failed = yes; then
11811
11812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11813 _pkg_short_errors_supported=yes
11814 else
11815 _pkg_short_errors_supported=no
11816 fi
11817 if test $_pkg_short_errors_supported = yes; then
11818 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
11819 else
11820 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
11821 fi
11822 # Put the nasty error message in config.log where it belongs
11823 echo "$CCS_PKG_ERRORS" >&5
11824
11825 { $as_echo "$as_me:$LINENO: result: no" >&5
11826 $as_echo "no" >&6; }
11827 NOTFOUND=0
11828
11829 for ac_header in ccs.h
11830 do
11831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11834 $as_echo_n "checking for $ac_header... " >&6; }
11835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11836 $as_echo_n "(cached) " >&6
11837 fi
11838 ac_res=`eval 'as_val=${'$as_ac_Header'}
11839 $as_echo "$as_val"'`
11840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11841 $as_echo "$ac_res" >&6; }
11842 else
11843 # Is the header compilable?
11844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845 $as_echo_n "checking $ac_header usability... " >&6; }
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 #include <$ac_header>
11854 _ACEOF
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860 esac
11861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_header_compiler=yes
11874 else
11875 $as_echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ac_header_compiler=no
11879 fi
11880
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 $as_echo "$ac_header_compiler" >&6; }
11884
11885 # Is the header present?
11886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11887 $as_echo_n "checking $ac_header presence... " >&6; }
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <$ac_header>
11895 _ACEOF
11896 if { (ac_try="$ac_cpp conftest.$ac_ext"
11897 case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900 esac
11901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902 $as_echo "$ac_try_echo") >&5
11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null && {
11910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 }; then
11913 ac_header_preproc=yes
11914 else
11915 $as_echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_header_preproc=no
11919 fi
11920
11921 rm -f conftest.err conftest.$ac_ext
11922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 $as_echo "$ac_header_preproc" >&6; }
11924
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11933 ;;
11934 no:yes:* )
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11947
11948 ;;
11949 esac
11950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 $as_echo_n "checking for $ac_header... " >&6; }
11952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 $as_echo_n "(cached) " >&6
11954 else
11955 eval "$as_ac_Header=\$ac_header_preproc"
11956 fi
11957 ac_res=`eval 'as_val=${'$as_ac_Header'}
11958 $as_echo "$as_val"'`
11959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11960 $as_echo "$ac_res" >&6; }
11961
11962 fi
11963 as_val=`eval 'as_val=${'$as_ac_Header'}
11964 $as_echo "$as_val"'`
11965 if test "x$as_val" = x""yes; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11968 _ACEOF
11969
11970 else
11971 $bailout
11972 fi
11973
11974 done
11975
11976 check_lib_no_libs ccs ccs_connect
11977 if test $NOTFOUND = 0; then
11978 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11979 $as_echo "no pkg for libccs, using -lccs" >&6; }
11980 CCS_LIBS="-lccs"
11981 HAVE_CCS=yes
11982 fi
11983 elif test $pkg_failed = untried; then
11984 NOTFOUND=0
11985
11986 for ac_header in ccs.h
11987 do
11988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11991 $as_echo_n "checking for $ac_header... " >&6; }
11992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11993 $as_echo_n "(cached) " >&6
11994 fi
11995 ac_res=`eval 'as_val=${'$as_ac_Header'}
11996 $as_echo "$as_val"'`
11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11998 $as_echo "$ac_res" >&6; }
11999 else
12000 # Is the header compilable?
12001 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12002 $as_echo_n "checking $ac_header usability... " >&6; }
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 #include <$ac_header>
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (ac_try="$ac_compile"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017 esac
12018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019 $as_echo "$ac_try_echo") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest.$ac_objext; then
12030 ac_header_compiler=yes
12031 else
12032 $as_echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_compiler=no
12036 fi
12037
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040 $as_echo "$ac_header_compiler" >&6; }
12041
12042 # Is the header present?
12043 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044 $as_echo_n "checking $ac_header presence... " >&6; }
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <$ac_header>
12052 _ACEOF
12053 if { (ac_try="$ac_cpp conftest.$ac_ext"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059 $as_echo "$ac_try_echo") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null && {
12067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 }; then
12070 ac_header_preproc=yes
12071 else
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_header_preproc=no
12076 fi
12077
12078 rm -f conftest.err conftest.$ac_ext
12079 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12080 $as_echo "$ac_header_preproc" >&6; }
12081
12082 # So? What about this header?
12083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12084 yes:no: )
12085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12086 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12089 ac_header_preproc=yes
12090 ;;
12091 no:yes:* )
12092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12093 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12095 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12097 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12099 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12101 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12103 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12104
12105 ;;
12106 esac
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 $as_echo_n "checking for $ac_header... " >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111 else
12112 eval "$as_ac_Header=\$ac_header_preproc"
12113 fi
12114 ac_res=`eval 'as_val=${'$as_ac_Header'}
12115 $as_echo "$as_val"'`
12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117 $as_echo "$ac_res" >&6; }
12118
12119 fi
12120 as_val=`eval 'as_val=${'$as_ac_Header'}
12121 $as_echo "$as_val"'`
12122 if test "x$as_val" = x""yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 _ACEOF
12126
12127 else
12128 $bailout
12129 fi
12130
12131 done
12132
12133 check_lib_no_libs ccs ccs_connect
12134 if test $NOTFOUND = 0; then
12135 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12136 $as_echo "no pkg for libccs, using -lccs" >&6; }
12137 CCS_LIBS="-lccs"
12138 HAVE_CCS=yes
12139 fi
12140 else
12141 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12142 CCS_LIBS=$pkg_cv_CCS_LIBS
12143 { $as_echo "$as_me:$LINENO: result: yes" >&5
12144 $as_echo "yes" >&6; }
12145 HAVE_CCS=yes
12146 fi
12147
12148 pkg_failed=no
12149 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
12150 $as_echo_n "checking for GULM... " >&6; }
12151
12152 if test -n "$GULM_CFLAGS"; then
12153 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12154 elif test -n "$PKG_CONFIG"; then
12155 if test -n "$PKG_CONFIG" && \
12156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12157 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12158 ac_status=$?
12159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; then
12161 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12162 else
12163 pkg_failed=yes
12164 fi
12165 else
12166 pkg_failed=untried
12167 fi
12168 if test -n "$GULM_LIBS"; then
12169 pkg_cv_GULM_LIBS="$GULM_LIBS"
12170 elif test -n "$PKG_CONFIG"; then
12171 if test -n "$PKG_CONFIG" && \
12172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12173 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12174 ac_status=$?
12175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; then
12177 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12178 else
12179 pkg_failed=yes
12180 fi
12181 else
12182 pkg_failed=untried
12183 fi
12184
12185
12186
12187 if test $pkg_failed = yes; then
12188
12189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12190 _pkg_short_errors_supported=yes
12191 else
12192 _pkg_short_errors_supported=no
12193 fi
12194 if test $_pkg_short_errors_supported = yes; then
12195 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12196 else
12197 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12198 fi
12199 # Put the nasty error message in config.log where it belongs
12200 echo "$GULM_PKG_ERRORS" >&5
12201
12202 { $as_echo "$as_me:$LINENO: result: no" >&5
12203 $as_echo "no" >&6; }
12204 NOTFOUND=0
12205
12206 for ac_header in libgulm.h
12207 do
12208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 $as_echo_n "checking for $ac_header... " >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 $as_echo_n "(cached) " >&6
12214 fi
12215 ac_res=`eval 'as_val=${'$as_ac_Header'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218 $as_echo "$ac_res" >&6; }
12219 else
12220 # Is the header compilable?
12221 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12222 $as_echo_n "checking $ac_header usability... " >&6; }
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h. */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 $ac_includes_default
12230 #include <$ac_header>
12231 _ACEOF
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237 esac
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 ac_header_compiler=yes
12251 else
12252 $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 ac_header_compiler=no
12256 fi
12257
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12260 $as_echo "$ac_header_compiler" >&6; }
12261
12262 # Is the header present?
12263 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12264 $as_echo_n "checking $ac_header presence... " >&6; }
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 #include <$ac_header>
12272 _ACEOF
12273 if { (ac_try="$ac_cpp conftest.$ac_ext"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277 esac
12278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279 $as_echo "$ac_try_echo") >&5
12280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } >/dev/null && {
12287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 }; then
12290 ac_header_preproc=yes
12291 else
12292 $as_echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_header_preproc=no
12296 fi
12297
12298 rm -f conftest.err conftest.$ac_ext
12299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12300 $as_echo "$ac_header_preproc" >&6; }
12301
12302 # So? What about this header?
12303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12304 yes:no: )
12305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12306 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12309 ac_header_preproc=yes
12310 ;;
12311 no:yes:* )
12312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12313 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12315 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12317 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12319 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12324
12325 ;;
12326 esac
12327 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12328 $as_echo_n "checking for $ac_header... " >&6; }
12329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12330 $as_echo_n "(cached) " >&6
12331 else
12332 eval "$as_ac_Header=\$ac_header_preproc"
12333 fi
12334 ac_res=`eval 'as_val=${'$as_ac_Header'}
12335 $as_echo "$as_val"'`
12336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12337 $as_echo "$ac_res" >&6; }
12338
12339 fi
12340 as_val=`eval 'as_val=${'$as_ac_Header'}
12341 $as_echo "$as_val"'`
12342 if test "x$as_val" = x""yes; then
12343 cat >>confdefs.h <<_ACEOF
12344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345 _ACEOF
12346
12347 else
12348 $bailout
12349 fi
12350
12351 done
12352
12353 check_lib_no_libs gulm lg_core_login
12354 if test $NOTFOUND = 0; then
12355 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12356 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12357 GULM_LIBS="-lgulm"
12358 HAVE_GULM=yes
12359 fi
12360 elif test $pkg_failed = untried; then
12361 NOTFOUND=0
12362
12363 for ac_header in libgulm.h
12364 do
12365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12368 $as_echo_n "checking for $ac_header... " >&6; }
12369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12370 $as_echo_n "(cached) " >&6
12371 fi
12372 ac_res=`eval 'as_val=${'$as_ac_Header'}
12373 $as_echo "$as_val"'`
12374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12375 $as_echo "$ac_res" >&6; }
12376 else
12377 # Is the header compilable?
12378 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12379 $as_echo_n "checking $ac_header usability... " >&6; }
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 $ac_includes_default
12387 #include <$ac_header>
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (ac_try="$ac_compile"
12391 case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394 esac
12395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396 $as_echo "$ac_try_echo") >&5
12397 (eval "$ac_compile") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest.$ac_objext; then
12407 ac_header_compiler=yes
12408 else
12409 $as_echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_header_compiler=no
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12417 $as_echo "$ac_header_compiler" >&6; }
12418
12419 # Is the header present?
12420 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12421 $as_echo_n "checking $ac_header presence... " >&6; }
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 #include <$ac_header>
12429 _ACEOF
12430 if { (ac_try="$ac_cpp conftest.$ac_ext"
12431 case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434 esac
12435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12436 $as_echo "$ac_try_echo") >&5
12437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } >/dev/null && {
12444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12445 test ! -s conftest.err
12446 }; then
12447 ac_header_preproc=yes
12448 else
12449 $as_echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ac_header_preproc=no
12453 fi
12454
12455 rm -f conftest.err conftest.$ac_ext
12456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12457 $as_echo "$ac_header_preproc" >&6; }
12458
12459 # So? What about this header?
12460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12461 yes:no: )
12462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12463 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12466 ac_header_preproc=yes
12467 ;;
12468 no:yes:* )
12469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12470 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12472 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12474 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12476 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12480 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12481
12482 ;;
12483 esac
12484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 $as_echo_n "checking for $ac_header... " >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 $as_echo_n "(cached) " >&6
12488 else
12489 eval "$as_ac_Header=\$ac_header_preproc"
12490 fi
12491 ac_res=`eval 'as_val=${'$as_ac_Header'}
12492 $as_echo "$as_val"'`
12493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12494 $as_echo "$ac_res" >&6; }
12495
12496 fi
12497 as_val=`eval 'as_val=${'$as_ac_Header'}
12498 $as_echo "$as_val"'`
12499 if test "x$as_val" = x""yes; then
12500 cat >>confdefs.h <<_ACEOF
12501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12502 _ACEOF
12503
12504 else
12505 $bailout
12506 fi
12507
12508 done
12509
12510 check_lib_no_libs gulm lg_core_login
12511 if test $NOTFOUND = 0; then
12512 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12513 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12514 GULM_LIBS="-lgulm"
12515 HAVE_GULM=yes
12516 fi
12517 else
12518 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12519 GULM_LIBS=$pkg_cv_GULM_LIBS
12520 { $as_echo "$as_me:$LINENO: result: yes" >&5
12521 $as_echo "yes" >&6; }
12522 HAVE_GULM=yes
12523 fi
12524 fi
12525
12526 if test x$BUILDCMAN = xyes; then
12527
12528 pkg_failed=no
12529 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12530 $as_echo_n "checking for CMAN... " >&6; }
12531
12532 if test -n "$CMAN_CFLAGS"; then
12533 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12534 elif test -n "$PKG_CONFIG"; then
12535 if test -n "$PKG_CONFIG" && \
12536 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12537 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12538 ac_status=$?
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; then
12541 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12542 else
12543 pkg_failed=yes
12544 fi
12545 else
12546 pkg_failed=untried
12547 fi
12548 if test -n "$CMAN_LIBS"; then
12549 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12550 elif test -n "$PKG_CONFIG"; then
12551 if test -n "$PKG_CONFIG" && \
12552 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12553 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12554 ac_status=$?
12555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; then
12557 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12558 else
12559 pkg_failed=yes
12560 fi
12561 else
12562 pkg_failed=untried
12563 fi
12564
12565
12566
12567 if test $pkg_failed = yes; then
12568
12569 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12570 _pkg_short_errors_supported=yes
12571 else
12572 _pkg_short_errors_supported=no
12573 fi
12574 if test $_pkg_short_errors_supported = yes; then
12575 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12576 else
12577 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12578 fi
12579 # Put the nasty error message in config.log where it belongs
12580 echo "$CMAN_PKG_ERRORS" >&5
12581
12582 { $as_echo "$as_me:$LINENO: result: no" >&5
12583 $as_echo "no" >&6; }
12584 NOTFOUND=0
12585
12586 for ac_header in libcman.h
12587 do
12588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12591 $as_echo_n "checking for $ac_header... " >&6; }
12592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593 $as_echo_n "(cached) " >&6
12594 fi
12595 ac_res=`eval 'as_val=${'$as_ac_Header'}
12596 $as_echo "$as_val"'`
12597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12598 $as_echo "$ac_res" >&6; }
12599 else
12600 # Is the header compilable?
12601 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12602 $as_echo_n "checking $ac_header usability... " >&6; }
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 $ac_includes_default
12610 #include <$ac_header>
12611 _ACEOF
12612 rm -f conftest.$ac_objext
12613 if { (ac_try="$ac_compile"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617 esac
12618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12619 $as_echo "$ac_try_echo") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest.$ac_objext; then
12630 ac_header_compiler=yes
12631 else
12632 $as_echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_header_compiler=no
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12640 $as_echo "$ac_header_compiler" >&6; }
12641
12642 # Is the header present?
12643 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12644 $as_echo_n "checking $ac_header presence... " >&6; }
12645 cat >conftest.$ac_ext <<_ACEOF
12646 /* confdefs.h. */
12647 _ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #include <$ac_header>
12652 _ACEOF
12653 if { (ac_try="$ac_cpp conftest.$ac_ext"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657 esac
12658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12659 $as_echo "$ac_try_echo") >&5
12660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } >/dev/null && {
12667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12668 test ! -s conftest.err
12669 }; then
12670 ac_header_preproc=yes
12671 else
12672 $as_echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_header_preproc=no
12676 fi
12677
12678 rm -f conftest.err conftest.$ac_ext
12679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12680 $as_echo "$ac_header_preproc" >&6; }
12681
12682 # So? What about this header?
12683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12684 yes:no: )
12685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12686 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12688 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12689 ac_header_preproc=yes
12690 ;;
12691 no:yes:* )
12692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12693 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12695 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12697 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12699 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12703 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12704
12705 ;;
12706 esac
12707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12708 $as_echo_n "checking for $ac_header... " >&6; }
12709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12710 $as_echo_n "(cached) " >&6
12711 else
12712 eval "$as_ac_Header=\$ac_header_preproc"
12713 fi
12714 ac_res=`eval 'as_val=${'$as_ac_Header'}
12715 $as_echo "$as_val"'`
12716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12717 $as_echo "$ac_res" >&6; }
12718
12719 fi
12720 as_val=`eval 'as_val=${'$as_ac_Header'}
12721 $as_echo "$as_val"'`
12722 if test "x$as_val" = x""yes; then
12723 cat >>confdefs.h <<_ACEOF
12724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12725 _ACEOF
12726
12727 else
12728 $bailout
12729 fi
12730
12731 done
12732
12733 check_lib_no_libs cman cman_init
12734 if test $NOTFOUND = 0; then
12735 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12736 $as_echo "no pkg for libcman, using -lcman" >&6; }
12737 CMAN_LIBS="-lcman"
12738 HAVE_CMAN=yes
12739 fi
12740 elif test $pkg_failed = untried; then
12741 NOTFOUND=0
12742
12743 for ac_header in libcman.h
12744 do
12745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12748 $as_echo_n "checking for $ac_header... " >&6; }
12749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12750 $as_echo_n "(cached) " >&6
12751 fi
12752 ac_res=`eval 'as_val=${'$as_ac_Header'}
12753 $as_echo "$as_val"'`
12754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12755 $as_echo "$ac_res" >&6; }
12756 else
12757 # Is the header compilable?
12758 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12759 $as_echo_n "checking $ac_header usability... " >&6; }
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 $ac_includes_default
12767 #include <$ac_header>
12768 _ACEOF
12769 rm -f conftest.$ac_objext
12770 if { (ac_try="$ac_compile"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774 esac
12775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12776 $as_echo "$ac_try_echo") >&5
12777 (eval "$ac_compile") 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && {
12784 test -z "$ac_c_werror_flag" ||
12785 test ! -s conftest.err
12786 } && test -s conftest.$ac_objext; then
12787 ac_header_compiler=yes
12788 else
12789 $as_echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_header_compiler=no
12793 fi
12794
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12797 $as_echo "$ac_header_compiler" >&6; }
12798
12799 # Is the header present?
12800 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12801 $as_echo_n "checking $ac_header presence... " >&6; }
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 #include <$ac_header>
12809 _ACEOF
12810 if { (ac_try="$ac_cpp conftest.$ac_ext"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814 esac
12815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816 $as_echo "$ac_try_echo") >&5
12817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } >/dev/null && {
12824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 }; then
12827 ac_header_preproc=yes
12828 else
12829 $as_echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 ac_header_preproc=no
12833 fi
12834
12835 rm -f conftest.err conftest.$ac_ext
12836 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12837 $as_echo "$ac_header_preproc" >&6; }
12838
12839 # So? What about this header?
12840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12841 yes:no: )
12842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12843 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12846 ac_header_preproc=yes
12847 ;;
12848 no:yes:* )
12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12850 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12852 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12854 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12856 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12860 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12861
12862 ;;
12863 esac
12864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 $as_echo_n "checking for $ac_header... " >&6; }
12866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867 $as_echo_n "(cached) " >&6
12868 else
12869 eval "$as_ac_Header=\$ac_header_preproc"
12870 fi
12871 ac_res=`eval 'as_val=${'$as_ac_Header'}
12872 $as_echo "$as_val"'`
12873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12874 $as_echo "$ac_res" >&6; }
12875
12876 fi
12877 as_val=`eval 'as_val=${'$as_ac_Header'}
12878 $as_echo "$as_val"'`
12879 if test "x$as_val" = x""yes; then
12880 cat >>confdefs.h <<_ACEOF
12881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12882 _ACEOF
12883
12884 else
12885 $bailout
12886 fi
12887
12888 done
12889
12890 check_lib_no_libs cman cman_init
12891 if test $NOTFOUND = 0; then
12892 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12893 $as_echo "no pkg for libcman, using -lcman" >&6; }
12894 CMAN_LIBS="-lcman"
12895 HAVE_CMAN=yes
12896 fi
12897 else
12898 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12899 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12900 { $as_echo "$as_me:$LINENO: result: yes" >&5
12901 $as_echo "yes" >&6; }
12902 HAVE_CMAN=yes
12903 fi
12904 CHECKCONFDB=yes
12905 CHECKDLM=yes
12906 fi
12907
12908 if test x$BUILDCOROSYNC = xyes || \
12909 test x$BUILDOPENAIS = xyes; then
12910
12911 pkg_failed=no
12912 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12913 $as_echo_n "checking for COROSYNC... " >&6; }
12914
12915 if test -n "$COROSYNC_CFLAGS"; then
12916 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12917 elif test -n "$PKG_CONFIG"; then
12918 if test -n "$PKG_CONFIG" && \
12919 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12920 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12921 ac_status=$?
12922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; then
12924 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12925 else
12926 pkg_failed=yes
12927 fi
12928 else
12929 pkg_failed=untried
12930 fi
12931 if test -n "$COROSYNC_LIBS"; then
12932 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12933 elif test -n "$PKG_CONFIG"; then
12934 if test -n "$PKG_CONFIG" && \
12935 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12936 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12937 ac_status=$?
12938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; then
12940 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12941 else
12942 pkg_failed=yes
12943 fi
12944 else
12945 pkg_failed=untried
12946 fi
12947
12948
12949
12950 if test $pkg_failed = yes; then
12951
12952 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12953 _pkg_short_errors_supported=yes
12954 else
12955 _pkg_short_errors_supported=no
12956 fi
12957 if test $_pkg_short_errors_supported = yes; then
12958 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12959 else
12960 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12961 fi
12962 # Put the nasty error message in config.log where it belongs
12963 echo "$COROSYNC_PKG_ERRORS" >&5
12964
12965 { $as_echo "$as_me:$LINENO: result: no" >&5
12966 $as_echo "no" >&6; }
12967 $bailout
12968 elif test $pkg_failed = untried; then
12969 $bailout
12970 else
12971 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12972 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12973 { $as_echo "$as_me:$LINENO: result: yes" >&5
12974 $as_echo "yes" >&6; }
12975 HAVE_COROSYNC=yes
12976 fi
12977 CHECKCONFDB=yes
12978 fi
12979
12980 if test x$BUILDCOROSYNC = xyes; then
12981
12982 pkg_failed=no
12983 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12984 $as_echo_n "checking for QUORUM... " >&6; }
12985
12986 if test -n "$QUORUM_CFLAGS"; then
12987 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12988 elif test -n "$PKG_CONFIG"; then
12989 if test -n "$PKG_CONFIG" && \
12990 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12991 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12992 ac_status=$?
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; then
12995 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12996 else
12997 pkg_failed=yes
12998 fi
12999 else
13000 pkg_failed=untried
13001 fi
13002 if test -n "$QUORUM_LIBS"; then
13003 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13004 elif test -n "$PKG_CONFIG"; then
13005 if test -n "$PKG_CONFIG" && \
13006 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13007 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13008 ac_status=$?
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; then
13011 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13012 else
13013 pkg_failed=yes
13014 fi
13015 else
13016 pkg_failed=untried
13017 fi
13018
13019
13020
13021 if test $pkg_failed = yes; then
13022
13023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13024 _pkg_short_errors_supported=yes
13025 else
13026 _pkg_short_errors_supported=no
13027 fi
13028 if test $_pkg_short_errors_supported = yes; then
13029 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13030 else
13031 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13032 fi
13033 # Put the nasty error message in config.log where it belongs
13034 echo "$QUORUM_PKG_ERRORS" >&5
13035
13036 { $as_echo "$as_me:$LINENO: result: no" >&5
13037 $as_echo "no" >&6; }
13038 $bailout
13039 elif test $pkg_failed = untried; then
13040 $bailout
13041 else
13042 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13043 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13044 { $as_echo "$as_me:$LINENO: result: yes" >&5
13045 $as_echo "yes" >&6; }
13046 HAVE_QUORUM=yes
13047 fi
13048 CHECKCPG=yes
13049 CHECKDLM=yes
13050 fi
13051
13052 if test x$BUILDOPENAIS = xyes; then
13053
13054 pkg_failed=no
13055 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13056 $as_echo_n "checking for SALCK... " >&6; }
13057
13058 if test -n "$SALCK_CFLAGS"; then
13059 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13060 elif test -n "$PKG_CONFIG"; then
13061 if test -n "$PKG_CONFIG" && \
13062 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13063 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; then
13067 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13068 else
13069 pkg_failed=yes
13070 fi
13071 else
13072 pkg_failed=untried
13073 fi
13074 if test -n "$SALCK_LIBS"; then
13075 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13076 elif test -n "$PKG_CONFIG"; then
13077 if test -n "$PKG_CONFIG" && \
13078 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13079 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13080 ac_status=$?
13081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; then
13083 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13084 else
13085 pkg_failed=yes
13086 fi
13087 else
13088 pkg_failed=untried
13089 fi
13090
13091
13092
13093 if test $pkg_failed = yes; then
13094
13095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13096 _pkg_short_errors_supported=yes
13097 else
13098 _pkg_short_errors_supported=no
13099 fi
13100 if test $_pkg_short_errors_supported = yes; then
13101 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13102 else
13103 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13104 fi
13105 # Put the nasty error message in config.log where it belongs
13106 echo "$SALCK_PKG_ERRORS" >&5
13107
13108 { $as_echo "$as_me:$LINENO: result: no" >&5
13109 $as_echo "no" >&6; }
13110 $bailout
13111 elif test $pkg_failed = untried; then
13112 $bailout
13113 else
13114 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13115 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13116 { $as_echo "$as_me:$LINENO: result: yes" >&5
13117 $as_echo "yes" >&6; }
13118 HAVE_SALCK=yes
13119 fi
13120 CHECKCPG=yes
13121 fi
13122
13123
13124
13125 if test x$CHECKCONFDB = xyes; then
13126
13127 pkg_failed=no
13128 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13129 $as_echo_n "checking for CONFDB... " >&6; }
13130
13131 if test -n "$CONFDB_CFLAGS"; then
13132 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13133 elif test -n "$PKG_CONFIG"; then
13134 if test -n "$PKG_CONFIG" && \
13135 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13136 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13137 ac_status=$?
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; then
13140 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13141 else
13142 pkg_failed=yes
13143 fi
13144 else
13145 pkg_failed=untried
13146 fi
13147 if test -n "$CONFDB_LIBS"; then
13148 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13149 elif test -n "$PKG_CONFIG"; then
13150 if test -n "$PKG_CONFIG" && \
13151 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13152 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13153 ac_status=$?
13154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; then
13156 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13157 else
13158 pkg_failed=yes
13159 fi
13160 else
13161 pkg_failed=untried
13162 fi
13163
13164
13165
13166 if test $pkg_failed = yes; then
13167
13168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13169 _pkg_short_errors_supported=yes
13170 else
13171 _pkg_short_errors_supported=no
13172 fi
13173 if test $_pkg_short_errors_supported = yes; then
13174 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13175 else
13176 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13177 fi
13178 # Put the nasty error message in config.log where it belongs
13179 echo "$CONFDB_PKG_ERRORS" >&5
13180
13181 { $as_echo "$as_me:$LINENO: result: no" >&5
13182 $as_echo "no" >&6; }
13183 HAVE_CONFDB=no
13184 elif test $pkg_failed = untried; then
13185 HAVE_CONFDB=no
13186 else
13187 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13188 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13189 { $as_echo "$as_me:$LINENO: result: yes" >&5
13190 $as_echo "yes" >&6; }
13191 HAVE_CONFDB=yes
13192 fi
13193
13194
13195 for ac_header in corosync/confdb.h
13196 do
13197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13200 $as_echo_n "checking for $ac_header... " >&6; }
13201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13202 $as_echo_n "(cached) " >&6
13203 fi
13204 ac_res=`eval 'as_val=${'$as_ac_Header'}
13205 $as_echo "$as_val"'`
13206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13207 $as_echo "$ac_res" >&6; }
13208 else
13209 # Is the header compilable?
13210 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211 $as_echo_n "checking $ac_header usability... " >&6; }
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 $ac_includes_default
13219 #include <$ac_header>
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226 esac
13227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13228 $as_echo "$ac_try_echo") >&5
13229 (eval "$ac_compile") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest.$ac_objext; then
13239 ac_header_compiler=yes
13240 else
13241 $as_echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_header_compiler=no
13245 fi
13246
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13249 $as_echo "$ac_header_compiler" >&6; }
13250
13251 # Is the header present?
13252 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13253 $as_echo_n "checking $ac_header presence... " >&6; }
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <$ac_header>
13261 _ACEOF
13262 if { (ac_try="$ac_cpp conftest.$ac_ext"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266 esac
13267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13268 $as_echo "$ac_try_echo") >&5
13269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } >/dev/null && {
13276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 }; then
13279 ac_header_preproc=yes
13280 else
13281 $as_echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_header_preproc=no
13285 fi
13286
13287 rm -f conftest.err conftest.$ac_ext
13288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13289 $as_echo "$ac_header_preproc" >&6; }
13290
13291 # So? What about this header?
13292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13293 yes:no: )
13294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13295 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13298 ac_header_preproc=yes
13299 ;;
13300 no:yes:* )
13301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13302 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13304 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13306 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13308 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13312 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13313
13314 ;;
13315 esac
13316 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13317 $as_echo_n "checking for $ac_header... " >&6; }
13318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 $as_echo_n "(cached) " >&6
13320 else
13321 eval "$as_ac_Header=\$ac_header_preproc"
13322 fi
13323 ac_res=`eval 'as_val=${'$as_ac_Header'}
13324 $as_echo "$as_val"'`
13325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13326 $as_echo "$ac_res" >&6; }
13327
13328 fi
13329 as_val=`eval 'as_val=${'$as_ac_Header'}
13330 $as_echo "$as_val"'`
13331 if test "x$as_val" = x""yes; then
13332 cat >>confdefs.h <<_ACEOF
13333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13334 _ACEOF
13335 HAVE_CONFDB_H=yes
13336 else
13337 HAVE_CONFDB_H=no
13338 fi
13339
13340 done
13341
13342
13343 if test x$HAVE_CONFDB != xyes && \
13344 test x$HAVE_CONFDB_H = xyes; then
13345 check_lib_no_libs confdb confdb_initialize
13346 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13347 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
13348 CONFDB_LIBS="-lconfdb"
13349 HAVE_CONFDB=yes
13350 fi
13351
13352 if test x$BUILDCOROSYNC = xyes && \
13353 test x$HAVE_CONFDB != xyes &&
13354 test x$CLVMD != xall; then
13355 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13356 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13357 { (exit 1); exit 1; }; }
13358 fi
13359 fi
13360
13361 if test x$CHECKCPG = xyes; then
13362
13363 pkg_failed=no
13364 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
13365 $as_echo_n "checking for CPG... " >&6; }
13366
13367 if test -n "$CPG_CFLAGS"; then
13368 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13369 elif test -n "$PKG_CONFIG"; then
13370 if test -n "$PKG_CONFIG" && \
13371 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13372 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13373 ac_status=$?
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; then
13376 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13377 else
13378 pkg_failed=yes
13379 fi
13380 else
13381 pkg_failed=untried
13382 fi
13383 if test -n "$CPG_LIBS"; then
13384 pkg_cv_CPG_LIBS="$CPG_LIBS"
13385 elif test -n "$PKG_CONFIG"; then
13386 if test -n "$PKG_CONFIG" && \
13387 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13388 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; then
13392 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13393 else
13394 pkg_failed=yes
13395 fi
13396 else
13397 pkg_failed=untried
13398 fi
13399
13400
13401
13402 if test $pkg_failed = yes; then
13403
13404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13405 _pkg_short_errors_supported=yes
13406 else
13407 _pkg_short_errors_supported=no
13408 fi
13409 if test $_pkg_short_errors_supported = yes; then
13410 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13411 else
13412 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13413 fi
13414 # Put the nasty error message in config.log where it belongs
13415 echo "$CPG_PKG_ERRORS" >&5
13416
13417 { $as_echo "$as_me:$LINENO: result: no" >&5
13418 $as_echo "no" >&6; }
13419 $bailout
13420 elif test $pkg_failed = untried; then
13421 $bailout
13422 else
13423 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13424 CPG_LIBS=$pkg_cv_CPG_LIBS
13425 { $as_echo "$as_me:$LINENO: result: yes" >&5
13426 $as_echo "yes" >&6; }
13427 HAVE_CPG=yes
13428 fi
13429 fi
13430
13431 if test x$CHECKDLM = xyes; then
13432
13433 pkg_failed=no
13434 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
13435 $as_echo_n "checking for DLM... " >&6; }
13436
13437 if test -n "$DLM_CFLAGS"; then
13438 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13439 elif test -n "$PKG_CONFIG"; then
13440 if test -n "$PKG_CONFIG" && \
13441 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13442 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13443 ac_status=$?
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; then
13446 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13447 else
13448 pkg_failed=yes
13449 fi
13450 else
13451 pkg_failed=untried
13452 fi
13453 if test -n "$DLM_LIBS"; then
13454 pkg_cv_DLM_LIBS="$DLM_LIBS"
13455 elif test -n "$PKG_CONFIG"; then
13456 if test -n "$PKG_CONFIG" && \
13457 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13458 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13459 ac_status=$?
13460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; then
13462 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13463 else
13464 pkg_failed=yes
13465 fi
13466 else
13467 pkg_failed=untried
13468 fi
13469
13470
13471
13472 if test $pkg_failed = yes; then
13473
13474 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13475 _pkg_short_errors_supported=yes
13476 else
13477 _pkg_short_errors_supported=no
13478 fi
13479 if test $_pkg_short_errors_supported = yes; then
13480 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13481 else
13482 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13483 fi
13484 # Put the nasty error message in config.log where it belongs
13485 echo "$DLM_PKG_ERRORS" >&5
13486
13487 { $as_echo "$as_me:$LINENO: result: no" >&5
13488 $as_echo "no" >&6; }
13489 NOTFOUND=0
13490
13491 for ac_header in libdlm.h
13492 do
13493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13496 $as_echo_n "checking for $ac_header... " >&6; }
13497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13498 $as_echo_n "(cached) " >&6
13499 fi
13500 ac_res=`eval 'as_val=${'$as_ac_Header'}
13501 $as_echo "$as_val"'`
13502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13503 $as_echo "$ac_res" >&6; }
13504 else
13505 # Is the header compilable?
13506 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13507 $as_echo_n "checking $ac_header usability... " >&6; }
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h. */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13515 #include <$ac_header>
13516 _ACEOF
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522 esac
13523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524 $as_echo "$ac_try_echo") >&5
13525 (eval "$ac_compile") 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
13535 ac_header_compiler=yes
13536 else
13537 $as_echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_header_compiler=no
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13545 $as_echo "$ac_header_compiler" >&6; }
13546
13547 # Is the header present?
13548 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13549 $as_echo_n "checking $ac_header presence... " >&6; }
13550 cat >conftest.$ac_ext <<_ACEOF
13551 /* confdefs.h. */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 #include <$ac_header>
13557 _ACEOF
13558 if { (ac_try="$ac_cpp conftest.$ac_ext"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562 esac
13563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13564 $as_echo "$ac_try_echo") >&5
13565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null && {
13572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 }; then
13575 ac_header_preproc=yes
13576 else
13577 $as_echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 ac_header_preproc=no
13581 fi
13582
13583 rm -f conftest.err conftest.$ac_ext
13584 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13585 $as_echo "$ac_header_preproc" >&6; }
13586
13587 # So? What about this header?
13588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13589 yes:no: )
13590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13591 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13593 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13594 ac_header_preproc=yes
13595 ;;
13596 no:yes:* )
13597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13598 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13600 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13602 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13604 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13608 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13609
13610 ;;
13611 esac
13612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13613 $as_echo_n "checking for $ac_header... " >&6; }
13614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13615 $as_echo_n "(cached) " >&6
13616 else
13617 eval "$as_ac_Header=\$ac_header_preproc"
13618 fi
13619 ac_res=`eval 'as_val=${'$as_ac_Header'}
13620 $as_echo "$as_val"'`
13621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13622 $as_echo "$ac_res" >&6; }
13623
13624 fi
13625 as_val=`eval 'as_val=${'$as_ac_Header'}
13626 $as_echo "$as_val"'`
13627 if test "x$as_val" = x""yes; then
13628 cat >>confdefs.h <<_ACEOF
13629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13630 _ACEOF
13631
13632 else
13633 $bailout
13634 fi
13635
13636 done
13637
13638 check_lib_no_libs dlm dlm_lock -lpthread
13639 if test $NOTFOUND = 0; then
13640 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13641 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13642 DLM_LIBS="-ldlm -lpthread"
13643 HAVE_DLM=yes
13644 fi
13645 elif test $pkg_failed = untried; then
13646 NOTFOUND=0
13647
13648 for ac_header in libdlm.h
13649 do
13650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13653 $as_echo_n "checking for $ac_header... " >&6; }
13654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13655 $as_echo_n "(cached) " >&6
13656 fi
13657 ac_res=`eval 'as_val=${'$as_ac_Header'}
13658 $as_echo "$as_val"'`
13659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13660 $as_echo "$ac_res" >&6; }
13661 else
13662 # Is the header compilable?
13663 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13664 $as_echo_n "checking $ac_header usability... " >&6; }
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 $ac_includes_default
13672 #include <$ac_header>
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (ac_try="$ac_compile"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679 esac
13680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13681 $as_echo "$ac_try_echo") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693 else
13694 $as_echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_header_compiler=no
13698 fi
13699
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 $as_echo "$ac_header_compiler" >&6; }
13703
13704 # Is the header present?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706 $as_echo_n "checking $ac_header presence... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <$ac_header>
13714 _ACEOF
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721 $as_echo "$ac_try_echo") >&5
13722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null && {
13729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 }; then
13732 ac_header_preproc=yes
13733 else
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_header_preproc=no
13738 fi
13739
13740 rm -f conftest.err conftest.$ac_ext
13741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742 $as_echo "$ac_header_preproc" >&6; }
13743
13744 # So? What about this header?
13745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 yes:no: )
13747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc=yes
13752 ;;
13753 no:yes:* )
13754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13766
13767 ;;
13768 esac
13769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13770 $as_echo_n "checking for $ac_header... " >&6; }
13771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13772 $as_echo_n "(cached) " >&6
13773 else
13774 eval "$as_ac_Header=\$ac_header_preproc"
13775 fi
13776 ac_res=`eval 'as_val=${'$as_ac_Header'}
13777 $as_echo "$as_val"'`
13778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13779 $as_echo "$ac_res" >&6; }
13780
13781 fi
13782 as_val=`eval 'as_val=${'$as_ac_Header'}
13783 $as_echo "$as_val"'`
13784 if test "x$as_val" = x""yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13787 _ACEOF
13788
13789 else
13790 $bailout
13791 fi
13792
13793 done
13794
13795 check_lib_no_libs dlm dlm_lock -lpthread
13796 if test $NOTFOUND = 0; then
13797 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13798 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13799 DLM_LIBS="-ldlm -lpthread"
13800 HAVE_DLM=yes
13801 fi
13802 else
13803 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13804 DLM_LIBS=$pkg_cv_DLM_LIBS
13805 { $as_echo "$as_me:$LINENO: result: yes" >&5
13806 $as_echo "yes" >&6; }
13807 HAVE_DLM=yes
13808 fi
13809 fi
13810
13811 if test x$CLVMD = xall; then
13812 CLVMD=none
13813 if test x$HAVE_CCS = xyes && \
13814 test x$HAVE_GULM = xyes; then
13815 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13816 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
13817 CLVMD="$CLVMD,gulm"
13818 fi
13819 if test x$HAVE_CMAN = xyes && \
13820 test x$HAVE_DLM = xyes; then
13821 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13822 $as_echo "Enabling clvmd cman cluster manager" >&6; }
13823 CLVMD="$CLVMD,cman"
13824 fi
13825 if test x$HAVE_COROSYNC = xyes && \
13826 test x$HAVE_QUORUM = xyes && \
13827 test x$HAVE_CPG = xyes && \
13828 test x$HAVE_DLM = xyes && \
13829 test x$HAVE_CONFDB = xyes; then
13830 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13831 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
13832 CLVMD="$CLVMD,corosync"
13833 fi
13834 if test x$HAVE_COROSYNC = xyes && \
13835 test x$HAVE_CPG = xyes && \
13836 test x$HAVE_SALCK = xyes; then
13837 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13838 $as_echo "Enabling clvmd openais cluster manager" >&6; }
13839 CLVMD="$CLVMD,openais"
13840 fi
13841 if test x$CLVMD = xnone; then
13842 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13843 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
13844 fi
13845 fi
13846
13847 ################################################################################
13848 if test "x$CLVMD" != xnone; then
13849
13850 # Check whether --with-clvmd-pidfile was given.
13851 if test "${with_clvmd_pidfile+set}" = set; then
13852 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13853 else
13854 CLVMD_PIDFILE="/var/run/clvmd.pid"
13855 fi
13856
13857
13858 cat >>confdefs.h <<_ACEOF
13859 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13860 _ACEOF
13861
13862 fi
13863
13864 ################################################################################
13865 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13866 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13867 # Check whether --enable-cmirrord was given.
13868 if test "${enable_cmirrord+set}" = set; then
13869 enableval=$enable_cmirrord; CMIRRORD=$enableval
13870 else
13871 CMIRRORD=no
13872 fi
13873
13874 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13875 $as_echo "$CMIRRORD" >&6; }
13876
13877 BUILD_CMIRRORD=$CMIRRORD
13878
13879 ################################################################################
13880 if test "x$BUILD_CMIRRORD" = xyes; then
13881
13882 # Check whether --with-cmirrord-pidfile was given.
13883 if test "${with_cmirrord_pidfile+set}" = set; then
13884 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
13885 else
13886 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
13887 fi
13888
13889
13890 cat >>confdefs.h <<_ACEOF
13891 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13892 _ACEOF
13893
13894 fi
13895
13896 ################################################################################
13897 if [ "x$BUILD_CMIRRORD" = xyes ]; then
13898 if test x$PKGCONFIG_INIT != x1; then
13899 pkg_config_init
13900 fi
13901
13902 pkg_failed=no
13903 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13904 $as_echo_n "checking for SACKPT... " >&6; }
13905
13906 if test -n "$SACKPT_CFLAGS"; then
13907 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13908 elif test -n "$PKG_CONFIG"; then
13909 if test -n "$PKG_CONFIG" && \
13910 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13911 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; then
13915 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13916 else
13917 pkg_failed=yes
13918 fi
13919 else
13920 pkg_failed=untried
13921 fi
13922 if test -n "$SACKPT_LIBS"; then
13923 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13924 elif test -n "$PKG_CONFIG"; then
13925 if test -n "$PKG_CONFIG" && \
13926 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13927 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13928 ac_status=$?
13929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; then
13931 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13932 else
13933 pkg_failed=yes
13934 fi
13935 else
13936 pkg_failed=untried
13937 fi
13938
13939
13940
13941 if test $pkg_failed = yes; then
13942
13943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13944 _pkg_short_errors_supported=yes
13945 else
13946 _pkg_short_errors_supported=no
13947 fi
13948 if test $_pkg_short_errors_supported = yes; then
13949 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13950 else
13951 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13952 fi
13953 # Put the nasty error message in config.log where it belongs
13954 echo "$SACKPT_PKG_ERRORS" >&5
13955
13956 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13957
13958 $SACKPT_PKG_ERRORS
13959
13960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13961 installed software in a non-standard prefix.
13962
13963 Alternatively, you may set the environment variables SACKPT_CFLAGS
13964 and SACKPT_LIBS to avoid the need to call pkg-config.
13965 See the pkg-config man page for more details.
13966 " >&5
13967 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13968
13969 $SACKPT_PKG_ERRORS
13970
13971 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13972 installed software in a non-standard prefix.
13973
13974 Alternatively, you may set the environment variables SACKPT_CFLAGS
13975 and SACKPT_LIBS to avoid the need to call pkg-config.
13976 See the pkg-config man page for more details.
13977 " >&2;}
13978 { (exit 1); exit 1; }; }
13979 elif test $pkg_failed = untried; then
13980 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13982 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13983 is in your PATH or set the PKG_CONFIG environment variable to the full
13984 path to pkg-config.
13985
13986 Alternatively, you may set the environment variables SACKPT_CFLAGS
13987 and SACKPT_LIBS to avoid the need to call pkg-config.
13988 See the pkg-config man page for more details.
13989
13990 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13991 See \`config.log' for more details." >&5
13992 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13993 is in your PATH or set the PKG_CONFIG environment variable to the full
13994 path to pkg-config.
13995
13996 Alternatively, you may set the environment variables SACKPT_CFLAGS
13997 and SACKPT_LIBS to avoid the need to call pkg-config.
13998 See the pkg-config man page for more details.
13999
14000 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14001 See \`config.log' for more details." >&2;}
14002 { (exit 1); exit 1; }; }; }
14003 else
14004 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14005 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14006 { $as_echo "$as_me:$LINENO: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 :
14009 fi
14010 if test x$HAVE_CPG != xyes; then
14011
14012 pkg_failed=no
14013 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
14014 $as_echo_n "checking for CPG... " >&6; }
14015
14016 if test -n "$CPG_CFLAGS"; then
14017 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14018 elif test -n "$PKG_CONFIG"; then
14019 if test -n "$PKG_CONFIG" && \
14020 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14021 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14022 ac_status=$?
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; then
14025 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14026 else
14027 pkg_failed=yes
14028 fi
14029 else
14030 pkg_failed=untried
14031 fi
14032 if test -n "$CPG_LIBS"; then
14033 pkg_cv_CPG_LIBS="$CPG_LIBS"
14034 elif test -n "$PKG_CONFIG"; then
14035 if test -n "$PKG_CONFIG" && \
14036 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14037 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14038 ac_status=$?
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; then
14041 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14042 else
14043 pkg_failed=yes
14044 fi
14045 else
14046 pkg_failed=untried
14047 fi
14048
14049
14050
14051 if test $pkg_failed = yes; then
14052
14053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14054 _pkg_short_errors_supported=yes
14055 else
14056 _pkg_short_errors_supported=no
14057 fi
14058 if test $_pkg_short_errors_supported = yes; then
14059 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14060 else
14061 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14062 fi
14063 # Put the nasty error message in config.log where it belongs
14064 echo "$CPG_PKG_ERRORS" >&5
14065
14066 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14067
14068 $CPG_PKG_ERRORS
14069
14070 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14071 installed software in a non-standard prefix.
14072
14073 Alternatively, you may set the environment variables CPG_CFLAGS
14074 and CPG_LIBS to avoid the need to call pkg-config.
14075 See the pkg-config man page for more details.
14076 " >&5
14077 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
14078
14079 $CPG_PKG_ERRORS
14080
14081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14082 installed software in a non-standard prefix.
14083
14084 Alternatively, you may set the environment variables CPG_CFLAGS
14085 and CPG_LIBS to avoid the need to call pkg-config.
14086 See the pkg-config man page for more details.
14087 " >&2;}
14088 { (exit 1); exit 1; }; }
14089 elif test $pkg_failed = untried; then
14090 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14092 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14093 is in your PATH or set the PKG_CONFIG environment variable to the full
14094 path to pkg-config.
14095
14096 Alternatively, you may set the environment variables CPG_CFLAGS
14097 and CPG_LIBS to avoid the need to call pkg-config.
14098 See the pkg-config man page for more details.
14099
14100 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14101 See \`config.log' for more details." >&5
14102 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14103 is in your PATH or set the PKG_CONFIG environment variable to the full
14104 path to pkg-config.
14105
14106 Alternatively, you may set the environment variables CPG_CFLAGS
14107 and CPG_LIBS to avoid the need to call pkg-config.
14108 See the pkg-config man page for more details.
14109
14110 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14111 See \`config.log' for more details." >&2;}
14112 { (exit 1); exit 1; }; }; }
14113 else
14114 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14115 CPG_LIBS=$pkg_cv_CPG_LIBS
14116 { $as_echo "$as_me:$LINENO: result: yes" >&5
14117 $as_echo "yes" >&6; }
14118 :
14119 fi
14120 fi
14121 fi
14122
14123 ################################################################################
14124 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14125 $as_echo_n "checking whether to enable debugging... " >&6; }
14126 # Check whether --enable-debug was given.
14127 if test "${enable_debug+set}" = set; then
14128 enableval=$enable_debug; DEBUG=$enableval
14129 else
14130 DEBUG=no
14131 fi
14132
14133 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14134 $as_echo "$DEBUG" >&6; }
14135
14136 if test x$DEBUG = xyes; then
14137 COPTIMISE_FLAG=
14138 else
14139 CSCOPE_CMD=
14140 fi
14141
14142 ################################################################################
14143 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14144 $as_echo_n "checking for C optimisation flag... " >&6; }
14145
14146 # Check whether --with-optimisation was given.
14147 if test "${with_optimisation+set}" = set; then
14148 withval=$with_optimisation; COPTIMISE_FLAG=$withval
14149 fi
14150
14151 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14152 $as_echo "$COPTIMISE_FLAG" >&6; }
14153
14154 ################################################################################
14155 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14156 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14157 # Check whether --enable-profiling was given.
14158 if test "${enable_profiling+set}" = set; then
14159 enableval=$enable_profiling; PROFILING=$enableval
14160 else
14161 PROFILING=no
14162 fi
14163
14164 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14165 $as_echo "$PROFILING" >&6; }
14166
14167 if test "x$PROFILING" = xyes; then
14168 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14169 # Extract the first word of "lcov", so it can be a program name with args.
14170 set dummy lcov; ac_word=$2
14171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14172 $as_echo_n "checking for $ac_word... " >&6; }
14173 if test "${ac_cv_path_LCOV+set}" = set; then
14174 $as_echo_n "(cached) " >&6
14175 else
14176 case $LCOV in
14177 [\\/]* | ?:[\\/]*)
14178 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14179 ;;
14180 *)
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182 for as_dir in $PATH
14183 do
14184 IFS=$as_save_IFS
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
14189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14190 break 2
14191 fi
14192 done
14193 done
14194 IFS=$as_save_IFS
14195
14196 ;;
14197 esac
14198 fi
14199 LCOV=$ac_cv_path_LCOV
14200 if test -n "$LCOV"; then
14201 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14202 $as_echo "$LCOV" >&6; }
14203 else
14204 { $as_echo "$as_me:$LINENO: result: no" >&5
14205 $as_echo "no" >&6; }
14206 fi
14207
14208
14209 # Extract the first word of "genhtml", so it can be a program name with args.
14210 set dummy genhtml; ac_word=$2
14211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14212 $as_echo_n "checking for $ac_word... " >&6; }
14213 if test "${ac_cv_path_GENHTML+set}" = set; then
14214 $as_echo_n "(cached) " >&6
14215 else
14216 case $GENHTML in
14217 [\\/]* | ?:[\\/]*)
14218 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14219 ;;
14220 *)
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222 for as_dir in $PATH
14223 do
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14228 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
14229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14230 break 2
14231 fi
14232 done
14233 done
14234 IFS=$as_save_IFS
14235
14236 ;;
14237 esac
14238 fi
14239 GENHTML=$ac_cv_path_GENHTML
14240 if test -n "$GENHTML"; then
14241 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14242 $as_echo "$GENHTML" >&6; }
14243 else
14244 { $as_echo "$as_me:$LINENO: result: no" >&5
14245 $as_echo "no" >&6; }
14246 fi
14247
14248
14249 if test -z "$LCOV" -o -z "$GENHTML"; then
14250 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14251 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
14252 { (exit 1); exit 1; }; }
14253 fi
14254 # Extract the first word of "genpng", so it can be a program name with args.
14255 set dummy genpng; ac_word=$2
14256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14257 $as_echo_n "checking for $ac_word... " >&6; }
14258 if test "${ac_cv_path_GENPNG+set}" = set; then
14259 $as_echo_n "(cached) " >&6
14260 else
14261 case $GENPNG in
14262 [\\/]* | ?:[\\/]*)
14263 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14264 ;;
14265 *)
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14268 do
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 break 2
14276 fi
14277 done
14278 done
14279 IFS=$as_save_IFS
14280
14281 ;;
14282 esac
14283 fi
14284 GENPNG=$ac_cv_path_GENPNG
14285 if test -n "$GENPNG"; then
14286 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14287 $as_echo "$GENPNG" >&6; }
14288 else
14289 { $as_echo "$as_me:$LINENO: result: no" >&5
14290 $as_echo "no" >&6; }
14291 fi
14292
14293
14294 if test -n "$GENPNG"; then
14295 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14296 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14297 if $GENPNG --help > /dev/null 2>&1 ; then
14298 { $as_echo "$as_me:$LINENO: result: ok" >&5
14299 $as_echo "ok" >&6; }
14300 GENHTML="$GENHTML --frames"
14301 else
14302 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14303 $as_echo "not supported" >&6; }
14304 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14305 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14306 GENPNG=
14307 fi
14308 fi
14309 fi
14310
14311 ################################################################################
14312 { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14313 $as_echo_n "checking whether to enable unit testing... " >&6; }
14314 # Check whether --enable-testing was given.
14315 if test "${enable_testing+set}" = set; then
14316 enableval=$enable_testing; TESTING=$enableval
14317 else
14318 TESTING=no
14319 fi
14320
14321 { $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14322 $as_echo "$TESTING" >&6; }
14323
14324 if test "$TESTING" = yes; then
14325 # Extract the first word of "ruby1.9", so it can be a program name with args.
14326 set dummy ruby1.9; ac_word=$2
14327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14328 $as_echo_n "checking for $ac_word... " >&6; }
14329 if test "${ac_cv_path_RUBY19+set}" = set; then
14330 $as_echo_n "(cached) " >&6
14331 else
14332 case $RUBY19 in
14333 [\\/]* | ?:[\\/]*)
14334 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14335 ;;
14336 *)
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14339 do
14340 IFS=$as_save_IFS
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 break 2
14347 fi
14348 done
14349 done
14350 IFS=$as_save_IFS
14351
14352 ;;
14353 esac
14354 fi
14355 RUBY19=$ac_cv_path_RUBY19
14356 if test -n "$RUBY19"; then
14357 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14358 $as_echo "$RUBY19" >&6; }
14359 else
14360 { $as_echo "$as_me:$LINENO: result: no" >&5
14361 $as_echo "no" >&6; }
14362 fi
14363
14364
14365 # Extract the first word of "valgrind", so it can be a program name with args.
14366 set dummy valgrind; ac_word=$2
14367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if test "${ac_cv_path_VALGRIND+set}" = set; then
14370 $as_echo_n "(cached) " >&6
14371 else
14372 case $VALGRIND in
14373 [\\/]* | ?:[\\/]*)
14374 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14375 ;;
14376 *)
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14379 do
14380 IFS=$as_save_IFS
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14384 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 break 2
14387 fi
14388 done
14389 done
14390 IFS=$as_save_IFS
14391
14392 ;;
14393 esac
14394 fi
14395 VALGRIND=$ac_cv_path_VALGRIND
14396 if test -n "$VALGRIND"; then
14397 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14398 $as_echo "$VALGRIND" >&6; }
14399 else
14400 { $as_echo "$as_me:$LINENO: result: no" >&5
14401 $as_echo "no" >&6; }
14402 fi
14403
14404
14405 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14406 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14407 $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14408 { (exit 1); exit 1; }; }
14409 fi
14410 fi
14411
14412 ################################################################################
14413 { $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14414 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14415 # Check whether --enable-valgrind_pool was given.
14416 if test "${enable_valgrind_pool+set}" = set; then
14417 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14418 else
14419 VALGRIND_POOL=no
14420 fi
14421
14422 { $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14423 $as_echo "$VALGRIND_POOL" >&6; }
14424
14425 if test "$VALGRIND_POOL" = yes; then
14426
14427 for ac_header in valgrind/memcheck.h
14428 do
14429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14432 $as_echo_n "checking for $ac_header... " >&6; }
14433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14434 $as_echo_n "(cached) " >&6
14435 fi
14436 ac_res=`eval 'as_val=${'$as_ac_Header'}
14437 $as_echo "$as_val"'`
14438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14439 $as_echo "$ac_res" >&6; }
14440 else
14441 # Is the header compilable?
14442 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443 $as_echo_n "checking $ac_header usability... " >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 #include <$ac_header>
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460 $as_echo "$ac_try_echo") >&5
14461 (eval "$ac_compile") 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } && {
14468 test -z "$ac_c_werror_flag" ||
14469 test ! -s conftest.err
14470 } && test -s conftest.$ac_objext; then
14471 ac_header_compiler=yes
14472 else
14473 $as_echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_header_compiler=no
14477 fi
14478
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14481 $as_echo "$ac_header_compiler" >&6; }
14482
14483 # Is the header present?
14484 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14485 $as_echo_n "checking $ac_header presence... " >&6; }
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 #include <$ac_header>
14493 _ACEOF
14494 if { (ac_try="$ac_cpp conftest.$ac_ext"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498 esac
14499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14500 $as_echo "$ac_try_echo") >&5
14501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } >/dev/null && {
14508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 }; then
14511 ac_header_preproc=yes
14512 else
14513 $as_echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_header_preproc=no
14517 fi
14518
14519 rm -f conftest.err conftest.$ac_ext
14520 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14521 $as_echo "$ac_header_preproc" >&6; }
14522
14523 # So? What about this header?
14524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14525 yes:no: )
14526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14527 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14529 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14530 ac_header_preproc=yes
14531 ;;
14532 no:yes:* )
14533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14534 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14536 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14538 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14540 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14542 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14544 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14545
14546 ;;
14547 esac
14548 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14549 $as_echo_n "checking for $ac_header... " >&6; }
14550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14551 $as_echo_n "(cached) " >&6
14552 else
14553 eval "$as_ac_Header=\$ac_header_preproc"
14554 fi
14555 ac_res=`eval 'as_val=${'$as_ac_Header'}
14556 $as_echo "$as_val"'`
14557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14558 $as_echo "$ac_res" >&6; }
14559
14560 fi
14561 as_val=`eval 'as_val=${'$as_ac_Header'}
14562 $as_echo "$as_val"'`
14563 if test "x$as_val" = x""yes; then
14564 cat >>confdefs.h <<_ACEOF
14565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14566 _ACEOF
14567
14568 else
14569 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14570 $as_echo "$as_me: error: bailing out" >&2;}
14571 { (exit 1); exit 1; }; }
14572 fi
14573
14574 done
14575
14576
14577 cat >>confdefs.h <<\_ACEOF
14578 #define VALGRIND_POOL 1
14579 _ACEOF
14580
14581 fi
14582
14583 ################################################################################
14584 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14585 $as_echo_n "checking whether to use device-mapper... " >&6; }
14586 # Check whether --enable-devmapper was given.
14587 if test "${enable_devmapper+set}" = set; then
14588 enableval=$enable_devmapper; DEVMAPPER=$enableval
14589 fi
14590
14591 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14592 $as_echo "$DEVMAPPER" >&6; }
14593
14594 if test x$DEVMAPPER = xyes; then
14595
14596 cat >>confdefs.h <<\_ACEOF
14597 #define DEVMAPPER_SUPPORT 1
14598 _ACEOF
14599
14600 fi
14601
14602 ################################################################################
14603 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14604 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14605 # Check whether --enable-udev_sync was given.
14606 if test "${enable_udev_sync+set}" = set; then
14607 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14608 else
14609 UDEV_SYNC=no
14610 fi
14611
14612 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14613 $as_echo "$UDEV_SYNC" >&6; }
14614
14615 if test x$UDEV_SYNC = xyes; then
14616 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14617 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14618 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14619 $as_echo_n "(cached) " >&6
14620 else
14621 ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-ludev $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h. */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629
14630 /* Override any GCC internal prototype to avoid an error.
14631 Use char because int might match the return type of a GCC
14632 builtin and then its argument prototype would still apply. */
14633 #ifdef __cplusplus
14634 extern "C"
14635 #endif
14636 char udev_queue_get_udev_is_active ();
14637 int
14638 main ()
14639 {
14640 return udev_queue_get_udev_is_active ();
14641 ;
14642 return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext conftest$ac_exeext
14646 if { (ac_try="$ac_link"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650 esac
14651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14652 $as_echo "$ac_try_echo") >&5
14653 (eval "$ac_link") 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } && {
14660 test -z "$ac_c_werror_flag" ||
14661 test ! -s conftest.err
14662 } && test -s conftest$ac_exeext && {
14663 test "$cross_compiling" = yes ||
14664 $as_test_x conftest$ac_exeext
14665 }; then
14666 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14667 else
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14672 fi
14673
14674 rm -rf conftest.dSYM
14675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14676 conftest$ac_exeext conftest.$ac_ext
14677 LIBS=$ac_check_lib_save_LIBS
14678 fi
14679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14680 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14681 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
14682 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
14683 else
14684 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14685 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14686 { (exit 1); exit 1; }; }
14687 fi
14688
14689
14690 cat >>confdefs.h <<\_ACEOF
14691 #define UDEV_SYNC_SUPPORT 1
14692 _ACEOF
14693
14694 fi
14695
14696 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14697 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14698 # Check whether --enable-udev_rules was given.
14699 if test "${enable_udev_rules+set}" = set; then
14700 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14701 else
14702 UDEV_RULES=$UDEV_SYNC
14703 fi
14704
14705 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14706 $as_echo "$UDEV_RULES" >&6; }
14707
14708 ################################################################################
14709 # Check whether --enable-compat was given.
14710 if test "${enable_compat+set}" = set; then
14711 enableval=$enable_compat; DM_COMPAT=$enableval
14712 else
14713 DM_COMPAT=no
14714 fi
14715
14716
14717 ################################################################################
14718 # Check whether --enable-units-compat was given.
14719 if test "${enable_units_compat+set}" = set; then
14720 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14721 else
14722 UNITS_COMPAT=no
14723 fi
14724
14725
14726 if test x$UNITS_COMPAT = xyes; then
14727
14728 cat >>confdefs.h <<\_ACEOF
14729 #define DEFAULT_SI_UNIT_CONSISTENCY 0
14730 _ACEOF
14731
14732 fi
14733
14734 ################################################################################
14735 # Check whether --enable-ioctl was given.
14736 if test "${enable_ioctl+set}" = set; then
14737 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14738 fi
14739
14740
14741 ################################################################################
14742 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14743 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
14744 # Check whether --enable-o_direct was given.
14745 if test "${enable_o_direct+set}" = set; then
14746 enableval=$enable_o_direct; ODIRECT=$enableval
14747 fi
14748
14749 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14750 $as_echo "$ODIRECT" >&6; }
14751
14752 if test x$ODIRECT = xyes; then
14753
14754 cat >>confdefs.h <<\_ACEOF
14755 #define O_DIRECT_SUPPORT 1
14756 _ACEOF
14757
14758 fi
14759
14760 ################################################################################
14761 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14762 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14763 # Check whether --enable-applib was given.
14764 if test "${enable_applib+set}" = set; then
14765 enableval=$enable_applib; APPLIB=$enableval
14766 else
14767 APPLIB=no
14768 fi
14769
14770 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14771 $as_echo "$APPLIB" >&6; }
14772
14773 test x$APPLIB = xyes \
14774 && LVM2APP_LIB=-llvm2app \
14775 || LVM2APP_LIB=
14776
14777 ################################################################################
14778 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14779 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
14780 # Check whether --enable-cmdlib was given.
14781 if test "${enable_cmdlib+set}" = set; then
14782 enableval=$enable_cmdlib; CMDLIB=$enableval
14783 else
14784 CMDLIB=no
14785 fi
14786
14787 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14788 $as_echo "$CMDLIB" >&6; }
14789
14790 test x$CMDLIB = xyes \
14791 && LVM2CMD_LIB=-llvm2cmd \
14792 || LVM2CMD_LIB=
14793
14794 ################################################################################
14795 # Check whether --enable-pkgconfig was given.
14796 if test "${enable_pkgconfig+set}" = set; then
14797 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14798 else
14799 PKGCONFIG=no
14800 fi
14801
14802
14803 ################################################################################
14804 # Check whether --enable-write_install was given.
14805 if test "${enable_write_install+set}" = set; then
14806 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14807 else
14808 WRITE_INSTALL=no
14809 fi
14810
14811
14812 ################################################################################
14813 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14814 $as_echo_n "checking whether to install fsadm... " >&6; }
14815 # Check whether --enable-fsadm was given.
14816 if test "${enable_fsadm+set}" = set; then
14817 enableval=$enable_fsadm; FSADM=$enableval
14818 fi
14819
14820 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14821 $as_echo "$FSADM" >&6; }
14822
14823 ################################################################################
14824 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14825 $as_echo_n "checking whether to use dmeventd... " >&6; }
14826 # Check whether --enable-dmeventd was given.
14827 if test "${enable_dmeventd+set}" = set; then
14828 enableval=$enable_dmeventd; DMEVENTD=$enableval
14829 fi
14830
14831 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14832 $as_echo "$DMEVENTD" >&6; }
14833
14834 BUILD_DMEVENTD=$DMEVENTD
14835
14836 if test x$DMEVENTD = xyes; then
14837 if test x$MIRRORS != xinternal; then
14838 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
14839 " >&5
14840 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
14841 " >&2;}
14842 { (exit 1); exit 1; }; }
14843 fi
14844 if test x$CMDLIB = xno; then
14845 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14846 " >&5
14847 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14848 " >&2;}
14849 { (exit 1); exit 1; }; }
14850 fi
14851 fi
14852
14853 if test x$DMEVENTD = xyes; then
14854
14855 cat >>confdefs.h <<\_ACEOF
14856 #define DMEVENTD 1
14857 _ACEOF
14858
14859 fi
14860
14861 ################################################################################
14862
14863 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14864 $as_echo_n "checking for getline in -lc... " >&6; }
14865 if test "${ac_cv_lib_c_getline+set}" = set; then
14866 $as_echo_n "(cached) " >&6
14867 else
14868 ac_check_lib_save_LIBS=$LIBS
14869 LIBS="-lc $LIBS"
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876
14877 /* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14880 #ifdef __cplusplus
14881 extern "C"
14882 #endif
14883 char getline ();
14884 int
14885 main ()
14886 {
14887 return getline ();
14888 ;
14889 return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest.$ac_objext conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899 $as_echo "$ac_try_echo") >&5
14900 (eval "$ac_link") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest$ac_exeext && {
14910 test "$cross_compiling" = yes ||
14911 $as_test_x conftest$ac_exeext
14912 }; then
14913 ac_cv_lib_c_getline=yes
14914 else
14915 $as_echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_lib_c_getline=no
14919 fi
14920
14921 rm -rf conftest.dSYM
14922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14923 conftest$ac_exeext conftest.$ac_ext
14924 LIBS=$ac_check_lib_save_LIBS
14925 fi
14926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14927 $as_echo "$ac_cv_lib_c_getline" >&6; }
14928 if test "x$ac_cv_lib_c_getline" = x""yes; then
14929
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_GETLINE 1
14932 _ACEOF
14933
14934 fi
14935
14936
14937 ################################################################################
14938
14939 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14940 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
14941 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
14942 $as_echo_n "(cached) " >&6
14943 else
14944 ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lc $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952
14953 /* Override any GCC internal prototype to avoid an error.
14954 Use char because int might match the return type of a GCC
14955 builtin and then its argument prototype would still apply. */
14956 #ifdef __cplusplus
14957 extern "C"
14958 #endif
14959 char canonicalize_file_name ();
14960 int
14961 main ()
14962 {
14963 return canonicalize_file_name ();
14964 ;
14965 return 0;
14966 }
14967 _ACEOF
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (ac_try="$ac_link"
14970 case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14975 $as_echo "$ac_try_echo") >&5
14976 (eval "$ac_link") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext && {
14986 test "$cross_compiling" = yes ||
14987 $as_test_x conftest$ac_exeext
14988 }; then
14989 ac_cv_lib_c_canonicalize_file_name=yes
14990 else
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_cv_lib_c_canonicalize_file_name=no
14995 fi
14996
14997 rm -rf conftest.dSYM
14998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15001 fi
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
15003 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
15004 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
15005
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_CANONICALIZE_FILE_NAME 1
15008 _ACEOF
15009
15010 fi
15011
15012
15013 ################################################################################
15014 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
15015 then exec_prefix="";
15016 fi;
15017
15018 ################################################################################
15019 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15020 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15022 $as_echo_n "(cached) " >&6
15023 else
15024 ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-ldl $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h. */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032
15033 /* Override any GCC internal prototype to avoid an error.
15034 Use char because int might match the return type of a GCC
15035 builtin and then its argument prototype would still apply. */
15036 #ifdef __cplusplus
15037 extern "C"
15038 #endif
15039 char dlopen ();
15040 int
15041 main ()
15042 {
15043 return dlopen ();
15044 ;
15045 return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053 esac
15054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055 $as_echo "$ac_try_echo") >&5
15056 (eval "$ac_link") 2>conftest.er1
15057 ac_status=$?
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest$ac_exeext && {
15066 test "$cross_compiling" = yes ||
15067 $as_test_x conftest$ac_exeext
15068 }; then
15069 ac_cv_lib_dl_dlopen=yes
15070 else
15071 $as_echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074 ac_cv_lib_dl_dlopen=no
15075 fi
15076
15077 rm -rf conftest.dSYM
15078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15079 conftest$ac_exeext conftest.$ac_ext
15080 LIBS=$ac_check_lib_save_LIBS
15081 fi
15082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15083 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15084 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15085
15086
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_LIBDL 1
15089 _ACEOF
15090
15091 DL_LIBS="-ldl"
15092 HAVE_LIBDL=yes
15093 else
15094
15095 DL_LIBS=
15096 HAVE_LIBDL=no
15097 fi
15098
15099
15100 ################################################################################
15101 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15102 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15103 \) -a "x$STATIC_LINK" = xyes ];
15104 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
15105 " >&5
15106 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
15107 " >&2;}
15108 { (exit 1); exit 1; }; }
15109 fi
15110
15111 ################################################################################
15112 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15113 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15114 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15115 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15116 $as_echo_n "(cached) " >&6
15117 else
15118 ac_check_lib_save_LIBS=$LIBS
15119 LIBS="-lpthread $LIBS"
15120 cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h. */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126
15127 /* Override any GCC internal prototype to avoid an error.
15128 Use char because int might match the return type of a GCC
15129 builtin and then its argument prototype would still apply. */
15130 #ifdef __cplusplus
15131 extern "C"
15132 #endif
15133 char pthread_mutex_lock ();
15134 int
15135 main ()
15136 {
15137 return pthread_mutex_lock ();
15138 ;
15139 return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (ac_try="$ac_link"
15144 case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147 esac
15148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15149 $as_echo "$ac_try_echo") >&5
15150 (eval "$ac_link") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext && {
15160 test "$cross_compiling" = yes ||
15161 $as_test_x conftest$ac_exeext
15162 }; then
15163 ac_cv_lib_pthread_pthread_mutex_lock=yes
15164 else
15165 $as_echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 ac_cv_lib_pthread_pthread_mutex_lock=no
15169 fi
15170
15171 rm -rf conftest.dSYM
15172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15173 conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15175 fi
15176 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15177 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15178 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15179 PTHREAD_LIBS="-lpthread"
15180 else
15181 hard_bailout
15182 fi
15183
15184 fi
15185
15186 ################################################################################
15187 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15188 $as_echo_n "checking whether to enable selinux support... " >&6; }
15189 # Check whether --enable-selinux was given.
15190 if test "${enable_selinux+set}" = set; then
15191 enableval=$enable_selinux; SELINUX=$enableval
15192 fi
15193
15194 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15195 $as_echo "$SELINUX" >&6; }
15196
15197 ################################################################################
15198 if test x$SELINUX = xyes; then
15199 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15200 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
15201 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
15202 $as_echo_n "(cached) " >&6
15203 else
15204 ac_check_lib_save_LIBS=$LIBS
15205 LIBS="-lsepol $LIBS"
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h. */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212
15213 /* Override any GCC internal prototype to avoid an error.
15214 Use char because int might match the return type of a GCC
15215 builtin and then its argument prototype would still apply. */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 char sepol_check_context ();
15220 int
15221 main ()
15222 {
15223 return sepol_check_context ();
15224 ;
15225 return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15235 $as_echo "$ac_try_echo") >&5
15236 (eval "$ac_link") 2>conftest.er1
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
15241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest$ac_exeext && {
15246 test "$cross_compiling" = yes ||
15247 $as_test_x conftest$ac_exeext
15248 }; then
15249 ac_cv_lib_sepol_sepol_check_context=yes
15250 else
15251 $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_cv_lib_sepol_sepol_check_context=no
15255 fi
15256
15257 rm -rf conftest.dSYM
15258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15259 conftest$ac_exeext conftest.$ac_ext
15260 LIBS=$ac_check_lib_save_LIBS
15261 fi
15262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15263 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15264 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
15265
15266
15267 cat >>confdefs.h <<\_ACEOF
15268 #define HAVE_SEPOL 1
15269 _ACEOF
15270
15271 SELINUX_LIBS="-lsepol"
15272 fi
15273
15274
15275 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15276 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15277 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15278 $as_echo_n "(cached) " >&6
15279 else
15280 ac_check_lib_save_LIBS=$LIBS
15281 LIBS="-lselinux $LIBS"
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288
15289 /* Override any GCC internal prototype to avoid an error.
15290 Use char because int might match the return type of a GCC
15291 builtin and then its argument prototype would still apply. */
15292 #ifdef __cplusplus
15293 extern "C"
15294 #endif
15295 char is_selinux_enabled ();
15296 int
15297 main ()
15298 {
15299 return is_selinux_enabled ();
15300 ;
15301 return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312 (eval "$ac_link") 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
15321 } && test -s conftest$ac_exeext && {
15322 test "$cross_compiling" = yes ||
15323 $as_test_x conftest$ac_exeext
15324 }; then
15325 ac_cv_lib_selinux_is_selinux_enabled=yes
15326 else
15327 $as_echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ac_cv_lib_selinux_is_selinux_enabled=no
15331 fi
15332
15333 rm -rf conftest.dSYM
15334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15337 fi
15338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15339 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15340 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15341
15342
15343 for ac_header in selinux/selinux.h
15344 do
15345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 $as_echo_n "checking for $ac_header... " >&6; }
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 $as_echo_n "(cached) " >&6
15351 fi
15352 ac_res=`eval 'as_val=${'$as_ac_Header'}
15353 $as_echo "$as_val"'`
15354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15355 $as_echo "$ac_res" >&6; }
15356 else
15357 # Is the header compilable?
15358 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359 $as_echo_n "checking $ac_header usability... " >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15361 /* confdefs.h. */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <$ac_header>
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374 esac
15375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15376 $as_echo "$ac_try_echo") >&5
15377 (eval "$ac_compile") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest.$ac_objext; then
15387 ac_header_compiler=yes
15388 else
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_header_compiler=no
15393 fi
15394
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15397 $as_echo "$ac_header_compiler" >&6; }
15398
15399 # Is the header present?
15400 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15401 $as_echo_n "checking $ac_header presence... " >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h. */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 #include <$ac_header>
15409 _ACEOF
15410 if { (ac_try="$ac_cpp conftest.$ac_ext"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } >/dev/null && {
15424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 }; then
15427 ac_header_preproc=yes
15428 else
15429 $as_echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 ac_header_preproc=no
15433 fi
15434
15435 rm -f conftest.err conftest.$ac_ext
15436 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15437 $as_echo "$ac_header_preproc" >&6; }
15438
15439 # So? What about this header?
15440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15441 yes:no: )
15442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15443 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15446 ac_header_preproc=yes
15447 ;;
15448 no:yes:* )
15449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15450 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15452 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15454 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15456 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15460 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15461
15462 ;;
15463 esac
15464 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15465 $as_echo_n "checking for $ac_header... " >&6; }
15466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 $as_echo_n "(cached) " >&6
15468 else
15469 eval "$as_ac_Header=\$ac_header_preproc"
15470 fi
15471 ac_res=`eval 'as_val=${'$as_ac_Header'}
15472 $as_echo "$as_val"'`
15473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15474 $as_echo "$ac_res" >&6; }
15475
15476 fi
15477 as_val=`eval 'as_val=${'$as_ac_Header'}
15478 $as_echo "$as_val"'`
15479 if test "x$as_val" = x""yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482 _ACEOF
15483
15484 else
15485 hard_bailout
15486 fi
15487
15488 done
15489
15490
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_SELINUX 1
15493 _ACEOF
15494
15495 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
15496 SELINUX_PC="libselinux"
15497 HAVE_SELINUX=yes
15498 else
15499
15500 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15501 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15502 SELINUX_LIBS=
15503 SELINUX_PC=
15504 HAVE_SELINUX=no
15505 fi
15506
15507 fi
15508
15509 ################################################################################
15510 if test x$REALTIME = xyes; then
15511 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15512 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15513 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
15514 $as_echo_n "(cached) " >&6
15515 else
15516 ac_check_lib_save_LIBS=$LIBS
15517 LIBS="-lrt $LIBS"
15518 cat >conftest.$ac_ext <<_ACEOF
15519 /* confdefs.h. */
15520 _ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524
15525 /* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
15528 #ifdef __cplusplus
15529 extern "C"
15530 #endif
15531 char clock_gettime ();
15532 int
15533 main ()
15534 {
15535 return clock_gettime ();
15536 ;
15537 return 0;
15538 }
15539 _ACEOF
15540 rm -f conftest.$ac_objext conftest$ac_exeext
15541 if { (ac_try="$ac_link"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545 esac
15546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15547 $as_echo "$ac_try_echo") >&5
15548 (eval "$ac_link") 2>conftest.er1
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
15553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } && {
15555 test -z "$ac_c_werror_flag" ||
15556 test ! -s conftest.err
15557 } && test -s conftest$ac_exeext && {
15558 test "$cross_compiling" = yes ||
15559 $as_test_x conftest$ac_exeext
15560 }; then
15561 ac_cv_lib_rt_clock_gettime=yes
15562 else
15563 $as_echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 ac_cv_lib_rt_clock_gettime=no
15567 fi
15568
15569 rm -rf conftest.dSYM
15570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15571 conftest$ac_exeext conftest.$ac_ext
15572 LIBS=$ac_check_lib_save_LIBS
15573 fi
15574 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15575 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15576 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
15577 HAVE_REALTIME=yes
15578 else
15579 HAVE_REALTIME=no
15580 fi
15581
15582
15583 if test x$HAVE_REALTIME = xyes; then
15584
15585 cat >>confdefs.h <<\_ACEOF
15586 #define HAVE_REALTIME 1
15587 _ACEOF
15588
15589 LIBS="-lrt $LIBS"
15590 else
15591 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15592 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
15593 fi
15594 fi
15595
15596 ################################################################################
15597
15598 for ac_header in getopt.h
15599 do
15600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 $as_echo_n "checking for $ac_header... " >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605 $as_echo_n "(cached) " >&6
15606 fi
15607 ac_res=`eval 'as_val=${'$as_ac_Header'}
15608 $as_echo "$as_val"'`
15609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15610 $as_echo "$ac_res" >&6; }
15611 else
15612 # Is the header compilable?
15613 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614 $as_echo_n "checking $ac_header usability... " >&6; }
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 $ac_includes_default
15622 #include <$ac_header>
15623 _ACEOF
15624 rm -f conftest.$ac_objext
15625 if { (ac_try="$ac_compile"
15626 case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629 esac
15630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15631 $as_echo "$ac_try_echo") >&5
15632 (eval "$ac_compile") 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest.$ac_objext; then
15642 ac_header_compiler=yes
15643 else
15644 $as_echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 ac_header_compiler=no
15648 fi
15649
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15652 $as_echo "$ac_header_compiler" >&6; }
15653
15654 # Is the header present?
15655 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15656 $as_echo_n "checking $ac_header presence... " >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h. */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 #include <$ac_header>
15664 _ACEOF
15665 if { (ac_try="$ac_cpp conftest.$ac_ext"
15666 case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669 esac
15670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15671 $as_echo "$ac_try_echo") >&5
15672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } >/dev/null && {
15679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 }; then
15682 ac_header_preproc=yes
15683 else
15684 $as_echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15686
15687 ac_header_preproc=no
15688 fi
15689
15690 rm -f conftest.err conftest.$ac_ext
15691 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15692 $as_echo "$ac_header_preproc" >&6; }
15693
15694 # So? What about this header?
15695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15696 yes:no: )
15697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15698 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15701 ac_header_preproc=yes
15702 ;;
15703 no:yes:* )
15704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15705 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15707 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15709 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15711 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15715 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15716
15717 ;;
15718 esac
15719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15720 $as_echo_n "checking for $ac_header... " >&6; }
15721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15722 $as_echo_n "(cached) " >&6
15723 else
15724 eval "$as_ac_Header=\$ac_header_preproc"
15725 fi
15726 ac_res=`eval 'as_val=${'$as_ac_Header'}
15727 $as_echo "$as_val"'`
15728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15729 $as_echo "$ac_res" >&6; }
15730
15731 fi
15732 as_val=`eval 'as_val=${'$as_ac_Header'}
15733 $as_echo "$as_val"'`
15734 if test "x$as_val" = x""yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15737 _ACEOF
15738
15739 cat >>confdefs.h <<\_ACEOF
15740 #define HAVE_GETOPTLONG 1
15741 _ACEOF
15742
15743 fi
15744
15745 done
15746
15747
15748 ################################################################################
15749 if test x$READLINE != xno; then
15750 lvm_saved_libs=$LIBS
15751 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15752 $as_echo_n "checking for library containing tgetent... " >&6; }
15753 if test "${ac_cv_search_tgetent+set}" = set; then
15754 $as_echo_n "(cached) " >&6
15755 else
15756 ac_func_search_save_LIBS=$LIBS
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h. */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15767 #ifdef __cplusplus
15768 extern "C"
15769 #endif
15770 char tgetent ();
15771 int
15772 main ()
15773 {
15774 return tgetent ();
15775 ;
15776 return 0;
15777 }
15778 _ACEOF
15779 for ac_lib in '' tinfo ncurses curses termcap termlib; do
15780 if test -z "$ac_lib"; then
15781 ac_res="none required"
15782 else
15783 ac_res=-l$ac_lib
15784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15785 fi
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791 esac
15792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793 $as_echo "$ac_try_echo") >&5
15794 (eval "$ac_link") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest$ac_exeext && {
15804 test "$cross_compiling" = yes ||
15805 $as_test_x conftest$ac_exeext
15806 }; then
15807 ac_cv_search_tgetent=$ac_res
15808 else
15809 $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812
15813 fi
15814
15815 rm -rf conftest.dSYM
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext
15818 if test "${ac_cv_search_tgetent+set}" = set; then
15819 break
15820 fi
15821 done
15822 if test "${ac_cv_search_tgetent+set}" = set; then
15823 :
15824 else
15825 ac_cv_search_tgetent=no
15826 fi
15827 rm conftest.$ac_ext
15828 LIBS=$ac_func_search_save_LIBS
15829 fi
15830 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15831 $as_echo "$ac_cv_search_tgetent" >&6; }
15832 ac_res=$ac_cv_search_tgetent
15833 if test "$ac_res" != no; then
15834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15835 READLINE_LIBS=$ac_cv_search_tgetent
15836 else
15837
15838 if test "$READLINE" = yes; then
15839 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15840 --enable-readline option (which is enabled by default). Either disable readline
15841 support with --disable-readline or download and install termcap from:
15842 ftp.gnu.org/gnu/termcap
15843 Note: if you are using precompiled packages you will also need the development
15844 package as well (which may be called termcap-devel or something similar).
15845 Note: (n)curses also seems to work as a substitute for termcap. This was
15846 not found either - but you could try installing that as well." >&5
15847 $as_echo "$as_me: error: termcap could not be found which is required for the
15848 --enable-readline option (which is enabled by default). Either disable readline
15849 support with --disable-readline or download and install termcap from:
15850 ftp.gnu.org/gnu/termcap
15851 Note: if you are using precompiled packages you will also need the development
15852 package as well (which may be called termcap-devel or something similar).
15853 Note: (n)curses also seems to work as a substitute for termcap. This was
15854 not found either - but you could try installing that as well." >&2;}
15855 { (exit 1); exit 1; }; }
15856 fi
15857 fi
15858
15859 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
15860 $as_echo_n "checking for readline in -lreadline... " >&6; }
15861 if test "${ac_cv_lib_readline_readline+set}" = set; then
15862 $as_echo_n "(cached) " >&6
15863 else
15864 ac_check_lib_save_LIBS=$LIBS
15865 LIBS="-lreadline $LIBS"
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872
15873 /* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
15876 #ifdef __cplusplus
15877 extern "C"
15878 #endif
15879 char readline ();
15880 int
15881 main ()
15882 {
15883 return readline ();
15884 ;
15885 return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (ac_try="$ac_link"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893 esac
15894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15895 $as_echo "$ac_try_echo") >&5
15896 (eval "$ac_link") 2>conftest.er1
15897 ac_status=$?
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
15901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest$ac_exeext && {
15906 test "$cross_compiling" = yes ||
15907 $as_test_x conftest$ac_exeext
15908 }; then
15909 ac_cv_lib_readline_readline=yes
15910 else
15911 $as_echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 ac_cv_lib_readline_readline=no
15915 fi
15916
15917 rm -rf conftest.dSYM
15918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15919 conftest$ac_exeext conftest.$ac_ext
15920 LIBS=$ac_check_lib_save_LIBS
15921 fi
15922 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15923 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15924 if test "x$ac_cv_lib_readline_readline" = x""yes; then
15925
15926
15927 cat >>confdefs.h <<\_ACEOF
15928 #define READLINE_SUPPORT 1
15929 _ACEOF
15930
15931 LIBS=$lvm_saved_libs
15932 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15933 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15934 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15935 $as_echo_n "(cached) " >&6
15936 else
15937 ac_check_lib_save_LIBS=$LIBS
15938 LIBS="-lreadline $LIBS"
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945
15946 /* Override any GCC internal prototype to avoid an error.
15947 Use char because int might match the return type of a GCC
15948 builtin and then its argument prototype would still apply. */
15949 #ifdef __cplusplus
15950 extern "C"
15951 #endif
15952 char rl_line_buffer ();
15953 int
15954 main ()
15955 {
15956 return rl_line_buffer ();
15957 ;
15958 return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext conftest$ac_exeext
15962 if { (ac_try="$ac_link"
15963 case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966 esac
15967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15968 $as_echo "$ac_try_echo") >&5
15969 (eval "$ac_link") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest$ac_exeext && {
15979 test "$cross_compiling" = yes ||
15980 $as_test_x conftest$ac_exeext
15981 }; then
15982 ac_cv_lib_readline_rl_line_buffer=yes
15983 else
15984 $as_echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_cv_lib_readline_rl_line_buffer=no
15988 fi
15989
15990 rm -rf conftest.dSYM
15991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15992 conftest$ac_exeext conftest.$ac_ext
15993 LIBS=$ac_check_lib_save_LIBS
15994 fi
15995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15996 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15997 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15998 READLINE_LIBS="-lreadline"
15999 else
16000
16001 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
16002 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
16003 READLINE_LIBS="-lreadline $READLINE_LIBS"
16004
16005 fi
16006
16007 else
16008
16009 READLINE_LIBS=
16010 if test "$READLINE" = yes; then
16011 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
16012 --enable-readline option (which is enabled by default). Either disable readline
16013 support with --disable-readline or download and install readline from:
16014 ftp.gnu.org/gnu/readline
16015 Note: if you are using precompiled packages you will also need the development
16016 package as well (which may be called readline-devel or something similar)." >&5
16017 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
16018 --enable-readline option (which is enabled by default). Either disable readline
16019 support with --disable-readline or download and install readline from:
16020 ftp.gnu.org/gnu/readline
16021 Note: if you are using precompiled packages you will also need the development
16022 package as well (which may be called readline-devel or something similar)." >&2;}
16023 { (exit 1); exit 1; }; }
16024 fi
16025 fi
16026
16027 LIBS="$READLINE_LIBS $lvm_saved_libs"
16028
16029 for ac_func in rl_completion_matches
16030 do
16031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16033 $as_echo_n "checking for $ac_func... " >&6; }
16034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16035 $as_echo_n "(cached) " >&6
16036 else
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16045 #define $ac_func innocuous_$ac_func
16046
16047 /* System header to define __stub macros and hopefully few prototypes,
16048 which can conflict with char $ac_func (); below.
16049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050 <limits.h> exists even on freestanding compilers. */
16051
16052 #ifdef __STDC__
16053 # include <limits.h>
16054 #else
16055 # include <assert.h>
16056 #endif
16057
16058 #undef $ac_func
16059
16060 /* Override any GCC internal prototype to avoid an error.
16061 Use char because int might match the return type of a GCC
16062 builtin and then its argument prototype would still apply. */
16063 #ifdef __cplusplus
16064 extern "C"
16065 #endif
16066 char $ac_func ();
16067 /* The GNU C library defines this for functions which it implements
16068 to always fail with ENOSYS. Some functions are actually named
16069 something starting with __ and the normal name is an alias. */
16070 #if defined __stub_$ac_func || defined __stub___$ac_func
16071 choke me
16072 #endif
16073
16074 int
16075 main ()
16076 {
16077 return $ac_func ();
16078 ;
16079 return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext conftest$ac_exeext
16083 if { (ac_try="$ac_link"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087 esac
16088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16089 $as_echo "$ac_try_echo") >&5
16090 (eval "$ac_link") 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } && {
16097 test -z "$ac_c_werror_flag" ||
16098 test ! -s conftest.err
16099 } && test -s conftest$ac_exeext && {
16100 test "$cross_compiling" = yes ||
16101 $as_test_x conftest$ac_exeext
16102 }; then
16103 eval "$as_ac_var=yes"
16104 else
16105 $as_echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108 eval "$as_ac_var=no"
16109 fi
16110
16111 rm -rf conftest.dSYM
16112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16113 conftest$ac_exeext conftest.$ac_ext
16114 fi
16115 ac_res=`eval 'as_val=${'$as_ac_var'}
16116 $as_echo "$as_val"'`
16117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16118 $as_echo "$ac_res" >&6; }
16119 as_val=`eval 'as_val=${'$as_ac_var'}
16120 $as_echo "$as_val"'`
16121 if test "x$as_val" = x""yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16124 _ACEOF
16125
16126 fi
16127 done
16128
16129 LIBS=$lvm_saved_libs
16130 fi
16131
16132 ################################################################################
16133 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16134 $as_echo_n "checking whether to enable internationalisation... " >&6; }
16135 # Check whether --enable-nls was given.
16136 if test "${enable_nls+set}" = set; then
16137 enableval=$enable_nls; INTL=$enableval
16138 else
16139 INTL=no
16140 fi
16141
16142 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
16143 $as_echo "$INTL" >&6; }
16144
16145 if test x$INTL = xyes; then
16146 # FIXME - Move this - can be device-mapper too
16147 INTL_PACKAGE="lvm2"
16148 # Extract the first word of "msgfmt", so it can be a program name with args.
16149 set dummy msgfmt; ac_word=$2
16150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16151 $as_echo_n "checking for $ac_word... " >&6; }
16152 if test "${ac_cv_path_MSGFMT+set}" = set; then
16153 $as_echo_n "(cached) " >&6
16154 else
16155 case $MSGFMT in
16156 [\\/]* | ?:[\\/]*)
16157 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16158 ;;
16159 *)
16160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161 for as_dir in $PATH
16162 do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 for ac_exec_ext in '' $ac_executable_extensions; do
16166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16167 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16169 break 2
16170 fi
16171 done
16172 done
16173 IFS=$as_save_IFS
16174
16175 ;;
16176 esac
16177 fi
16178 MSGFMT=$ac_cv_path_MSGFMT
16179 if test -n "$MSGFMT"; then
16180 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16181 $as_echo "$MSGFMT" >&6; }
16182 else
16183 { $as_echo "$as_me:$LINENO: result: no" >&5
16184 $as_echo "no" >&6; }
16185 fi
16186
16187
16188 if [ "x$MSGFMT" == x ];
16189 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
16190 " >&5
16191 $as_echo "$as_me: error: msgfmt not found in path $PATH
16192 " >&2;}
16193 { (exit 1); exit 1; }; }
16194 fi;
16195
16196
16197 # Check whether --with-localedir was given.
16198 if test "${with_localedir+set}" = set; then
16199 withval=$with_localedir; LOCALEDIR=$withval
16200 else
16201 LOCALEDIR='${prefix}/share/locale'
16202 fi
16203
16204 fi
16205
16206 ################################################################################
16207
16208 # Check whether --with-confdir was given.
16209 if test "${with_confdir+set}" = set; then
16210 withval=$with_confdir; CONFDIR=$withval
16211 else
16212 CONFDIR="/etc"
16213 fi
16214
16215
16216
16217 # Check whether --with-staticdir was given.
16218 if test "${with_staticdir+set}" = set; then
16219 withval=$with_staticdir; STATICDIR=$withval
16220 else
16221 STATICDIR='${exec_prefix}/sbin'
16222 fi
16223
16224
16225
16226 # Check whether --with-usrlibdir was given.
16227 if test "${with_usrlibdir+set}" = set; then
16228 withval=$with_usrlibdir; usrlibdir=$withval
16229 else
16230 usrlibdir='${prefix}/lib'
16231 fi
16232
16233
16234
16235 # Check whether --with-usrsbindir was given.
16236 if test "${with_usrsbindir+set}" = set; then
16237 withval=$with_usrsbindir; usrsbindir=$withval
16238 else
16239 usrsbindir='${prefix}/sbin'
16240 fi
16241
16242
16243 ################################################################################
16244
16245 # Check whether --with-udev_prefix was given.
16246 if test "${with_udev_prefix+set}" = set; then
16247 withval=$with_udev_prefix; udev_prefix=$withval
16248 else
16249 udev_prefix='${exec_prefix}'
16250 fi
16251
16252
16253
16254 # Check whether --with-udevdir was given.
16255 if test "${with_udevdir+set}" = set; then
16256 withval=$with_udevdir; udevdir=$withval
16257 else
16258 udevdir='${udev_prefix}/lib/udev/rules.d'
16259 fi
16260
16261
16262 ################################################################################
16263 if test x$READLINE = xyes; then
16264
16265
16266 for ac_header in readline/readline.h readline/history.h
16267 do
16268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16271 $as_echo_n "checking for $ac_header... " >&6; }
16272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16273 $as_echo_n "(cached) " >&6
16274 fi
16275 ac_res=`eval 'as_val=${'$as_ac_Header'}
16276 $as_echo "$as_val"'`
16277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16278 $as_echo "$ac_res" >&6; }
16279 else
16280 # Is the header compilable?
16281 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16282 $as_echo_n "checking $ac_header usability... " >&6; }
16283 cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h. */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 #include <$ac_header>
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (ac_try="$ac_compile"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16299 $as_echo "$ac_try_echo") >&5
16300 (eval "$ac_compile") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } && {
16307 test -z "$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16309 } && test -s conftest.$ac_objext; then
16310 ac_header_compiler=yes
16311 else
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315 ac_header_compiler=no
16316 fi
16317
16318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16320 $as_echo "$ac_header_compiler" >&6; }
16321
16322 # Is the header present?
16323 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16324 $as_echo_n "checking $ac_header presence... " >&6; }
16325 cat >conftest.$ac_ext <<_ACEOF
16326 /* confdefs.h. */
16327 _ACEOF
16328 cat confdefs.h >>conftest.$ac_ext
16329 cat >>conftest.$ac_ext <<_ACEOF
16330 /* end confdefs.h. */
16331 #include <$ac_header>
16332 _ACEOF
16333 if { (ac_try="$ac_cpp conftest.$ac_ext"
16334 case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337 esac
16338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339 $as_echo "$ac_try_echo") >&5
16340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } >/dev/null && {
16347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 }; then
16350 ac_header_preproc=yes
16351 else
16352 $as_echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 ac_header_preproc=no
16356 fi
16357
16358 rm -f conftest.err conftest.$ac_ext
16359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16360 $as_echo "$ac_header_preproc" >&6; }
16361
16362 # So? What about this header?
16363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16364 yes:no: )
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16366 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16368 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16369 ac_header_preproc=yes
16370 ;;
16371 no:yes:* )
16372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16373 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16375 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16377 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16379 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16383 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16384
16385 ;;
16386 esac
16387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16388 $as_echo_n "checking for $ac_header... " >&6; }
16389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16390 $as_echo_n "(cached) " >&6
16391 else
16392 eval "$as_ac_Header=\$ac_header_preproc"
16393 fi
16394 ac_res=`eval 'as_val=${'$as_ac_Header'}
16395 $as_echo "$as_val"'`
16396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16397 $as_echo "$ac_res" >&6; }
16398
16399 fi
16400 as_val=`eval 'as_val=${'$as_ac_Header'}
16401 $as_echo "$as_val"'`
16402 if test "x$as_val" = x""yes; then
16403 cat >>confdefs.h <<_ACEOF
16404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16405 _ACEOF
16406
16407 else
16408 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16409 $as_echo "$as_me: error: bailing out" >&2;}
16410 { (exit 1); exit 1; }; }
16411 fi
16412
16413 done
16414
16415 fi
16416
16417 if test x$CLVMD != xnone; then
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428 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
16429 do
16430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16433 $as_echo_n "checking for $ac_header... " >&6; }
16434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16435 $as_echo_n "(cached) " >&6
16436 fi
16437 ac_res=`eval 'as_val=${'$as_ac_Header'}
16438 $as_echo "$as_val"'`
16439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16440 $as_echo "$ac_res" >&6; }
16441 else
16442 # Is the header compilable?
16443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16444 $as_echo_n "checking $ac_header usability... " >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h. */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 $ac_includes_default
16452 #include <$ac_header>
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (ac_try="$ac_compile"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459 esac
16460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16461 $as_echo "$ac_try_echo") >&5
16462 (eval "$ac_compile") 2>conftest.er1
16463 ac_status=$?
16464 grep -v '^ *+' conftest.er1 >conftest.err
16465 rm -f conftest.er1
16466 cat conftest.err >&5
16467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } && {
16469 test -z "$ac_c_werror_flag" ||
16470 test ! -s conftest.err
16471 } && test -s conftest.$ac_objext; then
16472 ac_header_compiler=yes
16473 else
16474 $as_echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477 ac_header_compiler=no
16478 fi
16479
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16482 $as_echo "$ac_header_compiler" >&6; }
16483
16484 # Is the header present?
16485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16486 $as_echo_n "checking $ac_header presence... " >&6; }
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 #include <$ac_header>
16494 _ACEOF
16495 if { (ac_try="$ac_cpp conftest.$ac_ext"
16496 case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499 esac
16500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16501 $as_echo "$ac_try_echo") >&5
16502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } >/dev/null && {
16509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16511 }; then
16512 ac_header_preproc=yes
16513 else
16514 $as_echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16516
16517 ac_header_preproc=no
16518 fi
16519
16520 rm -f conftest.err conftest.$ac_ext
16521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16522 $as_echo "$ac_header_preproc" >&6; }
16523
16524 # So? What about this header?
16525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16526 yes:no: )
16527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16531 ac_header_preproc=yes
16532 ;;
16533 no:yes:* )
16534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16537 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16541 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16546
16547 ;;
16548 esac
16549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16550 $as_echo_n "checking for $ac_header... " >&6; }
16551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16552 $as_echo_n "(cached) " >&6
16553 else
16554 eval "$as_ac_Header=\$ac_header_preproc"
16555 fi
16556 ac_res=`eval 'as_val=${'$as_ac_Header'}
16557 $as_echo "$as_val"'`
16558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16559 $as_echo "$ac_res" >&6; }
16560
16561 fi
16562 as_val=`eval 'as_val=${'$as_ac_Header'}
16563 $as_echo "$as_val"'`
16564 if test "x$as_val" = x""yes; then
16565 cat >>confdefs.h <<_ACEOF
16566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16567 _ACEOF
16568
16569 else
16570 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16571 $as_echo "$as_me: error: bailing out" >&2;}
16572 { (exit 1); exit 1; }; }
16573 fi
16574
16575 done
16576
16577
16578
16579
16580
16581
16582 for ac_func in dup2 getmntent memmove select socket
16583 do
16584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16585 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16586 $as_echo_n "checking for $ac_func... " >&6; }
16587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16588 $as_echo_n "(cached) " >&6
16589 else
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h. */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16598 #define $ac_func innocuous_$ac_func
16599
16600 /* System header to define __stub macros and hopefully few prototypes,
16601 which can conflict with char $ac_func (); below.
16602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16603 <limits.h> exists even on freestanding compilers. */
16604
16605 #ifdef __STDC__
16606 # include <limits.h>
16607 #else
16608 # include <assert.h>
16609 #endif
16610
16611 #undef $ac_func
16612
16613 /* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply. */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 char $ac_func ();
16620 /* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623 #if defined __stub_$ac_func || defined __stub___$ac_func
16624 choke me
16625 #endif
16626
16627 int
16628 main ()
16629 {
16630 return $ac_func ();
16631 ;
16632 return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_link") 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16655 }; then
16656 eval "$as_ac_var=yes"
16657 else
16658 $as_echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 eval "$as_ac_var=no"
16662 fi
16663
16664 rm -rf conftest.dSYM
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666 conftest$ac_exeext conftest.$ac_ext
16667 fi
16668 ac_res=`eval 'as_val=${'$as_ac_var'}
16669 $as_echo "$as_val"'`
16670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16671 $as_echo "$ac_res" >&6; }
16672 as_val=`eval 'as_val=${'$as_ac_var'}
16673 $as_echo "$as_val"'`
16674 if test "x$as_val" = x""yes; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16677 _ACEOF
16678
16679 else
16680 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16681 $as_echo "$as_me: error: bailing out" >&2;}
16682 { (exit 1); exit 1; }; }
16683 fi
16684 done
16685
16686 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16687 # -lseq on Dynix/PTX, -lgen on Unixware.
16688 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16689 $as_echo_n "checking for library containing getmntent... " >&6; }
16690 if test "${ac_cv_search_getmntent+set}" = set; then
16691 $as_echo_n "(cached) " >&6
16692 else
16693 ac_func_search_save_LIBS=$LIBS
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16704 #ifdef __cplusplus
16705 extern "C"
16706 #endif
16707 char getmntent ();
16708 int
16709 main ()
16710 {
16711 return getmntent ();
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 for ac_lib in '' sun seq gen; do
16717 if test -z "$ac_lib"; then
16718 ac_res="none required"
16719 else
16720 ac_res=-l$ac_lib
16721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16722 fi
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (ac_try="$ac_link"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16730 $as_echo "$ac_try_echo") >&5
16731 (eval "$ac_link") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest$ac_exeext && {
16741 test "$cross_compiling" = yes ||
16742 $as_test_x conftest$ac_exeext
16743 }; then
16744 ac_cv_search_getmntent=$ac_res
16745 else
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749
16750 fi
16751
16752 rm -rf conftest.dSYM
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext
16755 if test "${ac_cv_search_getmntent+set}" = set; then
16756 break
16757 fi
16758 done
16759 if test "${ac_cv_search_getmntent+set}" = set; then
16760 :
16761 else
16762 ac_cv_search_getmntent=no
16763 fi
16764 rm conftest.$ac_ext
16765 LIBS=$ac_func_search_save_LIBS
16766 fi
16767 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16768 $as_echo "$ac_cv_search_getmntent" >&6; }
16769 ac_res=$ac_cv_search_getmntent
16770 if test "$ac_res" != no; then
16771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16772 ac_cv_func_getmntent=yes
16773
16774 cat >>confdefs.h <<\_ACEOF
16775 #define HAVE_GETMNTENT 1
16776 _ACEOF
16777
16778 else
16779 ac_cv_func_getmntent=no
16780 fi
16781
16782
16783
16784
16785 for ac_header in sys/select.h sys/socket.h
16786 do
16787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16790 $as_echo_n "checking for $ac_header... " >&6; }
16791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16792 $as_echo_n "(cached) " >&6
16793 fi
16794 ac_res=`eval 'as_val=${'$as_ac_Header'}
16795 $as_echo "$as_val"'`
16796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16797 $as_echo "$ac_res" >&6; }
16798 else
16799 # Is the header compilable?
16800 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16801 $as_echo_n "checking $ac_header usability... " >&6; }
16802 cat >conftest.$ac_ext <<_ACEOF
16803 /* confdefs.h. */
16804 _ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 $ac_includes_default
16809 #include <$ac_header>
16810 _ACEOF
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818 $as_echo "$ac_try_echo") >&5
16819 (eval "$ac_compile") 2>conftest.er1
16820 ac_status=$?
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
16824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } && {
16826 test -z "$ac_c_werror_flag" ||
16827 test ! -s conftest.err
16828 } && test -s conftest.$ac_objext; then
16829 ac_header_compiler=yes
16830 else
16831 $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ac_header_compiler=no
16835 fi
16836
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16839 $as_echo "$ac_header_compiler" >&6; }
16840
16841 # Is the header present?
16842 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16843 $as_echo_n "checking $ac_header presence... " >&6; }
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h. */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h. */
16850 #include <$ac_header>
16851 _ACEOF
16852 if { (ac_try="$ac_cpp conftest.$ac_ext"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856 esac
16857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16858 $as_echo "$ac_try_echo") >&5
16859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } >/dev/null && {
16866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16867 test ! -s conftest.err
16868 }; then
16869 ac_header_preproc=yes
16870 else
16871 $as_echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ac_header_preproc=no
16875 fi
16876
16877 rm -f conftest.err conftest.$ac_ext
16878 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16879 $as_echo "$ac_header_preproc" >&6; }
16880
16881 # So? What about this header?
16882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16883 yes:no: )
16884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16885 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16888 ac_header_preproc=yes
16889 ;;
16890 no:yes:* )
16891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16892 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16894 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16896 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16898 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16900 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16902 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16903
16904 ;;
16905 esac
16906 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16907 $as_echo_n "checking for $ac_header... " >&6; }
16908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16909 $as_echo_n "(cached) " >&6
16910 else
16911 eval "$as_ac_Header=\$ac_header_preproc"
16912 fi
16913 ac_res=`eval 'as_val=${'$as_ac_Header'}
16914 $as_echo "$as_val"'`
16915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16916 $as_echo "$ac_res" >&6; }
16917
16918 fi
16919 as_val=`eval 'as_val=${'$as_ac_Header'}
16920 $as_echo "$as_val"'`
16921 if test "x$as_val" = x""yes; then
16922 cat >>confdefs.h <<_ACEOF
16923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16924 _ACEOF
16925
16926 fi
16927
16928 done
16929
16930 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16931 $as_echo_n "checking types of arguments for select... " >&6; }
16932 if test "${ac_cv_func_select_args+set}" = set; then
16933 $as_echo_n "(cached) " >&6
16934 else
16935 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16936 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16937 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 $ac_includes_default
16945 #ifdef HAVE_SYS_SELECT_H
16946 # include <sys/select.h>
16947 #endif
16948 #ifdef HAVE_SYS_SOCKET_H
16949 # include <sys/socket.h>
16950 #endif
16951
16952 int
16953 main ()
16954 {
16955 extern int select ($ac_arg1,
16956 $ac_arg234, $ac_arg234, $ac_arg234,
16957 $ac_arg5);
16958 ;
16959 return 0;
16960 }
16961 _ACEOF
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967 esac
16968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16969 $as_echo "$ac_try_echo") >&5
16970 (eval "$ac_compile") 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } && {
16977 test -z "$ac_c_werror_flag" ||
16978 test ! -s conftest.err
16979 } && test -s conftest.$ac_objext; then
16980 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16981 else
16982 $as_echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985
16986 fi
16987
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989 done
16990 done
16991 done
16992 # Provide a safe default value.
16993 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16994
16995 fi
16996 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16997 $as_echo "$ac_cv_func_select_args" >&6; }
16998 ac_save_IFS=$IFS; IFS=','
16999 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17000 IFS=$ac_save_IFS
17001 shift
17002
17003 cat >>confdefs.h <<_ACEOF
17004 #define SELECT_TYPE_ARG1 $1
17005 _ACEOF
17006
17007
17008 cat >>confdefs.h <<_ACEOF
17009 #define SELECT_TYPE_ARG234 ($2)
17010 _ACEOF
17011
17012
17013 cat >>confdefs.h <<_ACEOF
17014 #define SELECT_TYPE_ARG5 ($3)
17015 _ACEOF
17016
17017 rm -f conftest*
17018
17019 fi
17020
17021 if test x$CLUSTER != xnone; then
17022
17023
17024 for ac_header in sys/socket.h sys/un.h
17025 do
17026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17029 $as_echo_n "checking for $ac_header... " >&6; }
17030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17031 $as_echo_n "(cached) " >&6
17032 fi
17033 ac_res=`eval 'as_val=${'$as_ac_Header'}
17034 $as_echo "$as_val"'`
17035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17036 $as_echo "$ac_res" >&6; }
17037 else
17038 # Is the header compilable?
17039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 $as_echo_n "checking $ac_header usability... " >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17048 #include <$ac_header>
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055 esac
17056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058 (eval "$ac_compile") 2>conftest.er1
17059 ac_status=$?
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest.$ac_objext; then
17068 ac_header_compiler=yes
17069 else
17070 $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ac_header_compiler=no
17074 fi
17075
17076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17078 $as_echo "$ac_header_compiler" >&6; }
17079
17080 # Is the header present?
17081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17082 $as_echo_n "checking $ac_header presence... " >&6; }
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 #include <$ac_header>
17090 _ACEOF
17091 if { (ac_try="$ac_cpp conftest.$ac_ext"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095 esac
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev/null && {
17105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 }; then
17108 ac_header_preproc=yes
17109 else
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_header_preproc=no
17114 fi
17115
17116 rm -f conftest.err conftest.$ac_ext
17117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 $as_echo "$ac_header_preproc" >&6; }
17119
17120 # So? What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122 yes:no: )
17123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
17128 ;;
17129 no:yes:* )
17130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17142
17143 ;;
17144 esac
17145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17146 $as_echo_n "checking for $ac_header... " >&6; }
17147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17148 $as_echo_n "(cached) " >&6
17149 else
17150 eval "$as_ac_Header=\$ac_header_preproc"
17151 fi
17152 ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155 $as_echo "$ac_res" >&6; }
17156
17157 fi
17158 as_val=`eval 'as_val=${'$as_ac_Header'}
17159 $as_echo "$as_val"'`
17160 if test "x$as_val" = x""yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17163 _ACEOF
17164
17165 else
17166 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17167 $as_echo "$as_me: error: bailing out" >&2;}
17168 { (exit 1); exit 1; }; }
17169 fi
17170
17171 done
17172
17173
17174 for ac_func in socket
17175 do
17176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 $as_echo_n "checking for $ac_func... " >&6; }
17179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 $as_echo_n "(cached) " >&6
17181 else
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define $ac_func innocuous_$ac_func
17191
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17196
17197 #ifdef __STDC__
17198 # include <limits.h>
17199 #else
17200 # include <assert.h>
17201 #endif
17202
17203 #undef $ac_func
17204
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17208 #ifdef __cplusplus
17209 extern "C"
17210 #endif
17211 char $ac_func ();
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17216 choke me
17217 #endif
17218
17219 int
17220 main ()
17221 {
17222 return $ac_func ();
17223 ;
17224 return 0;
17225 }
17226 _ACEOF
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232 esac
17233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17234 $as_echo "$ac_try_echo") >&5
17235 (eval "$ac_link") 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest$ac_exeext && {
17245 test "$cross_compiling" = yes ||
17246 $as_test_x conftest$ac_exeext
17247 }; then
17248 eval "$as_ac_var=yes"
17249 else
17250 $as_echo "$as_me: failed program was:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17252
17253 eval "$as_ac_var=no"
17254 fi
17255
17256 rm -rf conftest.dSYM
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258 conftest$ac_exeext conftest.$ac_ext
17259 fi
17260 ac_res=`eval 'as_val=${'$as_ac_var'}
17261 $as_echo "$as_val"'`
17262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17263 $as_echo "$ac_res" >&6; }
17264 as_val=`eval 'as_val=${'$as_ac_var'}
17265 $as_echo "$as_val"'`
17266 if test "x$as_val" = x""yes; then
17267 cat >>confdefs.h <<_ACEOF
17268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17269 _ACEOF
17270
17271 else
17272 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17273 $as_echo "$as_me: error: bailing out" >&2;}
17274 { (exit 1); exit 1; }; }
17275 fi
17276 done
17277
17278 fi
17279
17280 if test x$DMEVENTD = xyes; then
17281
17282 for ac_header in arpa/inet.h
17283 do
17284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17287 $as_echo_n "checking for $ac_header... " >&6; }
17288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17289 $as_echo_n "(cached) " >&6
17290 fi
17291 ac_res=`eval 'as_val=${'$as_ac_Header'}
17292 $as_echo "$as_val"'`
17293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17294 $as_echo "$ac_res" >&6; }
17295 else
17296 # Is the header compilable?
17297 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17298 $as_echo_n "checking $ac_header usability... " >&6; }
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 $ac_includes_default
17306 #include <$ac_header>
17307 _ACEOF
17308 rm -f conftest.$ac_objext
17309 if { (ac_try="$ac_compile"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313 esac
17314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17315 $as_echo "$ac_try_echo") >&5
17316 (eval "$ac_compile") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest.$ac_objext; then
17326 ac_header_compiler=yes
17327 else
17328 $as_echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_header_compiler=no
17332 fi
17333
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17336 $as_echo "$ac_header_compiler" >&6; }
17337
17338 # Is the header present?
17339 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17340 $as_echo_n "checking $ac_header presence... " >&6; }
17341 cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h. */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17347 #include <$ac_header>
17348 _ACEOF
17349 if { (ac_try="$ac_cpp conftest.$ac_ext"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17353 esac
17354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17355 $as_echo "$ac_try_echo") >&5
17356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } >/dev/null && {
17363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 }; then
17366 ac_header_preproc=yes
17367 else
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 ac_header_preproc=no
17372 fi
17373
17374 rm -f conftest.err conftest.$ac_ext
17375 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17376 $as_echo "$ac_header_preproc" >&6; }
17377
17378 # So? What about this header?
17379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17380 yes:no: )
17381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17382 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17385 ac_header_preproc=yes
17386 ;;
17387 no:yes:* )
17388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17389 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17391 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17393 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17395 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17399 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17400
17401 ;;
17402 esac
17403 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17404 $as_echo_n "checking for $ac_header... " >&6; }
17405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17406 $as_echo_n "(cached) " >&6
17407 else
17408 eval "$as_ac_Header=\$ac_header_preproc"
17409 fi
17410 ac_res=`eval 'as_val=${'$as_ac_Header'}
17411 $as_echo "$as_val"'`
17412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17413 $as_echo "$ac_res" >&6; }
17414
17415 fi
17416 as_val=`eval 'as_val=${'$as_ac_Header'}
17417 $as_echo "$as_val"'`
17418 if test "x$as_val" = x""yes; then
17419 cat >>confdefs.h <<_ACEOF
17420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17421 _ACEOF
17422
17423 else
17424 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17425 $as_echo "$as_me: error: bailing out" >&2;}
17426 { (exit 1); exit 1; }; }
17427 fi
17428
17429 done
17430
17431 fi
17432
17433 if test x$HAVE_LIBDL = xyes; then
17434
17435 for ac_header in dlfcn.h
17436 do
17437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17440 $as_echo_n "checking for $ac_header... " >&6; }
17441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17442 $as_echo_n "(cached) " >&6
17443 fi
17444 ac_res=`eval 'as_val=${'$as_ac_Header'}
17445 $as_echo "$as_val"'`
17446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17447 $as_echo "$ac_res" >&6; }
17448 else
17449 # Is the header compilable?
17450 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17451 $as_echo_n "checking $ac_header usability... " >&6; }
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17459 #include <$ac_header>
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466 esac
17467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17468 $as_echo "$ac_try_echo") >&5
17469 (eval "$ac_compile") 2>conftest.er1
17470 ac_status=$?
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
17474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest.$ac_objext; then
17479 ac_header_compiler=yes
17480 else
17481 $as_echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_header_compiler=no
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17489 $as_echo "$ac_header_compiler" >&6; }
17490
17491 # Is the header present?
17492 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17493 $as_echo_n "checking $ac_header presence... " >&6; }
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 #include <$ac_header>
17501 _ACEOF
17502 if { (ac_try="$ac_cpp conftest.$ac_ext"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17506 esac
17507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17508 $as_echo "$ac_try_echo") >&5
17509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
17514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } >/dev/null && {
17516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17517 test ! -s conftest.err
17518 }; then
17519 ac_header_preproc=yes
17520 else
17521 $as_echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ac_header_preproc=no
17525 fi
17526
17527 rm -f conftest.err conftest.$ac_ext
17528 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17529 $as_echo "$ac_header_preproc" >&6; }
17530
17531 # So? What about this header?
17532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17533 yes:no: )
17534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17535 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17538 ac_header_preproc=yes
17539 ;;
17540 no:yes:* )
17541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17542 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17544 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17546 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17548 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17552 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17553
17554 ;;
17555 esac
17556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17557 $as_echo_n "checking for $ac_header... " >&6; }
17558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17559 $as_echo_n "(cached) " >&6
17560 else
17561 eval "$as_ac_Header=\$ac_header_preproc"
17562 fi
17563 ac_res=`eval 'as_val=${'$as_ac_Header'}
17564 $as_echo "$as_val"'`
17565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17566 $as_echo "$ac_res" >&6; }
17567
17568 fi
17569 as_val=`eval 'as_val=${'$as_ac_Header'}
17570 $as_echo "$as_val"'`
17571 if test "x$as_val" = x""yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17574 _ACEOF
17575
17576 else
17577 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17578 $as_echo "$as_me: error: bailing out" >&2;}
17579 { (exit 1); exit 1; }; }
17580 fi
17581
17582 done
17583
17584 fi
17585
17586 if test x$INTL = xyes; then
17587
17588 for ac_header in libintl.h
17589 do
17590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17593 $as_echo_n "checking for $ac_header... " >&6; }
17594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17595 $as_echo_n "(cached) " >&6
17596 fi
17597 ac_res=`eval 'as_val=${'$as_ac_Header'}
17598 $as_echo "$as_val"'`
17599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17600 $as_echo "$ac_res" >&6; }
17601 else
17602 # Is the header compilable?
17603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17604 $as_echo_n "checking $ac_header usability... " >&6; }
17605 cat >conftest.$ac_ext <<_ACEOF
17606 /* confdefs.h. */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17611 $ac_includes_default
17612 #include <$ac_header>
17613 _ACEOF
17614 rm -f conftest.$ac_objext
17615 if { (ac_try="$ac_compile"
17616 case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619 esac
17620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621 $as_echo "$ac_try_echo") >&5
17622 (eval "$ac_compile") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest.$ac_objext; then
17632 ac_header_compiler=yes
17633 else
17634 $as_echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 ac_header_compiler=no
17638 fi
17639
17640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17642 $as_echo "$ac_header_compiler" >&6; }
17643
17644 # Is the header present?
17645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17646 $as_echo_n "checking $ac_header presence... " >&6; }
17647 cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h. */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17653 #include <$ac_header>
17654 _ACEOF
17655 if { (ac_try="$ac_cpp conftest.$ac_ext"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659 esac
17660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17661 $as_echo "$ac_try_echo") >&5
17662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } >/dev/null && {
17669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 }; then
17672 ac_header_preproc=yes
17673 else
17674 $as_echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 ac_header_preproc=no
17678 fi
17679
17680 rm -f conftest.err conftest.$ac_ext
17681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17682 $as_echo "$ac_header_preproc" >&6; }
17683
17684 # So? What about this header?
17685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17686 yes:no: )
17687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17691 ac_header_preproc=yes
17692 ;;
17693 no:yes:* )
17694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17697 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17701 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17706
17707 ;;
17708 esac
17709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17710 $as_echo_n "checking for $ac_header... " >&6; }
17711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17712 $as_echo_n "(cached) " >&6
17713 else
17714 eval "$as_ac_Header=\$ac_header_preproc"
17715 fi
17716 ac_res=`eval 'as_val=${'$as_ac_Header'}
17717 $as_echo "$as_val"'`
17718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17719 $as_echo "$ac_res" >&6; }
17720
17721 fi
17722 as_val=`eval 'as_val=${'$as_ac_Header'}
17723 $as_echo "$as_val"'`
17724 if test "x$as_val" = x""yes; then
17725 cat >>confdefs.h <<_ACEOF
17726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17727 _ACEOF
17728
17729 else
17730 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17731 $as_echo "$as_me: error: bailing out" >&2;}
17732 { (exit 1); exit 1; }; }
17733 fi
17734
17735 done
17736
17737 fi
17738
17739 if test x$UDEV_SYNC = xyes; then
17740
17741
17742 for ac_header in sys/ipc.h sys/sem.h
17743 do
17744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17747 $as_echo_n "checking for $ac_header... " >&6; }
17748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17749 $as_echo_n "(cached) " >&6
17750 fi
17751 ac_res=`eval 'as_val=${'$as_ac_Header'}
17752 $as_echo "$as_val"'`
17753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17754 $as_echo "$ac_res" >&6; }
17755 else
17756 # Is the header compilable?
17757 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17758 $as_echo_n "checking $ac_header usability... " >&6; }
17759 cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h. */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 $ac_includes_default
17766 #include <$ac_header>
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (ac_try="$ac_compile"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773 esac
17774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17775 $as_echo "$ac_try_echo") >&5
17776 (eval "$ac_compile") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest.$ac_objext; then
17786 ac_header_compiler=yes
17787 else
17788 $as_echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_header_compiler=no
17792 fi
17793
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17796 $as_echo "$ac_header_compiler" >&6; }
17797
17798 # Is the header present?
17799 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17800 $as_echo_n "checking $ac_header presence... " >&6; }
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 #include <$ac_header>
17808 _ACEOF
17809 if { (ac_try="$ac_cpp conftest.$ac_ext"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813 esac
17814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17815 $as_echo "$ac_try_echo") >&5
17816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } >/dev/null && {
17823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 }; then
17826 ac_header_preproc=yes
17827 else
17828 $as_echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17830
17831 ac_header_preproc=no
17832 fi
17833
17834 rm -f conftest.err conftest.$ac_ext
17835 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17836 $as_echo "$ac_header_preproc" >&6; }
17837
17838 # So? What about this header?
17839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17840 yes:no: )
17841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17842 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17845 ac_header_preproc=yes
17846 ;;
17847 no:yes:* )
17848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17849 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17851 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17853 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17855 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17859 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17860
17861 ;;
17862 esac
17863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17864 $as_echo_n "checking for $ac_header... " >&6; }
17865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17866 $as_echo_n "(cached) " >&6
17867 else
17868 eval "$as_ac_Header=\$ac_header_preproc"
17869 fi
17870 ac_res=`eval 'as_val=${'$as_ac_Header'}
17871 $as_echo "$as_val"'`
17872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17873 $as_echo "$ac_res" >&6; }
17874
17875 fi
17876 as_val=`eval 'as_val=${'$as_ac_Header'}
17877 $as_echo "$as_val"'`
17878 if test "x$as_val" = x""yes; then
17879 cat >>confdefs.h <<_ACEOF
17880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17881 _ACEOF
17882
17883 else
17884 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17885 $as_echo "$as_me: error: bailing out" >&2;}
17886 { (exit 1); exit 1; }; }
17887 fi
17888
17889 done
17890
17891 fi
17892
17893 ################################################################################
17894 # Extract the first word of "modprobe", so it can be a program name with args.
17895 set dummy modprobe; ac_word=$2
17896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17897 $as_echo_n "checking for $ac_word... " >&6; }
17898 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
17899 $as_echo_n "(cached) " >&6
17900 else
17901 case $MODPROBE_CMD in
17902 [\\/]* | ?:[\\/]*)
17903 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17904 ;;
17905 *)
17906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17907 for as_dir in $PATH
17908 do
17909 IFS=$as_save_IFS
17910 test -z "$as_dir" && as_dir=.
17911 for ac_exec_ext in '' $ac_executable_extensions; do
17912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17913 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
17914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17915 break 2
17916 fi
17917 done
17918 done
17919 IFS=$as_save_IFS
17920
17921 ;;
17922 esac
17923 fi
17924 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
17925 if test -n "$MODPROBE_CMD"; then
17926 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17927 $as_echo "$MODPROBE_CMD" >&6; }
17928 else
17929 { $as_echo "$as_me:$LINENO: result: no" >&5
17930 $as_echo "no" >&6; }
17931 fi
17932
17933
17934
17935 if test x$MODPROBE_CMD != x; then
17936
17937 cat >>confdefs.h <<_ACEOF
17938 #define MODPROBE_CMD "$MODPROBE_CMD"
17939 _ACEOF
17940
17941 fi
17942
17943
17944 lvm_exec_prefix=$exec_prefix
17945 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17946 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17947
17948 cat >>confdefs.h <<_ACEOF
17949 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
17950 _ACEOF
17951
17952
17953 if test "$CLVMD" != none; then
17954 clvmd_prefix=$ac_default_prefix
17955 test "$prefix" != NONE && clvmd_prefix=$prefix
17956
17957 cat >>confdefs.h <<_ACEOF
17958 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17959 _ACEOF
17960
17961 fi
17962
17963 ################################################################################
17964 if test "$BUILD_DMEVENTD" = yes; then
17965
17966 # Check whether --with-dmeventd-pidfile was given.
17967 if test "${with_dmeventd_pidfile+set}" = set; then
17968 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
17969 else
17970 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
17971 fi
17972
17973
17974 cat >>confdefs.h <<_ACEOF
17975 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17976 _ACEOF
17977
17978 fi
17979
17980 if test "$BUILD_DMEVENTD" = yes; then
17981
17982 # Check whether --with-dmeventd-path was given.
17983 if test "${with_dmeventd_path+set}" = set; then
17984 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
17985 else
17986 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
17987 fi
17988
17989
17990 cat >>confdefs.h <<_ACEOF
17991 #define DMEVENTD_PATH "$DMEVENTD_PATH"
17992 _ACEOF
17993
17994 fi
17995
17996
17997
17998
17999 # Check whether --with-default-run-dir was given.
18000 if test "${with_default_run_dir+set}" = set; then
18001 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
18002 else
18003 DEFAULT_RUN_DIR="/var/run/lvm"
18004 fi
18005
18006 cat >>confdefs.h <<_ACEOF
18007 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
18008 _ACEOF
18009
18010
18011 ################################################################################
18012
18013 # Check whether --with-default-system-dir was given.
18014 if test "${with_default_system_dir+set}" = set; then
18015 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
18016 else
18017 DEFAULT_SYS_DIR="/etc/lvm"
18018 fi
18019
18020
18021 cat >>confdefs.h <<_ACEOF
18022 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
18023 _ACEOF
18024
18025
18026
18027 # Check whether --with-default-archive-subdir was given.
18028 if test "${with_default_archive_subdir+set}" = set; then
18029 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
18030 else
18031 DEFAULT_ARCHIVE_SUBDIR=archive
18032 fi
18033
18034
18035 cat >>confdefs.h <<_ACEOF
18036 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
18037 _ACEOF
18038
18039
18040
18041 # Check whether --with-default-backup-subdir was given.
18042 if test "${with_default_backup_subdir+set}" = set; then
18043 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
18044 else
18045 DEFAULT_BACKUP_SUBDIR=backup
18046 fi
18047
18048
18049 cat >>confdefs.h <<_ACEOF
18050 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18051 _ACEOF
18052
18053
18054
18055 # Check whether --with-default-cache-subdir was given.
18056 if test "${with_default_cache_subdir+set}" = set; then
18057 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
18058 else
18059 DEFAULT_CACHE_SUBDIR=cache
18060 fi
18061
18062
18063 cat >>confdefs.h <<_ACEOF
18064 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18065 _ACEOF
18066
18067
18068
18069 # Check whether --with-default-locking-dir was given.
18070 if test "${with_default_locking_dir+set}" = set; then
18071 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
18072 else
18073 DEFAULT_LOCK_DIR="/var/lock/lvm"
18074 fi
18075
18076
18077 cat >>confdefs.h <<_ACEOF
18078 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18079 _ACEOF
18080
18081
18082 ################################################################################
18083 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18084 $as_echo_n "checking for kernel interface choice... " >&6; }
18085
18086 # Check whether --with-interface was given.
18087 if test "${with_interface+set}" = set; then
18088 withval=$with_interface; interface=$withval
18089 else
18090 interface=ioctl
18091 fi
18092
18093 if [ "x$interface" != xioctl ];
18094 then
18095 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18096 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
18097 { (exit 1); exit 1; }; }
18098 fi
18099 { $as_echo "$as_me:$LINENO: result: $interface" >&5
18100 $as_echo "$interface" >&6; }
18101
18102 ################################################################################
18103 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
18104
18105 cat >>confdefs.h <<_ACEOF
18106 #define DM_LIB_VERSION $DM_LIB_VERSION
18107 _ACEOF
18108
18109
18110 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
18111
18112 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
18113
18114 VER=`cat "$srcdir"/VERSION`
18115 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
18116 VER=`echo "$VER" | $AWK '{print $1}'`
18117 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18118 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18119 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18120 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
18121 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18122 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
18123
18124 ################################################################################
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223 ################################################################################
18224 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
18225
18226 cat >confcache <<\_ACEOF
18227 # This file is a shell script that caches the results of configure
18228 # tests run on this system so they can be shared between configure
18229 # scripts and configure runs, see configure's option --config-cache.
18230 # It is not useful on other systems. If it contains results you don't
18231 # want to keep, you may remove or edit it.
18232 #
18233 # config.status only pays attention to the cache file if you give it
18234 # the --recheck option to rerun configure.
18235 #
18236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18238 # following values.
18239
18240 _ACEOF
18241
18242 # The following way of writing the cache mishandles newlines in values,
18243 # but we know of no workaround that is simple, portable, and efficient.
18244 # So, we kill variables containing newlines.
18245 # Ultrix sh set writes to stderr and can't be redirected directly,
18246 # and sets the high bit in the cache file unless we assign to the vars.
18247 (
18248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18249 eval ac_val=\$$ac_var
18250 case $ac_val in #(
18251 *${as_nl}*)
18252 case $ac_var in #(
18253 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18255 esac
18256 case $ac_var in #(
18257 _ | IFS | as_nl) ;; #(
18258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18259 *) $as_unset $ac_var ;;
18260 esac ;;
18261 esac
18262 done
18263
18264 (set) 2>&1 |
18265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18266 *${as_nl}ac_space=\ *)
18267 # `set' does not quote correctly, so add quotes (double-quote
18268 # substitution turns \\\\ into \\, and sed turns \\ into \).
18269 sed -n \
18270 "s/'/'\\\\''/g;
18271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18272 ;; #(
18273 *)
18274 # `set' quotes correctly as required by POSIX, so do not add quotes.
18275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18276 ;;
18277 esac |
18278 sort
18279 ) |
18280 sed '
18281 /^ac_cv_env_/b end
18282 t clear
18283 :clear
18284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18285 t end
18286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18287 :end' >>confcache
18288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18289 if test -w "$cache_file"; then
18290 test "x$cache_file" != "x/dev/null" &&
18291 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18292 $as_echo "$as_me: updating cache $cache_file" >&6;}
18293 cat confcache >$cache_file
18294 else
18295 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18296 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18297 fi
18298 fi
18299 rm -f confcache
18300
18301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18302 # Let make expand exec_prefix.
18303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18304
18305 DEFS=-DHAVE_CONFIG_H
18306
18307 ac_libobjs=
18308 ac_ltlibobjs=
18309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18310 # 1. Remove the extension, and $U if already installed.
18311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18314 # will be set to the directory where LIBOBJS objects are built.
18315 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18316 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18317 done
18318 LIBOBJS=$ac_libobjs
18319
18320 LTLIBOBJS=$ac_ltlibobjs
18321
18322
18323
18324 : ${CONFIG_STATUS=./config.status}
18325 ac_write_fail=0
18326 ac_clean_files_save=$ac_clean_files
18327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18328 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18330 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18331 #! $SHELL
18332 # Generated by $as_me.
18333 # Run this file to recreate the current configuration.
18334 # Compiler output produced by configure, useful for debugging
18335 # configure, is in config.log if it exists.
18336
18337 debug=false
18338 ac_cs_recheck=false
18339 ac_cs_silent=false
18340 SHELL=\${CONFIG_SHELL-$SHELL}
18341 _ACEOF
18342
18343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18344 ## --------------------- ##
18345 ## M4sh Initialization. ##
18346 ## --------------------- ##
18347
18348 # Be more Bourne compatible
18349 DUALCASE=1; export DUALCASE # for MKS sh
18350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18351 emulate sh
18352 NULLCMD=:
18353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18354 # is contrary to our usage. Disable this feature.
18355 alias -g '${1+"$@"}'='"$@"'
18356 setopt NO_GLOB_SUBST
18357 else
18358 case `(set -o) 2>/dev/null` in
18359 *posix*) set -o posix ;;
18360 esac
18361
18362 fi
18363
18364
18365
18366
18367 # PATH needs CR
18368 # Avoid depending upon Character Ranges.
18369 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18370 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18371 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18372 as_cr_digits='0123456789'
18373 as_cr_alnum=$as_cr_Letters$as_cr_digits
18374
18375 as_nl='
18376 '
18377 export as_nl
18378 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18379 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18380 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18382 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18383 as_echo='printf %s\n'
18384 as_echo_n='printf %s'
18385 else
18386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18388 as_echo_n='/usr/ucb/echo -n'
18389 else
18390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18391 as_echo_n_body='eval
18392 arg=$1;
18393 case $arg in
18394 *"$as_nl"*)
18395 expr "X$arg" : "X\\(.*\\)$as_nl";
18396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18397 esac;
18398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18399 '
18400 export as_echo_n_body
18401 as_echo_n='sh -c $as_echo_n_body as_echo'
18402 fi
18403 export as_echo_body
18404 as_echo='sh -c $as_echo_body as_echo'
18405 fi
18406
18407 # The user is always right.
18408 if test "${PATH_SEPARATOR+set}" != set; then
18409 PATH_SEPARATOR=:
18410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18412 PATH_SEPARATOR=';'
18413 }
18414 fi
18415
18416 # Support unset when possible.
18417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18418 as_unset=unset
18419 else
18420 as_unset=false
18421 fi
18422
18423
18424 # IFS
18425 # We need space, tab and new line, in precisely that order. Quoting is
18426 # there to prevent editors from complaining about space-tab.
18427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18428 # splitting by setting IFS to empty value.)
18429 IFS=" "" $as_nl"
18430
18431 # Find who we are. Look in the path if we contain no directory separator.
18432 case $0 in
18433 *[\\/]* ) as_myself=$0 ;;
18434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435 for as_dir in $PATH
18436 do
18437 IFS=$as_save_IFS
18438 test -z "$as_dir" && as_dir=.
18439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18440 done
18441 IFS=$as_save_IFS
18442
18443 ;;
18444 esac
18445 # We did not find ourselves, most probably we were run as `sh COMMAND'
18446 # in which case we are not to be found in the path.
18447 if test "x$as_myself" = x; then
18448 as_myself=$0
18449 fi
18450 if test ! -f "$as_myself"; then
18451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18452 { (exit 1); exit 1; }
18453 fi
18454
18455 # Work around bugs in pre-3.0 UWIN ksh.
18456 for as_var in ENV MAIL MAILPATH
18457 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18458 done
18459 PS1='$ '
18460 PS2='> '
18461 PS4='+ '
18462
18463 # NLS nuisances.
18464 LC_ALL=C
18465 export LC_ALL
18466 LANGUAGE=C
18467 export LANGUAGE
18468
18469 # Required to use basename.
18470 if expr a : '\(a\)' >/dev/null 2>&1 &&
18471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18472 as_expr=expr
18473 else
18474 as_expr=false
18475 fi
18476
18477 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18478 as_basename=basename
18479 else
18480 as_basename=false
18481 fi
18482
18483
18484 # Name of the executable.
18485 as_me=`$as_basename -- "$0" ||
18486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18487 X"$0" : 'X\(//\)$' \| \
18488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18489 $as_echo X/"$0" |
18490 sed '/^.*\/\([^/][^/]*\)\/*$/{
18491 s//\1/
18492 q
18493 }
18494 /^X\/\(\/\/\)$/{
18495 s//\1/
18496 q
18497 }
18498 /^X\/\(\/\).*/{
18499 s//\1/
18500 q
18501 }
18502 s/.*/./; q'`
18503
18504 # CDPATH.
18505 $as_unset CDPATH
18506
18507
18508
18509 as_lineno_1=$LINENO
18510 as_lineno_2=$LINENO
18511 test "x$as_lineno_1" != "x$as_lineno_2" &&
18512 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18513
18514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18515 # uniformly replaced by the line number. The first 'sed' inserts a
18516 # line-number line after each line using $LINENO; the second 'sed'
18517 # does the real work. The second script uses 'N' to pair each
18518 # line-number line with the line containing $LINENO, and appends
18519 # trailing '-' during substitution so that $LINENO is not a special
18520 # case at line end.
18521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18522 # scripts with optimization help from Paolo Bonzini. Blame Lee
18523 # E. McMahon (1931-1989) for sed's syntax. :-)
18524 sed -n '
18525 p
18526 /[$]LINENO/=
18527 ' <$as_myself |
18528 sed '
18529 s/[$]LINENO.*/&-/
18530 t lineno
18531 b
18532 :lineno
18533 N
18534 :loop
18535 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18536 t loop
18537 s/-\n.*//
18538 ' >$as_me.lineno &&
18539 chmod +x "$as_me.lineno" ||
18540 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18541 { (exit 1); exit 1; }; }
18542
18543 # Don't try to exec as it changes $[0], causing all sort of problems
18544 # (the dirname of $[0] is not the place where we might find the
18545 # original and so on. Autoconf is especially sensitive to this).
18546 . "./$as_me.lineno"
18547 # Exit status is that of the last command.
18548 exit
18549 }
18550
18551
18552 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18553 as_dirname=dirname
18554 else
18555 as_dirname=false
18556 fi
18557
18558 ECHO_C= ECHO_N= ECHO_T=
18559 case `echo -n x` in
18560 -n*)
18561 case `echo 'x\c'` in
18562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18563 *) ECHO_C='\c';;
18564 esac;;
18565 *)
18566 ECHO_N='-n';;
18567 esac
18568 if expr a : '\(a\)' >/dev/null 2>&1 &&
18569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18570 as_expr=expr
18571 else
18572 as_expr=false
18573 fi
18574
18575 rm -f conf$$ conf$$.exe conf$$.file
18576 if test -d conf$$.dir; then
18577 rm -f conf$$.dir/conf$$.file
18578 else
18579 rm -f conf$$.dir
18580 mkdir conf$$.dir 2>/dev/null
18581 fi
18582 if (echo >conf$$.file) 2>/dev/null; then
18583 if ln -s conf$$.file conf$$ 2>/dev/null; then
18584 as_ln_s='ln -s'
18585 # ... but there are two gotchas:
18586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18588 # In both cases, we have to default to `cp -p'.
18589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18590 as_ln_s='cp -p'
18591 elif ln conf$$.file conf$$ 2>/dev/null; then
18592 as_ln_s=ln
18593 else
18594 as_ln_s='cp -p'
18595 fi
18596 else
18597 as_ln_s='cp -p'
18598 fi
18599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18600 rmdir conf$$.dir 2>/dev/null
18601
18602 if mkdir -p . 2>/dev/null; then
18603 as_mkdir_p=:
18604 else
18605 test -d ./-p && rmdir ./-p
18606 as_mkdir_p=false
18607 fi
18608
18609 if test -x / >/dev/null 2>&1; then
18610 as_test_x='test -x'
18611 else
18612 if ls -dL / >/dev/null 2>&1; then
18613 as_ls_L_option=L
18614 else
18615 as_ls_L_option=
18616 fi
18617 as_test_x='
18618 eval sh -c '\''
18619 if test -d "$1"; then
18620 test -d "$1/.";
18621 else
18622 case $1 in
18623 -*)set "./$1";;
18624 esac;
18625 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18626 ???[sx]*):;;*)false;;esac;fi
18627 '\'' sh
18628 '
18629 fi
18630 as_executable_p=$as_test_x
18631
18632 # Sed expression to map a string onto a valid CPP name.
18633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18634
18635 # Sed expression to map a string onto a valid variable name.
18636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18637
18638
18639 exec 6>&1
18640
18641 # Save the log message, to keep $[0] and so on meaningful, and to
18642 # report actual input values of CONFIG_FILES etc. instead of their
18643 # values after options handling.
18644 ac_log="
18645 This file was extended by $as_me, which was
18646 generated by GNU Autoconf 2.63. Invocation command line was
18647
18648 CONFIG_FILES = $CONFIG_FILES
18649 CONFIG_HEADERS = $CONFIG_HEADERS
18650 CONFIG_LINKS = $CONFIG_LINKS
18651 CONFIG_COMMANDS = $CONFIG_COMMANDS
18652 $ $0 $@
18653
18654 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18655 "
18656
18657 _ACEOF
18658
18659 case $ac_config_files in *"
18660 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18661 esac
18662
18663 case $ac_config_headers in *"
18664 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18665 esac
18666
18667
18668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18669 # Files that config.status was made for.
18670 config_files="$ac_config_files"
18671 config_headers="$ac_config_headers"
18672
18673 _ACEOF
18674
18675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18676 ac_cs_usage="\
18677 \`$as_me' instantiates files from templates according to the
18678 current configuration.
18679
18680 Usage: $0 [OPTION]... [FILE]...
18681
18682 -h, --help print this help, then exit
18683 -V, --version print version number and configuration settings, then exit
18684 -q, --quiet, --silent
18685 do not print progress messages
18686 -d, --debug don't remove temporary files
18687 --recheck update $as_me by reconfiguring in the same conditions
18688 --file=FILE[:TEMPLATE]
18689 instantiate the configuration file FILE
18690 --header=FILE[:TEMPLATE]
18691 instantiate the configuration header FILE
18692
18693 Configuration files:
18694 $config_files
18695
18696 Configuration headers:
18697 $config_headers
18698
18699 Report bugs to <bug-autoconf@gnu.org>."
18700
18701 _ACEOF
18702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18703 ac_cs_version="\\
18704 config.status
18705 configured by $0, generated by GNU Autoconf 2.63,
18706 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18707
18708 Copyright (C) 2008 Free Software Foundation, Inc.
18709 This config.status script is free software; the Free Software Foundation
18710 gives unlimited permission to copy, distribute and modify it."
18711
18712 ac_pwd='$ac_pwd'
18713 srcdir='$srcdir'
18714 INSTALL='$INSTALL'
18715 MKDIR_P='$MKDIR_P'
18716 AWK='$AWK'
18717 test -n "\$AWK" || AWK=awk
18718 _ACEOF
18719
18720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18721 # The default lists apply if the user does not specify any file.
18722 ac_need_defaults=:
18723 while test $# != 0
18724 do
18725 case $1 in
18726 --*=*)
18727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18728 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18729 ac_shift=:
18730 ;;
18731 *)
18732 ac_option=$1
18733 ac_optarg=$2
18734 ac_shift=shift
18735 ;;
18736 esac
18737
18738 case $ac_option in
18739 # Handling of the options.
18740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18741 ac_cs_recheck=: ;;
18742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18743 $as_echo "$ac_cs_version"; exit ;;
18744 --debug | --debu | --deb | --de | --d | -d )
18745 debug=: ;;
18746 --file | --fil | --fi | --f )
18747 $ac_shift
18748 case $ac_optarg in
18749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18750 esac
18751 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18752 ac_need_defaults=false;;
18753 --header | --heade | --head | --hea )
18754 $ac_shift
18755 case $ac_optarg in
18756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18757 esac
18758 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18759 ac_need_defaults=false;;
18760 --he | --h)
18761 # Conflict between --help and --header
18762 { $as_echo "$as_me: error: ambiguous option: $1
18763 Try \`$0 --help' for more information." >&2
18764 { (exit 1); exit 1; }; };;
18765 --help | --hel | -h )
18766 $as_echo "$ac_cs_usage"; exit ;;
18767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18769 ac_cs_silent=: ;;
18770
18771 # This is an error.
18772 -*) { $as_echo "$as_me: error: unrecognized option: $1
18773 Try \`$0 --help' for more information." >&2
18774 { (exit 1); exit 1; }; } ;;
18775
18776 *) ac_config_targets="$ac_config_targets $1"
18777 ac_need_defaults=false ;;
18778
18779 esac
18780 shift
18781 done
18782
18783 ac_configure_extra_args=
18784
18785 if $ac_cs_silent; then
18786 exec 6>/dev/null
18787 ac_configure_extra_args="$ac_configure_extra_args --silent"
18788 fi
18789
18790 _ACEOF
18791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18792 if \$ac_cs_recheck; then
18793 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18794 shift
18795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18796 CONFIG_SHELL='$SHELL'
18797 export CONFIG_SHELL
18798 exec "\$@"
18799 fi
18800
18801 _ACEOF
18802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18803 exec 5>>config.log
18804 {
18805 echo
18806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18807 ## Running $as_me. ##
18808 _ASBOX
18809 $as_echo "$ac_log"
18810 } >&5
18811
18812 _ACEOF
18813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814 _ACEOF
18815
18816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18817
18818 # Handling of arguments.
18819 for ac_config_target in $ac_config_targets
18820 do
18821 case $ac_config_target in
18822 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18823 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18824 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18825 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18826 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
18827 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
18828 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18829 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
18830 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
18831 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
18832 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18833 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
18834 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18835 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
18836 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
18837 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18838 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18839 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18840 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18841 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18842 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
18843 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
18844 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
18845 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
18846 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18847 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
18848 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
18849 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
18850 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18851 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
18852 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
18853 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
18854 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
18855 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18856 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18857 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
18858 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18859 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
18860 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18861 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
18862 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
18863
18864 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18865 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18866 { (exit 1); exit 1; }; };;
18867 esac
18868 done
18869
18870
18871 # If the user did not use the arguments to specify the items to instantiate,
18872 # then the envvar interface is used. Set only those that are not.
18873 # We use the long form for the default assignment because of an extremely
18874 # bizarre bug on SunOS 4.1.3.
18875 if $ac_need_defaults; then
18876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18878 fi
18879
18880 # Have a temporary directory for convenience. Make it in the build tree
18881 # simply because there is no reason against having it here, and in addition,
18882 # creating and moving files from /tmp can sometimes cause problems.
18883 # Hook for its removal unless debugging.
18884 # Note that there is a small window in which the directory will not be cleaned:
18885 # after its creation but before its name has been assigned to `$tmp'.
18886 $debug ||
18887 {
18888 tmp=
18889 trap 'exit_status=$?
18890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18891 ' 0
18892 trap '{ (exit 1); exit 1; }' 1 2 13 15
18893 }
18894 # Create a (secure) tmp directory for tmp files.
18895
18896 {
18897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18898 test -n "$tmp" && test -d "$tmp"
18899 } ||
18900 {
18901 tmp=./conf$$-$RANDOM
18902 (umask 077 && mkdir "$tmp")
18903 } ||
18904 {
18905 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18906 { (exit 1); exit 1; }
18907 }
18908
18909 # Set up the scripts for CONFIG_FILES section.
18910 # No need to generate them if there are no CONFIG_FILES.
18911 # This happens for instance with `./config.status config.h'.
18912 if test -n "$CONFIG_FILES"; then
18913
18914
18915 ac_cr=' '
18916 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18917 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18918 ac_cs_awk_cr='\\r'
18919 else
18920 ac_cs_awk_cr=$ac_cr
18921 fi
18922
18923 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18924 _ACEOF
18925
18926
18927 {
18928 echo "cat >conf$$subs.awk <<_ACEOF" &&
18929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18930 echo "_ACEOF"
18931 } >conf$$subs.sh ||
18932 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18933 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18934 { (exit 1); exit 1; }; }
18935 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18936 ac_delim='%!_!# '
18937 for ac_last_try in false false false false false :; do
18938 . ./conf$$subs.sh ||
18939 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18940 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18941 { (exit 1); exit 1; }; }
18942
18943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18944 if test $ac_delim_n = $ac_delim_num; then
18945 break
18946 elif $ac_last_try; then
18947 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18948 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18949 { (exit 1); exit 1; }; }
18950 else
18951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18952 fi
18953 done
18954 rm -f conf$$subs.sh
18955
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18958 _ACEOF
18959 sed -n '
18960 h
18961 s/^/S["/; s/!.*/"]=/
18962 p
18963 g
18964 s/^[^!]*!//
18965 :repl
18966 t repl
18967 s/'"$ac_delim"'$//
18968 t delim
18969 :nl
18970 h
18971 s/\(.\{148\}\).*/\1/
18972 t more1
18973 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18974 p
18975 n
18976 b repl
18977 :more1
18978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18979 p
18980 g
18981 s/.\{148\}//
18982 t nl
18983 :delim
18984 h
18985 s/\(.\{148\}\).*/\1/
18986 t more2
18987 s/["\\]/\\&/g; s/^/"/; s/$/"/
18988 p
18989 b
18990 :more2
18991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18992 p
18993 g
18994 s/.\{148\}//
18995 t delim
18996 ' <conf$$subs.awk | sed '
18997 /^[^""]/{
18998 N
18999 s/\n//
19000 }
19001 ' >>$CONFIG_STATUS || ac_write_fail=1
19002 rm -f conf$$subs.awk
19003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19004 _ACAWK
19005 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19006 for (key in S) S_is_set[key] = 1
19007 FS = "\a"
19008
19009 }
19010 {
19011 line = $ 0
19012 nfields = split(line, field, "@")
19013 substed = 0
19014 len = length(field[1])
19015 for (i = 2; i < nfields; i++) {
19016 key = field[i]
19017 keylen = length(key)
19018 if (S_is_set[key]) {
19019 value = S[key]
19020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19021 len += length(value) + length(field[++i])
19022 substed = 1
19023 } else
19024 len += 1 + keylen
19025 }
19026
19027 print line
19028 }
19029
19030 _ACAWK
19031 _ACEOF
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19035 else
19036 cat
19037 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19038 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19039 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19040 { (exit 1); exit 1; }; }
19041 _ACEOF
19042
19043 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19044 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19045 # trailing colons and then remove the whole line if VPATH becomes empty
19046 # (actually we leave an empty line to preserve line numbers).
19047 if test "x$srcdir" = x.; then
19048 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19049 s/:*\$(srcdir):*/:/
19050 s/:*\${srcdir}:*/:/
19051 s/:*@srcdir@:*/:/
19052 s/^\([^=]*=[ ]*\):*/\1/
19053 s/:*$//
19054 s/^[^=]*=[ ]*$//
19055 }'
19056 fi
19057
19058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19059 fi # test -n "$CONFIG_FILES"
19060
19061 # Set up the scripts for CONFIG_HEADERS section.
19062 # No need to generate them if there are no CONFIG_HEADERS.
19063 # This happens for instance with `./config.status Makefile'.
19064 if test -n "$CONFIG_HEADERS"; then
19065 cat >"$tmp/defines.awk" <<\_ACAWK ||
19066 BEGIN {
19067 _ACEOF
19068
19069 # Transform confdefs.h into an awk script `defines.awk', embedded as
19070 # here-document in config.status, that substitutes the proper values into
19071 # config.h.in to produce config.h.
19072
19073 # Create a delimiter string that does not exist in confdefs.h, to ease
19074 # handling of long lines.
19075 ac_delim='%!_!# '
19076 for ac_last_try in false false :; do
19077 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19078 if test -z "$ac_t"; then
19079 break
19080 elif $ac_last_try; then
19081 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19082 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19083 { (exit 1); exit 1; }; }
19084 else
19085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19086 fi
19087 done
19088
19089 # For the awk script, D is an array of macro values keyed by name,
19090 # likewise P contains macro parameters if any. Preserve backslash
19091 # newline sequences.
19092
19093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19094 sed -n '
19095 s/.\{148\}/&'"$ac_delim"'/g
19096 t rset
19097 :rset
19098 s/^[ ]*#[ ]*define[ ][ ]*/ /
19099 t def
19100 d
19101 :def
19102 s/\\$//
19103 t bsnl
19104 s/["\\]/\\&/g
19105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19106 D["\1"]=" \3"/p
19107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19108 d
19109 :bsnl
19110 s/["\\]/\\&/g
19111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19112 D["\1"]=" \3\\\\\\n"\\/p
19113 t cont
19114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19115 t cont
19116 d
19117 :cont
19118 n
19119 s/.\{148\}/&'"$ac_delim"'/g
19120 t clear
19121 :clear
19122 s/\\$//
19123 t bsnlc
19124 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19125 d
19126 :bsnlc
19127 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19128 b cont
19129 ' <confdefs.h | sed '
19130 s/'"$ac_delim"'/"\\\
19131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19132
19133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19134 for (key in D) D_is_set[key] = 1
19135 FS = "\a"
19136 }
19137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19138 line = \$ 0
19139 split(line, arg, " ")
19140 if (arg[1] == "#") {
19141 defundef = arg[2]
19142 mac1 = arg[3]
19143 } else {
19144 defundef = substr(arg[1], 2)
19145 mac1 = arg[2]
19146 }
19147 split(mac1, mac2, "(") #)
19148 macro = mac2[1]
19149 prefix = substr(line, 1, index(line, defundef) - 1)
19150 if (D_is_set[macro]) {
19151 # Preserve the white space surrounding the "#".
19152 print prefix "define", macro P[macro] D[macro]
19153 next
19154 } else {
19155 # Replace #undef with comments. This is necessary, for example,
19156 # in the case of _POSIX_SOURCE, which is predefined and required
19157 # on some systems where configure will not decide to define it.
19158 if (defundef == "undef") {
19159 print "/*", prefix defundef, macro, "*/"
19160 next
19161 }
19162 }
19163 }
19164 { print }
19165 _ACAWK
19166 _ACEOF
19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19169 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19170 { (exit 1); exit 1; }; }
19171 fi # test -n "$CONFIG_HEADERS"
19172
19173
19174 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19175 shift
19176 for ac_tag
19177 do
19178 case $ac_tag in
19179 :[FHLC]) ac_mode=$ac_tag; continue;;
19180 esac
19181 case $ac_mode$ac_tag in
19182 :[FHL]*:*);;
19183 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19184 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19185 { (exit 1); exit 1; }; };;
19186 :[FH]-) ac_tag=-:-;;
19187 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19188 esac
19189 ac_save_IFS=$IFS
19190 IFS=:
19191 set x $ac_tag
19192 IFS=$ac_save_IFS
19193 shift
19194 ac_file=$1
19195 shift
19196
19197 case $ac_mode in
19198 :L) ac_source=$1;;
19199 :[FH])
19200 ac_file_inputs=
19201 for ac_f
19202 do
19203 case $ac_f in
19204 -) ac_f="$tmp/stdin";;
19205 *) # Look for the file first in the build tree, then in the source tree
19206 # (if the path is not absolute). The absolute path cannot be DOS-style,
19207 # because $ac_f cannot contain `:'.
19208 test -f "$ac_f" ||
19209 case $ac_f in
19210 [\\/$]*) false;;
19211 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19212 esac ||
19213 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19214 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19215 { (exit 1); exit 1; }; };;
19216 esac
19217 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19218 ac_file_inputs="$ac_file_inputs '$ac_f'"
19219 done
19220
19221 # Let's still pretend it is `configure' which instantiates (i.e., don't
19222 # use $as_me), people would be surprised to read:
19223 # /* config.h. Generated by config.status. */
19224 configure_input='Generated from '`
19225 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19226 `' by configure.'
19227 if test x"$ac_file" != x-; then
19228 configure_input="$ac_file. $configure_input"
19229 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19230 $as_echo "$as_me: creating $ac_file" >&6;}
19231 fi
19232 # Neutralize special characters interpreted by sed in replacement strings.
19233 case $configure_input in #(
19234 *\&* | *\|* | *\\* )
19235 ac_sed_conf_input=`$as_echo "$configure_input" |
19236 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19237 *) ac_sed_conf_input=$configure_input;;
19238 esac
19239
19240 case $ac_tag in
19241 *:-:* | *:-) cat >"$tmp/stdin" \
19242 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19243 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19244 { (exit 1); exit 1; }; } ;;
19245 esac
19246 ;;
19247 esac
19248
19249 ac_dir=`$as_dirname -- "$ac_file" ||
19250 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19251 X"$ac_file" : 'X\(//\)[^/]' \| \
19252 X"$ac_file" : 'X\(//\)$' \| \
19253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19254 $as_echo X"$ac_file" |
19255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19256 s//\1/
19257 q
19258 }
19259 /^X\(\/\/\)[^/].*/{
19260 s//\1/
19261 q
19262 }
19263 /^X\(\/\/\)$/{
19264 s//\1/
19265 q
19266 }
19267 /^X\(\/\).*/{
19268 s//\1/
19269 q
19270 }
19271 s/.*/./; q'`
19272 { as_dir="$ac_dir"
19273 case $as_dir in #(
19274 -*) as_dir=./$as_dir;;
19275 esac
19276 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19277 as_dirs=
19278 while :; do
19279 case $as_dir in #(
19280 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19281 *) as_qdir=$as_dir;;
19282 esac
19283 as_dirs="'$as_qdir' $as_dirs"
19284 as_dir=`$as_dirname -- "$as_dir" ||
19285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19286 X"$as_dir" : 'X\(//\)[^/]' \| \
19287 X"$as_dir" : 'X\(//\)$' \| \
19288 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19289 $as_echo X"$as_dir" |
19290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19291 s//\1/
19292 q
19293 }
19294 /^X\(\/\/\)[^/].*/{
19295 s//\1/
19296 q
19297 }
19298 /^X\(\/\/\)$/{
19299 s//\1/
19300 q
19301 }
19302 /^X\(\/\).*/{
19303 s//\1/
19304 q
19305 }
19306 s/.*/./; q'`
19307 test -d "$as_dir" && break
19308 done
19309 test -z "$as_dirs" || eval "mkdir $as_dirs"
19310 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19311 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19312 { (exit 1); exit 1; }; }; }
19313 ac_builddir=.
19314
19315 case "$ac_dir" in
19316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19317 *)
19318 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19319 # A ".." for each directory in $ac_dir_suffix.
19320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19321 case $ac_top_builddir_sub in
19322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19324 esac ;;
19325 esac
19326 ac_abs_top_builddir=$ac_pwd
19327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19328 # for backward compatibility:
19329 ac_top_builddir=$ac_top_build_prefix
19330
19331 case $srcdir in
19332 .) # We are building in place.
19333 ac_srcdir=.
19334 ac_top_srcdir=$ac_top_builddir_sub
19335 ac_abs_top_srcdir=$ac_pwd ;;
19336 [\\/]* | ?:[\\/]* ) # Absolute name.
19337 ac_srcdir=$srcdir$ac_dir_suffix;
19338 ac_top_srcdir=$srcdir
19339 ac_abs_top_srcdir=$srcdir ;;
19340 *) # Relative name.
19341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19342 ac_top_srcdir=$ac_top_build_prefix$srcdir
19343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19344 esac
19345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19346
19347
19348 case $ac_mode in
19349 :F)
19350 #
19351 # CONFIG_FILE
19352 #
19353
19354 case $INSTALL in
19355 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19356 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19357 esac
19358 ac_MKDIR_P=$MKDIR_P
19359 case $MKDIR_P in
19360 [\\/$]* | ?:[\\/]* ) ;;
19361 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19362 esac
19363 _ACEOF
19364
19365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19366 # If the template does not know about datarootdir, expand it.
19367 # FIXME: This hack should be removed a few years after 2.60.
19368 ac_datarootdir_hack=; ac_datarootdir_seen=
19369
19370 ac_sed_dataroot='
19371 /datarootdir/ {
19372 p
19373 q
19374 }
19375 /@datadir@/p
19376 /@docdir@/p
19377 /@infodir@/p
19378 /@localedir@/p
19379 /@mandir@/p
19380 '
19381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19382 *datarootdir*) ac_datarootdir_seen=yes;;
19383 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19384 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19385 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19386 _ACEOF
19387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19388 ac_datarootdir_hack='
19389 s&@datadir@&$datadir&g
19390 s&@docdir@&$docdir&g
19391 s&@infodir@&$infodir&g
19392 s&@localedir@&$localedir&g
19393 s&@mandir@&$mandir&g
19394 s&\\\${datarootdir}&$datarootdir&g' ;;
19395 esac
19396 _ACEOF
19397
19398 # Neutralize VPATH when `$srcdir' = `.'.
19399 # Shell code in configure.ac might set extrasub.
19400 # FIXME: do we really want to maintain this feature?
19401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402 ac_sed_extra="$ac_vpsub
19403 $extrasub
19404 _ACEOF
19405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19406 :t
19407 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19408 s|@configure_input@|$ac_sed_conf_input|;t t
19409 s&@top_builddir@&$ac_top_builddir_sub&;t t
19410 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19411 s&@srcdir@&$ac_srcdir&;t t
19412 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19413 s&@top_srcdir@&$ac_top_srcdir&;t t
19414 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19415 s&@builddir@&$ac_builddir&;t t
19416 s&@abs_builddir@&$ac_abs_builddir&;t t
19417 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19418 s&@INSTALL@&$ac_INSTALL&;t t
19419 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19420 $ac_datarootdir_hack
19421 "
19422 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19423 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19424 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19425 { (exit 1); exit 1; }; }
19426
19427 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19428 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19430 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19431 which seems to be undefined. Please make sure it is defined." >&5
19432 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19433 which seems to be undefined. Please make sure it is defined." >&2;}
19434
19435 rm -f "$tmp/stdin"
19436 case $ac_file in
19437 -) cat "$tmp/out" && rm -f "$tmp/out";;
19438 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19439 esac \
19440 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19441 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19442 { (exit 1); exit 1; }; }
19443 ;;
19444 :H)
19445 #
19446 # CONFIG_HEADER
19447 #
19448 if test x"$ac_file" != x-; then
19449 {
19450 $as_echo "/* $configure_input */" \
19451 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19452 } >"$tmp/config.h" \
19453 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19454 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19455 { (exit 1); exit 1; }; }
19456 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19457 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19458 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19459 else
19460 rm -f "$ac_file"
19461 mv "$tmp/config.h" "$ac_file" \
19462 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19463 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19464 { (exit 1); exit 1; }; }
19465 fi
19466 else
19467 $as_echo "/* $configure_input */" \
19468 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19469 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19470 $as_echo "$as_me: error: could not create -" >&2;}
19471 { (exit 1); exit 1; }; }
19472 fi
19473 ;;
19474
19475
19476 esac
19477
19478 done # for ac_tag
19479
19480
19481 { (exit 0); exit 0; }
19482 _ACEOF
19483 chmod +x $CONFIG_STATUS
19484 ac_clean_files=$ac_clean_files_save
19485
19486 test $ac_write_fail = 0 ||
19487 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19488 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19489 { (exit 1); exit 1; }; }
19490
19491
19492 # configure is writing to config.log, and then calls config.status.
19493 # config.status does its own redirection, appending to config.log.
19494 # Unfortunately, on DOS this fails, as config.log is still kept open
19495 # by configure, so config.status won't be able to write to it; its
19496 # output is simply discarded. So we exec the FD to /dev/null,
19497 # effectively closing config.log, so it can be properly (re)opened and
19498 # appended to by config.status. When coming back to configure, we
19499 # need to make the FD available again.
19500 if test "$no_create" != yes; then
19501 ac_cs_success=:
19502 ac_config_status_args=
19503 test "$silent" = yes &&
19504 ac_config_status_args="$ac_config_status_args --quiet"
19505 exec 5>/dev/null
19506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19507 exec 5>>config.log
19508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19509 # would make configure fail if this is the last instruction.
19510 $ac_cs_success || { (exit 1); exit 1; }
19511 fi
19512 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19513 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19514 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19515 fi
19516
19517
19518 if test x$ODIRECT != xyes; then
19519 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19520 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
19521 fi
This page took 1.077808 seconds and 6 git commands to generate.