]> sourceware.org Git - lvm2.git/blob - configure
Fix configure to supply DEFAULT_RUN_DIR to Makefiles.
[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
692 DL_LIBS
693 DEVMAPPER
694 DEFAULT_RUN_DIR
695 DEFAULT_LOCK_DIR
696 DEFAULT_CACHE_SUBDIR
697 DEFAULT_BACKUP_SUBDIR
698 DEFAULT_ARCHIVE_SUBDIR
699 DEFAULT_SYS_DIR
700 DEBUG
701 COPTIMISE_FLAG
702 CONFDIR
703 CMDLIB
704 CLVMD
705 CLUSTER
706 CLDWHOLEARCHIVE
707 CLDNOWHOLEARCHIVE
708 CLDFLAGS
709 BUILD_DMEVENTD
710 BUILD_CMIRRORD
711 APPLIB
712 MODPROBE_CMD
713 MSGFMT
714 LVM2CMD_LIB
715 LVM2APP_LIB
716 VALGRIND
717 RUBY19
718 GENPNG
719 GENHTML
720 LCOV
721 SACKPT_LIBS
722 SACKPT_CFLAGS
723 DLM_LIBS
724 DLM_CFLAGS
725 CPG_LIBS
726 CPG_CFLAGS
727 CONFDB_LIBS
728 CONFDB_CFLAGS
729 SALCK_LIBS
730 SALCK_CFLAGS
731 QUORUM_LIBS
732 QUORUM_CFLAGS
733 COROSYNC_LIBS
734 COROSYNC_CFLAGS
735 CMAN_LIBS
736 CMAN_CFLAGS
737 GULM_LIBS
738 GULM_CFLAGS
739 CCS_LIBS
740 CCS_CFLAGS
741 PKGCONFIGINIT_LIBS
742 PKGCONFIGINIT_CFLAGS
743 PKG_CONFIG
744 POW_LIB
745 LIBOBJS
746 ALLOCA
747 CSCOPE_CMD
748 CFLOW_CMD
749 RANLIB
750 MKDIR_P
751 SET_MAKE
752 LN_S
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 EGREP
757 GREP
758 CPP
759 OBJEXT
760 EXEEXT
761 ac_ct_CC
762 CPPFLAGS
763 LDFLAGS
764 CFLAGS
765 CC
766 AWK
767 SED
768 target_os
769 target_vendor
770 target_cpu
771 target
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_static_link
821 with_user
822 with_group
823 with_device_uid
824 with_device_gid
825 with_device_mode
826 enable_lvm1_fallback
827 with_lvm1
828 with_pool
829 with_cluster
830 with_snapshots
831 with_mirrors
832 with_replicators
833 enable_readline
834 enable_realtime
835 with_clvmd
836 with_clvmd_pidfile
837 enable_cmirrord
838 with_cmirrord_pidfile
839 enable_debug
840 with_optimisation
841 enable_profiling
842 enable_testing
843 enable_devmapper
844 enable_udev_sync
845 enable_udev_rules
846 enable_compat
847 enable_units_compat
848 enable_ioctl
849 enable_o_direct
850 enable_applib
851 enable_cmdlib
852 enable_pkgconfig
853 enable_write_install
854 enable_fsadm
855 enable_dmeventd
856 enable_selinux
857 enable_nls
858 with_localedir
859 with_confdir
860 with_staticdir
861 with_usrlibdir
862 with_usrsbindir
863 with_udev_prefix
864 with_udevdir
865 with_dmeventd_pidfile
866 with_dmeventd_path
867 with_default_run_dir
868 with_default_system_dir
869 with_default_archive_subdir
870 with_default_backup_subdir
871 with_default_cache_subdir
872 with_default_locking_dir
873 with_interface
874 '
875 ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 CC
879 CFLAGS
880 LDFLAGS
881 LIBS
882 CPPFLAGS
883 CPP
884 PKG_CONFIG
885 PKGCONFIGINIT_CFLAGS
886 PKGCONFIGINIT_LIBS
887 CCS_CFLAGS
888 CCS_LIBS
889 GULM_CFLAGS
890 GULM_LIBS
891 CMAN_CFLAGS
892 CMAN_LIBS
893 COROSYNC_CFLAGS
894 COROSYNC_LIBS
895 QUORUM_CFLAGS
896 QUORUM_LIBS
897 SALCK_CFLAGS
898 SALCK_LIBS
899 CONFDB_CFLAGS
900 CONFDB_LIBS
901 CPG_CFLAGS
902 CPG_LIBS
903 DLM_CFLAGS
904 DLM_LIBS
905 SACKPT_CFLAGS
906 SACKPT_LIBS'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE}'
948 infodir='${datarootdir}/info'
949 htmldir='${docdir}'
950 dvidir='${docdir}'
951 pdfdir='${docdir}'
952 psdir='${docdir}'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
956
957 ac_prev=
958 ac_dashdash=
959 for ac_option
960 do
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
964 ac_prev=
965 continue
966 fi
967
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
1027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1037
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1074
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1079
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1109
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1126
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1147
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1183
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
1202 sbindir=$ac_optarg ;;
1203
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
1213 sharedstatedir=$ac_optarg ;;
1214
1215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
1218 site=$ac_optarg ;;
1219
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1224
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1231
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1236
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1239
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1242
1243 -with-* | --with-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1248 { (exit 1); exit 1; }; }
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=\$ac_optarg ;;
1259
1260 -without-* | --without-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1265 { (exit 1); exit 1; }; }
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
1276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1294
1295 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1296 Try \`$0 --help' for more information." >&2
1297 { (exit 1); exit 1; }; }
1298 ;;
1299
1300 *=*)
1301 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1304 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1305 { (exit 1); exit 1; }; }
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1308
1309 *)
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315 ;;
1316
1317 esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1323 { (exit 1); exit 1; }; }
1324 fi
1325
1326 if test -n "$ac_unrecognized_opts"; then
1327 case $enable_option_checking in
1328 no) ;;
1329 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1330 { (exit 1); exit 1; }; } ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333 fi
1334
1335 # Check all directory arguments for consistency.
1336 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1340 do
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
1349 case $ac_val in
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352 esac
1353 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354 { (exit 1); exit 1; }; }
1355 done
1356
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1363
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1385 { (exit 1); exit 1; }; }
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1388 { (exit 1); exit 1; }; }
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
1418 srcdir=$ac_confdir
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 srcdir=..
1421 fi
1422 else
1423 ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1428 { (exit 1); exit 1; }; }
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1433 { (exit 1); exit 1; }; }
1434 pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1513
1514 cat <<\_ACEOF
1515
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520 _ACEOF
1521 fi
1522
1523 if test -n "$ac_init_help"; then
1524
1525 cat <<\_ACEOF
1526
1527 Optional Features:
1528 --disable-option-checking ignore unrecognized --enable/--with options
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-static_link use this to link the tools to their libraries
1532 statically (default is dynamic linking
1533 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1534 device-mapper is missing from the kernel
1535 --disable-readline disable readline support
1536 --enable-realtime enable realtime clock support
1537 --enable-cmirrord enable the cluster mirror log daemon
1538 --enable-debug enable debugging
1539 --enable-profiling gather gcov profiling data
1540 --enable-testing enable testing targets in the makefile
1541 --disable-devmapper disable LVM2 device-mapper interaction
1542 --enable-udev_sync enable synchronisation with udev processing
1543 --enable-udev_rules install rule files needed for udev synchronisation
1544 --enable-compat enable support for old device-mapper versions
1545 --enable-units-compat enable output compatibility with old versions that
1546 that do not use KiB-style unit suffixes
1547 --disable-driver disable calls to device-mapper in the kernel
1548 --disable-o_direct disable O_DIRECT
1549 --enable-applib build application library
1550 --enable-cmdlib build shared command library
1551 --enable-pkgconfig install pkgconfig support
1552 --enable-write_install install user writable files
1553 --disable-fsadm disable fsadm
1554 --enable-dmeventd enable the device-mapper event daemon
1555 --disable-selinux disable selinux support
1556 --enable-nls enable Native Language Support
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-user=USER set the owner of installed files [USER=]
1562 --with-group=GROUP set the group owner of installed files [GROUP=]
1563 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1564 --with-device-gid=GID set the group used for new device nodes [GID=0]
1565 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
1566 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1567 [TYPE=internal]
1568 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1569 [TYPE=internal]
1570 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1571 [TYPE=internal]
1572 --with-snapshots=TYPE snapshot support: internal/shared/none
1573 [TYPE=internal]
1574 --with-mirrors=TYPE mirror support: internal/shared/none
1575 [TYPE=internal]
1576 --with-replicators=TYPE replicator support: internal/shared/none
1577 [TYPE=none]
1578 --with-clvmd=TYPE build cluster LVM Daemon
1579 The following cluster manager combinations are valid:
1580 * cman,gulm (RHEL4 or equivalent)
1581 * cman (RHEL5 or equivalent)
1582 * cman,corosync,openais (or selection of them)
1583 * singlenode (localhost only)
1584 * all (autodetect)
1585 * none (disable build)
1586 [TYPE=none]
1587 --with-clvmd-pidfile=PATH
1588 clvmd pidfile [/var/run/clvmd.pid]
1589 --with-cmirrord-pidfile=PATH
1590 cmirrord pidfile [/var/run/cmirrord.pid]
1591 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1592 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1593 --with-confdir=DIR configuration files in DIR [/etc]
1594 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1595 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1596 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1597 --with-udev-prefix=UPREFIX
1598 install udev rule files in UPREFIX [EPREFIX]
1599 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1600 --with-dmeventd-pidfile=PATH
1601 dmeventd pidfile [/var/run/dmeventd.pid]
1602 --with-dmeventd-path=PATH
1603 dmeventd path [EPREFIX/sbin/dmeventd]
1604 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1605 --with-default-system-dir=DIR
1606 default LVM system directory [/etc/lvm]
1607 --with-default-archive-subdir=SUBDIR
1608 default metadata archive subdir [archive]
1609 --with-default-backup-subdir=SUBDIR
1610 default metadata backup subdir [backup]
1611 --with-default-cache-subdir=SUBDIR
1612 default metadata cache subdir [cache]
1613 --with-default-locking-dir=DIR
1614 default locking directory [/var/lock/lvm]
1615 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
1616
1617 Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
1622 LIBS libraries to pass to the linker, e.g. -l<library>
1623 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
1625 CPP C preprocessor
1626 PKG_CONFIG path to pkg-config utility
1627 PKGCONFIGINIT_CFLAGS
1628 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1629 PKGCONFIGINIT_LIBS
1630 linker flags for PKGCONFIGINIT, overriding pkg-config
1631 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1632 CCS_LIBS linker flags for CCS, overriding pkg-config
1633 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1634 GULM_LIBS linker flags for GULM, overriding pkg-config
1635 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1636 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1637 COROSYNC_CFLAGS
1638 C compiler flags for COROSYNC, overriding pkg-config
1639 COROSYNC_LIBS
1640 linker flags for COROSYNC, overriding pkg-config
1641 QUORUM_CFLAGS
1642 C compiler flags for QUORUM, overriding pkg-config
1643 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1644 SALCK_CFLAGS
1645 C compiler flags for SALCK, overriding pkg-config
1646 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1647 CONFDB_CFLAGS
1648 C compiler flags for CONFDB, overriding pkg-config
1649 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1650 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1651 CPG_LIBS linker flags for CPG, overriding pkg-config
1652 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1653 DLM_LIBS linker flags for DLM, overriding pkg-config
1654 SACKPT_CFLAGS
1655 C compiler flags for SACKPT, overriding pkg-config
1656 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1657
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1660
1661 _ACEOF
1662 ac_status=$?
1663 fi
1664
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1672
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1688
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1718 fi
1719
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 configure
1724 generated by GNU Autoconf 2.63
1725
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731 exit
1732 fi
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1736
1737 It was created by $as_me, which was
1738 generated by GNU Autoconf 2.63. Invocation command line was
1739
1740 $ $0 $@
1741
1742 _ACEOF
1743 exec 5>>config.log
1744 {
1745 cat <<_ASUNAME
1746 ## --------- ##
1747 ## Platform. ##
1748 ## --------- ##
1749
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766
1767 _ASUNAME
1768
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 $as_echo "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1777
1778 } >&5
1779
1780 cat >&5 <<_ACEOF
1781
1782
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1786
1787 _ACEOF
1788
1789
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1800 do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 2)
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1829 fi
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1831 ;;
1832 esac
1833 done
1834 done
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
1848 cat <<\_ASBOX
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1852 _ASBOX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855 (
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) $as_unset $ac_var ;;
1868 esac ;;
1869 esac
1870 done
1871 (set) 2>&1 |
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1874 sed -n \
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
1878 *)
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883 )
1884 echo
1885
1886 cat <<\_ASBOX
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1890 _ASBOX
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 $as_echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
1903 cat <<\_ASBOX
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1907 _ASBOX
1908 echo
1909 for ac_var in $ac_subst_files
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 $as_echo "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918 fi
1919
1920 if test -s confdefs.h; then
1921 cat <<\_ASBOX
1922 ## ----------- ##
1923 ## confdefs.h. ##
1924 ## ----------- ##
1925 _ASBOX
1926 echo
1927 cat confdefs.h
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1933 } >&5
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 # Predefined preprocessor variables.
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 _ACEOF
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 ac_site_file1=NONE
1976 ac_site_file2=NONE
1977 if test -n "$CONFIG_SITE"; then
1978 ac_site_file1=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1982 else
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1985 fi
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987 do
1988 test "x$ac_site_file" = xNONE && continue
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1993 . "$ac_site_file"
1994 fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008 else
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012 fi
2013
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2023 set,)
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,set)
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2031 ,);;
2032 *)
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2041 else
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2045 fi
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2050 fi;;
2051 esac
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2054 case $ac_new_val in
2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2057 esac
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061 esac
2062 fi
2063 done
2064 if $ac_cache_corrupted; then
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097
2098 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2099
2100
2101 ################################################################################
2102 ac_aux_dir=
2103 for ac_dir in autoconf "$srcdir"/autoconf; do
2104 if test -f "$ac_dir/install-sh"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/install-sh -c"
2107 break
2108 elif test -f "$ac_dir/install.sh"; then
2109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/install.sh -c"
2111 break
2112 elif test -f "$ac_dir/shtool"; then
2113 ac_aux_dir=$ac_dir
2114 ac_install_sh="$ac_aux_dir/shtool install -c"
2115 break
2116 fi
2117 done
2118 if test -z "$ac_aux_dir"; then
2119 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2120 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2121 { (exit 1); exit 1; }; }
2122 fi
2123
2124 # These three variables are undocumented and unsupported,
2125 # and are intended to be withdrawn in a future Autoconf release.
2126 # They can cause serious problems if a builder's source tree is in a directory
2127 # whose full name contains unusual characters.
2128 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2129 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2130 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2131
2132
2133
2134 ################################################################################
2135 # Make sure we can run config.sub.
2136 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2137 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2138 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2139 { (exit 1); exit 1; }; }
2140
2141 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2142 $as_echo_n "checking build system type... " >&6; }
2143 if test "${ac_cv_build+set}" = set; then
2144 $as_echo_n "(cached) " >&6
2145 else
2146 ac_build_alias=$build_alias
2147 test "x$ac_build_alias" = x &&
2148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2149 test "x$ac_build_alias" = x &&
2150 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152 { (exit 1); exit 1; }; }
2153 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2154 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2155 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2157
2158 fi
2159 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160 $as_echo "$ac_cv_build" >&6; }
2161 case $ac_cv_build in
2162 *-*-*) ;;
2163 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2164 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2165 { (exit 1); exit 1; }; };;
2166 esac
2167 build=$ac_cv_build
2168 ac_save_IFS=$IFS; IFS='-'
2169 set x $ac_cv_build
2170 shift
2171 build_cpu=$1
2172 build_vendor=$2
2173 shift; shift
2174 # Remember, the first character of IFS is used to create $*,
2175 # except with old shells:
2176 build_os=$*
2177 IFS=$ac_save_IFS
2178 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179
2180
2181 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2182 $as_echo_n "checking host system type... " >&6; }
2183 if test "${ac_cv_host+set}" = set; then
2184 $as_echo_n "(cached) " >&6
2185 else
2186 if test "x$host_alias" = x; then
2187 ac_cv_host=$ac_cv_build
2188 else
2189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2190 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2191 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2192 { (exit 1); exit 1; }; }
2193 fi
2194
2195 fi
2196 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197 $as_echo "$ac_cv_host" >&6; }
2198 case $ac_cv_host in
2199 *-*-*) ;;
2200 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2201 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2202 { (exit 1); exit 1; }; };;
2203 esac
2204 host=$ac_cv_host
2205 ac_save_IFS=$IFS; IFS='-'
2206 set x $ac_cv_host
2207 shift
2208 host_cpu=$1
2209 host_vendor=$2
2210 shift; shift
2211 # Remember, the first character of IFS is used to create $*,
2212 # except with old shells:
2213 host_os=$*
2214 IFS=$ac_save_IFS
2215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216
2217
2218 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2219 $as_echo_n "checking target system type... " >&6; }
2220 if test "${ac_cv_target+set}" = set; then
2221 $as_echo_n "(cached) " >&6
2222 else
2223 if test "x$target_alias" = x; then
2224 ac_cv_target=$ac_cv_host
2225 else
2226 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2227 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2228 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2229 { (exit 1); exit 1; }; }
2230 fi
2231
2232 fi
2233 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234 $as_echo "$ac_cv_target" >&6; }
2235 case $ac_cv_target in
2236 *-*-*) ;;
2237 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2238 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2239 { (exit 1); exit 1; }; };;
2240 esac
2241 target=$ac_cv_target
2242 ac_save_IFS=$IFS; IFS='-'
2243 set x $ac_cv_target
2244 shift
2245 target_cpu=$1
2246 target_vendor=$2
2247 shift; shift
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2250 target_os=$*
2251 IFS=$ac_save_IFS
2252 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253
2254
2255 # The aliases save the names the user supplied, while $host etc.
2256 # will get canonicalized.
2257 test -n "$target_alias" &&
2258 test "$program_prefix$program_suffix$program_transform_name" = \
2259 NONENONEs,x,x, &&
2260 program_prefix=${target_alias}-
2261
2262 case "$host_os" in
2263 linux*)
2264 CFLAGS="$CFLAGS"
2265 COPTIMISE_FLAG="-O2"
2266 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2267 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2268 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2269 LDDEPS="$LDDEPS .export.sym"
2270 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2271 LIB_SUFFIX=so
2272 DEVMAPPER=yes
2273 ODIRECT=yes
2274 DM_IOCTLS=yes
2275 SELINUX=yes
2276 CLUSTER=internal
2277 FSADM=yes
2278 ;;
2279 darwin*)
2280 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2281 COPTIMISE_FLAG="-O2"
2282 CLDFLAGS="$CLDFLAGS"
2283 CLDWHOLEARCHIVE="-all_load"
2284 CLDNOWHOLEARCHIVE=
2285 LIB_SUFFIX=dylib
2286 DEVMAPPER=yes
2287 ODIRECT=no
2288 DM_IOCTLS=no
2289 SELINUX=no
2290 CLUSTER=none
2291 FSADM=no
2292 ;;
2293 esac
2294
2295 ################################################################################
2296 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2297 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2298 if test "${ac_cv_path_SED+set}" = set; then
2299 $as_echo_n "(cached) " >&6
2300 else
2301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2302 for ac_i in 1 2 3 4 5 6 7; do
2303 ac_script="$ac_script$as_nl$ac_script"
2304 done
2305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2306 $as_unset ac_script || ac_script=
2307 if test -z "$SED"; then
2308 ac_path_SED_found=false
2309 # Loop through the user's path and test for each of PROGNAME-LIST
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_prog in sed gsed; do
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2318 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2319 # Check for GNU ac_path_SED and select it if it is found.
2320 # Check for GNU $ac_path_SED
2321 case `"$ac_path_SED" --version 2>&1` in
2322 *GNU*)
2323 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2324 *)
2325 ac_count=0
2326 $as_echo_n 0123456789 >"conftest.in"
2327 while :
2328 do
2329 cat "conftest.in" "conftest.in" >"conftest.tmp"
2330 mv "conftest.tmp" "conftest.in"
2331 cp "conftest.in" "conftest.nl"
2332 $as_echo '' >> "conftest.nl"
2333 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2335 ac_count=`expr $ac_count + 1`
2336 if test $ac_count -gt ${ac_path_SED_max-0}; then
2337 # Best one so far, save it but keep looking for a better one
2338 ac_cv_path_SED="$ac_path_SED"
2339 ac_path_SED_max=$ac_count
2340 fi
2341 # 10*(2^10) chars as input seems more than enough
2342 test $ac_count -gt 10 && break
2343 done
2344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2345 esac
2346
2347 $ac_path_SED_found && break 3
2348 done
2349 done
2350 done
2351 IFS=$as_save_IFS
2352 if test -z "$ac_cv_path_SED"; then
2353 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2354 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357 else
2358 ac_cv_path_SED=$SED
2359 fi
2360
2361 fi
2362 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2363 $as_echo "$ac_cv_path_SED" >&6; }
2364 SED="$ac_cv_path_SED"
2365 rm -f conftest.sed
2366
2367 for ac_prog in gawk mawk nawk awk
2368 do
2369 # Extract the first word of "$ac_prog", so it can be a program name with args.
2370 set dummy $ac_prog; ac_word=$2
2371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 $as_echo_n "checking for $ac_word... " >&6; }
2373 if test "${ac_cv_prog_AWK+set}" = set; then
2374 $as_echo_n "(cached) " >&6
2375 else
2376 if test -n "$AWK"; then
2377 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_AWK="$ac_prog"
2387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 AWK=$ac_cv_prog_AWK
2397 if test -n "$AWK"; then
2398 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2399 $as_echo "$AWK" >&6; }
2400 else
2401 { $as_echo "$as_me:$LINENO: result: no" >&5
2402 $as_echo "no" >&6; }
2403 fi
2404
2405
2406 test -n "$AWK" && break
2407 done
2408
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 $as_echo_n "checking for $ac_word... " >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 $as_echo_n "(cached) " >&6
2421 else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436 done
2437 done
2438 IFS=$as_save_IFS
2439
2440 fi
2441 fi
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2445 $as_echo "$CC" >&6; }
2446 else
2447 { $as_echo "$as_me:$LINENO: result: no" >&5
2448 $as_echo "no" >&6; }
2449 fi
2450
2451
2452 fi
2453 if test -z "$ac_cv_prog_CC"; then
2454 ac_ct_CC=$CC
2455 # Extract the first word of "gcc", so it can be a program name with args.
2456 set dummy gcc; ac_word=$2
2457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 $as_echo_n "checking for $ac_word... " >&6; }
2459 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2460 $as_echo_n "(cached) " >&6
2461 else
2462 if test -n "$ac_ct_CC"; then
2463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_ac_ct_CC="gcc"
2473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476 done
2477 done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483 if test -n "$ac_ct_CC"; then
2484 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485 $as_echo "$ac_ct_CC" >&6; }
2486 else
2487 { $as_echo "$as_me:$LINENO: result: no" >&5
2488 $as_echo "no" >&6; }
2489 fi
2490
2491 if test "x$ac_ct_CC" = x; then
2492 CC=""
2493 else
2494 case $cross_compiling:$ac_tool_warned in
2495 yes:)
2496 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2498 ac_tool_warned=yes ;;
2499 esac
2500 CC=$ac_ct_CC
2501 fi
2502 else
2503 CC="$ac_cv_prog_CC"
2504 fi
2505
2506 if test -z "$CC"; then
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}cc; ac_word=$2
2510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2514 else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_CC="${ac_tool_prefix}cc"
2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2538 $as_echo "$CC" >&6; }
2539 else
2540 { $as_echo "$as_me:$LINENO: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544
2545 fi
2546 fi
2547 if test -z "$CC"; then
2548 # Extract the first word of "cc", so it can be a program name with args.
2549 set dummy cc; ac_word=$2
2550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 else
2558 ac_prog_rejected=no
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567 ac_prog_rejected=yes
2568 continue
2569 fi
2570 ac_cv_prog_CC="cc"
2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 if test $ac_prog_rejected = yes; then
2579 # We found a bogon in the path, so make sure we never use it.
2580 set dummy $ac_cv_prog_CC
2581 shift
2582 if test $# != 0; then
2583 # We chose a different compiler from the bogus one.
2584 # However, it has the same basename, so the bogon will be chosen
2585 # first if we set CC to just the basename; use the full file name.
2586 shift
2587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2588 fi
2589 fi
2590 fi
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2595 $as_echo "$CC" >&6; }
2596 else
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598 $as_echo "no" >&6; }
2599 fi
2600
2601
2602 fi
2603 if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 for ac_prog in cl.exe
2606 do
2607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2638 else
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644 test -n "$CC" && break
2645 done
2646 fi
2647 if test -z "$CC"; then
2648 ac_ct_CC=$CC
2649 for ac_prog in cl.exe
2650 do
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_CC="$ac_prog"
2669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 $as_echo "$ac_ct_CC" >&6; }
2682 else
2683 { $as_echo "$as_me:$LINENO: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 test -n "$ac_ct_CC" && break
2689 done
2690
2691 if test "x$ac_ct_CC" = x; then
2692 CC=""
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695 yes:)
2696 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 ac_tool_warned=yes ;;
2699 esac
2700 CC=$ac_ct_CC
2701 fi
2702 fi
2703
2704 fi
2705
2706
2707 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710 See \`config.log' for more details." >&5
2711 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }; }
2714
2715 # Provide some information about the compiler.
2716 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2717 set X $ac_compile
2718 ac_compiler=$2
2719 { (ac_try="$ac_compiler --version >&5"
2720 case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2725 $as_echo "$ac_try_echo") >&5
2726 (eval "$ac_compiler --version >&5") 2>&5
2727 ac_status=$?
2728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2730 { (ac_try="$ac_compiler -v >&5"
2731 case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736 $as_echo "$ac_try_echo") >&5
2737 (eval "$ac_compiler -v >&5") 2>&5
2738 ac_status=$?
2739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
2741 { (ac_try="$ac_compiler -V >&5"
2742 case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745 esac
2746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2747 $as_echo "$ac_try_echo") >&5
2748 (eval "$ac_compiler -V >&5") 2>&5
2749 ac_status=$?
2750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2759
2760 int
2761 main ()
2762 {
2763
2764 ;
2765 return 0;
2766 }
2767 _ACEOF
2768 ac_clean_files_save=$ac_clean_files
2769 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2770 # Try to create an executable without -o first, disregard a.out.
2771 # It will help us diagnose broken compilers, and finding out an intuition
2772 # of exeext.
2773 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774 $as_echo_n "checking for C compiler default output file name... " >&6; }
2775 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2776
2777 # The possible output files:
2778 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2779
2780 ac_rmfiles=
2781 for ac_file in $ac_files
2782 do
2783 case $ac_file in
2784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2785 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2786 esac
2787 done
2788 rm -f $ac_rmfiles
2789
2790 if { (ac_try="$ac_link_default"
2791 case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796 $as_echo "$ac_try_echo") >&5
2797 (eval "$ac_link_default") 2>&5
2798 ac_status=$?
2799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2804 # so that the user can short-circuit this test for compilers unknown to
2805 # Autoconf.
2806 for ac_file in $ac_files ''
2807 do
2808 test -f "$ac_file" || continue
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2811 ;;
2812 [ab].out )
2813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
2816 *.* )
2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820 fi
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
2826 break;;
2827 * )
2828 break;;
2829 esac
2830 done
2831 test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
2833 else
2834 ac_file=''
2835 fi
2836
2837 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2838 $as_echo "$ac_file" >&6; }
2839 if test -z "$ac_file"; then
2840 $as_echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2842
2843 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&5
2847 $as_echo "$as_me: error: C compiler cannot create executables
2848 See \`config.log' for more details." >&2;}
2849 { (exit 77); exit 77; }; }; }
2850 fi
2851
2852 ac_exeext=$ac_cv_exeext
2853
2854 # Check that the compiler produces executables we can run. If not, either
2855 # the compiler is broken, or we cross compile.
2856 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2857 $as_echo_n "checking whether the C compiler works... " >&6; }
2858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2859 # If not cross compiling, check that we can run a simple program.
2860 if test "$cross_compiling" != yes; then
2861 if { ac_try='./$ac_file'
2862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867 $as_echo "$ac_try_echo") >&5
2868 (eval "$ac_try") 2>&5
2869 ac_status=$?
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 cross_compiling=no
2873 else
2874 if test "$cross_compiling" = maybe; then
2875 cross_compiling=yes
2876 else
2877 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&5
2882 $as_echo "$as_me: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }; }
2886 fi
2887 fi
2888 fi
2889 { $as_echo "$as_me:$LINENO: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891
2892 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 # Check that the compiler produces executables we can run. If not, either
2895 # the compiler is broken, or we cross compile.
2896 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897 $as_echo_n "checking whether we are cross compiling... " >&6; }
2898 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899 $as_echo "$cross_compiling" >&6; }
2900
2901 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902 $as_echo_n "checking for suffix of executables... " >&6; }
2903 if { (ac_try="$ac_link"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910 (eval "$ac_link") 2>&5
2911 ac_status=$?
2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2915 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2916 # work properly (i.e., refer to `conftest.exe'), while it won't with
2917 # `rm'.
2918 for ac_file in conftest.exe conftest conftest.*; do
2919 test -f "$ac_file" || continue
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 break;;
2924 * ) break;;
2925 esac
2926 done
2927 else
2928 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2931 See \`config.log' for more details." >&5
2932 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }; }
2935 fi
2936
2937 rm -f conftest$ac_cv_exeext
2938 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2939 $as_echo "$ac_cv_exeext" >&6; }
2940
2941 rm -f conftest.$ac_ext
2942 EXEEXT=$ac_cv_exeext
2943 ac_exeext=$EXEEXT
2944 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2945 $as_echo_n "checking for suffix of object files... " >&6; }
2946 if test "${ac_cv_objext+set}" = set; then
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955
2956 int
2957 main ()
2958 {
2959
2960 ;
2961 return 0;
2962 }
2963 _ACEOF
2964 rm -f conftest.o conftest.obj
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>&5
2973 ac_status=$?
2974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 break;;
2982 esac
2983 done
2984 else
2985 $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&5
2992 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }; }
2995 fi
2996
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2998 fi
2999 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000 $as_echo "$ac_cv_objext" >&6; }
3001 OBJEXT=$ac_cv_objext
3002 ac_objext=$OBJEXT
3003 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006 $as_echo_n "(cached) " >&6
3007 else
3008 cat >conftest.$ac_ext <<_ACEOF
3009 /* confdefs.h. */
3010 _ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014
3015 int
3016 main ()
3017 {
3018 #ifndef __GNUC__
3019 choke me
3020 #endif
3021
3022 ;
3023 return 0;
3024 }
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3033 $as_echo "$ac_try_echo") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3044 ac_compiler_gnu=yes
3045 else
3046 $as_echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049 ac_compiler_gnu=no
3050 fi
3051
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054
3055 fi
3056 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3057 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3058 if test $ac_compiler_gnu = yes; then
3059 GCC=yes
3060 else
3061 GCC=
3062 fi
3063 ac_test_CFLAGS=${CFLAGS+set}
3064 ac_save_CFLAGS=$CFLAGS
3065 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3067 if test "${ac_cv_prog_cc_g+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3069 else
3070 ac_save_c_werror_flag=$ac_c_werror_flag
3071 ac_c_werror_flag=yes
3072 ac_cv_prog_cc_g=no
3073 CFLAGS="-g"
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3080
3081 int
3082 main ()
3083 {
3084
3085 ;
3086 return 0;
3087 }
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
3107 ac_cv_prog_cc_g=yes
3108 else
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 CFLAGS=""
3113 cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h. */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119
3120 int
3121 main ()
3122 {
3123
3124 ;
3125 return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133 esac
3134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135 $as_echo "$ac_try_echo") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
3146 :
3147 else
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159
3160 int
3161 main ()
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3175 $as_echo "$ac_try_echo") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3186 ac_cv_prog_cc_g=yes
3187 else
3188 $as_echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3202 fi
3203 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3204 $as_echo "$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206 CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3209 CFLAGS="-g -O2"
3210 else
3211 CFLAGS="-g"
3212 fi
3213 else
3214 if test "$GCC" = yes; then
3215 CFLAGS="-O2"
3216 else
3217 CFLAGS=
3218 fi
3219 fi
3220 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3222 if test "${ac_cv_prog_cc_c89+set}" = set; then
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_cv_prog_cc_c89=no
3226 ac_save_CC=$CC
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 #include <stdarg.h>
3234 #include <stdio.h>
3235 #include <sys/types.h>
3236 #include <sys/stat.h>
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3241 char **p;
3242 int i;
3243 {
3244 return p[i];
3245 }
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3247 {
3248 char *s;
3249 va_list v;
3250 va_start (v,p);
3251 s = g (p, va_arg (v,int));
3252 va_end (v);
3253 return s;
3254 }
3255
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3267 #define FOO(x) 'x'
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 int argc;
3275 char **argv;
3276 int
3277 main ()
3278 {
3279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 do
3287 CC="$ac_save_CC $ac_arg"
3288 rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3306 ac_cv_prog_cc_c89=$ac_arg
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311
3312 fi
3313
3314 rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 done
3317 rm -f conftest.$ac_ext
3318 CC=$ac_save_CC
3319
3320 fi
3321 # AC_CACHE_VAL
3322 case "x$ac_cv_prog_cc_c89" in
3323 x)
3324 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3325 $as_echo "none needed" >&6; } ;;
3326 xno)
3327 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3328 $as_echo "unsupported" >&6; } ;;
3329 *)
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3333 esac
3334
3335
3336 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342
3343
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3354 fi
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 $as_echo_n "(cached) " >&6
3358 else
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 do
3362 ac_preproc_ok=false
3363 for ac_c_preproc_warn_flag in '' yes
3364 do
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h. */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #ifdef __STDC__
3378 # include <limits.h>
3379 #else
3380 # include <assert.h>
3381 #endif
3382 Syntax error
3383 _ACEOF
3384 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3390 $as_echo "$ac_try_echo") >&5
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null && {
3398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 }; then
3401 :
3402 else
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 # Broken: fails on valid input.
3407 continue
3408 fi
3409
3410 rm -f conftest.err conftest.$ac_ext
3411
3412 # OK, works on sane cases. Now check whether nonexistent headers
3413 # can be detected and how.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <ac_nonexistent.h>
3421 _ACEOF
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev/null && {
3436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 }; then
3439 # Broken: success on invalid input.
3440 continue
3441 else
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 # Passes both tests.
3446 ac_preproc_ok=:
3447 break
3448 fi
3449
3450 rm -f conftest.err conftest.$ac_ext
3451
3452 done
3453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3454 rm -f conftest.err conftest.$ac_ext
3455 if $ac_preproc_ok; then
3456 break
3457 fi
3458
3459 done
3460 ac_cv_prog_CPP=$CPP
3461
3462 fi
3463 CPP=$ac_cv_prog_CPP
3464 else
3465 ac_cv_prog_CPP=$CPP
3466 fi
3467 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3468 $as_echo "$CPP" >&6; }
3469 ac_preproc_ok=false
3470 for ac_c_preproc_warn_flag in '' yes
3471 do
3472 # Use a header file that comes with gcc, so configuring glibc
3473 # with a fresh cross-compiler works.
3474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475 # <limits.h> exists even on freestanding compilers.
3476 # On the NeXT, cc -E runs the code through the compiler's parser,
3477 # not just through cpp. "Syntax error" is here to catch this case.
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #ifdef __STDC__
3485 # include <limits.h>
3486 #else
3487 # include <assert.h>
3488 #endif
3489 Syntax error
3490 _ACEOF
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null && {
3505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3507 }; then
3508 :
3509 else
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 # Broken: fails on valid input.
3514 continue
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519 # OK, works on sane cases. Now check whether nonexistent headers
3520 # can be detected and how.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <ac_nonexistent.h>
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535 $as_echo "$ac_try_echo") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3545 }; then
3546 # Broken: success on invalid input.
3547 continue
3548 else
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 # Passes both tests.
3553 ac_preproc_ok=:
3554 break
3555 fi
3556
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3563 :
3564 else
3565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&5
3569 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }; }
3572 fi
3573
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580
3581 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3583 if test "${ac_cv_path_GREP+set}" = set; then
3584 $as_echo_n "(cached) " >&6
3585 else
3586 if test -z "$GREP"; then
3587 ac_path_GREP_found=false
3588 # Loop through the user's path and test for each of PROGNAME-LIST
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591 do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_prog in grep ggrep; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3597 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3598 # Check for GNU ac_path_GREP and select it if it is found.
3599 # Check for GNU $ac_path_GREP
3600 case `"$ac_path_GREP" --version 2>&1` in
3601 *GNU*)
3602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603 *)
3604 ac_count=0
3605 $as_echo_n 0123456789 >"conftest.in"
3606 while :
3607 do
3608 cat "conftest.in" "conftest.in" >"conftest.tmp"
3609 mv "conftest.tmp" "conftest.in"
3610 cp "conftest.in" "conftest.nl"
3611 $as_echo 'GREP' >> "conftest.nl"
3612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3614 ac_count=`expr $ac_count + 1`
3615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3616 # Best one so far, save it but keep looking for a better one
3617 ac_cv_path_GREP="$ac_path_GREP"
3618 ac_path_GREP_max=$ac_count
3619 fi
3620 # 10*(2^10) chars as input seems more than enough
3621 test $ac_count -gt 10 && break
3622 done
3623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3624 esac
3625
3626 $ac_path_GREP_found && break 3
3627 done
3628 done
3629 done
3630 IFS=$as_save_IFS
3631 if test -z "$ac_cv_path_GREP"; then
3632 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3633 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3634 { (exit 1); exit 1; }; }
3635 fi
3636 else
3637 ac_cv_path_GREP=$GREP
3638 fi
3639
3640 fi
3641 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3642 $as_echo "$ac_cv_path_GREP" >&6; }
3643 GREP="$ac_cv_path_GREP"
3644
3645
3646 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3647 $as_echo_n "checking for egrep... " >&6; }
3648 if test "${ac_cv_path_EGREP+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3652 then ac_cv_path_EGREP="$GREP -E"
3653 else
3654 if test -z "$EGREP"; then
3655 ac_path_EGREP_found=false
3656 # Loop through the user's path and test for each of PROGNAME-LIST
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3659 do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_prog in egrep; do
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3666 # Check for GNU ac_path_EGREP and select it if it is found.
3667 # Check for GNU $ac_path_EGREP
3668 case `"$ac_path_EGREP" --version 2>&1` in
3669 *GNU*)
3670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3671 *)
3672 ac_count=0
3673 $as_echo_n 0123456789 >"conftest.in"
3674 while :
3675 do
3676 cat "conftest.in" "conftest.in" >"conftest.tmp"
3677 mv "conftest.tmp" "conftest.in"
3678 cp "conftest.in" "conftest.nl"
3679 $as_echo 'EGREP' >> "conftest.nl"
3680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3682 ac_count=`expr $ac_count + 1`
3683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3684 # Best one so far, save it but keep looking for a better one
3685 ac_cv_path_EGREP="$ac_path_EGREP"
3686 ac_path_EGREP_max=$ac_count
3687 fi
3688 # 10*(2^10) chars as input seems more than enough
3689 test $ac_count -gt 10 && break
3690 done
3691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692 esac
3693
3694 $ac_path_EGREP_found && break 3
3695 done
3696 done
3697 done
3698 IFS=$as_save_IFS
3699 if test -z "$ac_cv_path_EGREP"; then
3700 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3701 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3702 { (exit 1); exit 1; }; }
3703 fi
3704 else
3705 ac_cv_path_EGREP=$EGREP
3706 fi
3707
3708 fi
3709 fi
3710 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3711 $as_echo "$ac_cv_path_EGREP" >&6; }
3712 EGREP="$ac_cv_path_EGREP"
3713
3714
3715 if test $ac_cv_c_compiler_gnu = yes; then
3716 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3717 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3718 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3719 $as_echo_n "(cached) " >&6
3720 else
3721 ac_pattern="Autoconf.*'x'"
3722 cat >conftest.$ac_ext <<_ACEOF
3723 /* confdefs.h. */
3724 _ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3728 #include <sgtty.h>
3729 Autoconf TIOCGETP
3730 _ACEOF
3731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3733 ac_cv_prog_gcc_traditional=yes
3734 else
3735 ac_cv_prog_gcc_traditional=no
3736 fi
3737 rm -f conftest*
3738
3739
3740 if test $ac_cv_prog_gcc_traditional = no; then
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 #include <termio.h>
3748 Autoconf TCGETA
3749 _ACEOF
3750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3752 ac_cv_prog_gcc_traditional=yes
3753 fi
3754 rm -f conftest*
3755
3756 fi
3757 fi
3758 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3759 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3760 if test $ac_cv_prog_gcc_traditional = yes; then
3761 CC="$CC -traditional"
3762 fi
3763 fi
3764
3765 # Find a good install program. We prefer a C program (faster),
3766 # so one script is as good as another. But avoid the broken or
3767 # incompatible versions:
3768 # SysV /etc/install, /usr/sbin/install
3769 # SunOS /usr/etc/install
3770 # IRIX /sbin/install
3771 # AIX /bin/install
3772 # AmigaOS /C/install, which installs bootblocks on floppy discs
3773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3776 # OS/2's system install, which has a completely different semantic
3777 # ./install, which can be erroneously created by make from ./install.sh.
3778 # Reject install programs that cannot install multiple files.
3779 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3780 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3781 if test -z "$INSTALL"; then
3782 if test "${ac_cv_path_install+set}" = set; then
3783 $as_echo_n "(cached) " >&6
3784 else
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 for as_dir in $PATH
3787 do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 # Account for people who put trailing slashes in PATH elements.
3791 case $as_dir/ in
3792 ./ | .// | /cC/* | \
3793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3795 /usr/ucb/* ) ;;
3796 *)
3797 # OSF1 and SCO ODT 3.0 have their own names for install.
3798 # Don't use installbsd from OSF since it installs stuff as root
3799 # by default.
3800 for ac_prog in ginstall scoinst install; do
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3803 if test $ac_prog = install &&
3804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # AIX install. It has an incompatible calling convention.
3806 :
3807 elif test $ac_prog = install &&
3808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3809 # program-specific install script used by HP pwplus--don't use.
3810 :
3811 else
3812 rm -rf conftest.one conftest.two conftest.dir
3813 echo one > conftest.one
3814 echo two > conftest.two
3815 mkdir conftest.dir
3816 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3817 test -s conftest.one && test -s conftest.two &&
3818 test -s conftest.dir/conftest.one &&
3819 test -s conftest.dir/conftest.two
3820 then
3821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3822 break 3
3823 fi
3824 fi
3825 fi
3826 done
3827 done
3828 ;;
3829 esac
3830
3831 done
3832 IFS=$as_save_IFS
3833
3834 rm -rf conftest.one conftest.two conftest.dir
3835
3836 fi
3837 if test "${ac_cv_path_install+set}" = set; then
3838 INSTALL=$ac_cv_path_install
3839 else
3840 # As a last resort, use the slow shell script. Don't cache a
3841 # value for INSTALL within a source directory, because that will
3842 # break other packages using the cache if that directory is
3843 # removed, or if the value is a relative name.
3844 INSTALL=$ac_install_sh
3845 fi
3846 fi
3847 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3848 $as_echo "$INSTALL" >&6; }
3849
3850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3851 # It thinks the first close brace ends the variable substitution.
3852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3853
3854 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3855
3856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3857
3858 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3859 $as_echo_n "checking whether ln -s works... " >&6; }
3860 LN_S=$as_ln_s
3861 if test "$LN_S" = "ln -s"; then
3862 { $as_echo "$as_me:$LINENO: result: yes" >&5
3863 $as_echo "yes" >&6; }
3864 else
3865 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3866 $as_echo "no, using $LN_S" >&6; }
3867 fi
3868
3869 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3871 set x ${MAKE-make}
3872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3873 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3874 $as_echo_n "(cached) " >&6
3875 else
3876 cat >conftest.make <<\_ACEOF
3877 SHELL = /bin/sh
3878 all:
3879 @echo '@@@%%%=$(MAKE)=@@@%%%'
3880 _ACEOF
3881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3882 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3883 *@@@%%%=?*=@@@%%%*)
3884 eval ac_cv_prog_make_${ac_make}_set=yes;;
3885 *)
3886 eval ac_cv_prog_make_${ac_make}_set=no;;
3887 esac
3888 rm -f conftest.make
3889 fi
3890 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3891 { $as_echo "$as_me:$LINENO: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893 SET_MAKE=
3894 else
3895 { $as_echo "$as_me:$LINENO: result: no" >&5
3896 $as_echo "no" >&6; }
3897 SET_MAKE="MAKE=${MAKE-make}"
3898 fi
3899
3900 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3901 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3902 if test -z "$MKDIR_P"; then
3903 if test "${ac_cv_path_mkdir+set}" = set; then
3904 $as_echo_n "(cached) " >&6
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in mkdir gmkdir; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3914 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3915 'mkdir (GNU coreutils) '* | \
3916 'mkdir (coreutils) '* | \
3917 'mkdir (fileutils) '4.1*)
3918 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3919 break 3;;
3920 esac
3921 done
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi
3927
3928 if test "${ac_cv_path_mkdir+set}" = set; then
3929 MKDIR_P="$ac_cv_path_mkdir -p"
3930 else
3931 # As a last resort, use the slow shell script. Don't cache a
3932 # value for MKDIR_P within a source directory, because that will
3933 # break other packages using the cache if that directory is
3934 # removed, or if the value is a relative name.
3935 test -d ./--version && rmdir ./--version
3936 MKDIR_P="$ac_install_sh -d"
3937 fi
3938 fi
3939 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3940 $as_echo "$MKDIR_P" >&6; }
3941
3942 if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if test "${ac_cv_prog_RANLIB+set}" = set; then
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$RANLIB"; then
3951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 RANLIB=$ac_cv_prog_RANLIB
3971 if test -n "$RANLIB"; then
3972 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3973 $as_echo "$RANLIB" >&6; }
3974 else
3975 { $as_echo "$as_me:$LINENO: result: no" >&5
3976 $as_echo "no" >&6; }
3977 fi
3978
3979
3980 fi
3981 if test -z "$ac_cv_prog_RANLIB"; then
3982 ac_ct_RANLIB=$RANLIB
3983 # Extract the first word of "ranlib", so it can be a program name with args.
3984 set dummy ranlib; ac_word=$2
3985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_RANLIB"; then
3991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_RANLIB="ranlib"
4001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4011 if test -n "$ac_ct_RANLIB"; then
4012 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4013 $as_echo "$ac_ct_RANLIB" >&6; }
4014 else
4015 { $as_echo "$as_me:$LINENO: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019 if test "x$ac_ct_RANLIB" = x; then
4020 RANLIB=":"
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 RANLIB=$ac_ct_RANLIB
4029 fi
4030 else
4031 RANLIB="$ac_cv_prog_RANLIB"
4032 fi
4033
4034 # Extract the first word of "cflow", so it can be a program name with args.
4035 set dummy cflow; ac_word=$2
4036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
4039 $as_echo_n "(cached) " >&6
4040 else
4041 case $CFLOW_CMD in
4042 [\\/]* | ?:[\\/]*)
4043 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4044 ;;
4045 *)
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 ;;
4062 esac
4063 fi
4064 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4065 if test -n "$CFLOW_CMD"; then
4066 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4067 $as_echo "$CFLOW_CMD" >&6; }
4068 else
4069 { $as_echo "$as_me:$LINENO: result: no" >&5
4070 $as_echo "no" >&6; }
4071 fi
4072
4073
4074 # Extract the first word of "cscope", so it can be a program name with args.
4075 set dummy cscope; ac_word=$2
4076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4079 $as_echo_n "(cached) " >&6
4080 else
4081 case $CSCOPE_CMD in
4082 [\\/]* | ?:[\\/]*)
4083 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4084 ;;
4085 *)
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 ;;
4102 esac
4103 fi
4104 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4105 if test -n "$CSCOPE_CMD"; then
4106 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4107 $as_echo "$CSCOPE_CMD" >&6; }
4108 else
4109 { $as_echo "$as_me:$LINENO: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114
4115 ################################################################################
4116
4117
4118
4119
4120
4121 ac_header_dirent=no
4122 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4123 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4124 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4125 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4127 $as_echo_n "(cached) " >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #include <sys/types.h>
4136 #include <$ac_hdr>
4137
4138 int
4139 main ()
4140 {
4141 if ((DIR *) 0)
4142 return 0;
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (ac_try="$ac_compile"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154 $as_echo "$ac_try_echo") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest.$ac_objext; then
4165 eval "$as_ac_Header=yes"
4166 else
4167 $as_echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 eval "$as_ac_Header=no"
4171 fi
4172
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 ac_res=`eval 'as_val=${'$as_ac_Header'}
4176 $as_echo "$as_val"'`
4177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4178 $as_echo "$ac_res" >&6; }
4179 as_val=`eval 'as_val=${'$as_ac_Header'}
4180 $as_echo "$as_val"'`
4181 if test "x$as_val" = x""yes; then
4182 cat >>confdefs.h <<_ACEOF
4183 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4184 _ACEOF
4185
4186 ac_header_dirent=$ac_hdr; break
4187 fi
4188
4189 done
4190 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4191 if test $ac_header_dirent = dirent.h; then
4192 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4193 $as_echo_n "checking for library containing opendir... " >&6; }
4194 if test "${ac_cv_search_opendir+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_func_search_save_LIBS=$LIBS
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204
4205 /* Override any GCC internal prototype to avoid an error.
4206 Use char because int might match the return type of a GCC
4207 builtin and then its argument prototype would still apply. */
4208 #ifdef __cplusplus
4209 extern "C"
4210 #endif
4211 char opendir ();
4212 int
4213 main ()
4214 {
4215 return opendir ();
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 for ac_lib in '' dir; do
4221 if test -z "$ac_lib"; then
4222 ac_res="none required"
4223 else
4224 ac_res=-l$ac_lib
4225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4226 fi
4227 rm -f conftest.$ac_objext conftest$ac_exeext
4228 if { (ac_try="$ac_link"
4229 case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234 $as_echo "$ac_try_echo") >&5
4235 (eval "$ac_link") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest$ac_exeext && {
4245 test "$cross_compiling" = yes ||
4246 $as_test_x conftest$ac_exeext
4247 }; then
4248 ac_cv_search_opendir=$ac_res
4249 else
4250 $as_echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253
4254 fi
4255
4256 rm -rf conftest.dSYM
4257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4258 conftest$ac_exeext
4259 if test "${ac_cv_search_opendir+set}" = set; then
4260 break
4261 fi
4262 done
4263 if test "${ac_cv_search_opendir+set}" = set; then
4264 :
4265 else
4266 ac_cv_search_opendir=no
4267 fi
4268 rm conftest.$ac_ext
4269 LIBS=$ac_func_search_save_LIBS
4270 fi
4271 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4272 $as_echo "$ac_cv_search_opendir" >&6; }
4273 ac_res=$ac_cv_search_opendir
4274 if test "$ac_res" != no; then
4275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4276
4277 fi
4278
4279 else
4280 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4281 $as_echo_n "checking for library containing opendir... " >&6; }
4282 if test "${ac_cv_search_opendir+set}" = set; then
4283 $as_echo_n "(cached) " >&6
4284 else
4285 ac_func_search_save_LIBS=$LIBS
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292
4293 /* Override any GCC internal prototype to avoid an error.
4294 Use char because int might match the return type of a GCC
4295 builtin and then its argument prototype would still apply. */
4296 #ifdef __cplusplus
4297 extern "C"
4298 #endif
4299 char opendir ();
4300 int
4301 main ()
4302 {
4303 return opendir ();
4304 ;
4305 return 0;
4306 }
4307 _ACEOF
4308 for ac_lib in '' x; do
4309 if test -z "$ac_lib"; then
4310 ac_res="none required"
4311 else
4312 ac_res=-l$ac_lib
4313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4314 fi
4315 rm -f conftest.$ac_objext conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4317 case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4322 $as_echo "$ac_try_echo") >&5
4323 (eval "$ac_link") 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
4328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && {
4330 test -z "$ac_c_werror_flag" ||
4331 test ! -s conftest.err
4332 } && test -s conftest$ac_exeext && {
4333 test "$cross_compiling" = yes ||
4334 $as_test_x conftest$ac_exeext
4335 }; then
4336 ac_cv_search_opendir=$ac_res
4337 else
4338 $as_echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341
4342 fi
4343
4344 rm -rf conftest.dSYM
4345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4346 conftest$ac_exeext
4347 if test "${ac_cv_search_opendir+set}" = set; then
4348 break
4349 fi
4350 done
4351 if test "${ac_cv_search_opendir+set}" = set; then
4352 :
4353 else
4354 ac_cv_search_opendir=no
4355 fi
4356 rm conftest.$ac_ext
4357 LIBS=$ac_func_search_save_LIBS
4358 fi
4359 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4360 $as_echo "$ac_cv_search_opendir" >&6; }
4361 ac_res=$ac_cv_search_opendir
4362 if test "$ac_res" != no; then
4363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4364
4365 fi
4366
4367 fi
4368
4369 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4370 $as_echo_n "checking for ANSI C header files... " >&6; }
4371 if test "${ac_cv_header_stdc+set}" = set; then
4372 $as_echo_n "(cached) " >&6
4373 else
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <stdlib.h>
4381 #include <stdarg.h>
4382 #include <string.h>
4383 #include <float.h>
4384
4385 int
4386 main ()
4387 {
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4395 case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400 $as_echo "$ac_try_echo") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } && {
4408 test -z "$ac_c_werror_flag" ||
4409 test ! -s conftest.err
4410 } && test -s conftest.$ac_objext; then
4411 ac_cv_header_stdc=yes
4412 else
4413 $as_echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_cv_header_stdc=no
4417 fi
4418
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420
4421 if test $ac_cv_header_stdc = yes; then
4422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 #include <string.h>
4430
4431 _ACEOF
4432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4433 $EGREP "memchr" >/dev/null 2>&1; then
4434 :
4435 else
4436 ac_cv_header_stdc=no
4437 fi
4438 rm -f conftest*
4439
4440 fi
4441
4442 if test $ac_cv_header_stdc = yes; then
4443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <stdlib.h>
4451
4452 _ACEOF
4453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4454 $EGREP "free" >/dev/null 2>&1; then
4455 :
4456 else
4457 ac_cv_header_stdc=no
4458 fi
4459 rm -f conftest*
4460
4461 fi
4462
4463 if test $ac_cv_header_stdc = yes; then
4464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4465 if test "$cross_compiling" = yes; then
4466 :
4467 else
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <ctype.h>
4475 #include <stdlib.h>
4476 #if ((' ' & 0x0FF) == 0x020)
4477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4479 #else
4480 # define ISLOWER(c) \
4481 (('a' <= (c) && (c) <= 'i') \
4482 || ('j' <= (c) && (c) <= 'r') \
4483 || ('s' <= (c) && (c) <= 'z'))
4484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4485 #endif
4486
4487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4488 int
4489 main ()
4490 {
4491 int i;
4492 for (i = 0; i < 256; i++)
4493 if (XOR (islower (i), ISLOWER (i))
4494 || toupper (i) != TOUPPER (i))
4495 return 2;
4496 return 0;
4497 }
4498 _ACEOF
4499 rm -f conftest$ac_exeext
4500 if { (ac_try="$ac_link"
4501 case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4506 $as_echo "$ac_try_echo") >&5
4507 (eval "$ac_link") 2>&5
4508 ac_status=$?
4509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4511 { (case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4516 $as_echo "$ac_try_echo") >&5
4517 (eval "$ac_try") 2>&5
4518 ac_status=$?
4519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 :
4522 else
4523 $as_echo "$as_me: program exited with status $ac_status" >&5
4524 $as_echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 ( exit $ac_status )
4528 ac_cv_header_stdc=no
4529 fi
4530 rm -rf conftest.dSYM
4531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4532 fi
4533
4534
4535 fi
4536 fi
4537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4538 $as_echo "$ac_cv_header_stdc" >&6; }
4539 if test $ac_cv_header_stdc = yes; then
4540
4541 cat >>confdefs.h <<\_ACEOF
4542 #define STDC_HEADERS 1
4543 _ACEOF
4544
4545 fi
4546
4547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4558 inttypes.h stdint.h unistd.h
4559 do
4560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 $as_echo_n "checking for $ac_header... " >&6; }
4563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4564 $as_echo_n "(cached) " >&6
4565 else
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 $ac_includes_default
4573
4574 #include <$ac_header>
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4578 case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581 esac
4582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583 $as_echo "$ac_try_echo") >&5
4584 (eval "$ac_compile") 2>conftest.er1
4585 ac_status=$?
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
4589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && {
4591 test -z "$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 } && test -s conftest.$ac_objext; then
4594 eval "$as_ac_Header=yes"
4595 else
4596 $as_echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 eval "$as_ac_Header=no"
4600 fi
4601
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 ac_res=`eval 'as_val=${'$as_ac_Header'}
4605 $as_echo "$as_val"'`
4606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4607 $as_echo "$ac_res" >&6; }
4608 as_val=`eval 'as_val=${'$as_ac_Header'}
4609 $as_echo "$as_val"'`
4610 if test "x$as_val" = x""yes; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 _ACEOF
4614
4615 fi
4616
4617 done
4618
4619
4620 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4621 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4622 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4624 else
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 #include <sys/types.h>
4632 int
4633 main ()
4634 {
4635 return makedev(0, 0);
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext conftest$ac_exeext
4641 if { (ac_try="$ac_link"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_link") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest$ac_exeext && {
4658 test "$cross_compiling" = yes ||
4659 $as_test_x conftest$ac_exeext
4660 }; then
4661 ac_cv_header_sys_types_h_makedev=yes
4662 else
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_cv_header_sys_types_h_makedev=no
4667 fi
4668
4669 rm -rf conftest.dSYM
4670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671 conftest$ac_exeext conftest.$ac_ext
4672
4673 fi
4674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4675 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4676
4677 if test $ac_cv_header_sys_types_h_makedev = no; then
4678 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4680 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4681 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4683 fi
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4685 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4686 else
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4689 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <sys/mkdev.h>
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (ac_try="$ac_compile"
4701 case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4718 else
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ac_header_compiler=no
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4728
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4731 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <sys/mkdev.h>
4739 _ACEOF
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4741 case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744 esac
4745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4757 ac_header_preproc=yes
4758 else
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_header_preproc=no
4763 fi
4764
4765 rm -f conftest.err conftest.$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4768
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4777 ;;
4778 no:yes:* )
4779 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
4791
4792 ;;
4793 esac
4794 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4795 $as_echo_n "checking for sys/mkdev.h... " >&6; }
4796 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798 else
4799 ac_cv_header_sys_mkdev_h=$ac_header_preproc
4800 fi
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4802 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
4803
4804 fi
4805 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4806
4807 cat >>confdefs.h <<\_ACEOF
4808 #define MAJOR_IN_MKDEV 1
4809 _ACEOF
4810
4811 fi
4812
4813
4814
4815 if test $ac_cv_header_sys_mkdev_h = no; then
4816 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4817 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4818 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4819 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4820 $as_echo_n "(cached) " >&6
4821 fi
4822 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4823 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4824 else
4825 # Is the header compilable?
4826 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4827 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 $ac_includes_default
4835 #include <sys/sysmacros.h>
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (ac_try="$ac_compile"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844 $as_echo "$ac_try_echo") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_header_compiler=yes
4856 else
4857 $as_echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_header_compiler=no
4861 fi
4862
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4865 $as_echo "$ac_header_compiler" >&6; }
4866
4867 # Is the header present?
4868 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4869 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <sys/sysmacros.h>
4877 _ACEOF
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4884 $as_echo "$ac_try_echo") >&5
4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null && {
4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4894 }; then
4895 ac_header_preproc=yes
4896 else
4897 $as_echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 ac_header_preproc=no
4901 fi
4902
4903 rm -f conftest.err conftest.$ac_ext
4904 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4905 $as_echo "$ac_header_preproc" >&6; }
4906
4907 # So? What about this header?
4908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4909 yes:no: )
4910 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4911 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4912 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4913 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
4914 ac_header_preproc=yes
4915 ;;
4916 no:yes:* )
4917 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4918 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4919 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4920 $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4921 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4922 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4923 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4924 $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4925 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4926 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4927 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4928 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
4929
4930 ;;
4931 esac
4932 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4933 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
4934 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4935 $as_echo_n "(cached) " >&6
4936 else
4937 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
4938 fi
4939 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4940 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
4941
4942 fi
4943 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define MAJOR_IN_SYSMACROS 1
4947 _ACEOF
4948
4949 fi
4950
4951
4952 fi
4953 fi
4954
4955 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4956 $as_echo_n "checking for ANSI C header files... " >&6; }
4957 if test "${ac_cv_header_stdc+set}" = set; then
4958 $as_echo_n "(cached) " >&6
4959 else
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 #include <stdlib.h>
4967 #include <stdarg.h>
4968 #include <string.h>
4969 #include <float.h>
4970
4971 int
4972 main ()
4973 {
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (ac_try="$ac_compile"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986 $as_echo "$ac_try_echo") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4997 ac_cv_header_stdc=yes
4998 else
4999 $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 ac_cv_header_stdc=no
5003 fi
5004
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #include <string.h>
5016
5017 _ACEOF
5018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 $EGREP "memchr" >/dev/null 2>&1; then
5020 :
5021 else
5022 ac_cv_header_stdc=no
5023 fi
5024 rm -f conftest*
5025
5026 fi
5027
5028 if test $ac_cv_header_stdc = yes; then
5029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h. */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #include <stdlib.h>
5037
5038 _ACEOF
5039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040 $EGREP "free" >/dev/null 2>&1; then
5041 :
5042 else
5043 ac_cv_header_stdc=no
5044 fi
5045 rm -f conftest*
5046
5047 fi
5048
5049 if test $ac_cv_header_stdc = yes; then
5050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5051 if test "$cross_compiling" = yes; then
5052 :
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #include <ctype.h>
5061 #include <stdlib.h>
5062 #if ((' ' & 0x0FF) == 0x020)
5063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5065 #else
5066 # define ISLOWER(c) \
5067 (('a' <= (c) && (c) <= 'i') \
5068 || ('j' <= (c) && (c) <= 'r') \
5069 || ('s' <= (c) && (c) <= 'z'))
5070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071 #endif
5072
5073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5074 int
5075 main ()
5076 {
5077 int i;
5078 for (i = 0; i < 256; i++)
5079 if (XOR (islower (i), ISLOWER (i))
5080 || toupper (i) != TOUPPER (i))
5081 return 2;
5082 return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5087 case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090 esac
5091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092 $as_echo "$ac_try_echo") >&5
5093 (eval "$ac_link") 2>&5
5094 ac_status=$?
5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102 $as_echo "$ac_try_echo") >&5
5103 (eval "$ac_try") 2>&5
5104 ac_status=$?
5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 :
5108 else
5109 $as_echo "$as_me: program exited with status $ac_status" >&5
5110 $as_echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 ( exit $ac_status )
5114 ac_cv_header_stdc=no
5115 fi
5116 rm -rf conftest.dSYM
5117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118 fi
5119
5120
5121 fi
5122 fi
5123 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5124 $as_echo "$ac_cv_header_stdc" >&6; }
5125 if test $ac_cv_header_stdc = yes; then
5126
5127 cat >>confdefs.h <<\_ACEOF
5128 #define STDC_HEADERS 1
5129 _ACEOF
5130
5131 fi
5132
5133 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5134 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5135 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5136 $as_echo_n "(cached) " >&6
5137 else
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <sys/types.h>
5145 #include <sys/wait.h>
5146 #ifndef WEXITSTATUS
5147 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5148 #endif
5149 #ifndef WIFEXITED
5150 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5151 #endif
5152
5153 int
5154 main ()
5155 {
5156 int s;
5157 wait (&s);
5158 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext
5164 if { (ac_try="$ac_compile"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5170 $as_echo "$ac_try_echo") >&5
5171 (eval "$ac_compile") 2>conftest.er1
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5180 } && test -s conftest.$ac_objext; then
5181 ac_cv_header_sys_wait_h=yes
5182 else
5183 $as_echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ac_cv_header_sys_wait_h=no
5187 fi
5188
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 fi
5191 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5192 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5193 if test $ac_cv_header_sys_wait_h = yes; then
5194
5195 cat >>confdefs.h <<\_ACEOF
5196 #define HAVE_SYS_WAIT_H 1
5197 _ACEOF
5198
5199 fi
5200
5201 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5202 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5203 if test "${ac_cv_header_time+set}" = set; then
5204 $as_echo_n "(cached) " >&6
5205 else
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 #include <sys/types.h>
5213 #include <sys/time.h>
5214 #include <time.h>
5215
5216 int
5217 main ()
5218 {
5219 if ((struct tm *) 0)
5220 return 0;
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5227 case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230 esac
5231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5232 $as_echo "$ac_try_echo") >&5
5233 (eval "$ac_compile") 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } && {
5240 test -z "$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 } && test -s conftest.$ac_objext; then
5243 ac_cv_header_time=yes
5244 else
5245 $as_echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_cv_header_time=no
5249 fi
5250
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 fi
5253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5254 $as_echo "$ac_cv_header_time" >&6; }
5255 if test $ac_cv_header_time = yes; then
5256
5257 cat >>confdefs.h <<\_ACEOF
5258 #define TIME_WITH_SYS_TIME 1
5259 _ACEOF
5260
5261 fi
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5279 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5280 sys/wait.h time.h
5281 do
5282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5285 $as_echo_n "checking for $ac_header... " >&6; }
5286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5287 $as_echo_n "(cached) " >&6
5288 fi
5289 ac_res=`eval 'as_val=${'$as_ac_Header'}
5290 $as_echo "$as_val"'`
5291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5292 $as_echo "$ac_res" >&6; }
5293 else
5294 # Is the header compilable?
5295 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5296 $as_echo_n "checking $ac_header usability... " >&6; }
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h. */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 $ac_includes_default
5304 #include <$ac_header>
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (ac_try="$ac_compile"
5308 case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311 esac
5312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5313 $as_echo "$ac_try_echo") >&5
5314 (eval "$ac_compile") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && {
5321 test -z "$ac_c_werror_flag" ||
5322 test ! -s conftest.err
5323 } && test -s conftest.$ac_objext; then
5324 ac_header_compiler=yes
5325 else
5326 $as_echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 ac_header_compiler=no
5330 fi
5331
5332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5334 $as_echo "$ac_header_compiler" >&6; }
5335
5336 # Is the header present?
5337 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5338 $as_echo_n "checking $ac_header presence... " >&6; }
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <$ac_header>
5346 _ACEOF
5347 if { (ac_try="$ac_cpp conftest.$ac_ext"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5353 $as_echo "$ac_try_echo") >&5
5354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null && {
5361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 }; then
5364 ac_header_preproc=yes
5365 else
5366 $as_echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ac_header_preproc=no
5370 fi
5371
5372 rm -f conftest.err conftest.$ac_ext
5373 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5374 $as_echo "$ac_header_preproc" >&6; }
5375
5376 # So? What about this header?
5377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5378 yes:no: )
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5380 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5383 ac_header_preproc=yes
5384 ;;
5385 no:yes:* )
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5387 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5389 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5391 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5393 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5395 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5397 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5398
5399 ;;
5400 esac
5401 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5402 $as_echo_n "checking for $ac_header... " >&6; }
5403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5404 $as_echo_n "(cached) " >&6
5405 else
5406 eval "$as_ac_Header=\$ac_header_preproc"
5407 fi
5408 ac_res=`eval 'as_val=${'$as_ac_Header'}
5409 $as_echo "$as_val"'`
5410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5411 $as_echo "$ac_res" >&6; }
5412
5413 fi
5414 as_val=`eval 'as_val=${'$as_ac_Header'}
5415 $as_echo "$as_val"'`
5416 if test "x$as_val" = x""yes; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419 _ACEOF
5420
5421 else
5422 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5423 $as_echo "$as_me: error: bailing out" >&2;}
5424 { (exit 1); exit 1; }; }
5425 fi
5426
5427 done
5428
5429
5430 case "$host_os" in
5431 linux*)
5432
5433
5434
5435 for ac_header in asm/byteorder.h linux/fs.h malloc.h
5436 do
5437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5440 $as_echo_n "checking for $ac_header... " >&6; }
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 $as_echo_n "(cached) " >&6
5443 fi
5444 ac_res=`eval 'as_val=${'$as_ac_Header'}
5445 $as_echo "$as_val"'`
5446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5447 $as_echo "$ac_res" >&6; }
5448 else
5449 # Is the header compilable?
5450 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 $as_echo_n "checking $ac_header usability... " >&6; }
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 #include <$ac_header>
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5468 $as_echo "$ac_try_echo") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5479 ac_header_compiler=yes
5480 else
5481 $as_echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_header_compiler=no
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5489 $as_echo "$ac_header_compiler" >&6; }
5490
5491 # Is the header present?
5492 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5493 $as_echo_n "checking $ac_header presence... " >&6; }
5494 cat >conftest.$ac_ext <<_ACEOF
5495 /* confdefs.h. */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <$ac_header>
5501 _ACEOF
5502 if { (ac_try="$ac_cpp conftest.$ac_ext"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5508 $as_echo "$ac_try_echo") >&5
5509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null && {
5516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 }; then
5519 ac_header_preproc=yes
5520 else
5521 $as_echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 ac_header_preproc=no
5525 fi
5526
5527 rm -f conftest.err conftest.$ac_ext
5528 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 $as_echo "$ac_header_preproc" >&6; }
5530
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533 yes:no: )
5534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc=yes
5539 ;;
5540 no:yes:* )
5541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553
5554 ;;
5555 esac
5556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 $as_echo_n "checking for $ac_header... " >&6; }
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 $as_echo_n "(cached) " >&6
5560 else
5561 eval "$as_ac_Header=\$ac_header_preproc"
5562 fi
5563 ac_res=`eval 'as_val=${'$as_ac_Header'}
5564 $as_echo "$as_val"'`
5565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5566 $as_echo "$ac_res" >&6; }
5567
5568 fi
5569 as_val=`eval 'as_val=${'$as_ac_Header'}
5570 $as_echo "$as_val"'`
5571 if test "x$as_val" = x""yes; then
5572 cat >>confdefs.h <<_ACEOF
5573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574 _ACEOF
5575
5576 else
5577 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5578 $as_echo "$as_me: error: bailing out" >&2;}
5579 { (exit 1); exit 1; }; }
5580 fi
5581
5582 done
5583 ;;
5584 darwin*)
5585
5586
5587 for ac_header in machine/endian.h sys/disk.h
5588 do
5589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5592 $as_echo_n "checking for $ac_header... " >&6; }
5593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 $as_echo_n "(cached) " >&6
5595 fi
5596 ac_res=`eval 'as_val=${'$as_ac_Header'}
5597 $as_echo "$as_val"'`
5598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5599 $as_echo "$ac_res" >&6; }
5600 else
5601 # Is the header compilable?
5602 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5603 $as_echo_n "checking $ac_header usability... " >&6; }
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 $ac_includes_default
5611 #include <$ac_header>
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620 $as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_header_compiler=yes
5632 else
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ac_header_compiler=no
5637 fi
5638
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5641 $as_echo "$ac_header_compiler" >&6; }
5642
5643 # Is the header present?
5644 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5645 $as_echo_n "checking $ac_header presence... " >&6; }
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <$ac_header>
5653 _ACEOF
5654 if { (ac_try="$ac_cpp conftest.$ac_ext"
5655 case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658 esac
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 }; then
5671 ac_header_preproc=yes
5672 else
5673 $as_echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_header_preproc=no
5677 fi
5678
5679 rm -f conftest.err conftest.$ac_ext
5680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681 $as_echo "$ac_header_preproc" >&6; }
5682
5683 # So? What about this header?
5684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5685 yes:no: )
5686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc=yes
5691 ;;
5692 no:yes:* )
5693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5694 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5698 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5700 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5704 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5705
5706 ;;
5707 esac
5708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5709 $as_echo_n "checking for $ac_header... " >&6; }
5710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5711 $as_echo_n "(cached) " >&6
5712 else
5713 eval "$as_ac_Header=\$ac_header_preproc"
5714 fi
5715 ac_res=`eval 'as_val=${'$as_ac_Header'}
5716 $as_echo "$as_val"'`
5717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5718 $as_echo "$ac_res" >&6; }
5719
5720 fi
5721 as_val=`eval 'as_val=${'$as_ac_Header'}
5722 $as_echo "$as_val"'`
5723 if test "x$as_val" = x""yes; then
5724 cat >>confdefs.h <<_ACEOF
5725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5726 _ACEOF
5727
5728 else
5729 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5730 $as_echo "$as_me: error: bailing out" >&2;}
5731 { (exit 1); exit 1; }; }
5732 fi
5733
5734 done
5735 ;;
5736 esac
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5755 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5756 sys/types.h unistd.h
5757 do
5758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5761 $as_echo_n "checking for $ac_header... " >&6; }
5762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 $as_echo_n "(cached) " >&6
5764 fi
5765 ac_res=`eval 'as_val=${'$as_ac_Header'}
5766 $as_echo "$as_val"'`
5767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5768 $as_echo "$ac_res" >&6; }
5769 else
5770 # Is the header compilable?
5771 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5772 $as_echo_n "checking $ac_header usability... " >&6; }
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 $ac_includes_default
5780 #include <$ac_header>
5781 _ACEOF
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5784 case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787 esac
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_header_compiler=yes
5801 else
5802 $as_echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 ac_header_compiler=no
5806 fi
5807
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5810 $as_echo "$ac_header_compiler" >&6; }
5811
5812 # Is the header present?
5813 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5814 $as_echo_n "checking $ac_header presence... " >&6; }
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <$ac_header>
5822 _ACEOF
5823 if { (ac_try="$ac_cpp conftest.$ac_ext"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5829 $as_echo "$ac_try_echo") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 }; then
5840 ac_header_preproc=yes
5841 else
5842 $as_echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_header_preproc=no
5846 fi
5847
5848 rm -f conftest.err conftest.$ac_ext
5849 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850 $as_echo "$ac_header_preproc" >&6; }
5851
5852 # So? What about this header?
5853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5854 yes:no: )
5855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5856 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5859 ac_header_preproc=yes
5860 ;;
5861 no:yes:* )
5862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5863 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5865 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5867 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5869 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5873 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5874
5875 ;;
5876 esac
5877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5878 $as_echo_n "checking for $ac_header... " >&6; }
5879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 $as_echo_n "(cached) " >&6
5881 else
5882 eval "$as_ac_Header=\$ac_header_preproc"
5883 fi
5884 ac_res=`eval 'as_val=${'$as_ac_Header'}
5885 $as_echo "$as_val"'`
5886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5887 $as_echo "$ac_res" >&6; }
5888
5889 fi
5890 as_val=`eval 'as_val=${'$as_ac_Header'}
5891 $as_echo "$as_val"'`
5892 if test "x$as_val" = x""yes; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 else
5898 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5899 $as_echo "$as_me: error: bailing out" >&2;}
5900 { (exit 1); exit 1; }; }
5901 fi
5902
5903 done
5904
5905
5906
5907 for ac_header in termios.h sys/statvfs.h
5908 do
5909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 $as_echo_n "checking for $ac_header... " >&6; }
5913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 $as_echo_n "(cached) " >&6
5915 fi
5916 ac_res=`eval 'as_val=${'$as_ac_Header'}
5917 $as_echo "$as_val"'`
5918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5919 $as_echo "$ac_res" >&6; }
5920 else
5921 # Is the header compilable?
5922 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5923 $as_echo_n "checking $ac_header usability... " >&6; }
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 $ac_includes_default
5931 #include <$ac_header>
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_header_compiler=yes
5952 else
5953 $as_echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_header_compiler=no
5957 fi
5958
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961 $as_echo "$ac_header_compiler" >&6; }
5962
5963 # Is the header present?
5964 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965 $as_echo_n "checking $ac_header presence... " >&6; }
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <$ac_header>
5973 _ACEOF
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 }; then
5991 ac_header_preproc=yes
5992 else
5993 $as_echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 ac_header_preproc=no
5997 fi
5998
5999 rm -f conftest.err conftest.$ac_ext
6000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6001 $as_echo "$ac_header_preproc" >&6; }
6002
6003 # So? What about this header?
6004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6005 yes:no: )
6006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6007 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6010 ac_header_preproc=yes
6011 ;;
6012 no:yes:* )
6013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6014 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6016 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6018 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6020 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6024 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6025
6026 ;;
6027 esac
6028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 $as_echo_n "checking for $ac_header... " >&6; }
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 $as_echo_n "(cached) " >&6
6032 else
6033 eval "$as_ac_Header=\$ac_header_preproc"
6034 fi
6035 ac_res=`eval 'as_val=${'$as_ac_Header'}
6036 $as_echo "$as_val"'`
6037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6038 $as_echo "$ac_res" >&6; }
6039
6040 fi
6041 as_val=`eval 'as_val=${'$as_ac_Header'}
6042 $as_echo "$as_val"'`
6043 if test "x$as_val" = x""yes; then
6044 cat >>confdefs.h <<_ACEOF
6045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6046 _ACEOF
6047
6048 fi
6049
6050 done
6051
6052
6053 ################################################################################
6054 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6055 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6056 if test "${ac_cv_c_const+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h. */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065
6066 int
6067 main ()
6068 {
6069 /* FIXME: Include the comments suggested by Paul. */
6070 #ifndef __cplusplus
6071 /* Ultrix mips cc rejects this. */
6072 typedef int charset[2];
6073 const charset cs;
6074 /* SunOS 4.1.1 cc rejects this. */
6075 char const *const *pcpcc;
6076 char **ppc;
6077 /* NEC SVR4.0.2 mips cc rejects this. */
6078 struct point {int x, y;};
6079 static struct point const zero = {0,0};
6080 /* AIX XL C 1.02.0.0 rejects this.
6081 It does not let you subtract one const X* pointer from another in
6082 an arm of an if-expression whose if-part is not a constant
6083 expression */
6084 const char *g = "string";
6085 pcpcc = &g + (g ? g-g : 0);
6086 /* HPUX 7.0 cc rejects these. */
6087 ++pcpcc;
6088 ppc = (char**) pcpcc;
6089 pcpcc = (char const *const *) ppc;
6090 { /* SCO 3.2v4 cc rejects this. */
6091 char *t;
6092 char const *s = 0 ? (char *) 0 : (char const *) 0;
6093
6094 *t++ = 0;
6095 if (s) return 0;
6096 }
6097 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6098 int x[] = {25, 17};
6099 const int *foo = &x[0];
6100 ++foo;
6101 }
6102 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6103 typedef const int *iptr;
6104 iptr p = 0;
6105 ++p;
6106 }
6107 { /* AIX XL C 1.02.0.0 rejects this saying
6108 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6109 struct s { int j; const int *ap[3]; };
6110 struct s *b; b->j = 5;
6111 }
6112 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6113 const int foo = 10;
6114 if (!foo) return 0;
6115 }
6116 return !cs[0] && !zero.x;
6117 #endif
6118
6119 ;
6120 return 0;
6121 }
6122 _ACEOF
6123 rm -f conftest.$ac_objext
6124 if { (ac_try="$ac_compile"
6125 case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128 esac
6129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6130 $as_echo "$ac_try_echo") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest.$ac_objext; then
6141 ac_cv_c_const=yes
6142 else
6143 $as_echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_cv_c_const=no
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6152 $as_echo "$ac_cv_c_const" >&6; }
6153 if test $ac_cv_c_const = no; then
6154
6155 cat >>confdefs.h <<\_ACEOF
6156 #define const /**/
6157 _ACEOF
6158
6159 fi
6160
6161 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6162 $as_echo_n "checking for inline... " >&6; }
6163 if test "${ac_cv_c_inline+set}" = set; then
6164 $as_echo_n "(cached) " >&6
6165 else
6166 ac_cv_c_inline=no
6167 for ac_kw in inline __inline__ __inline; do
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #ifndef __cplusplus
6175 typedef int foo_t;
6176 static $ac_kw foo_t static_foo () {return 0; }
6177 $ac_kw foo_t foo () {return 0; }
6178 #endif
6179
6180 _ACEOF
6181 rm -f conftest.$ac_objext
6182 if { (ac_try="$ac_compile"
6183 case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186 esac
6187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188 $as_echo "$ac_try_echo") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 ac_cv_c_inline=$ac_kw
6200 else
6201 $as_echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204
6205 fi
6206
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 test "$ac_cv_c_inline" != no && break
6209 done
6210
6211 fi
6212 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6213 $as_echo "$ac_cv_c_inline" >&6; }
6214
6215
6216 case $ac_cv_c_inline in
6217 inline | yes) ;;
6218 *)
6219 case $ac_cv_c_inline in
6220 no) ac_val=;;
6221 *) ac_val=$ac_cv_c_inline;;
6222 esac
6223 cat >>confdefs.h <<_ACEOF
6224 #ifndef __cplusplus
6225 #define inline $ac_val
6226 #endif
6227 _ACEOF
6228 ;;
6229 esac
6230
6231 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6232 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6233 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6243 int
6244 main ()
6245 {
6246 static struct stat ac_aggr;
6247 if (ac_aggr.st_rdev)
6248 return 0;
6249 ;
6250 return 0;
6251 }
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (ac_try="$ac_compile"
6255 case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258 esac
6259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6260 $as_echo "$ac_try_echo") >&5
6261 (eval "$ac_compile") 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && {
6268 test -z "$ac_c_werror_flag" ||
6269 test ! -s conftest.err
6270 } && test -s conftest.$ac_objext; then
6271 ac_cv_member_struct_stat_st_rdev=yes
6272 else
6273 $as_echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h. */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 $ac_includes_default
6283 int
6284 main ()
6285 {
6286 static struct stat ac_aggr;
6287 if (sizeof ac_aggr.st_rdev)
6288 return 0;
6289 ;
6290 return 0;
6291 }
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298 esac
6299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6300 $as_echo "$ac_try_echo") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_c_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest.$ac_objext; then
6311 ac_cv_member_struct_stat_st_rdev=yes
6312 else
6313 $as_echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ac_cv_member_struct_stat_st_rdev=no
6317 fi
6318
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 fi
6321
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323 fi
6324 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6325 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6326 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6327
6328 cat >>confdefs.h <<_ACEOF
6329 #define HAVE_STRUCT_STAT_ST_RDEV 1
6330 _ACEOF
6331
6332
6333 fi
6334
6335 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
6336 $as_echo_n "checking for off_t... " >&6; }
6337 if test "${ac_cv_type_off_t+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6339 else
6340 ac_cv_type_off_t=no
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348 int
6349 main ()
6350 {
6351 if (sizeof (off_t))
6352 return 0;
6353 ;
6354 return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362 esac
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.$ac_objext; then
6375 cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h. */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 int
6383 main ()
6384 {
6385 if (sizeof ((off_t)))
6386 return 0;
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6393 case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6398 $as_echo "$ac_try_echo") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 :
6410 else
6411 $as_echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_cv_type_off_t=yes
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 else
6419 $as_echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422
6423 fi
6424
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 fi
6427 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6428 $as_echo "$ac_cv_type_off_t" >&6; }
6429 if test "x$ac_cv_type_off_t" = x""yes; then
6430 :
6431 else
6432
6433 cat >>confdefs.h <<_ACEOF
6434 #define off_t long int
6435 _ACEOF
6436
6437 fi
6438
6439 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6440 $as_echo_n "checking for pid_t... " >&6; }
6441 if test "${ac_cv_type_pid_t+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6443 else
6444 ac_cv_type_pid_t=no
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6451 $ac_includes_default
6452 int
6453 main ()
6454 {
6455 if (sizeof (pid_t))
6456 return 0;
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6468 $as_echo "$ac_try_echo") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 int
6487 main ()
6488 {
6489 if (sizeof ((pid_t)))
6490 return 0;
6491 ;
6492 return 0;
6493 }
6494 _ACEOF
6495 rm -f conftest.$ac_objext
6496 if { (ac_try="$ac_compile"
6497 case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500 esac
6501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6502 $as_echo "$ac_try_echo") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest.$ac_objext; then
6513 :
6514 else
6515 $as_echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_cv_type_pid_t=yes
6519 fi
6520
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 else
6523 $as_echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526
6527 fi
6528
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 fi
6531 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6532 $as_echo "$ac_cv_type_pid_t" >&6; }
6533 if test "x$ac_cv_type_pid_t" = x""yes; then
6534 :
6535 else
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define pid_t int
6539 _ACEOF
6540
6541 fi
6542
6543 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6544 $as_echo_n "checking return type of signal handlers... " >&6; }
6545 if test "${ac_cv_type_signal+set}" = set; then
6546 $as_echo_n "(cached) " >&6
6547 else
6548 cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h. */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 #include <sys/types.h>
6555 #include <signal.h>
6556
6557 int
6558 main ()
6559 {
6560 return *(signal (0, 0)) (0) == 1;
6561 ;
6562 return 0;
6563 }
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (ac_try="$ac_compile"
6567 case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570 esac
6571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6572 $as_echo "$ac_try_echo") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6583 ac_cv_type_signal=int
6584 else
6585 $as_echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 ac_cv_type_signal=void
6589 fi
6590
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 fi
6593 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6594 $as_echo "$ac_cv_type_signal" >&6; }
6595
6596 cat >>confdefs.h <<_ACEOF
6597 #define RETSIGTYPE $ac_cv_type_signal
6598 _ACEOF
6599
6600
6601 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6602 $as_echo_n "checking for size_t... " >&6; }
6603 if test "${ac_cv_type_size_t+set}" = set; then
6604 $as_echo_n "(cached) " >&6
6605 else
6606 ac_cv_type_size_t=no
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6614 int
6615 main ()
6616 {
6617 if (sizeof (size_t))
6618 return 0;
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext
6624 if { (ac_try="$ac_compile"
6625 case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628 esac
6629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6630 $as_echo "$ac_try_echo") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest.$ac_objext; then
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 int
6649 main ()
6650 {
6651 if (sizeof ((size_t)))
6652 return 0;
6653 ;
6654 return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6664 $as_echo "$ac_try_echo") >&5
6665 (eval "$ac_compile") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && {
6672 test -z "$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 } && test -s conftest.$ac_objext; then
6675 :
6676 else
6677 $as_echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 ac_cv_type_size_t=yes
6681 fi
6682
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 else
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688
6689 fi
6690
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6694 $as_echo "$ac_cv_type_size_t" >&6; }
6695 if test "x$ac_cv_type_size_t" = x""yes; then
6696 :
6697 else
6698
6699 cat >>confdefs.h <<_ACEOF
6700 #define size_t unsigned int
6701 _ACEOF
6702
6703 fi
6704
6705 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6706 $as_echo_n "checking for mode_t... " >&6; }
6707 if test "${ac_cv_type_mode_t+set}" = set; then
6708 $as_echo_n "(cached) " >&6
6709 else
6710 ac_cv_type_mode_t=no
6711 cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h. */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 $ac_includes_default
6718 int
6719 main ()
6720 {
6721 if (sizeof (mode_t))
6722 return 0;
6723 ;
6724 return 0;
6725 }
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6734 $as_echo "$ac_try_echo") >&5
6735 (eval "$ac_compile") 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 $ac_includes_default
6752 int
6753 main ()
6754 {
6755 if (sizeof ((mode_t)))
6756 return 0;
6757 ;
6758 return 0;
6759 }
6760 _ACEOF
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 :
6780 else
6781 $as_echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 ac_cv_type_mode_t=yes
6785 fi
6786
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 else
6789 $as_echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792
6793 fi
6794
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 fi
6797 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6798 $as_echo "$ac_cv_type_mode_t" >&6; }
6799 if test "x$ac_cv_type_mode_t" = x""yes; then
6800 :
6801 else
6802
6803 cat >>confdefs.h <<_ACEOF
6804 #define mode_t int
6805 _ACEOF
6806
6807 fi
6808
6809
6810 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6811 $as_echo_n "checking for int8_t... " >&6; }
6812 if test "${ac_cv_c_int8_t+set}" = set; then
6813 $as_echo_n "(cached) " >&6
6814 else
6815 ac_cv_c_int8_t=no
6816 for ac_type in 'int8_t' 'int' 'long int' \
6817 'long long int' 'short int' 'signed char'; do
6818 cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h. */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 $ac_includes_default
6825 int
6826 main ()
6827 {
6828 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6829 test_array [0] = 0
6830
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 rm -f conftest.$ac_objext
6836 if { (ac_try="$ac_compile"
6837 case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840 esac
6841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842 $as_echo "$ac_try_echo") >&5
6843 (eval "$ac_compile") 2>conftest.er1
6844 ac_status=$?
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
6848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.$ac_objext; then
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h. */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6860 int
6861 main ()
6862 {
6863 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6864 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6865 test_array [0] = 0
6866
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 :
6890 else
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 case $ac_type in
6895 int8_t) ac_cv_c_int8_t=yes ;;
6896 *) ac_cv_c_int8_t=$ac_type ;;
6897 esac
6898
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 else
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 test "$ac_cv_c_int8_t" != no && break
6911 done
6912 fi
6913 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6914 $as_echo "$ac_cv_c_int8_t" >&6; }
6915 case $ac_cv_c_int8_t in #(
6916 no|yes) ;; #(
6917 *)
6918
6919 cat >>confdefs.h <<_ACEOF
6920 #define int8_t $ac_cv_c_int8_t
6921 _ACEOF
6922 ;;
6923 esac
6924
6925
6926 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6927 $as_echo_n "checking for int16_t... " >&6; }
6928 if test "${ac_cv_c_int16_t+set}" = set; then
6929 $as_echo_n "(cached) " >&6
6930 else
6931 ac_cv_c_int16_t=no
6932 for ac_type in 'int16_t' 'int' 'long int' \
6933 'long long int' 'short int' 'signed char'; do
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6941 int
6942 main ()
6943 {
6944 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6945 test_array [0] = 0
6946
6947 ;
6948 return 0;
6949 }
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958 $as_echo "$ac_try_echo") >&5
6959 (eval "$ac_compile") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest.$ac_objext; then
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 $ac_includes_default
6976 int
6977 main ()
6978 {
6979 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6980 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6981 test_array [0] = 0
6982
6983 ;
6984 return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_compile") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && {
7002 test -z "$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 } && test -s conftest.$ac_objext; then
7005 :
7006 else
7007 $as_echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010 case $ac_type in
7011 int16_t) ac_cv_c_int16_t=yes ;;
7012 *) ac_cv_c_int16_t=$ac_type ;;
7013 esac
7014
7015 fi
7016
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 else
7019 $as_echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022
7023 fi
7024
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 test "$ac_cv_c_int16_t" != no && break
7027 done
7028 fi
7029 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7030 $as_echo "$ac_cv_c_int16_t" >&6; }
7031 case $ac_cv_c_int16_t in #(
7032 no|yes) ;; #(
7033 *)
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define int16_t $ac_cv_c_int16_t
7037 _ACEOF
7038 ;;
7039 esac
7040
7041
7042 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7043 $as_echo_n "checking for int32_t... " >&6; }
7044 if test "${ac_cv_c_int32_t+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7046 else
7047 ac_cv_c_int32_t=no
7048 for ac_type in 'int32_t' 'int' 'long int' \
7049 'long long int' 'short int' 'signed char'; do
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 $ac_includes_default
7057 int
7058 main ()
7059 {
7060 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7061 test_array [0] = 0
7062
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 $ac_includes_default
7092 int
7093 main ()
7094 {
7095 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7096 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7097 test_array [0] = 0
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7105 case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108 esac
7109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7110 $as_echo "$ac_try_echo") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 :
7122 else
7123 $as_echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 case $ac_type in
7127 int32_t) ac_cv_c_int32_t=yes ;;
7128 *) ac_cv_c_int32_t=$ac_type ;;
7129 esac
7130
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 else
7135 $as_echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138
7139 fi
7140
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 test "$ac_cv_c_int32_t" != no && break
7143 done
7144 fi
7145 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7146 $as_echo "$ac_cv_c_int32_t" >&6; }
7147 case $ac_cv_c_int32_t in #(
7148 no|yes) ;; #(
7149 *)
7150
7151 cat >>confdefs.h <<_ACEOF
7152 #define int32_t $ac_cv_c_int32_t
7153 _ACEOF
7154 ;;
7155 esac
7156
7157
7158 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7159 $as_echo_n "checking for int64_t... " >&6; }
7160 if test "${ac_cv_c_int64_t+set}" = set; then
7161 $as_echo_n "(cached) " >&6
7162 else
7163 ac_cv_c_int64_t=no
7164 for ac_type in 'int64_t' 'int' 'long int' \
7165 'long long int' 'short int' 'signed char'; do
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7173 int
7174 main ()
7175 {
7176 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7177 test_array [0] = 0
7178
7179 ;
7180 return 0;
7181 }
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 int
7209 main ()
7210 {
7211 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7212 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7213 test_array [0] = 0
7214
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227 (eval "$ac_compile") 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest.$ac_objext; then
7237 :
7238 else
7239 $as_echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.$ac_ext >&5
7241
7242 case $ac_type in
7243 int64_t) ac_cv_c_int64_t=yes ;;
7244 *) ac_cv_c_int64_t=$ac_type ;;
7245 esac
7246
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250 else
7251 $as_echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254
7255 fi
7256
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 test "$ac_cv_c_int64_t" != no && break
7259 done
7260 fi
7261 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7262 $as_echo "$ac_cv_c_int64_t" >&6; }
7263 case $ac_cv_c_int64_t in #(
7264 no|yes) ;; #(
7265 *)
7266
7267 cat >>confdefs.h <<_ACEOF
7268 #define int64_t $ac_cv_c_int64_t
7269 _ACEOF
7270 ;;
7271 esac
7272
7273 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7274 $as_echo_n "checking for ssize_t... " >&6; }
7275 if test "${ac_cv_type_ssize_t+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7277 else
7278 ac_cv_type_ssize_t=no
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h. */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 $ac_includes_default
7286 int
7287 main ()
7288 {
7289 if (sizeof (ssize_t))
7290 return 0;
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7297 case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7302 $as_echo "$ac_try_echo") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7320 int
7321 main ()
7322 {
7323 if (sizeof ((ssize_t)))
7324 return 0;
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (ac_try="$ac_compile"
7331 case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334 esac
7335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7336 $as_echo "$ac_try_echo") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 :
7348 else
7349 $as_echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352 ac_cv_type_ssize_t=yes
7353 fi
7354
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 else
7357 $as_echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360
7361 fi
7362
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 fi
7365 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7366 $as_echo "$ac_cv_type_ssize_t" >&6; }
7367 if test "x$ac_cv_type_ssize_t" = x""yes; then
7368 :
7369 else
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define ssize_t int
7373 _ACEOF
7374
7375 fi
7376
7377 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7378 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7379 if test "${ac_cv_type_uid_t+set}" = set; then
7380 $as_echo_n "(cached) " >&6
7381 else
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <sys/types.h>
7389
7390 _ACEOF
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "uid_t" >/dev/null 2>&1; then
7393 ac_cv_type_uid_t=yes
7394 else
7395 ac_cv_type_uid_t=no
7396 fi
7397 rm -f conftest*
7398
7399 fi
7400 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7401 $as_echo "$ac_cv_type_uid_t" >&6; }
7402 if test $ac_cv_type_uid_t = no; then
7403
7404 cat >>confdefs.h <<\_ACEOF
7405 #define uid_t int
7406 _ACEOF
7407
7408
7409 cat >>confdefs.h <<\_ACEOF
7410 #define gid_t int
7411 _ACEOF
7412
7413 fi
7414
7415
7416 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7417 $as_echo_n "checking for uint8_t... " >&6; }
7418 if test "${ac_cv_c_uint8_t+set}" = set; then
7419 $as_echo_n "(cached) " >&6
7420 else
7421 ac_cv_c_uint8_t=no
7422 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 $ac_includes_default
7431 int
7432 main ()
7433 {
7434 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7435 test_array [0] = 0
7436
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (ac_try="$ac_compile"
7443 case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446 esac
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7450 ac_status=$?
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
7454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 case $ac_type in
7460 uint8_t) ac_cv_c_uint8_t=yes ;;
7461 *) ac_cv_c_uint8_t=$ac_type ;;
7462 esac
7463
7464 else
7465 $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468
7469 fi
7470
7471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 test "$ac_cv_c_uint8_t" != no && break
7473 done
7474 fi
7475 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7476 $as_echo "$ac_cv_c_uint8_t" >&6; }
7477 case $ac_cv_c_uint8_t in #(
7478 no|yes) ;; #(
7479 *)
7480
7481 cat >>confdefs.h <<\_ACEOF
7482 #define _UINT8_T 1
7483 _ACEOF
7484
7485
7486 cat >>confdefs.h <<_ACEOF
7487 #define uint8_t $ac_cv_c_uint8_t
7488 _ACEOF
7489 ;;
7490 esac
7491
7492
7493 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7494 $as_echo_n "checking for uint16_t... " >&6; }
7495 if test "${ac_cv_c_uint16_t+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497 else
7498 ac_cv_c_uint16_t=no
7499 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7500 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 $ac_includes_default
7508 int
7509 main ()
7510 {
7511 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7512 test_array [0] = 0
7513
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 rm -f conftest.$ac_objext
7519 if { (ac_try="$ac_compile"
7520 case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523 esac
7524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7525 $as_echo "$ac_try_echo") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 case $ac_type in
7537 uint16_t) ac_cv_c_uint16_t=yes ;;
7538 *) ac_cv_c_uint16_t=$ac_type ;;
7539 esac
7540
7541 else
7542 $as_echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7544
7545
7546 fi
7547
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 test "$ac_cv_c_uint16_t" != no && break
7550 done
7551 fi
7552 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7553 $as_echo "$ac_cv_c_uint16_t" >&6; }
7554 case $ac_cv_c_uint16_t in #(
7555 no|yes) ;; #(
7556 *)
7557
7558
7559 cat >>confdefs.h <<_ACEOF
7560 #define uint16_t $ac_cv_c_uint16_t
7561 _ACEOF
7562 ;;
7563 esac
7564
7565
7566 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7567 $as_echo_n "checking for uint32_t... " >&6; }
7568 if test "${ac_cv_c_uint32_t+set}" = set; then
7569 $as_echo_n "(cached) " >&6
7570 else
7571 ac_cv_c_uint32_t=no
7572 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7573 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7574 cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h. */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 int
7582 main ()
7583 {
7584 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7585 test_array [0] = 0
7586
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7593 case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596 esac
7597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7598 $as_echo "$ac_try_echo") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7600 ac_status=$?
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 case $ac_type in
7610 uint32_t) ac_cv_c_uint32_t=yes ;;
7611 *) ac_cv_c_uint32_t=$ac_type ;;
7612 esac
7613
7614 else
7615 $as_echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7617
7618
7619 fi
7620
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 test "$ac_cv_c_uint32_t" != no && break
7623 done
7624 fi
7625 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7626 $as_echo "$ac_cv_c_uint32_t" >&6; }
7627 case $ac_cv_c_uint32_t in #(
7628 no|yes) ;; #(
7629 *)
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define _UINT32_T 1
7633 _ACEOF
7634
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define uint32_t $ac_cv_c_uint32_t
7638 _ACEOF
7639 ;;
7640 esac
7641
7642
7643 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7644 $as_echo_n "checking for uint64_t... " >&6; }
7645 if test "${ac_cv_c_uint64_t+set}" = set; then
7646 $as_echo_n "(cached) " >&6
7647 else
7648 ac_cv_c_uint64_t=no
7649 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7650 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 $ac_includes_default
7658 int
7659 main ()
7660 {
7661 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7662 test_array [0] = 0
7663
7664 ;
7665 return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7670 case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 case $ac_type in
7687 uint64_t) ac_cv_c_uint64_t=yes ;;
7688 *) ac_cv_c_uint64_t=$ac_type ;;
7689 esac
7690
7691 else
7692 $as_echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695
7696 fi
7697
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 test "$ac_cv_c_uint64_t" != no && break
7700 done
7701 fi
7702 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7703 $as_echo "$ac_cv_c_uint64_t" >&6; }
7704 case $ac_cv_c_uint64_t in #(
7705 no|yes) ;; #(
7706 *)
7707
7708 cat >>confdefs.h <<\_ACEOF
7709 #define _UINT64_T 1
7710 _ACEOF
7711
7712
7713 cat >>confdefs.h <<_ACEOF
7714 #define uint64_t $ac_cv_c_uint64_t
7715 _ACEOF
7716 ;;
7717 esac
7718
7719 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7720 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
7721 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7722 $as_echo_n "(cached) " >&6
7723 else
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 $ac_includes_default
7731 int
7732 main ()
7733 {
7734 static struct stat ac_aggr;
7735 if (ac_aggr.st_rdev)
7736 return 0;
7737 ;
7738 return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (ac_try="$ac_compile"
7743 case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7746 esac
7747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7748 $as_echo "$ac_try_echo") >&5
7749 (eval "$ac_compile") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
7759 ac_cv_member_struct_stat_st_rdev=yes
7760 else
7761 $as_echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7763
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 $ac_includes_default
7771 int
7772 main ()
7773 {
7774 static struct stat ac_aggr;
7775 if (sizeof ac_aggr.st_rdev)
7776 return 0;
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (ac_try="$ac_compile"
7783 case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786 esac
7787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7788 $as_echo "$ac_try_echo") >&5
7789 (eval "$ac_compile") 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } && {
7796 test -z "$ac_c_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest.$ac_objext; then
7799 ac_cv_member_struct_stat_st_rdev=yes
7800 else
7801 $as_echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 ac_cv_member_struct_stat_st_rdev=no
7805 fi
7806
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 fi
7809
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 fi
7812 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7813 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7814 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
7815
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_STRUCT_STAT_ST_RDEV 1
7818 _ACEOF
7819
7820
7821 fi
7822
7823 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7824 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7825 if test "${ac_cv_struct_tm+set}" = set; then
7826 $as_echo_n "(cached) " >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7835 #include <time.h>
7836
7837 int
7838 main ()
7839 {
7840 struct tm tm;
7841 int *p = &tm.tm_sec;
7842 return !p;
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_cv_struct_tm=time.h
7866 else
7867 $as_echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_cv_struct_tm=sys/time.h
7871 fi
7872
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7876 $as_echo "$ac_cv_struct_tm" >&6; }
7877 if test $ac_cv_struct_tm = sys/time.h; then
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define TM_IN_SYS_TIME 1
7881 _ACEOF
7882
7883 fi
7884
7885
7886 ################################################################################
7887 { $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7888 $as_echo_n "checking for library containing floor... " >&6; }
7889 if test "${ac_cv_search_floor+set}" = set; then
7890 $as_echo_n "(cached) " >&6
7891 else
7892 ac_func_search_save_LIBS=$LIBS
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899
7900 /* Override any GCC internal prototype to avoid an error.
7901 Use char because int might match the return type of a GCC
7902 builtin and then its argument prototype would still apply. */
7903 #ifdef __cplusplus
7904 extern "C"
7905 #endif
7906 char floor ();
7907 int
7908 main ()
7909 {
7910 return floor ();
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 for ac_lib in '' m; do
7916 if test -z "$ac_lib"; then
7917 ac_res="none required"
7918 else
7919 ac_res=-l$ac_lib
7920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7921 fi
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923 if { (ac_try="$ac_link"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7929 $as_echo "$ac_try_echo") >&5
7930 (eval "$ac_link") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest$ac_exeext && {
7940 test "$cross_compiling" = yes ||
7941 $as_test_x conftest$ac_exeext
7942 }; then
7943 ac_cv_search_floor=$ac_res
7944 else
7945 $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948
7949 fi
7950
7951 rm -rf conftest.dSYM
7952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953 conftest$ac_exeext
7954 if test "${ac_cv_search_floor+set}" = set; then
7955 break
7956 fi
7957 done
7958 if test "${ac_cv_search_floor+set}" = set; then
7959 :
7960 else
7961 ac_cv_search_floor=no
7962 fi
7963 rm conftest.$ac_ext
7964 LIBS=$ac_func_search_save_LIBS
7965 fi
7966 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7967 $as_echo "$ac_cv_search_floor" >&6; }
7968 ac_res=$ac_cv_search_floor
7969 if test "$ac_res" != no; then
7970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7971
7972 else
7973 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7974 $as_echo "$as_me: error: bailing out" >&2;}
7975 { (exit 1); exit 1; }; }
7976 fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003 for ac_func in floor ftruncate gethostname getpagesize \
8004 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8005 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8006 strstr strtol strtoul uname
8007 do
8008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8010 $as_echo_n "checking for $ac_func... " >&6; }
8011 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8012 $as_echo_n "(cached) " >&6
8013 else
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8022 #define $ac_func innocuous_$ac_func
8023
8024 /* System header to define __stub macros and hopefully few prototypes,
8025 which can conflict with char $ac_func (); below.
8026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8027 <limits.h> exists even on freestanding compilers. */
8028
8029 #ifdef __STDC__
8030 # include <limits.h>
8031 #else
8032 # include <assert.h>
8033 #endif
8034
8035 #undef $ac_func
8036
8037 /* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
8040 #ifdef __cplusplus
8041 extern "C"
8042 #endif
8043 char $ac_func ();
8044 /* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
8047 #if defined __stub_$ac_func || defined __stub___$ac_func
8048 choke me
8049 #endif
8050
8051 int
8052 main ()
8053 {
8054 return $ac_func ();
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (ac_try="$ac_link"
8061 case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064 esac
8065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066 $as_echo "$ac_try_echo") >&5
8067 (eval "$ac_link") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest$ac_exeext && {
8077 test "$cross_compiling" = yes ||
8078 $as_test_x conftest$ac_exeext
8079 }; then
8080 eval "$as_ac_var=yes"
8081 else
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 eval "$as_ac_var=no"
8086 fi
8087
8088 rm -rf conftest.dSYM
8089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8090 conftest$ac_exeext conftest.$ac_ext
8091 fi
8092 ac_res=`eval 'as_val=${'$as_ac_var'}
8093 $as_echo "$as_val"'`
8094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8095 $as_echo "$ac_res" >&6; }
8096 as_val=`eval 'as_val=${'$as_ac_var'}
8097 $as_echo "$as_val"'`
8098 if test "x$as_val" = x""yes; then
8099 cat >>confdefs.h <<_ACEOF
8100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8101 _ACEOF
8102
8103 else
8104 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8105 $as_echo "$as_me: error: bailing out" >&2;}
8106 { (exit 1); exit 1; }; }
8107 fi
8108 done
8109
8110
8111 for ac_func in siginterrupt
8112 do
8113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8115 $as_echo_n "checking for $ac_func... " >&6; }
8116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8117 $as_echo_n "(cached) " >&6
8118 else
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127 #define $ac_func innocuous_$ac_func
8128
8129 /* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char $ac_func (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8133
8134 #ifdef __STDC__
8135 # include <limits.h>
8136 #else
8137 # include <assert.h>
8138 #endif
8139
8140 #undef $ac_func
8141
8142 /* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8145 #ifdef __cplusplus
8146 extern "C"
8147 #endif
8148 char $ac_func ();
8149 /* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152 #if defined __stub_$ac_func || defined __stub___$ac_func
8153 choke me
8154 #endif
8155
8156 int
8157 main ()
8158 {
8159 return $ac_func ();
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8171 $as_echo "$ac_try_echo") >&5
8172 (eval "$ac_link") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext && {
8182 test "$cross_compiling" = yes ||
8183 $as_test_x conftest$ac_exeext
8184 }; then
8185 eval "$as_ac_var=yes"
8186 else
8187 $as_echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 eval "$as_ac_var=no"
8191 fi
8192
8193 rm -rf conftest.dSYM
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext conftest.$ac_ext
8196 fi
8197 ac_res=`eval 'as_val=${'$as_ac_var'}
8198 $as_echo "$as_val"'`
8199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8200 $as_echo "$ac_res" >&6; }
8201 as_val=`eval 'as_val=${'$as_ac_var'}
8202 $as_echo "$as_val"'`
8203 if test "x$as_val" = x""yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 fi
8209 done
8210
8211 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8212 # for constant arguments. Useless!
8213 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8214 $as_echo_n "checking for working alloca.h... " >&6; }
8215 if test "${ac_cv_working_alloca_h+set}" = set; then
8216 $as_echo_n "(cached) " >&6
8217 else
8218 cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h. */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 #include <alloca.h>
8225 int
8226 main ()
8227 {
8228 char *p = (char *) alloca (2 * sizeof (int));
8229 if (p) return 0;
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (ac_try="$ac_link"
8236 case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239 esac
8240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8241 $as_echo "$ac_try_echo") >&5
8242 (eval "$ac_link") 2>conftest.er1
8243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
8247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } && {
8249 test -z "$ac_c_werror_flag" ||
8250 test ! -s conftest.err
8251 } && test -s conftest$ac_exeext && {
8252 test "$cross_compiling" = yes ||
8253 $as_test_x conftest$ac_exeext
8254 }; then
8255 ac_cv_working_alloca_h=yes
8256 else
8257 $as_echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 ac_cv_working_alloca_h=no
8261 fi
8262
8263 rm -rf conftest.dSYM
8264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8265 conftest$ac_exeext conftest.$ac_ext
8266 fi
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8268 $as_echo "$ac_cv_working_alloca_h" >&6; }
8269 if test $ac_cv_working_alloca_h = yes; then
8270
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_ALLOCA_H 1
8273 _ACEOF
8274
8275 fi
8276
8277 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8278 $as_echo_n "checking for alloca... " >&6; }
8279 if test "${ac_cv_func_alloca_works+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8281 else
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 #ifdef __GNUC__
8289 # define alloca __builtin_alloca
8290 #else
8291 # ifdef _MSC_VER
8292 # include <malloc.h>
8293 # define alloca _alloca
8294 # else
8295 # ifdef HAVE_ALLOCA_H
8296 # include <alloca.h>
8297 # else
8298 # ifdef _AIX
8299 #pragma alloca
8300 # else
8301 # ifndef alloca /* predefined by HP cc +Olibcalls */
8302 char *alloca ();
8303 # endif
8304 # endif
8305 # endif
8306 # endif
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 char *p = (char *) alloca (1);
8313 if (p) return 0;
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (ac_try="$ac_link"
8320 case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323 esac
8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325 $as_echo "$ac_try_echo") >&5
8326 (eval "$ac_link") 2>conftest.er1
8327 ac_status=$?
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
8331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest$ac_exeext && {
8336 test "$cross_compiling" = yes ||
8337 $as_test_x conftest$ac_exeext
8338 }; then
8339 ac_cv_func_alloca_works=yes
8340 else
8341 $as_echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_cv_func_alloca_works=no
8345 fi
8346
8347 rm -rf conftest.dSYM
8348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8349 conftest$ac_exeext conftest.$ac_ext
8350 fi
8351 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8352 $as_echo "$ac_cv_func_alloca_works" >&6; }
8353
8354 if test $ac_cv_func_alloca_works = yes; then
8355
8356 cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_ALLOCA 1
8358 _ACEOF
8359
8360 else
8361 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8362 # that cause trouble. Some versions do not even contain alloca or
8363 # contain a buggy version. If you still want to use their alloca,
8364 # use ar to extract alloca.o from them instead of compiling alloca.c.
8365
8366 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8367
8368 cat >>confdefs.h <<\_ACEOF
8369 #define C_ALLOCA 1
8370 _ACEOF
8371
8372
8373 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8374 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8375 if test "${ac_cv_os_cray+set}" = set; then
8376 $as_echo_n "(cached) " >&6
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #if defined CRAY && ! defined CRAY2
8385 webecray
8386 #else
8387 wenotbecray
8388 #endif
8389
8390 _ACEOF
8391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8392 $EGREP "webecray" >/dev/null 2>&1; then
8393 ac_cv_os_cray=yes
8394 else
8395 ac_cv_os_cray=no
8396 fi
8397 rm -f conftest*
8398
8399 fi
8400 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8401 $as_echo "$ac_cv_os_cray" >&6; }
8402 if test $ac_cv_os_cray = yes; then
8403 for ac_func in _getb67 GETB67 getb67; do
8404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8405 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8406 $as_echo_n "checking for $ac_func... " >&6; }
8407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h. */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8418 #define $ac_func innocuous_$ac_func
8419
8420 /* System header to define __stub macros and hopefully few prototypes,
8421 which can conflict with char $ac_func (); below.
8422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8423 <limits.h> exists even on freestanding compilers. */
8424
8425 #ifdef __STDC__
8426 # include <limits.h>
8427 #else
8428 # include <assert.h>
8429 #endif
8430
8431 #undef $ac_func
8432
8433 /* Override any GCC internal prototype to avoid an error.
8434 Use char because int might match the return type of a GCC
8435 builtin and then its argument prototype would still apply. */
8436 #ifdef __cplusplus
8437 extern "C"
8438 #endif
8439 char $ac_func ();
8440 /* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
8443 #if defined __stub_$ac_func || defined __stub___$ac_func
8444 choke me
8445 #endif
8446
8447 int
8448 main ()
8449 {
8450 return $ac_func ();
8451 ;
8452 return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (ac_try="$ac_link"
8457 case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460 esac
8461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8462 $as_echo "$ac_try_echo") >&5
8463 (eval "$ac_link") 2>conftest.er1
8464 ac_status=$?
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest$ac_exeext && {
8473 test "$cross_compiling" = yes ||
8474 $as_test_x conftest$ac_exeext
8475 }; then
8476 eval "$as_ac_var=yes"
8477 else
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 eval "$as_ac_var=no"
8482 fi
8483
8484 rm -rf conftest.dSYM
8485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8486 conftest$ac_exeext conftest.$ac_ext
8487 fi
8488 ac_res=`eval 'as_val=${'$as_ac_var'}
8489 $as_echo "$as_val"'`
8490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8491 $as_echo "$ac_res" >&6; }
8492 as_val=`eval 'as_val=${'$as_ac_var'}
8493 $as_echo "$as_val"'`
8494 if test "x$as_val" = x""yes; then
8495
8496 cat >>confdefs.h <<_ACEOF
8497 #define CRAY_STACKSEG_END $ac_func
8498 _ACEOF
8499
8500 break
8501 fi
8502
8503 done
8504 fi
8505
8506 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8507 $as_echo_n "checking stack direction for C alloca... " >&6; }
8508 if test "${ac_cv_c_stack_direction+set}" = set; then
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test "$cross_compiling" = yes; then
8512 ac_cv_c_stack_direction=0
8513 else
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 int
8522 find_stack_direction ()
8523 {
8524 static char *addr = 0;
8525 auto char dummy;
8526 if (addr == 0)
8527 {
8528 addr = &dummy;
8529 return find_stack_direction ();
8530 }
8531 else
8532 return (&dummy > addr) ? 1 : -1;
8533 }
8534
8535 int
8536 main ()
8537 {
8538 return find_stack_direction () < 0;
8539 }
8540 _ACEOF
8541 rm -f conftest$ac_exeext
8542 if { (ac_try="$ac_link"
8543 case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546 esac
8547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548 $as_echo "$ac_try_echo") >&5
8549 (eval "$ac_link") 2>&5
8550 ac_status=$?
8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556 esac
8557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558 $as_echo "$ac_try_echo") >&5
8559 (eval "$ac_try") 2>&5
8560 ac_status=$?
8561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; }; then
8563 ac_cv_c_stack_direction=1
8564 else
8565 $as_echo "$as_me: program exited with status $ac_status" >&5
8566 $as_echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 ( exit $ac_status )
8570 ac_cv_c_stack_direction=-1
8571 fi
8572 rm -rf conftest.dSYM
8573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8574 fi
8575
8576
8577 fi
8578 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8579 $as_echo "$ac_cv_c_stack_direction" >&6; }
8580
8581 cat >>confdefs.h <<_ACEOF
8582 #define STACK_DIRECTION $ac_cv_c_stack_direction
8583 _ACEOF
8584
8585
8586 fi
8587
8588 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8589 $as_echo_n "checking whether closedir returns void... " >&6; }
8590 if test "${ac_cv_func_closedir_void+set}" = set; then
8591 $as_echo_n "(cached) " >&6
8592 else
8593 if test "$cross_compiling" = yes; then
8594 ac_cv_func_closedir_void=yes
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 $ac_includes_default
8603 #include <$ac_header_dirent>
8604 #ifndef __cplusplus
8605 int closedir ();
8606 #endif
8607
8608 int
8609 main ()
8610 {
8611 return closedir (opendir (".")) != 0;
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 rm -f conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8618 case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623 $as_echo "$ac_try_echo") >&5
8624 (eval "$ac_link") 2>&5
8625 ac_status=$?
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8633 $as_echo "$ac_try_echo") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_func_closedir_void=no
8639 else
8640 $as_echo "$as_me: program exited with status $ac_status" >&5
8641 $as_echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 ( exit $ac_status )
8645 ac_cv_func_closedir_void=yes
8646 fi
8647 rm -rf conftest.dSYM
8648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8649 fi
8650
8651
8652 fi
8653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8654 $as_echo "$ac_cv_func_closedir_void" >&6; }
8655 if test $ac_cv_func_closedir_void = yes; then
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define CLOSEDIR_VOID 1
8659 _ACEOF
8660
8661 fi
8662
8663
8664 for ac_header in unistd.h
8665 do
8666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8669 $as_echo_n "checking for $ac_header... " >&6; }
8670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 $as_echo_n "(cached) " >&6
8672 fi
8673 ac_res=`eval 'as_val=${'$as_ac_Header'}
8674 $as_echo "$as_val"'`
8675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8676 $as_echo "$ac_res" >&6; }
8677 else
8678 # Is the header compilable?
8679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8680 $as_echo_n "checking $ac_header usability... " >&6; }
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687 $ac_includes_default
8688 #include <$ac_header>
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8692 case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697 $as_echo "$ac_try_echo") >&5
8698 (eval "$ac_compile") 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest.$ac_objext; then
8708 ac_header_compiler=yes
8709 else
8710 $as_echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713 ac_header_compiler=no
8714 fi
8715
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718 $as_echo "$ac_header_compiler" >&6; }
8719
8720 # Is the header present?
8721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8722 $as_echo_n "checking $ac_header presence... " >&6; }
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 #include <$ac_header>
8730 _ACEOF
8731 if { (ac_try="$ac_cpp conftest.$ac_ext"
8732 case "(($ac_try" in
8733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734 *) ac_try_echo=$ac_try;;
8735 esac
8736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8737 $as_echo "$ac_try_echo") >&5
8738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } >/dev/null && {
8745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 }; then
8748 ac_header_preproc=yes
8749 else
8750 $as_echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_header_preproc=no
8754 fi
8755
8756 rm -f conftest.err conftest.$ac_ext
8757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8758 $as_echo "$ac_header_preproc" >&6; }
8759
8760 # So? What about this header?
8761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8762 yes:no: )
8763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8767 ac_header_preproc=yes
8768 ;;
8769 no:yes:* )
8770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8782
8783 ;;
8784 esac
8785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8786 $as_echo_n "checking for $ac_header... " >&6; }
8787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8788 $as_echo_n "(cached) " >&6
8789 else
8790 eval "$as_ac_Header=\$ac_header_preproc"
8791 fi
8792 ac_res=`eval 'as_val=${'$as_ac_Header'}
8793 $as_echo "$as_val"'`
8794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8795 $as_echo "$ac_res" >&6; }
8796
8797 fi
8798 as_val=`eval 'as_val=${'$as_ac_Header'}
8799 $as_echo "$as_val"'`
8800 if test "x$as_val" = x""yes; then
8801 cat >>confdefs.h <<_ACEOF
8802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 _ACEOF
8804
8805 fi
8806
8807 done
8808
8809 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
8810 $as_echo_n "checking for working chown... " >&6; }
8811 if test "${ac_cv_func_chown_works+set}" = set; then
8812 $as_echo_n "(cached) " >&6
8813 else
8814 if test "$cross_compiling" = yes; then
8815 ac_cv_func_chown_works=no
8816 else
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h. */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8823 $ac_includes_default
8824 #include <fcntl.h>
8825
8826 int
8827 main ()
8828 {
8829 char *f = "conftest.chown";
8830 struct stat before, after;
8831
8832 if (creat (f, 0600) < 0)
8833 return 1;
8834 if (stat (f, &before) < 0)
8835 return 1;
8836 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8837 return 1;
8838 if (stat (f, &after) < 0)
8839 return 1;
8840 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8841
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854 (eval "$ac_link") 2>&5
8855 ac_status=$?
8856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8858 { (case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861 esac
8862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863 $as_echo "$ac_try_echo") >&5
8864 (eval "$ac_try") 2>&5
8865 ac_status=$?
8866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_func_chown_works=yes
8869 else
8870 $as_echo "$as_me: program exited with status $ac_status" >&5
8871 $as_echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 ( exit $ac_status )
8875 ac_cv_func_chown_works=no
8876 fi
8877 rm -rf conftest.dSYM
8878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8879 fi
8880
8881
8882 rm -f conftest.chown
8883
8884 fi
8885 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8886 $as_echo "$ac_cv_func_chown_works" >&6; }
8887 if test $ac_cv_func_chown_works = yes; then
8888
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_CHOWN 1
8891 _ACEOF
8892
8893 fi
8894
8895
8896 for ac_header in vfork.h
8897 do
8898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 $as_echo_n "checking for $ac_header... " >&6; }
8902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903 $as_echo_n "(cached) " >&6
8904 fi
8905 ac_res=`eval 'as_val=${'$as_ac_Header'}
8906 $as_echo "$as_val"'`
8907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8908 $as_echo "$ac_res" >&6; }
8909 else
8910 # Is the header compilable?
8911 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8912 $as_echo_n "checking $ac_header usability... " >&6; }
8913 cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h. */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8919 $ac_includes_default
8920 #include <$ac_header>
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8924 case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927 esac
8928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929 $as_echo "$ac_try_echo") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_header_compiler=yes
8941 else
8942 $as_echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_header_compiler=no
8946 fi
8947
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 $as_echo "$ac_header_compiler" >&6; }
8951
8952 # Is the header present?
8953 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954 $as_echo_n "checking $ac_header presence... " >&6; }
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961 #include <$ac_header>
8962 _ACEOF
8963 if { (ac_try="$ac_cpp conftest.$ac_ext"
8964 case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967 esac
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } >/dev/null && {
8977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 }; then
8980 ac_header_preproc=yes
8981 else
8982 $as_echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985 ac_header_preproc=no
8986 fi
8987
8988 rm -f conftest.err conftest.$ac_ext
8989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8990 $as_echo "$ac_header_preproc" >&6; }
8991
8992 # So? What about this header?
8993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8994 yes:no: )
8995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8996 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8999 ac_header_preproc=yes
9000 ;;
9001 no:yes:* )
9002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9003 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9005 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9007 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9009 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9013 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9014
9015 ;;
9016 esac
9017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 $as_echo_n "checking for $ac_header... " >&6; }
9019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9020 $as_echo_n "(cached) " >&6
9021 else
9022 eval "$as_ac_Header=\$ac_header_preproc"
9023 fi
9024 ac_res=`eval 'as_val=${'$as_ac_Header'}
9025 $as_echo "$as_val"'`
9026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9027 $as_echo "$ac_res" >&6; }
9028
9029 fi
9030 as_val=`eval 'as_val=${'$as_ac_Header'}
9031 $as_echo "$as_val"'`
9032 if test "x$as_val" = x""yes; then
9033 cat >>confdefs.h <<_ACEOF
9034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9035 _ACEOF
9036
9037 fi
9038
9039 done
9040
9041
9042
9043 for ac_func in fork vfork
9044 do
9045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 $as_echo_n "checking for $ac_func... " >&6; }
9048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h. */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059 #define $ac_func innocuous_$ac_func
9060
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
9065
9066 #ifdef __STDC__
9067 # include <limits.h>
9068 #else
9069 # include <assert.h>
9070 #endif
9071
9072 #undef $ac_func
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char $ac_func ();
9081 /* The GNU C library defines this for functions which it implements
9082 to always fail with ENOSYS. Some functions are actually named
9083 something starting with __ and the normal name is an alias. */
9084 #if defined __stub_$ac_func || defined __stub___$ac_func
9085 choke me
9086 #endif
9087
9088 int
9089 main ()
9090 {
9091 return $ac_func ();
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 rm -f conftest.$ac_objext conftest$ac_exeext
9097 if { (ac_try="$ac_link"
9098 case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101 esac
9102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9103 $as_echo "$ac_try_echo") >&5
9104 (eval "$ac_link") 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest$ac_exeext && {
9114 test "$cross_compiling" = yes ||
9115 $as_test_x conftest$ac_exeext
9116 }; then
9117 eval "$as_ac_var=yes"
9118 else
9119 $as_echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 eval "$as_ac_var=no"
9123 fi
9124
9125 rm -rf conftest.dSYM
9126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9127 conftest$ac_exeext conftest.$ac_ext
9128 fi
9129 ac_res=`eval 'as_val=${'$as_ac_var'}
9130 $as_echo "$as_val"'`
9131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9132 $as_echo "$ac_res" >&6; }
9133 as_val=`eval 'as_val=${'$as_ac_var'}
9134 $as_echo "$as_val"'`
9135 if test "x$as_val" = x""yes; then
9136 cat >>confdefs.h <<_ACEOF
9137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9138 _ACEOF
9139
9140 fi
9141 done
9142
9143 if test "x$ac_cv_func_fork" = xyes; then
9144 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9145 $as_echo_n "checking for working fork... " >&6; }
9146 if test "${ac_cv_func_fork_works+set}" = set; then
9147 $as_echo_n "(cached) " >&6
9148 else
9149 if test "$cross_compiling" = yes; then
9150 ac_cv_func_fork_works=cross
9151 else
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 int
9160 main ()
9161 {
9162
9163 /* By Ruediger Kuhlmann. */
9164 return fork () < 0;
9165
9166 ;
9167 return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest$ac_exeext
9171 if { (ac_try="$ac_link"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_link") 2>&5
9179 ac_status=$?
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185 esac
9186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9187 $as_echo "$ac_try_echo") >&5
9188 (eval "$ac_try") 2>&5
9189 ac_status=$?
9190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_func_fork_works=yes
9193 else
9194 $as_echo "$as_me: program exited with status $ac_status" >&5
9195 $as_echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 ( exit $ac_status )
9199 ac_cv_func_fork_works=no
9200 fi
9201 rm -rf conftest.dSYM
9202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9203 fi
9204
9205
9206 fi
9207 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9208 $as_echo "$ac_cv_func_fork_works" >&6; }
9209
9210 else
9211 ac_cv_func_fork_works=$ac_cv_func_fork
9212 fi
9213 if test "x$ac_cv_func_fork_works" = xcross; then
9214 case $host in
9215 *-*-amigaos* | *-*-msdosdjgpp*)
9216 # Override, as these systems have only a dummy fork() stub
9217 ac_cv_func_fork_works=no
9218 ;;
9219 *)
9220 ac_cv_func_fork_works=yes
9221 ;;
9222 esac
9223 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9224 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9225 fi
9226 ac_cv_func_vfork_works=$ac_cv_func_vfork
9227 if test "x$ac_cv_func_vfork" = xyes; then
9228 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9229 $as_echo_n "checking for working vfork... " >&6; }
9230 if test "${ac_cv_func_vfork_works+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9232 else
9233 if test "$cross_compiling" = yes; then
9234 ac_cv_func_vfork_works=cross
9235 else
9236 cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h. */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 /* Thanks to Paul Eggert for this test. */
9243 $ac_includes_default
9244 #include <sys/wait.h>
9245 #ifdef HAVE_VFORK_H
9246 # include <vfork.h>
9247 #endif
9248 /* On some sparc systems, changes by the child to local and incoming
9249 argument registers are propagated back to the parent. The compiler
9250 is told about this with #include <vfork.h>, but some compilers
9251 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9252 static variable whose address is put into a register that is
9253 clobbered by the vfork. */
9254 static void
9255 #ifdef __cplusplus
9256 sparc_address_test (int arg)
9257 # else
9258 sparc_address_test (arg) int arg;
9259 #endif
9260 {
9261 static pid_t child;
9262 if (!child) {
9263 child = vfork ();
9264 if (child < 0) {
9265 perror ("vfork");
9266 _exit(2);
9267 }
9268 if (!child) {
9269 arg = getpid();
9270 write(-1, "", 0);
9271 _exit (arg);
9272 }
9273 }
9274 }
9275
9276 int
9277 main ()
9278 {
9279 pid_t parent = getpid ();
9280 pid_t child;
9281
9282 sparc_address_test (0);
9283
9284 child = vfork ();
9285
9286 if (child == 0) {
9287 /* Here is another test for sparc vfork register problems. This
9288 test uses lots of local variables, at least as many local
9289 variables as main has allocated so far including compiler
9290 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9291 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9292 reuse the register of parent for one of the local variables,
9293 since it will think that parent can't possibly be used any more
9294 in this routine. Assigning to the local variable will thus
9295 munge parent in the parent process. */
9296 pid_t
9297 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9298 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9299 /* Convince the compiler that p..p7 are live; otherwise, it might
9300 use the same hardware register for all 8 local variables. */
9301 if (p != p1 || p != p2 || p != p3 || p != p4
9302 || p != p5 || p != p6 || p != p7)
9303 _exit(1);
9304
9305 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9306 from child file descriptors. If the child closes a descriptor
9307 before it execs or exits, this munges the parent's descriptor
9308 as well. Test for this by closing stdout in the child. */
9309 _exit(close(fileno(stdout)) != 0);
9310 } else {
9311 int status;
9312 struct stat st;
9313
9314 while (wait(&status) != child)
9315 ;
9316 return (
9317 /* Was there some problem with vforking? */
9318 child < 0
9319
9320 /* Did the child fail? (This shouldn't happen.) */
9321 || status
9322
9323 /* Did the vfork/compiler bug occur? */
9324 || parent != getpid()
9325
9326 /* Did the file descriptor bug occur? */
9327 || fstat(fileno(stdout), &st) != 0
9328 );
9329 }
9330 }
9331 _ACEOF
9332 rm -f conftest$ac_exeext
9333 if { (ac_try="$ac_link"
9334 case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9339 $as_echo "$ac_try_echo") >&5
9340 (eval "$ac_link") 2>&5
9341 ac_status=$?
9342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347 esac
9348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9349 $as_echo "$ac_try_echo") >&5
9350 (eval "$ac_try") 2>&5
9351 ac_status=$?
9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_func_vfork_works=yes
9355 else
9356 $as_echo "$as_me: program exited with status $ac_status" >&5
9357 $as_echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360 ( exit $ac_status )
9361 ac_cv_func_vfork_works=no
9362 fi
9363 rm -rf conftest.dSYM
9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9365 fi
9366
9367
9368 fi
9369 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9370 $as_echo "$ac_cv_func_vfork_works" >&6; }
9371
9372 fi;
9373 if test "x$ac_cv_func_fork_works" = xcross; then
9374 ac_cv_func_vfork_works=$ac_cv_func_vfork
9375 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9376 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9377 fi
9378
9379 if test "x$ac_cv_func_vfork_works" = xyes; then
9380
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_WORKING_VFORK 1
9383 _ACEOF
9384
9385 else
9386
9387 cat >>confdefs.h <<\_ACEOF
9388 #define vfork fork
9389 _ACEOF
9390
9391 fi
9392 if test "x$ac_cv_func_fork_works" = xyes; then
9393
9394 cat >>confdefs.h <<\_ACEOF
9395 #define HAVE_WORKING_FORK 1
9396 _ACEOF
9397
9398 fi
9399
9400 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9401 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
9402 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9403 $as_echo_n "(cached) " >&6
9404 else
9405 rm -f conftest.sym conftest.file
9406 echo >conftest.file
9407 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9408 if test "$cross_compiling" = yes; then
9409 ac_cv_func_lstat_dereferences_slashed_symlink=no
9410 else
9411 cat >conftest.$ac_ext <<_ACEOF
9412 /* confdefs.h. */
9413 _ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 $ac_includes_default
9418 int
9419 main ()
9420 {
9421 struct stat sbuf;
9422 /* Linux will dereference the symlink and fail.
9423 That is better in the sense that it means we will not
9424 have to compile and use the lstat wrapper. */
9425 return lstat ("conftest.sym/", &sbuf) == 0;
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest$ac_exeext
9431 if { (ac_try="$ac_link"
9432 case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435 esac
9436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9437 $as_echo "$ac_try_echo") >&5
9438 (eval "$ac_link") 2>&5
9439 ac_status=$?
9440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9442 { (case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445 esac
9446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448 (eval "$ac_try") 2>&5
9449 ac_status=$?
9450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9453 else
9454 $as_echo "$as_me: program exited with status $ac_status" >&5
9455 $as_echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 ( exit $ac_status )
9459 ac_cv_func_lstat_dereferences_slashed_symlink=no
9460 fi
9461 rm -rf conftest.dSYM
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9463 fi
9464
9465
9466 else
9467 # If the `ln -s' command failed, then we probably don't even
9468 # have an lstat function.
9469 ac_cv_func_lstat_dereferences_slashed_symlink=no
9470 fi
9471 rm -f conftest.sym conftest.file
9472
9473 fi
9474 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9475 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9476
9477 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9478
9479 cat >>confdefs.h <<_ACEOF
9480 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9481 _ACEOF
9482
9483
9484 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9485 case " $LIBOBJS " in
9486 *" lstat.$ac_objext "* ) ;;
9487 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9488 ;;
9489 esac
9490
9491 fi
9492
9493 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9494 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
9495 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
9496 $as_echo_n "(cached) " >&6
9497 else
9498 if test "$cross_compiling" = yes; then
9499 ac_cv_func_lstat_empty_string_bug=yes
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 $ac_includes_default
9508 int
9509 main ()
9510 {
9511 struct stat sbuf;
9512 return lstat ("", &sbuf) == 0;
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 rm -f conftest$ac_exeext
9518 if { (ac_try="$ac_link"
9519 case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522 esac
9523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9524 $as_echo "$ac_try_echo") >&5
9525 (eval "$ac_link") 2>&5
9526 ac_status=$?
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534 $as_echo "$ac_try_echo") >&5
9535 (eval "$ac_try") 2>&5
9536 ac_status=$?
9537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_func_lstat_empty_string_bug=no
9540 else
9541 $as_echo "$as_me: program exited with status $ac_status" >&5
9542 $as_echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545 ( exit $ac_status )
9546 ac_cv_func_lstat_empty_string_bug=yes
9547 fi
9548 rm -rf conftest.dSYM
9549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9550 fi
9551
9552
9553 fi
9554 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9555 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
9556 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9557 case " $LIBOBJS " in
9558 *" lstat.$ac_objext "* ) ;;
9559 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9560 ;;
9561 esac
9562
9563
9564 cat >>confdefs.h <<_ACEOF
9565 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9566 _ACEOF
9567
9568 fi
9569
9570
9571 for ac_header in stdlib.h
9572 do
9573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9576 $as_echo_n "checking for $ac_header... " >&6; }
9577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578 $as_echo_n "(cached) " >&6
9579 fi
9580 ac_res=`eval 'as_val=${'$as_ac_Header'}
9581 $as_echo "$as_val"'`
9582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9583 $as_echo "$ac_res" >&6; }
9584 else
9585 # Is the header compilable?
9586 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587 $as_echo_n "checking $ac_header usability... " >&6; }
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 $ac_includes_default
9595 #include <$ac_header>
9596 _ACEOF
9597 rm -f conftest.$ac_objext
9598 if { (ac_try="$ac_compile"
9599 case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602 esac
9603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9604 $as_echo "$ac_try_echo") >&5
9605 (eval "$ac_compile") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.$ac_objext; then
9615 ac_header_compiler=yes
9616 else
9617 $as_echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 ac_header_compiler=no
9621 fi
9622
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625 $as_echo "$ac_header_compiler" >&6; }
9626
9627 # Is the header present?
9628 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629 $as_echo_n "checking $ac_header presence... " >&6; }
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h. */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9636 #include <$ac_header>
9637 _ACEOF
9638 if { (ac_try="$ac_cpp conftest.$ac_ext"
9639 case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642 esac
9643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9644 $as_echo "$ac_try_echo") >&5
9645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } >/dev/null && {
9652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 }; then
9655 ac_header_preproc=yes
9656 else
9657 $as_echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_header_preproc=no
9661 fi
9662
9663 rm -f conftest.err conftest.$ac_ext
9664 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9665 $as_echo "$ac_header_preproc" >&6; }
9666
9667 # So? What about this header?
9668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9669 yes:no: )
9670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9671 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9673 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9674 ac_header_preproc=yes
9675 ;;
9676 no:yes:* )
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9678 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9680 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9682 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9684 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9688 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9689
9690 ;;
9691 esac
9692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9693 $as_echo_n "checking for $ac_header... " >&6; }
9694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9695 $as_echo_n "(cached) " >&6
9696 else
9697 eval "$as_ac_Header=\$ac_header_preproc"
9698 fi
9699 ac_res=`eval 'as_val=${'$as_ac_Header'}
9700 $as_echo "$as_val"'`
9701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9702 $as_echo "$ac_res" >&6; }
9703
9704 fi
9705 as_val=`eval 'as_val=${'$as_ac_Header'}
9706 $as_echo "$as_val"'`
9707 if test "x$as_val" = x""yes; then
9708 cat >>confdefs.h <<_ACEOF
9709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710 _ACEOF
9711
9712 fi
9713
9714 done
9715
9716 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9717 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9718 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9719 $as_echo_n "(cached) " >&6
9720 else
9721 if test "$cross_compiling" = yes; then
9722 ac_cv_func_malloc_0_nonnull=no
9723 else
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9731 # include <stdlib.h>
9732 #else
9733 char *malloc ();
9734 #endif
9735
9736 int
9737 main ()
9738 {
9739 return ! malloc (0);
9740 ;
9741 return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9751 $as_echo "$ac_try_echo") >&5
9752 (eval "$ac_link") 2>&5
9753 ac_status=$?
9754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9756 { (case "(($ac_try" in
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9759 esac
9760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9761 $as_echo "$ac_try_echo") >&5
9762 (eval "$ac_try") 2>&5
9763 ac_status=$?
9764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_malloc_0_nonnull=yes
9767 else
9768 $as_echo "$as_me: program exited with status $ac_status" >&5
9769 $as_echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ( exit $ac_status )
9773 ac_cv_func_malloc_0_nonnull=no
9774 fi
9775 rm -rf conftest.dSYM
9776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9777 fi
9778
9779
9780 fi
9781 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9782 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9783 if test $ac_cv_func_malloc_0_nonnull = yes; then
9784
9785 cat >>confdefs.h <<\_ACEOF
9786 #define HAVE_MALLOC 1
9787 _ACEOF
9788
9789 else
9790 cat >>confdefs.h <<\_ACEOF
9791 #define HAVE_MALLOC 0
9792 _ACEOF
9793
9794 case " $LIBOBJS " in
9795 *" malloc.$ac_objext "* ) ;;
9796 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9797 ;;
9798 esac
9799
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define malloc rpl_malloc
9803 _ACEOF
9804
9805 fi
9806
9807
9808
9809 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9810 $as_echo_n "checking for working memcmp... " >&6; }
9811 if test "${ac_cv_func_memcmp_working+set}" = set; then
9812 $as_echo_n "(cached) " >&6
9813 else
9814 if test "$cross_compiling" = yes; then
9815 ac_cv_func_memcmp_working=no
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9824 int
9825 main ()
9826 {
9827
9828 /* Some versions of memcmp are not 8-bit clean. */
9829 char c0 = '\100', c1 = '\200', c2 = '\201';
9830 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9831 return 1;
9832
9833 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9834 or more and with at least one buffer not starting on a 4-byte boundary.
9835 William Lewis provided this test program. */
9836 {
9837 char foo[21];
9838 char bar[21];
9839 int i;
9840 for (i = 0; i < 4; i++)
9841 {
9842 char *a = foo + i;
9843 char *b = bar + i;
9844 strcpy (a, "--------01111111");
9845 strcpy (b, "--------10000000");
9846 if (memcmp (a, b, 16) >= 0)
9847 return 1;
9848 }
9849 return 0;
9850 }
9851
9852 ;
9853 return 0;
9854 }
9855 _ACEOF
9856 rm -f conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9858 case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861 esac
9862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9863 $as_echo "$ac_try_echo") >&5
9864 (eval "$ac_link") 2>&5
9865 ac_status=$?
9866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873 $as_echo "$ac_try_echo") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_func_memcmp_working=yes
9879 else
9880 $as_echo "$as_me: program exited with status $ac_status" >&5
9881 $as_echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ( exit $ac_status )
9885 ac_cv_func_memcmp_working=no
9886 fi
9887 rm -rf conftest.dSYM
9888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9889 fi
9890
9891
9892 fi
9893 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9894 $as_echo "$ac_cv_func_memcmp_working" >&6; }
9895 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9896 *" memcmp.$ac_objext "* ) ;;
9897 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9898 ;;
9899 esac
9900
9901
9902
9903
9904 for ac_header in stdlib.h unistd.h
9905 do
9906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9909 $as_echo_n "checking for $ac_header... " >&6; }
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911 $as_echo_n "(cached) " >&6
9912 fi
9913 ac_res=`eval 'as_val=${'$as_ac_Header'}
9914 $as_echo "$as_val"'`
9915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9916 $as_echo "$ac_res" >&6; }
9917 else
9918 # Is the header compilable?
9919 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9920 $as_echo_n "checking $ac_header usability... " >&6; }
9921 cat >conftest.$ac_ext <<_ACEOF
9922 /* confdefs.h. */
9923 _ACEOF
9924 cat confdefs.h >>conftest.$ac_ext
9925 cat >>conftest.$ac_ext <<_ACEOF
9926 /* end confdefs.h. */
9927 $ac_includes_default
9928 #include <$ac_header>
9929 _ACEOF
9930 rm -f conftest.$ac_objext
9931 if { (ac_try="$ac_compile"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9937 $as_echo "$ac_try_echo") >&5
9938 (eval "$ac_compile") 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest.$ac_objext; then
9948 ac_header_compiler=yes
9949 else
9950 $as_echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 ac_header_compiler=no
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9958 $as_echo "$ac_header_compiler" >&6; }
9959
9960 # Is the header present?
9961 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9962 $as_echo_n "checking $ac_header presence... " >&6; }
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 #include <$ac_header>
9970 _ACEOF
9971 if { (ac_try="$ac_cpp conftest.$ac_ext"
9972 case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9977 $as_echo "$ac_try_echo") >&5
9978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } >/dev/null && {
9985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 }; then
9988 ac_header_preproc=yes
9989 else
9990 $as_echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_header_preproc=no
9994 fi
9995
9996 rm -f conftest.err conftest.$ac_ext
9997 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9998 $as_echo "$ac_header_preproc" >&6; }
9999
10000 # So? What about this header?
10001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10002 yes:no: )
10003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10004 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10007 ac_header_preproc=yes
10008 ;;
10009 no:yes:* )
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10011 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10013 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10015 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10017 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10019 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10021 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10022
10023 ;;
10024 esac
10025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10026 $as_echo_n "checking for $ac_header... " >&6; }
10027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10028 $as_echo_n "(cached) " >&6
10029 else
10030 eval "$as_ac_Header=\$ac_header_preproc"
10031 fi
10032 ac_res=`eval 'as_val=${'$as_ac_Header'}
10033 $as_echo "$as_val"'`
10034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10035 $as_echo "$ac_res" >&6; }
10036
10037 fi
10038 as_val=`eval 'as_val=${'$as_ac_Header'}
10039 $as_echo "$as_val"'`
10040 if test "x$as_val" = x""yes; then
10041 cat >>confdefs.h <<_ACEOF
10042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10043 _ACEOF
10044
10045 fi
10046
10047 done
10048
10049
10050 for ac_func in getpagesize
10051 do
10052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10054 $as_echo_n "checking for $ac_func... " >&6; }
10055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10056 $as_echo_n "(cached) " >&6
10057 else
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10066 #define $ac_func innocuous_$ac_func
10067
10068 /* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func (); below.
10070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071 <limits.h> exists even on freestanding compilers. */
10072
10073 #ifdef __STDC__
10074 # include <limits.h>
10075 #else
10076 # include <assert.h>
10077 #endif
10078
10079 #undef $ac_func
10080
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char $ac_func ();
10088 /* The GNU C library defines this for functions which it implements
10089 to always fail with ENOSYS. Some functions are actually named
10090 something starting with __ and the normal name is an alias. */
10091 #if defined __stub_$ac_func || defined __stub___$ac_func
10092 choke me
10093 #endif
10094
10095 int
10096 main ()
10097 {
10098 return $ac_func ();
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10110 $as_echo "$ac_try_echo") >&5
10111 (eval "$ac_link") 2>conftest.er1
10112 ac_status=$?
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
10116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
10120 } && test -s conftest$ac_exeext && {
10121 test "$cross_compiling" = yes ||
10122 $as_test_x conftest$ac_exeext
10123 }; then
10124 eval "$as_ac_var=yes"
10125 else
10126 $as_echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 eval "$as_ac_var=no"
10130 fi
10131
10132 rm -rf conftest.dSYM
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 ac_res=`eval 'as_val=${'$as_ac_var'}
10137 $as_echo "$as_val"'`
10138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10139 $as_echo "$ac_res" >&6; }
10140 as_val=`eval 'as_val=${'$as_ac_var'}
10141 $as_echo "$as_val"'`
10142 if test "x$as_val" = x""yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10145 _ACEOF
10146
10147 fi
10148 done
10149
10150 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10151 $as_echo_n "checking for working mmap... " >&6; }
10152 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10153 $as_echo_n "(cached) " >&6
10154 else
10155 if test "$cross_compiling" = yes; then
10156 ac_cv_func_mmap_fixed_mapped=no
10157 else
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 $ac_includes_default
10165 /* malloc might have been renamed as rpl_malloc. */
10166 #undef malloc
10167
10168 /* Thanks to Mike Haertel and Jim Avera for this test.
10169 Here is a matrix of mmap possibilities:
10170 mmap private not fixed
10171 mmap private fixed at somewhere currently unmapped
10172 mmap private fixed at somewhere already mapped
10173 mmap shared not fixed
10174 mmap shared fixed at somewhere currently unmapped
10175 mmap shared fixed at somewhere already mapped
10176 For private mappings, we should verify that changes cannot be read()
10177 back from the file, nor mmap's back from the file at a different
10178 address. (There have been systems where private was not correctly
10179 implemented like the infamous i386 svr4.0, and systems where the
10180 VM page cache was not coherent with the file system buffer cache
10181 like early versions of FreeBSD and possibly contemporary NetBSD.)
10182 For shared mappings, we should conversely verify that changes get
10183 propagated back to all the places they're supposed to be.
10184
10185 Grep wants private fixed already mapped.
10186 The main things grep needs to know about mmap are:
10187 * does it exist and is it safe to write into the mmap'd area
10188 * how to use it (BSD variants) */
10189
10190 #include <fcntl.h>
10191 #include <sys/mman.h>
10192
10193 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10194 char *malloc ();
10195 #endif
10196
10197 /* This mess was copied from the GNU getpagesize.h. */
10198 #ifndef HAVE_GETPAGESIZE
10199 /* Assume that all systems that can run configure have sys/param.h. */
10200 # ifndef HAVE_SYS_PARAM_H
10201 # define HAVE_SYS_PARAM_H 1
10202 # endif
10203
10204 # ifdef _SC_PAGESIZE
10205 # define getpagesize() sysconf(_SC_PAGESIZE)
10206 # else /* no _SC_PAGESIZE */
10207 # ifdef HAVE_SYS_PARAM_H
10208 # include <sys/param.h>
10209 # ifdef EXEC_PAGESIZE
10210 # define getpagesize() EXEC_PAGESIZE
10211 # else /* no EXEC_PAGESIZE */
10212 # ifdef NBPG
10213 # define getpagesize() NBPG * CLSIZE
10214 # ifndef CLSIZE
10215 # define CLSIZE 1
10216 # endif /* no CLSIZE */
10217 # else /* no NBPG */
10218 # ifdef NBPC
10219 # define getpagesize() NBPC
10220 # else /* no NBPC */
10221 # ifdef PAGESIZE
10222 # define getpagesize() PAGESIZE
10223 # endif /* PAGESIZE */
10224 # endif /* no NBPC */
10225 # endif /* no NBPG */
10226 # endif /* no EXEC_PAGESIZE */
10227 # else /* no HAVE_SYS_PARAM_H */
10228 # define getpagesize() 8192 /* punt totally */
10229 # endif /* no HAVE_SYS_PARAM_H */
10230 # endif /* no _SC_PAGESIZE */
10231
10232 #endif /* no HAVE_GETPAGESIZE */
10233
10234 int
10235 main ()
10236 {
10237 char *data, *data2, *data3;
10238 int i, pagesize;
10239 int fd;
10240
10241 pagesize = getpagesize ();
10242
10243 /* First, make a file with some known garbage in it. */
10244 data = (char *) malloc (pagesize);
10245 if (!data)
10246 return 1;
10247 for (i = 0; i < pagesize; ++i)
10248 *(data + i) = rand ();
10249 umask (0);
10250 fd = creat ("conftest.mmap", 0600);
10251 if (fd < 0)
10252 return 1;
10253 if (write (fd, data, pagesize) != pagesize)
10254 return 1;
10255 close (fd);
10256
10257 /* Next, try to mmap the file at a fixed address which already has
10258 something else allocated at it. If we can, also make sure that
10259 we see the same garbage. */
10260 fd = open ("conftest.mmap", O_RDWR);
10261 if (fd < 0)
10262 return 1;
10263 data2 = (char *) malloc (2 * pagesize);
10264 if (!data2)
10265 return 1;
10266 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10267 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10268 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10269 return 1;
10270 for (i = 0; i < pagesize; ++i)
10271 if (*(data + i) != *(data2 + i))
10272 return 1;
10273
10274 /* Finally, make sure that changes to the mapped area do not
10275 percolate back to the file as seen by read(). (This is a bug on
10276 some variants of i386 svr4.0.) */
10277 for (i = 0; i < pagesize; ++i)
10278 *(data2 + i) = *(data2 + i) + 1;
10279 data3 = (char *) malloc (pagesize);
10280 if (!data3)
10281 return 1;
10282 if (read (fd, data3, pagesize) != pagesize)
10283 return 1;
10284 for (i = 0; i < pagesize; ++i)
10285 if (*(data + i) != *(data3 + i))
10286 return 1;
10287 close (fd);
10288 return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299 (eval "$ac_link") 2>&5
10300 ac_status=$?
10301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10308 $as_echo "$ac_try_echo") >&5
10309 (eval "$ac_try") 2>&5
10310 ac_status=$?
10311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_func_mmap_fixed_mapped=yes
10314 else
10315 $as_echo "$as_me: program exited with status $ac_status" >&5
10316 $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ( exit $ac_status )
10320 ac_cv_func_mmap_fixed_mapped=no
10321 fi
10322 rm -rf conftest.dSYM
10323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10324 fi
10325
10326
10327 fi
10328 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10329 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10330 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10331
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_MMAP 1
10334 _ACEOF
10335
10336 fi
10337 rm -f conftest.mmap
10338
10339
10340 for ac_header in stdlib.h
10341 do
10342 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10345 $as_echo_n "checking for $ac_header... " >&6; }
10346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 $as_echo_n "(cached) " >&6
10348 fi
10349 ac_res=`eval 'as_val=${'$as_ac_Header'}
10350 $as_echo "$as_val"'`
10351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10352 $as_echo "$ac_res" >&6; }
10353 else
10354 # Is the header compilable?
10355 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10356 $as_echo_n "checking $ac_header usability... " >&6; }
10357 cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h. */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10363 $ac_includes_default
10364 #include <$ac_header>
10365 _ACEOF
10366 rm -f conftest.$ac_objext
10367 if { (ac_try="$ac_compile"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371 esac
10372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373 $as_echo "$ac_try_echo") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
10384 ac_header_compiler=yes
10385 else
10386 $as_echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 ac_header_compiler=no
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10394 $as_echo "$ac_header_compiler" >&6; }
10395
10396 # Is the header present?
10397 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10398 $as_echo_n "checking $ac_header presence... " >&6; }
10399 cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h. */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10405 #include <$ac_header>
10406 _ACEOF
10407 if { (ac_try="$ac_cpp conftest.$ac_ext"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411 esac
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } >/dev/null && {
10421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 }; then
10424 ac_header_preproc=yes
10425 else
10426 $as_echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 ac_header_preproc=no
10430 fi
10431
10432 rm -f conftest.err conftest.$ac_ext
10433 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10434 $as_echo "$ac_header_preproc" >&6; }
10435
10436 # So? What about this header?
10437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10438 yes:no: )
10439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10440 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10443 ac_header_preproc=yes
10444 ;;
10445 no:yes:* )
10446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10447 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10449 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10451 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10453 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10455 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10457 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10458
10459 ;;
10460 esac
10461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10462 $as_echo_n "checking for $ac_header... " >&6; }
10463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10464 $as_echo_n "(cached) " >&6
10465 else
10466 eval "$as_ac_Header=\$ac_header_preproc"
10467 fi
10468 ac_res=`eval 'as_val=${'$as_ac_Header'}
10469 $as_echo "$as_val"'`
10470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10471 $as_echo "$ac_res" >&6; }
10472
10473 fi
10474 as_val=`eval 'as_val=${'$as_ac_Header'}
10475 $as_echo "$as_val"'`
10476 if test "x$as_val" = x""yes; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10479 _ACEOF
10480
10481 fi
10482
10483 done
10484
10485 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10486 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10487 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10488 $as_echo_n "(cached) " >&6
10489 else
10490 if test "$cross_compiling" = yes; then
10491 ac_cv_func_realloc_0_nonnull=no
10492 else
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10499 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10500 # include <stdlib.h>
10501 #else
10502 char *realloc ();
10503 #endif
10504
10505 int
10506 main ()
10507 {
10508 return ! realloc (0, 0);
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518 esac
10519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10520 $as_echo "$ac_try_echo") >&5
10521 (eval "$ac_link") 2>&5
10522 ac_status=$?
10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528 esac
10529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10530 $as_echo "$ac_try_echo") >&5
10531 (eval "$ac_try") 2>&5
10532 ac_status=$?
10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_cv_func_realloc_0_nonnull=yes
10536 else
10537 $as_echo "$as_me: program exited with status $ac_status" >&5
10538 $as_echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 ( exit $ac_status )
10542 ac_cv_func_realloc_0_nonnull=no
10543 fi
10544 rm -rf conftest.dSYM
10545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10546 fi
10547
10548
10549 fi
10550 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10551 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10552 if test $ac_cv_func_realloc_0_nonnull = yes; then
10553
10554 cat >>confdefs.h <<\_ACEOF
10555 #define HAVE_REALLOC 1
10556 _ACEOF
10557
10558 else
10559 cat >>confdefs.h <<\_ACEOF
10560 #define HAVE_REALLOC 0
10561 _ACEOF
10562
10563 case " $LIBOBJS " in
10564 *" realloc.$ac_objext "* ) ;;
10565 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10566 ;;
10567 esac
10568
10569
10570 cat >>confdefs.h <<\_ACEOF
10571 #define realloc rpl_realloc
10572 _ACEOF
10573
10574 fi
10575
10576
10577
10578 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10579 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10580 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
10581 $as_echo_n "(cached) " >&6
10582 else
10583 if test "$cross_compiling" = yes; then
10584 ac_cv_func_stat_empty_string_bug=yes
10585 else
10586 cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h. */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10593 int
10594 main ()
10595 {
10596 struct stat sbuf;
10597 return stat ("", &sbuf) == 0;
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609 $as_echo "$ac_try_echo") >&5
10610 (eval "$ac_link") 2>&5
10611 ac_status=$?
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10614 { (case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617 esac
10618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10619 $as_echo "$ac_try_echo") >&5
10620 (eval "$ac_try") 2>&5
10621 ac_status=$?
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624 ac_cv_func_stat_empty_string_bug=no
10625 else
10626 $as_echo "$as_me: program exited with status $ac_status" >&5
10627 $as_echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ( exit $ac_status )
10631 ac_cv_func_stat_empty_string_bug=yes
10632 fi
10633 rm -rf conftest.dSYM
10634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10635 fi
10636
10637
10638 fi
10639 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10640 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10641 if test $ac_cv_func_stat_empty_string_bug = yes; then
10642 case " $LIBOBJS " in
10643 *" stat.$ac_objext "* ) ;;
10644 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10645 ;;
10646 esac
10647
10648
10649 cat >>confdefs.h <<_ACEOF
10650 #define HAVE_STAT_EMPTY_STRING_BUG 1
10651 _ACEOF
10652
10653 fi
10654
10655 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10656 $as_echo_n "checking for working strtod... " >&6; }
10657 if test "${ac_cv_func_strtod+set}" = set; then
10658 $as_echo_n "(cached) " >&6
10659 else
10660 if test "$cross_compiling" = yes; then
10661 ac_cv_func_strtod=no
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669
10670 $ac_includes_default
10671 #ifndef strtod
10672 double strtod ();
10673 #endif
10674 int
10675 main()
10676 {
10677 {
10678 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10679 char *string = " +69";
10680 char *term;
10681 double value;
10682 value = strtod (string, &term);
10683 if (value != 69 || term != (string + 4))
10684 return 1;
10685 }
10686
10687 {
10688 /* Under Solaris 2.4, strtod returns the wrong value for the
10689 terminating character under some conditions. */
10690 char *string = "NaN";
10691 char *term;
10692 strtod (string, &term);
10693 if (term != string && *(term - 1) == 0)
10694 return 1;
10695 }
10696 return 0;
10697 }
10698
10699 _ACEOF
10700 rm -f conftest$ac_exeext
10701 if { (ac_try="$ac_link"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705 esac
10706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10707 $as_echo "$ac_try_echo") >&5
10708 (eval "$ac_link") 2>&5
10709 ac_status=$?
10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715 esac
10716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717 $as_echo "$ac_try_echo") >&5
10718 (eval "$ac_try") 2>&5
10719 ac_status=$?
10720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_func_strtod=yes
10723 else
10724 $as_echo "$as_me: program exited with status $ac_status" >&5
10725 $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ( exit $ac_status )
10729 ac_cv_func_strtod=no
10730 fi
10731 rm -rf conftest.dSYM
10732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10733 fi
10734
10735
10736 fi
10737 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10738 $as_echo "$ac_cv_func_strtod" >&6; }
10739 if test $ac_cv_func_strtod = no; then
10740 case " $LIBOBJS " in
10741 *" strtod.$ac_objext "* ) ;;
10742 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10743 ;;
10744 esac
10745
10746 { $as_echo "$as_me:$LINENO: checking for pow" >&5
10747 $as_echo_n "checking for pow... " >&6; }
10748 if test "${ac_cv_func_pow+set}" = set; then
10749 $as_echo_n "(cached) " >&6
10750 else
10751 cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h. */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759 #define pow innocuous_pow
10760
10761 /* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char pow (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
10765
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10771
10772 #undef pow
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char pow ();
10781 /* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784 #if defined __stub_pow || defined __stub___pow
10785 choke me
10786 #endif
10787
10788 int
10789 main ()
10790 {
10791 return pow ();
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10803 $as_echo "$ac_try_echo") >&5
10804 (eval "$ac_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest$ac_exeext && {
10814 test "$cross_compiling" = yes ||
10815 $as_test_x conftest$ac_exeext
10816 }; then
10817 ac_cv_func_pow=yes
10818 else
10819 $as_echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 ac_cv_func_pow=no
10823 fi
10824
10825 rm -rf conftest.dSYM
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10828 fi
10829 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10830 $as_echo "$ac_cv_func_pow" >&6; }
10831
10832 if test $ac_cv_func_pow = no; then
10833 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10834 $as_echo_n "checking for pow in -lm... " >&6; }
10835 if test "${ac_cv_lib_m_pow+set}" = set; then
10836 $as_echo_n "(cached) " >&6
10837 else
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-lm $LIBS"
10840 cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h. */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846
10847 /* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10850 #ifdef __cplusplus
10851 extern "C"
10852 #endif
10853 char pow ();
10854 int
10855 main ()
10856 {
10857 return pow ();
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (ac_try="$ac_link"
10864 case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867 esac
10868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10869 $as_echo "$ac_try_echo") >&5
10870 (eval "$ac_link") 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
10879 } && test -s conftest$ac_exeext && {
10880 test "$cross_compiling" = yes ||
10881 $as_test_x conftest$ac_exeext
10882 }; then
10883 ac_cv_lib_m_pow=yes
10884 else
10885 $as_echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_m_pow=no
10889 fi
10890
10891 rm -rf conftest.dSYM
10892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10893 conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10895 fi
10896 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10897 $as_echo "$ac_cv_lib_m_pow" >&6; }
10898 if test "x$ac_cv_lib_m_pow" = x""yes; then
10899 POW_LIB=-lm
10900 else
10901 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10902 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10903 fi
10904
10905 fi
10906
10907 fi
10908
10909
10910 for ac_func in vprintf
10911 do
10912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10914 $as_echo_n "checking for $ac_func... " >&6; }
10915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10916 $as_echo_n "(cached) " >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926 #define $ac_func innocuous_$ac_func
10927
10928 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
10932
10933 #ifdef __STDC__
10934 # include <limits.h>
10935 #else
10936 # include <assert.h>
10937 #endif
10938
10939 #undef $ac_func
10940
10941 /* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944 #ifdef __cplusplus
10945 extern "C"
10946 #endif
10947 char $ac_func ();
10948 /* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951 #if defined __stub_$ac_func || defined __stub___$ac_func
10952 choke me
10953 #endif
10954
10955 int
10956 main ()
10957 {
10958 return $ac_func ();
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext conftest$ac_exeext
10964 if { (ac_try="$ac_link"
10965 case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968 esac
10969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970 $as_echo "$ac_try_echo") >&5
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest$ac_exeext && {
10981 test "$cross_compiling" = yes ||
10982 $as_test_x conftest$ac_exeext
10983 }; then
10984 eval "$as_ac_var=yes"
10985 else
10986 $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 eval "$as_ac_var=no"
10990 fi
10991
10992 rm -rf conftest.dSYM
10993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10994 conftest$ac_exeext conftest.$ac_ext
10995 fi
10996 ac_res=`eval 'as_val=${'$as_ac_var'}
10997 $as_echo "$as_val"'`
10998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11000 as_val=`eval 'as_val=${'$as_ac_var'}
11001 $as_echo "$as_val"'`
11002 if test "x$as_val" = x""yes; then
11003 cat >>confdefs.h <<_ACEOF
11004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005 _ACEOF
11006
11007 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11008 $as_echo_n "checking for _doprnt... " >&6; }
11009 if test "${ac_cv_func__doprnt+set}" = set; then
11010 $as_echo_n "(cached) " >&6
11011 else
11012 cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11020 #define _doprnt innocuous__doprnt
11021
11022 /* System header to define __stub macros and hopefully few prototypes,
11023 which can conflict with char _doprnt (); below.
11024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11025 <limits.h> exists even on freestanding compilers. */
11026
11027 #ifdef __STDC__
11028 # include <limits.h>
11029 #else
11030 # include <assert.h>
11031 #endif
11032
11033 #undef _doprnt
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char _doprnt ();
11042 /* The GNU C library defines this for functions which it implements
11043 to always fail with ENOSYS. Some functions are actually named
11044 something starting with __ and the normal name is an alias. */
11045 #if defined __stub__doprnt || defined __stub____doprnt
11046 choke me
11047 #endif
11048
11049 int
11050 main ()
11051 {
11052 return _doprnt ();
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 rm -f conftest.$ac_objext conftest$ac_exeext
11058 if { (ac_try="$ac_link"
11059 case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062 esac
11063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11064 $as_echo "$ac_try_echo") >&5
11065 (eval "$ac_link") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && {
11072 test -z "$ac_c_werror_flag" ||
11073 test ! -s conftest.err
11074 } && test -s conftest$ac_exeext && {
11075 test "$cross_compiling" = yes ||
11076 $as_test_x conftest$ac_exeext
11077 }; then
11078 ac_cv_func__doprnt=yes
11079 else
11080 $as_echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 ac_cv_func__doprnt=no
11084 fi
11085
11086 rm -rf conftest.dSYM
11087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088 conftest$ac_exeext conftest.$ac_ext
11089 fi
11090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11091 $as_echo "$ac_cv_func__doprnt" >&6; }
11092 if test "x$ac_cv_func__doprnt" = x""yes; then
11093
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_DOPRNT 1
11096 _ACEOF
11097
11098 fi
11099
11100 fi
11101 done
11102
11103
11104
11105 ################################################################################
11106 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11107 $as_echo_n "checking whether to use static linking... " >&6; }
11108 # Check whether --enable-static_link was given.
11109 if test "${enable_static_link+set}" = set; then
11110 enableval=$enable_static_link; STATIC_LINK=$enableval
11111 else
11112 STATIC_LINK=no
11113 fi
11114
11115 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11116 $as_echo "$STATIC_LINK" >&6; }
11117
11118 ################################################################################
11119
11120
11121 ################################################################################
11122 { $as_echo "$as_me:$LINENO: checking file owner" >&5
11123 $as_echo_n "checking file owner... " >&6; }
11124
11125 # Check whether --with-user was given.
11126 if test "${with_user+set}" = set; then
11127 withval=$with_user; OWNER=$withval
11128 fi
11129
11130 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11131 $as_echo "$OWNER" >&6; }
11132
11133 if test x$OWNER != x; then
11134 INSTALL="$INSTALL -o $OWNER"
11135 fi
11136
11137 ################################################################################
11138 { $as_echo "$as_me:$LINENO: checking group owner" >&5
11139 $as_echo_n "checking group owner... " >&6; }
11140
11141 # Check whether --with-group was given.
11142 if test "${with_group+set}" = set; then
11143 withval=$with_group; GROUP=$withval
11144 fi
11145
11146 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11147 $as_echo "$GROUP" >&6; }
11148
11149 if test x$GROUP != x; then
11150 INSTALL="$INSTALL -g $GROUP"
11151 fi
11152
11153 ################################################################################
11154 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
11155 $as_echo_n "checking device node uid... " >&6; }
11156
11157
11158 # Check whether --with-device-uid was given.
11159 if test "${with_device_uid+set}" = set; then
11160 withval=$with_device_uid; DM_DEVICE_UID=$withval
11161 else
11162 DM_DEVICE_UID=0
11163 fi
11164
11165 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11166 $as_echo "$DM_DEVICE_UID" >&6; }
11167
11168 ################################################################################
11169 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
11170 $as_echo_n "checking device node gid... " >&6; }
11171
11172
11173 # Check whether --with-device-gid was given.
11174 if test "${with_device_gid+set}" = set; then
11175 withval=$with_device_gid; DM_DEVICE_GID=$withval
11176 else
11177 DM_DEVICE_GID=0
11178 fi
11179
11180 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11181 $as_echo "$DM_DEVICE_GID" >&6; }
11182
11183 ################################################################################
11184 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
11185 $as_echo_n "checking device node mode... " >&6; }
11186
11187
11188 # Check whether --with-device-mode was given.
11189 if test "${with_device_mode+set}" = set; then
11190 withval=$with_device_mode; DM_DEVICE_MODE=$withval
11191 else
11192 DM_DEVICE_MODE=0600
11193 fi
11194
11195 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11196 $as_echo "$DM_DEVICE_MODE" >&6; }
11197
11198 ################################################################################
11199 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11200 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
11201 # Check whether --enable-lvm1_fallback was given.
11202 if test "${enable_lvm1_fallback+set}" = set; then
11203 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11204 else
11205 LVM1_FALLBACK=no
11206 fi
11207
11208 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11209 $as_echo "$LVM1_FALLBACK" >&6; }
11210
11211 if test x$LVM1_FALLBACK = xyes; then
11212
11213 cat >>confdefs.h <<\_ACEOF
11214 #define LVM1_FALLBACK 1
11215 _ACEOF
11216
11217 fi
11218
11219 ################################################################################
11220 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11221 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
11222
11223 # Check whether --with-lvm1 was given.
11224 if test "${with_lvm1+set}" = set; then
11225 withval=$with_lvm1; LVM1=$withval
11226 else
11227 LVM1=internal
11228 fi
11229
11230 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11231 $as_echo "$LVM1" >&6; }
11232
11233 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
11234 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
11235 " >&5
11236 $as_echo "$as_me: error: --with-lvm1 parameter invalid
11237 " >&2;}
11238 { (exit 1); exit 1; }; }
11239 fi;
11240
11241 if test x$LVM1 = xinternal; then
11242
11243 cat >>confdefs.h <<\_ACEOF
11244 #define LVM1_INTERNAL 1
11245 _ACEOF
11246
11247 fi
11248
11249 ################################################################################
11250 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11251 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
11252
11253 # Check whether --with-pool was given.
11254 if test "${with_pool+set}" = set; then
11255 withval=$with_pool; POOL=$withval
11256 else
11257 POOL=internal
11258 fi
11259
11260 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
11261 $as_echo "$POOL" >&6; }
11262
11263 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
11264 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
11265 " >&5
11266 $as_echo "$as_me: error: --with-pool parameter invalid
11267 " >&2;}
11268 { (exit 1); exit 1; }; }
11269 fi;
11270
11271 if test x$POOL = xinternal; then
11272
11273 cat >>confdefs.h <<\_ACEOF
11274 #define POOL_INTERNAL 1
11275 _ACEOF
11276
11277 fi
11278
11279 ################################################################################
11280 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11281 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
11282
11283 # Check whether --with-cluster was given.
11284 if test "${with_cluster+set}" = set; then
11285 withval=$with_cluster; CLUSTER=$withval
11286 fi
11287
11288 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11289 $as_echo "$CLUSTER" >&6; }
11290
11291 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
11292 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
11293 " >&5
11294 $as_echo "$as_me: error: --with-cluster parameter invalid
11295 " >&2;}
11296 { (exit 1); exit 1; }; }
11297 fi;
11298
11299 if test x$CLUSTER = xinternal; then
11300
11301 cat >>confdefs.h <<\_ACEOF
11302 #define CLUSTER_LOCKING_INTERNAL 1
11303 _ACEOF
11304
11305 fi
11306
11307 ################################################################################
11308 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11309 $as_echo_n "checking whether to include snapshots... " >&6; }
11310
11311 # Check whether --with-snapshots was given.
11312 if test "${with_snapshots+set}" = set; then
11313 withval=$with_snapshots; SNAPSHOTS=$withval
11314 else
11315 SNAPSHOTS=internal
11316 fi
11317
11318 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11319 $as_echo "$SNAPSHOTS" >&6; }
11320
11321 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
11322 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
11323 " >&5
11324 $as_echo "$as_me: error: --with-snapshots parameter invalid
11325 " >&2;}
11326 { (exit 1); exit 1; }; }
11327 fi;
11328
11329 if test x$SNAPSHOTS = xinternal; then
11330
11331 cat >>confdefs.h <<\_ACEOF
11332 #define SNAPSHOT_INTERNAL 1
11333 _ACEOF
11334
11335 fi
11336
11337 ################################################################################
11338 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11339 $as_echo_n "checking whether to include mirrors... " >&6; }
11340
11341 # Check whether --with-mirrors was given.
11342 if test "${with_mirrors+set}" = set; then
11343 withval=$with_mirrors; MIRRORS=$withval
11344 else
11345 MIRRORS=internal
11346 fi
11347
11348 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11349 $as_echo "$MIRRORS" >&6; }
11350
11351 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
11352 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
11353 " >&5
11354 $as_echo "$as_me: error: --with-mirrors parameter invalid
11355 " >&2;}
11356 { (exit 1); exit 1; }; }
11357 fi;
11358
11359 if test x$MIRRORS = xinternal; then
11360
11361 cat >>confdefs.h <<\_ACEOF
11362 #define MIRRORED_INTERNAL 1
11363 _ACEOF
11364
11365 fi
11366
11367 ################################################################################
11368 { $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11369 $as_echo_n "checking whether to include replicators... " >&6; }
11370
11371 # Check whether --with-replicators was given.
11372 if test "${with_replicators+set}" = set; then
11373 withval=$with_replicators; REPLICATORS=$withval
11374 else
11375 REPLICATORS=none
11376 fi
11377
11378 { $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11379 $as_echo "$REPLICATORS" >&6; }
11380
11381 case "$REPLICATORS" in
11382 none|shared) ;;
11383 internal)
11384 cat >>confdefs.h <<\_ACEOF
11385 #define REPLICATOR_INTERNAL 1
11386 _ACEOF
11387 ;;
11388 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11389 $as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11390 { (exit 1); exit 1; }; } ;;
11391 esac
11392
11393 ################################################################################
11394 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11395 $as_echo_n "checking whether to enable readline... " >&6; }
11396 # Check whether --enable-readline was given.
11397 if test "${enable_readline+set}" = set; then
11398 enableval=$enable_readline; READLINE=$enableval
11399 else
11400 READLINE=maybe
11401 fi
11402
11403 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11404 $as_echo "$READLINE" >&6; }
11405
11406 ################################################################################
11407 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11408 $as_echo_n "checking whether to enable realtime support... " >&6; }
11409 # Check whether --enable-realtime was given.
11410 if test "${enable_realtime+set}" = set; then
11411 enableval=$enable_realtime; REALTIME=$enableval
11412 fi
11413
11414 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11415 $as_echo "$REALTIME" >&6; }
11416
11417 ################################################################################
11418 pkg_config_init() {
11419
11420
11421 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11422 if test -n "$ac_tool_prefix"; then
11423 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11424 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11428 $as_echo_n "(cached) " >&6
11429 else
11430 case $PKG_CONFIG in
11431 [\\/]* | ?:[\\/]*)
11432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11433 ;;
11434 *)
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446 done
11447 done
11448 IFS=$as_save_IFS
11449
11450 ;;
11451 esac
11452 fi
11453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11454 if test -n "$PKG_CONFIG"; then
11455 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11456 $as_echo "$PKG_CONFIG" >&6; }
11457 else
11458 { $as_echo "$as_me:$LINENO: result: no" >&5
11459 $as_echo "no" >&6; }
11460 fi
11461
11462
11463 fi
11464 if test -z "$ac_cv_path_PKG_CONFIG"; then
11465 ac_pt_PKG_CONFIG=$PKG_CONFIG
11466 # Extract the first word of "pkg-config", so it can be a program name with args.
11467 set dummy pkg-config; ac_word=$2
11468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11471 $as_echo_n "(cached) " >&6
11472 else
11473 case $ac_pt_PKG_CONFIG in
11474 [\\/]* | ?:[\\/]*)
11475 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11476 ;;
11477 *)
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489 done
11490 done
11491 IFS=$as_save_IFS
11492
11493 ;;
11494 esac
11495 fi
11496 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11497 if test -n "$ac_pt_PKG_CONFIG"; then
11498 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11499 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11500 else
11501 { $as_echo "$as_me:$LINENO: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505 if test "x$ac_pt_PKG_CONFIG" = x; then
11506 PKG_CONFIG=""
11507 else
11508 case $cross_compiling:$ac_tool_warned in
11509 yes:)
11510 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512 ac_tool_warned=yes ;;
11513 esac
11514 PKG_CONFIG=$ac_pt_PKG_CONFIG
11515 fi
11516 else
11517 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11518 fi
11519
11520 fi
11521 if test -n "$PKG_CONFIG"; then
11522 _pkg_min_version=0.9.0
11523 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11524 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11525 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11526 { $as_echo "$as_me:$LINENO: result: yes" >&5
11527 $as_echo "yes" >&6; }
11528 else
11529 { $as_echo "$as_me:$LINENO: result: no" >&5
11530 $as_echo "no" >&6; }
11531 PKG_CONFIG=""
11532 fi
11533
11534 fi
11535
11536 pkg_failed=no
11537 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11538 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
11539
11540 if test -n "$PKGCONFIGINIT_CFLAGS"; then
11541 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
11542 elif test -n "$PKG_CONFIG"; then
11543 if test -n "$PKG_CONFIG" && \
11544 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11545 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11546 ac_status=$?
11547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; then
11549 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
11550 else
11551 pkg_failed=yes
11552 fi
11553 else
11554 pkg_failed=untried
11555 fi
11556 if test -n "$PKGCONFIGINIT_LIBS"; then
11557 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
11558 elif test -n "$PKG_CONFIG"; then
11559 if test -n "$PKG_CONFIG" && \
11560 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11561 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
11562 ac_status=$?
11563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; then
11565 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
11566 else
11567 pkg_failed=yes
11568 fi
11569 else
11570 pkg_failed=untried
11571 fi
11572
11573
11574
11575 if test $pkg_failed = yes; then
11576
11577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11578 _pkg_short_errors_supported=yes
11579 else
11580 _pkg_short_errors_supported=no
11581 fi
11582 if test $_pkg_short_errors_supported = yes; then
11583 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
11584 else
11585 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
11586 fi
11587 # Put the nasty error message in config.log where it belongs
11588 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
11589
11590 { $as_echo "$as_me:$LINENO: result: no" >&5
11591 $as_echo "no" >&6; }
11592 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11593 $as_echo "pkg-config initialized" >&6; }
11594 elif test $pkg_failed = untried; then
11595 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11596 $as_echo "pkg-config initialized" >&6; }
11597 else
11598 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11599 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
11600 { $as_echo "$as_me:$LINENO: result: yes" >&5
11601 $as_echo "yes" >&6; }
11602 :
11603 fi
11604 PKGCONFIG_INIT=1
11605 }
11606
11607 ################################################################################
11608 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11609 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11610
11611 # Check whether --with-clvmd was given.
11612 if test "${with_clvmd+set}" = set; then
11613 withval=$with_clvmd; CLVMD=$withval
11614 else
11615 CLVMD=none
11616 fi
11617
11618 if test x$CLVMD = xyes; then
11619 CLVMD=all
11620 fi
11621 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11622 $as_echo "$CLVMD" >&6; }
11623
11624 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11625 CLUSTER=internal
11626 fi
11627
11628 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11629 pkg_config_init
11630 fi
11631
11632
11633 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11634 BUILDGULM=yes
11635 fi
11636 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11637 BUILDCOROSYNC=yes
11638 fi
11639 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11640 BUILDOPENAIS=yes
11641 fi
11642 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11643 BUILDCMAN=yes
11644 fi
11645
11646 if test x$BUILDGULM = xyes; then
11647 if test x$BUILDCOROSYNC = xyes || \
11648 test x$BUILDOPENAIS = xyes; then
11649 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11650 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11651 { (exit 1); exit 1; }; }
11652 fi
11653 fi
11654
11655 soft_bailout() {
11656 NOTFOUND=1
11657 }
11658
11659 hard_bailout() {
11660 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11661 $as_echo "$as_me: error: bailing out" >&2;}
11662 { (exit 1); exit 1; }; }
11663 }
11664
11665 if test x$CLVMD = xall; then
11666 bailout=soft_bailout
11667 BUILDGULM=yes
11668 BUILDCMAN=yes
11669 BUILDCOROSYNC=yes
11670 BUILDOPENAIS=yes
11671 else
11672 bailout=hard_bailout
11673 fi
11674
11675 check_lib_no_libs() {
11676 lib_no_libs_arg1=$1
11677 shift
11678 lib_no_libs_arg2=$1
11679 shift
11680 lib_no_libs_args=$@
11681
11682 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11683 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11684 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11685 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11686 $as_echo_n "(cached) " >&6
11687 else
11688 ac_check_lib_save_LIBS=$LIBS
11689 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h. */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696
11697 /* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 char $lib_no_libs_arg2 ();
11704 int
11705 main ()
11706 {
11707 return $lib_no_libs_arg2 ();
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (ac_try="$ac_link"
11714 case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717 esac
11718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719 $as_echo "$ac_try_echo") >&5
11720 (eval "$ac_link") 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest$ac_exeext && {
11730 test "$cross_compiling" = yes ||
11731 $as_test_x conftest$ac_exeext
11732 }; then
11733 eval "$as_ac_Lib=yes"
11734 else
11735 $as_echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 eval "$as_ac_Lib=no"
11739 fi
11740
11741 rm -rf conftest.dSYM
11742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 ac_res=`eval 'as_val=${'$as_ac_Lib'}
11747 $as_echo "$as_val"'`
11748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11749 $as_echo "$ac_res" >&6; }
11750 as_val=`eval 'as_val=${'$as_ac_Lib'}
11751 $as_echo "$as_val"'`
11752 if test "x$as_val" = x""yes; then
11753 cat >>confdefs.h <<_ACEOF
11754 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11755 _ACEOF
11756
11757 LIBS="-l$lib_no_libs_arg1 $LIBS"
11758
11759 else
11760 $bailout
11761 fi
11762
11763 LIBS=$ac_check_lib_save_LIBS
11764 }
11765
11766 if test x$BUILDGULM = xyes; then
11767
11768 pkg_failed=no
11769 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
11770 $as_echo_n "checking for CCS... " >&6; }
11771
11772 if test -n "$CCS_CFLAGS"; then
11773 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
11774 elif test -n "$PKG_CONFIG"; then
11775 if test -n "$PKG_CONFIG" && \
11776 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11777 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11778 ac_status=$?
11779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; then
11781 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
11782 else
11783 pkg_failed=yes
11784 fi
11785 else
11786 pkg_failed=untried
11787 fi
11788 if test -n "$CCS_LIBS"; then
11789 pkg_cv_CCS_LIBS="$CCS_LIBS"
11790 elif test -n "$PKG_CONFIG"; then
11791 if test -n "$PKG_CONFIG" && \
11792 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11793 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
11794 ac_status=$?
11795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; then
11797 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
11798 else
11799 pkg_failed=yes
11800 fi
11801 else
11802 pkg_failed=untried
11803 fi
11804
11805
11806
11807 if test $pkg_failed = yes; then
11808
11809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11810 _pkg_short_errors_supported=yes
11811 else
11812 _pkg_short_errors_supported=no
11813 fi
11814 if test $_pkg_short_errors_supported = yes; then
11815 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
11816 else
11817 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
11818 fi
11819 # Put the nasty error message in config.log where it belongs
11820 echo "$CCS_PKG_ERRORS" >&5
11821
11822 { $as_echo "$as_me:$LINENO: result: no" >&5
11823 $as_echo "no" >&6; }
11824 NOTFOUND=0
11825
11826 for ac_header in ccs.h
11827 do
11828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11831 $as_echo_n "checking for $ac_header... " >&6; }
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 $as_echo_n "(cached) " >&6
11834 fi
11835 ac_res=`eval 'as_val=${'$as_ac_Header'}
11836 $as_echo "$as_val"'`
11837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838 $as_echo "$ac_res" >&6; }
11839 else
11840 # Is the header compilable?
11841 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842 $as_echo_n "checking $ac_header usability... " >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h. */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 #include <$ac_header>
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (ac_try="$ac_compile"
11854 case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11857 esac
11858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11859 $as_echo "$ac_try_echo") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && {
11867 test -z "$ac_c_werror_flag" ||
11868 test ! -s conftest.err
11869 } && test -s conftest.$ac_objext; then
11870 ac_header_compiler=yes
11871 else
11872 $as_echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 ac_header_compiler=no
11876 fi
11877
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11880 $as_echo "$ac_header_compiler" >&6; }
11881
11882 # Is the header present?
11883 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11884 $as_echo_n "checking $ac_header presence... " >&6; }
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 #include <$ac_header>
11892 _ACEOF
11893 if { (ac_try="$ac_cpp conftest.$ac_ext"
11894 case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897 esac
11898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899 $as_echo "$ac_try_echo") >&5
11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null && {
11907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11908 test ! -s conftest.err
11909 }; then
11910 ac_header_preproc=yes
11911 else
11912 $as_echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_header_preproc=no
11916 fi
11917
11918 rm -f conftest.err conftest.$ac_ext
11919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920 $as_echo "$ac_header_preproc" >&6; }
11921
11922 # So? What about this header?
11923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11924 yes:no: )
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11929 ac_header_preproc=yes
11930 ;;
11931 no:yes:* )
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11937 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11939 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11944
11945 ;;
11946 esac
11947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11948 $as_echo_n "checking for $ac_header... " >&6; }
11949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 $as_echo_n "(cached) " >&6
11951 else
11952 eval "$as_ac_Header=\$ac_header_preproc"
11953 fi
11954 ac_res=`eval 'as_val=${'$as_ac_Header'}
11955 $as_echo "$as_val"'`
11956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11957 $as_echo "$ac_res" >&6; }
11958
11959 fi
11960 as_val=`eval 'as_val=${'$as_ac_Header'}
11961 $as_echo "$as_val"'`
11962 if test "x$as_val" = x""yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 _ACEOF
11966
11967 else
11968 $bailout
11969 fi
11970
11971 done
11972
11973 check_lib_no_libs ccs ccs_connect
11974 if test $NOTFOUND = 0; then
11975 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11976 $as_echo "no pkg for libccs, using -lccs" >&6; }
11977 CCS_LIBS="-lccs"
11978 HAVE_CCS=yes
11979 fi
11980 elif test $pkg_failed = untried; then
11981 NOTFOUND=0
11982
11983 for ac_header in ccs.h
11984 do
11985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 $as_echo_n "checking for $ac_header... " >&6; }
11989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 $as_echo_n "(cached) " >&6
11991 fi
11992 ac_res=`eval 'as_val=${'$as_ac_Header'}
11993 $as_echo "$as_val"'`
11994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11995 $as_echo "$ac_res" >&6; }
11996 else
11997 # Is the header compilable?
11998 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11999 $as_echo_n "checking $ac_header usability... " >&6; }
12000 cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h. */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 $ac_includes_default
12007 #include <$ac_header>
12008 _ACEOF
12009 rm -f conftest.$ac_objext
12010 if { (ac_try="$ac_compile"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014 esac
12015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12016 $as_echo "$ac_try_echo") >&5
12017 (eval "$ac_compile") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } && {
12024 test -z "$ac_c_werror_flag" ||
12025 test ! -s conftest.err
12026 } && test -s conftest.$ac_objext; then
12027 ac_header_compiler=yes
12028 else
12029 $as_echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_header_compiler=no
12033 fi
12034
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12037 $as_echo "$ac_header_compiler" >&6; }
12038
12039 # Is the header present?
12040 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12041 $as_echo_n "checking $ac_header presence... " >&6; }
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 #include <$ac_header>
12049 _ACEOF
12050 if { (ac_try="$ac_cpp conftest.$ac_ext"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054 esac
12055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12056 $as_echo "$ac_try_echo") >&5
12057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev/null && {
12064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 }; then
12067 ac_header_preproc=yes
12068 else
12069 $as_echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12071
12072 ac_header_preproc=no
12073 fi
12074
12075 rm -f conftest.err conftest.$ac_ext
12076 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12077 $as_echo "$ac_header_preproc" >&6; }
12078
12079 # So? What about this header?
12080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12081 yes:no: )
12082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12085 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12086 ac_header_preproc=yes
12087 ;;
12088 no:yes:* )
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12090 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12094 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12100 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12101
12102 ;;
12103 esac
12104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12105 $as_echo_n "checking for $ac_header... " >&6; }
12106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12107 $as_echo_n "(cached) " >&6
12108 else
12109 eval "$as_ac_Header=\$ac_header_preproc"
12110 fi
12111 ac_res=`eval 'as_val=${'$as_ac_Header'}
12112 $as_echo "$as_val"'`
12113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12114 $as_echo "$ac_res" >&6; }
12115
12116 fi
12117 as_val=`eval 'as_val=${'$as_ac_Header'}
12118 $as_echo "$as_val"'`
12119 if test "x$as_val" = x""yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12122 _ACEOF
12123
12124 else
12125 $bailout
12126 fi
12127
12128 done
12129
12130 check_lib_no_libs ccs ccs_connect
12131 if test $NOTFOUND = 0; then
12132 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12133 $as_echo "no pkg for libccs, using -lccs" >&6; }
12134 CCS_LIBS="-lccs"
12135 HAVE_CCS=yes
12136 fi
12137 else
12138 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12139 CCS_LIBS=$pkg_cv_CCS_LIBS
12140 { $as_echo "$as_me:$LINENO: result: yes" >&5
12141 $as_echo "yes" >&6; }
12142 HAVE_CCS=yes
12143 fi
12144
12145 pkg_failed=no
12146 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
12147 $as_echo_n "checking for GULM... " >&6; }
12148
12149 if test -n "$GULM_CFLAGS"; then
12150 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12151 elif test -n "$PKG_CONFIG"; then
12152 if test -n "$PKG_CONFIG" && \
12153 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12154 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12155 ac_status=$?
12156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; then
12158 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12159 else
12160 pkg_failed=yes
12161 fi
12162 else
12163 pkg_failed=untried
12164 fi
12165 if test -n "$GULM_LIBS"; then
12166 pkg_cv_GULM_LIBS="$GULM_LIBS"
12167 elif test -n "$PKG_CONFIG"; then
12168 if test -n "$PKG_CONFIG" && \
12169 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12170 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12171 ac_status=$?
12172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; then
12174 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12175 else
12176 pkg_failed=yes
12177 fi
12178 else
12179 pkg_failed=untried
12180 fi
12181
12182
12183
12184 if test $pkg_failed = yes; then
12185
12186 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12187 _pkg_short_errors_supported=yes
12188 else
12189 _pkg_short_errors_supported=no
12190 fi
12191 if test $_pkg_short_errors_supported = yes; then
12192 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12193 else
12194 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12195 fi
12196 # Put the nasty error message in config.log where it belongs
12197 echo "$GULM_PKG_ERRORS" >&5
12198
12199 { $as_echo "$as_me:$LINENO: result: no" >&5
12200 $as_echo "no" >&6; }
12201 NOTFOUND=0
12202
12203 for ac_header in libgulm.h
12204 do
12205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12208 $as_echo_n "checking for $ac_header... " >&6; }
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 $as_echo_n "(cached) " >&6
12211 fi
12212 ac_res=`eval 'as_val=${'$as_ac_Header'}
12213 $as_echo "$as_val"'`
12214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12215 $as_echo "$ac_res" >&6; }
12216 else
12217 # Is the header compilable?
12218 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12219 $as_echo_n "checking $ac_header usability... " >&6; }
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 $ac_includes_default
12227 #include <$ac_header>
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (ac_try="$ac_compile"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234 esac
12235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12236 $as_echo "$ac_try_echo") >&5
12237 (eval "$ac_compile") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest.$ac_objext; then
12247 ac_header_compiler=yes
12248 else
12249 $as_echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ac_header_compiler=no
12253 fi
12254
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12257 $as_echo "$ac_header_compiler" >&6; }
12258
12259 # Is the header present?
12260 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12261 $as_echo_n "checking $ac_header presence... " >&6; }
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 #include <$ac_header>
12269 _ACEOF
12270 if { (ac_try="$ac_cpp conftest.$ac_ext"
12271 case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274 esac
12275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12276 $as_echo "$ac_try_echo") >&5
12277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } >/dev/null && {
12284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 }; then
12287 ac_header_preproc=yes
12288 else
12289 $as_echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_header_preproc=no
12293 fi
12294
12295 rm -f conftest.err conftest.$ac_ext
12296 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297 $as_echo "$ac_header_preproc" >&6; }
12298
12299 # So? What about this header?
12300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12301 yes:no: )
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc=yes
12307 ;;
12308 no:yes:* )
12309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12321
12322 ;;
12323 esac
12324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12325 $as_echo_n "checking for $ac_header... " >&6; }
12326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12327 $as_echo_n "(cached) " >&6
12328 else
12329 eval "$as_ac_Header=\$ac_header_preproc"
12330 fi
12331 ac_res=`eval 'as_val=${'$as_ac_Header'}
12332 $as_echo "$as_val"'`
12333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12334 $as_echo "$ac_res" >&6; }
12335
12336 fi
12337 as_val=`eval 'as_val=${'$as_ac_Header'}
12338 $as_echo "$as_val"'`
12339 if test "x$as_val" = x""yes; then
12340 cat >>confdefs.h <<_ACEOF
12341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12342 _ACEOF
12343
12344 else
12345 $bailout
12346 fi
12347
12348 done
12349
12350 check_lib_no_libs gulm lg_core_login
12351 if test $NOTFOUND = 0; then
12352 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12353 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12354 GULM_LIBS="-lgulm"
12355 HAVE_GULM=yes
12356 fi
12357 elif test $pkg_failed = untried; then
12358 NOTFOUND=0
12359
12360 for ac_header in libgulm.h
12361 do
12362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 $as_echo_n "checking for $ac_header... " >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 $as_echo_n "(cached) " >&6
12368 fi
12369 ac_res=`eval 'as_val=${'$as_ac_Header'}
12370 $as_echo "$as_val"'`
12371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12372 $as_echo "$ac_res" >&6; }
12373 else
12374 # Is the header compilable?
12375 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12376 $as_echo_n "checking $ac_header usability... " >&6; }
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 $ac_includes_default
12384 #include <$ac_header>
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (ac_try="$ac_compile"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
12404 ac_header_compiler=yes
12405 else
12406 $as_echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 ac_header_compiler=no
12410 fi
12411
12412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12414 $as_echo "$ac_header_compiler" >&6; }
12415
12416 # Is the header present?
12417 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12418 $as_echo_n "checking $ac_header presence... " >&6; }
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h. */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 #include <$ac_header>
12426 _ACEOF
12427 if { (ac_try="$ac_cpp conftest.$ac_ext"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433 $as_echo "$ac_try_echo") >&5
12434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } >/dev/null && {
12441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 }; then
12444 ac_header_preproc=yes
12445 else
12446 $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 ac_header_preproc=no
12450 fi
12451
12452 rm -f conftest.err conftest.$ac_ext
12453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454 $as_echo "$ac_header_preproc" >&6; }
12455
12456 # So? What about this header?
12457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12458 yes:no: )
12459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463 ac_header_preproc=yes
12464 ;;
12465 no:yes:* )
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12478
12479 ;;
12480 esac
12481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 $as_echo_n "checking for $ac_header... " >&6; }
12483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12484 $as_echo_n "(cached) " >&6
12485 else
12486 eval "$as_ac_Header=\$ac_header_preproc"
12487 fi
12488 ac_res=`eval 'as_val=${'$as_ac_Header'}
12489 $as_echo "$as_val"'`
12490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12491 $as_echo "$ac_res" >&6; }
12492
12493 fi
12494 as_val=`eval 'as_val=${'$as_ac_Header'}
12495 $as_echo "$as_val"'`
12496 if test "x$as_val" = x""yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12499 _ACEOF
12500
12501 else
12502 $bailout
12503 fi
12504
12505 done
12506
12507 check_lib_no_libs gulm lg_core_login
12508 if test $NOTFOUND = 0; then
12509 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12510 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
12511 GULM_LIBS="-lgulm"
12512 HAVE_GULM=yes
12513 fi
12514 else
12515 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12516 GULM_LIBS=$pkg_cv_GULM_LIBS
12517 { $as_echo "$as_me:$LINENO: result: yes" >&5
12518 $as_echo "yes" >&6; }
12519 HAVE_GULM=yes
12520 fi
12521 fi
12522
12523 if test x$BUILDCMAN = xyes; then
12524
12525 pkg_failed=no
12526 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12527 $as_echo_n "checking for CMAN... " >&6; }
12528
12529 if test -n "$CMAN_CFLAGS"; then
12530 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12531 elif test -n "$PKG_CONFIG"; then
12532 if test -n "$PKG_CONFIG" && \
12533 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12534 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12535 ac_status=$?
12536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; then
12538 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12539 else
12540 pkg_failed=yes
12541 fi
12542 else
12543 pkg_failed=untried
12544 fi
12545 if test -n "$CMAN_LIBS"; then
12546 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12547 elif test -n "$PKG_CONFIG"; then
12548 if test -n "$PKG_CONFIG" && \
12549 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12550 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12551 ac_status=$?
12552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; then
12554 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12555 else
12556 pkg_failed=yes
12557 fi
12558 else
12559 pkg_failed=untried
12560 fi
12561
12562
12563
12564 if test $pkg_failed = yes; then
12565
12566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12567 _pkg_short_errors_supported=yes
12568 else
12569 _pkg_short_errors_supported=no
12570 fi
12571 if test $_pkg_short_errors_supported = yes; then
12572 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12573 else
12574 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12575 fi
12576 # Put the nasty error message in config.log where it belongs
12577 echo "$CMAN_PKG_ERRORS" >&5
12578
12579 { $as_echo "$as_me:$LINENO: result: no" >&5
12580 $as_echo "no" >&6; }
12581 NOTFOUND=0
12582
12583 for ac_header in libcman.h
12584 do
12585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12588 $as_echo_n "checking for $ac_header... " >&6; }
12589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12590 $as_echo_n "(cached) " >&6
12591 fi
12592 ac_res=`eval 'as_val=${'$as_ac_Header'}
12593 $as_echo "$as_val"'`
12594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12595 $as_echo "$ac_res" >&6; }
12596 else
12597 # Is the header compilable?
12598 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12599 $as_echo_n "checking $ac_header usability... " >&6; }
12600 cat >conftest.$ac_ext <<_ACEOF
12601 /* confdefs.h. */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h. */
12606 $ac_includes_default
12607 #include <$ac_header>
12608 _ACEOF
12609 rm -f conftest.$ac_objext
12610 if { (ac_try="$ac_compile"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616 $as_echo "$ac_try_echo") >&5
12617 (eval "$ac_compile") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
12627 ac_header_compiler=yes
12628 else
12629 $as_echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 ac_header_compiler=no
12633 fi
12634
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12636 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637 $as_echo "$ac_header_compiler" >&6; }
12638
12639 # Is the header present?
12640 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12641 $as_echo_n "checking $ac_header presence... " >&6; }
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 #include <$ac_header>
12649 _ACEOF
12650 if { (ac_try="$ac_cpp conftest.$ac_ext"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654 esac
12655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12656 $as_echo "$ac_try_echo") >&5
12657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } >/dev/null && {
12664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12665 test ! -s conftest.err
12666 }; then
12667 ac_header_preproc=yes
12668 else
12669 $as_echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 ac_header_preproc=no
12673 fi
12674
12675 rm -f conftest.err conftest.$ac_ext
12676 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12677 $as_echo "$ac_header_preproc" >&6; }
12678
12679 # So? What about this header?
12680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12681 yes:no: )
12682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12683 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12686 ac_header_preproc=yes
12687 ;;
12688 no:yes:* )
12689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12690 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12692 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12694 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12696 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12700 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12701
12702 ;;
12703 esac
12704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12705 $as_echo_n "checking for $ac_header... " >&6; }
12706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12707 $as_echo_n "(cached) " >&6
12708 else
12709 eval "$as_ac_Header=\$ac_header_preproc"
12710 fi
12711 ac_res=`eval 'as_val=${'$as_ac_Header'}
12712 $as_echo "$as_val"'`
12713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12714 $as_echo "$ac_res" >&6; }
12715
12716 fi
12717 as_val=`eval 'as_val=${'$as_ac_Header'}
12718 $as_echo "$as_val"'`
12719 if test "x$as_val" = x""yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722 _ACEOF
12723
12724 else
12725 $bailout
12726 fi
12727
12728 done
12729
12730 check_lib_no_libs cman cman_init
12731 if test $NOTFOUND = 0; then
12732 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12733 $as_echo "no pkg for libcman, using -lcman" >&6; }
12734 CMAN_LIBS="-lcman"
12735 HAVE_CMAN=yes
12736 fi
12737 elif test $pkg_failed = untried; then
12738 NOTFOUND=0
12739
12740 for ac_header in libcman.h
12741 do
12742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12745 $as_echo_n "checking for $ac_header... " >&6; }
12746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12747 $as_echo_n "(cached) " >&6
12748 fi
12749 ac_res=`eval 'as_val=${'$as_ac_Header'}
12750 $as_echo "$as_val"'`
12751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12752 $as_echo "$ac_res" >&6; }
12753 else
12754 # Is the header compilable?
12755 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12756 $as_echo_n "checking $ac_header usability... " >&6; }
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12764 #include <$ac_header>
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (ac_try="$ac_compile"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12773 $as_echo "$ac_try_echo") >&5
12774 (eval "$ac_compile") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest.$ac_objext; then
12784 ac_header_compiler=yes
12785 else
12786 $as_echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ac_header_compiler=no
12790 fi
12791
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12794 $as_echo "$ac_header_compiler" >&6; }
12795
12796 # Is the header present?
12797 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12798 $as_echo_n "checking $ac_header presence... " >&6; }
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 #include <$ac_header>
12806 _ACEOF
12807 if { (ac_try="$ac_cpp conftest.$ac_ext"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12813 $as_echo "$ac_try_echo") >&5
12814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } >/dev/null && {
12821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 }; then
12824 ac_header_preproc=yes
12825 else
12826 $as_echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_header_preproc=no
12830 fi
12831
12832 rm -f conftest.err conftest.$ac_ext
12833 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12834 $as_echo "$ac_header_preproc" >&6; }
12835
12836 # So? What about this header?
12837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12838 yes:no: )
12839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12840 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12843 ac_header_preproc=yes
12844 ;;
12845 no:yes:* )
12846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12847 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12849 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12851 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12853 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12855 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12857 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12858
12859 ;;
12860 esac
12861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12862 $as_echo_n "checking for $ac_header... " >&6; }
12863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12864 $as_echo_n "(cached) " >&6
12865 else
12866 eval "$as_ac_Header=\$ac_header_preproc"
12867 fi
12868 ac_res=`eval 'as_val=${'$as_ac_Header'}
12869 $as_echo "$as_val"'`
12870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12871 $as_echo "$ac_res" >&6; }
12872
12873 fi
12874 as_val=`eval 'as_val=${'$as_ac_Header'}
12875 $as_echo "$as_val"'`
12876 if test "x$as_val" = x""yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12879 _ACEOF
12880
12881 else
12882 $bailout
12883 fi
12884
12885 done
12886
12887 check_lib_no_libs cman cman_init
12888 if test $NOTFOUND = 0; then
12889 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12890 $as_echo "no pkg for libcman, using -lcman" >&6; }
12891 CMAN_LIBS="-lcman"
12892 HAVE_CMAN=yes
12893 fi
12894 else
12895 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12896 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12897 { $as_echo "$as_me:$LINENO: result: yes" >&5
12898 $as_echo "yes" >&6; }
12899 HAVE_CMAN=yes
12900 fi
12901 CHECKCONFDB=yes
12902 CHECKDLM=yes
12903 fi
12904
12905 if test x$BUILDCOROSYNC = xyes || \
12906 test x$BUILDOPENAIS = xyes; then
12907
12908 pkg_failed=no
12909 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12910 $as_echo_n "checking for COROSYNC... " >&6; }
12911
12912 if test -n "$COROSYNC_CFLAGS"; then
12913 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12914 elif test -n "$PKG_CONFIG"; then
12915 if test -n "$PKG_CONFIG" && \
12916 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12917 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; then
12921 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12922 else
12923 pkg_failed=yes
12924 fi
12925 else
12926 pkg_failed=untried
12927 fi
12928 if test -n "$COROSYNC_LIBS"; then
12929 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12930 elif test -n "$PKG_CONFIG"; then
12931 if test -n "$PKG_CONFIG" && \
12932 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12933 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12934 ac_status=$?
12935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; then
12937 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12938 else
12939 pkg_failed=yes
12940 fi
12941 else
12942 pkg_failed=untried
12943 fi
12944
12945
12946
12947 if test $pkg_failed = yes; then
12948
12949 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12950 _pkg_short_errors_supported=yes
12951 else
12952 _pkg_short_errors_supported=no
12953 fi
12954 if test $_pkg_short_errors_supported = yes; then
12955 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12956 else
12957 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12958 fi
12959 # Put the nasty error message in config.log where it belongs
12960 echo "$COROSYNC_PKG_ERRORS" >&5
12961
12962 { $as_echo "$as_me:$LINENO: result: no" >&5
12963 $as_echo "no" >&6; }
12964 $bailout
12965 elif test $pkg_failed = untried; then
12966 $bailout
12967 else
12968 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12969 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12970 { $as_echo "$as_me:$LINENO: result: yes" >&5
12971 $as_echo "yes" >&6; }
12972 HAVE_COROSYNC=yes
12973 fi
12974 CHECKCONFDB=yes
12975 fi
12976
12977 if test x$BUILDCOROSYNC = xyes; then
12978
12979 pkg_failed=no
12980 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12981 $as_echo_n "checking for QUORUM... " >&6; }
12982
12983 if test -n "$QUORUM_CFLAGS"; then
12984 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12985 elif test -n "$PKG_CONFIG"; then
12986 if test -n "$PKG_CONFIG" && \
12987 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12988 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12989 ac_status=$?
12990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; then
12992 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12993 else
12994 pkg_failed=yes
12995 fi
12996 else
12997 pkg_failed=untried
12998 fi
12999 if test -n "$QUORUM_LIBS"; then
13000 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13001 elif test -n "$PKG_CONFIG"; then
13002 if test -n "$PKG_CONFIG" && \
13003 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13004 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13005 ac_status=$?
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; then
13008 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13009 else
13010 pkg_failed=yes
13011 fi
13012 else
13013 pkg_failed=untried
13014 fi
13015
13016
13017
13018 if test $pkg_failed = yes; then
13019
13020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13021 _pkg_short_errors_supported=yes
13022 else
13023 _pkg_short_errors_supported=no
13024 fi
13025 if test $_pkg_short_errors_supported = yes; then
13026 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13027 else
13028 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13029 fi
13030 # Put the nasty error message in config.log where it belongs
13031 echo "$QUORUM_PKG_ERRORS" >&5
13032
13033 { $as_echo "$as_me:$LINENO: result: no" >&5
13034 $as_echo "no" >&6; }
13035 $bailout
13036 elif test $pkg_failed = untried; then
13037 $bailout
13038 else
13039 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13040 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13041 { $as_echo "$as_me:$LINENO: result: yes" >&5
13042 $as_echo "yes" >&6; }
13043 HAVE_QUORUM=yes
13044 fi
13045 CHECKCPG=yes
13046 CHECKDLM=yes
13047 fi
13048
13049 if test x$BUILDOPENAIS = xyes; then
13050
13051 pkg_failed=no
13052 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13053 $as_echo_n "checking for SALCK... " >&6; }
13054
13055 if test -n "$SALCK_CFLAGS"; then
13056 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13057 elif test -n "$PKG_CONFIG"; then
13058 if test -n "$PKG_CONFIG" && \
13059 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13060 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13061 ac_status=$?
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; then
13064 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13065 else
13066 pkg_failed=yes
13067 fi
13068 else
13069 pkg_failed=untried
13070 fi
13071 if test -n "$SALCK_LIBS"; then
13072 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13073 elif test -n "$PKG_CONFIG"; then
13074 if test -n "$PKG_CONFIG" && \
13075 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13076 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13077 ac_status=$?
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; then
13080 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13081 else
13082 pkg_failed=yes
13083 fi
13084 else
13085 pkg_failed=untried
13086 fi
13087
13088
13089
13090 if test $pkg_failed = yes; then
13091
13092 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13093 _pkg_short_errors_supported=yes
13094 else
13095 _pkg_short_errors_supported=no
13096 fi
13097 if test $_pkg_short_errors_supported = yes; then
13098 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13099 else
13100 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13101 fi
13102 # Put the nasty error message in config.log where it belongs
13103 echo "$SALCK_PKG_ERRORS" >&5
13104
13105 { $as_echo "$as_me:$LINENO: result: no" >&5
13106 $as_echo "no" >&6; }
13107 $bailout
13108 elif test $pkg_failed = untried; then
13109 $bailout
13110 else
13111 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13112 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13113 { $as_echo "$as_me:$LINENO: result: yes" >&5
13114 $as_echo "yes" >&6; }
13115 HAVE_SALCK=yes
13116 fi
13117 CHECKCPG=yes
13118 fi
13119
13120
13121
13122 if test x$CHECKCONFDB = xyes; then
13123
13124 pkg_failed=no
13125 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13126 $as_echo_n "checking for CONFDB... " >&6; }
13127
13128 if test -n "$CONFDB_CFLAGS"; then
13129 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13130 elif test -n "$PKG_CONFIG"; then
13131 if test -n "$PKG_CONFIG" && \
13132 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13133 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13134 ac_status=$?
13135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; then
13137 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13138 else
13139 pkg_failed=yes
13140 fi
13141 else
13142 pkg_failed=untried
13143 fi
13144 if test -n "$CONFDB_LIBS"; then
13145 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13146 elif test -n "$PKG_CONFIG"; then
13147 if test -n "$PKG_CONFIG" && \
13148 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13149 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13150 ac_status=$?
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; then
13153 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13154 else
13155 pkg_failed=yes
13156 fi
13157 else
13158 pkg_failed=untried
13159 fi
13160
13161
13162
13163 if test $pkg_failed = yes; then
13164
13165 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13166 _pkg_short_errors_supported=yes
13167 else
13168 _pkg_short_errors_supported=no
13169 fi
13170 if test $_pkg_short_errors_supported = yes; then
13171 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13172 else
13173 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13174 fi
13175 # Put the nasty error message in config.log where it belongs
13176 echo "$CONFDB_PKG_ERRORS" >&5
13177
13178 { $as_echo "$as_me:$LINENO: result: no" >&5
13179 $as_echo "no" >&6; }
13180 HAVE_CONFDB=no
13181 elif test $pkg_failed = untried; then
13182 HAVE_CONFDB=no
13183 else
13184 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13185 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13186 { $as_echo "$as_me:$LINENO: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188 HAVE_CONFDB=yes
13189 fi
13190
13191
13192 for ac_header in corosync/confdb.h
13193 do
13194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13197 $as_echo_n "checking for $ac_header... " >&6; }
13198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13199 $as_echo_n "(cached) " >&6
13200 fi
13201 ac_res=`eval 'as_val=${'$as_ac_Header'}
13202 $as_echo "$as_val"'`
13203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13204 $as_echo "$ac_res" >&6; }
13205 else
13206 # Is the header compilable?
13207 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13208 $as_echo_n "checking $ac_header usability... " >&6; }
13209 cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 $ac_includes_default
13216 #include <$ac_header>
13217 _ACEOF
13218 rm -f conftest.$ac_objext
13219 if { (ac_try="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223 esac
13224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225 $as_echo "$ac_try_echo") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_header_compiler=yes
13237 else
13238 $as_echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 ac_header_compiler=no
13242 fi
13243
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13246 $as_echo "$ac_header_compiler" >&6; }
13247
13248 # Is the header present?
13249 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13250 $as_echo_n "checking $ac_header presence... " >&6; }
13251 cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h. */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #include <$ac_header>
13258 _ACEOF
13259 if { (ac_try="$ac_cpp conftest.$ac_ext"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263 esac
13264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13265 $as_echo "$ac_try_echo") >&5
13266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null && {
13273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 }; then
13276 ac_header_preproc=yes
13277 else
13278 $as_echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_header_preproc=no
13282 fi
13283
13284 rm -f conftest.err conftest.$ac_ext
13285 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13286 $as_echo "$ac_header_preproc" >&6; }
13287
13288 # So? What about this header?
13289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13290 yes:no: )
13291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13292 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13294 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13295 ac_header_preproc=yes
13296 ;;
13297 no:yes:* )
13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13299 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13301 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13303 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13305 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13309 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13310
13311 ;;
13312 esac
13313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13314 $as_echo_n "checking for $ac_header... " >&6; }
13315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13316 $as_echo_n "(cached) " >&6
13317 else
13318 eval "$as_ac_Header=\$ac_header_preproc"
13319 fi
13320 ac_res=`eval 'as_val=${'$as_ac_Header'}
13321 $as_echo "$as_val"'`
13322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13323 $as_echo "$ac_res" >&6; }
13324
13325 fi
13326 as_val=`eval 'as_val=${'$as_ac_Header'}
13327 $as_echo "$as_val"'`
13328 if test "x$as_val" = x""yes; then
13329 cat >>confdefs.h <<_ACEOF
13330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331 _ACEOF
13332 HAVE_CONFDB_H=yes
13333 else
13334 HAVE_CONFDB_H=no
13335 fi
13336
13337 done
13338
13339
13340 if test x$HAVE_CONFDB != xyes && \
13341 test x$HAVE_CONFDB_H = xyes; then
13342 check_lib_no_libs confdb confdb_initialize
13343 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13344 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
13345 CONFDB_LIBS="-lconfdb"
13346 HAVE_CONFDB=yes
13347 fi
13348
13349 if test x$BUILDCOROSYNC = xyes && \
13350 test x$HAVE_CONFDB != xyes &&
13351 test x$CLVMD != xall; then
13352 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13353 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13354 { (exit 1); exit 1; }; }
13355 fi
13356 fi
13357
13358 if test x$CHECKCPG = xyes; then
13359
13360 pkg_failed=no
13361 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
13362 $as_echo_n "checking for CPG... " >&6; }
13363
13364 if test -n "$CPG_CFLAGS"; then
13365 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13366 elif test -n "$PKG_CONFIG"; then
13367 if test -n "$PKG_CONFIG" && \
13368 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13369 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; then
13373 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13374 else
13375 pkg_failed=yes
13376 fi
13377 else
13378 pkg_failed=untried
13379 fi
13380 if test -n "$CPG_LIBS"; then
13381 pkg_cv_CPG_LIBS="$CPG_LIBS"
13382 elif test -n "$PKG_CONFIG"; then
13383 if test -n "$PKG_CONFIG" && \
13384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13385 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13386 ac_status=$?
13387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; then
13389 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13390 else
13391 pkg_failed=yes
13392 fi
13393 else
13394 pkg_failed=untried
13395 fi
13396
13397
13398
13399 if test $pkg_failed = yes; then
13400
13401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13402 _pkg_short_errors_supported=yes
13403 else
13404 _pkg_short_errors_supported=no
13405 fi
13406 if test $_pkg_short_errors_supported = yes; then
13407 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13408 else
13409 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13410 fi
13411 # Put the nasty error message in config.log where it belongs
13412 echo "$CPG_PKG_ERRORS" >&5
13413
13414 { $as_echo "$as_me:$LINENO: result: no" >&5
13415 $as_echo "no" >&6; }
13416 $bailout
13417 elif test $pkg_failed = untried; then
13418 $bailout
13419 else
13420 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13421 CPG_LIBS=$pkg_cv_CPG_LIBS
13422 { $as_echo "$as_me:$LINENO: result: yes" >&5
13423 $as_echo "yes" >&6; }
13424 HAVE_CPG=yes
13425 fi
13426 fi
13427
13428 if test x$CHECKDLM = xyes; then
13429
13430 pkg_failed=no
13431 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
13432 $as_echo_n "checking for DLM... " >&6; }
13433
13434 if test -n "$DLM_CFLAGS"; then
13435 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13436 elif test -n "$PKG_CONFIG"; then
13437 if test -n "$PKG_CONFIG" && \
13438 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13439 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13440 ac_status=$?
13441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; then
13443 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13444 else
13445 pkg_failed=yes
13446 fi
13447 else
13448 pkg_failed=untried
13449 fi
13450 if test -n "$DLM_LIBS"; then
13451 pkg_cv_DLM_LIBS="$DLM_LIBS"
13452 elif test -n "$PKG_CONFIG"; then
13453 if test -n "$PKG_CONFIG" && \
13454 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13455 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13456 ac_status=$?
13457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; then
13459 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13460 else
13461 pkg_failed=yes
13462 fi
13463 else
13464 pkg_failed=untried
13465 fi
13466
13467
13468
13469 if test $pkg_failed = yes; then
13470
13471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13472 _pkg_short_errors_supported=yes
13473 else
13474 _pkg_short_errors_supported=no
13475 fi
13476 if test $_pkg_short_errors_supported = yes; then
13477 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13478 else
13479 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13480 fi
13481 # Put the nasty error message in config.log where it belongs
13482 echo "$DLM_PKG_ERRORS" >&5
13483
13484 { $as_echo "$as_me:$LINENO: result: no" >&5
13485 $as_echo "no" >&6; }
13486 NOTFOUND=0
13487
13488 for ac_header in libdlm.h
13489 do
13490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13493 $as_echo_n "checking for $ac_header... " >&6; }
13494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13495 $as_echo_n "(cached) " >&6
13496 fi
13497 ac_res=`eval 'as_val=${'$as_ac_Header'}
13498 $as_echo "$as_val"'`
13499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13500 $as_echo "$ac_res" >&6; }
13501 else
13502 # Is the header compilable?
13503 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13504 $as_echo_n "checking $ac_header usability... " >&6; }
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13512 #include <$ac_header>
13513 _ACEOF
13514 rm -f conftest.$ac_objext
13515 if { (ac_try="$ac_compile"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519 esac
13520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13521 $as_echo "$ac_try_echo") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13532 ac_header_compiler=yes
13533 else
13534 $as_echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 ac_header_compiler=no
13538 fi
13539
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542 $as_echo "$ac_header_compiler" >&6; }
13543
13544 # Is the header present?
13545 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13546 $as_echo_n "checking $ac_header presence... " >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <$ac_header>
13554 _ACEOF
13555 if { (ac_try="$ac_cpp conftest.$ac_ext"
13556 case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559 esac
13560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13561 $as_echo "$ac_try_echo") >&5
13562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } >/dev/null && {
13569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13570 test ! -s conftest.err
13571 }; then
13572 ac_header_preproc=yes
13573 else
13574 $as_echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_header_preproc=no
13578 fi
13579
13580 rm -f conftest.err conftest.$ac_ext
13581 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13582 $as_echo "$ac_header_preproc" >&6; }
13583
13584 # So? What about this header?
13585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13586 yes:no: )
13587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13588 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13590 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13591 ac_header_preproc=yes
13592 ;;
13593 no:yes:* )
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13595 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13597 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13599 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13601 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13605 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13606
13607 ;;
13608 esac
13609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13610 $as_echo_n "checking for $ac_header... " >&6; }
13611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13612 $as_echo_n "(cached) " >&6
13613 else
13614 eval "$as_ac_Header=\$ac_header_preproc"
13615 fi
13616 ac_res=`eval 'as_val=${'$as_ac_Header'}
13617 $as_echo "$as_val"'`
13618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13619 $as_echo "$ac_res" >&6; }
13620
13621 fi
13622 as_val=`eval 'as_val=${'$as_ac_Header'}
13623 $as_echo "$as_val"'`
13624 if test "x$as_val" = x""yes; then
13625 cat >>confdefs.h <<_ACEOF
13626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13627 _ACEOF
13628
13629 else
13630 $bailout
13631 fi
13632
13633 done
13634
13635 check_lib_no_libs dlm dlm_lock -lpthread
13636 if test $NOTFOUND = 0; then
13637 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13638 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13639 DLM_LIBS="-ldlm -lpthread"
13640 HAVE_DLM=yes
13641 fi
13642 elif test $pkg_failed = untried; then
13643 NOTFOUND=0
13644
13645 for ac_header in libdlm.h
13646 do
13647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650 $as_echo_n "checking for $ac_header... " >&6; }
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 $as_echo_n "(cached) " >&6
13653 fi
13654 ac_res=`eval 'as_val=${'$as_ac_Header'}
13655 $as_echo "$as_val"'`
13656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657 $as_echo "$ac_res" >&6; }
13658 else
13659 # Is the header compilable?
13660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661 $as_echo_n "checking $ac_header usability... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 $ac_includes_default
13669 #include <$ac_header>
13670 _ACEOF
13671 rm -f conftest.$ac_objext
13672 if { (ac_try="$ac_compile"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676 esac
13677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } && {
13686 test -z "$ac_c_werror_flag" ||
13687 test ! -s conftest.err
13688 } && test -s conftest.$ac_objext; then
13689 ac_header_compiler=yes
13690 else
13691 $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 ac_header_compiler=no
13695 fi
13696
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 $as_echo "$ac_header_compiler" >&6; }
13700
13701 # Is the header present?
13702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 $as_echo_n "checking $ac_header presence... " >&6; }
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <$ac_header>
13711 _ACEOF
13712 if { (ac_try="$ac_cpp conftest.$ac_ext"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716 esac
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null && {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 }; then
13729 ac_header_preproc=yes
13730 else
13731 $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_header_preproc=no
13735 fi
13736
13737 rm -f conftest.err conftest.$ac_ext
13738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 $as_echo "$ac_header_preproc" >&6; }
13740
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743 yes:no: )
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13749 ;;
13750 no:yes:* )
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13763
13764 ;;
13765 esac
13766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13767 $as_echo_n "checking for $ac_header... " >&6; }
13768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769 $as_echo_n "(cached) " >&6
13770 else
13771 eval "$as_ac_Header=\$ac_header_preproc"
13772 fi
13773 ac_res=`eval 'as_val=${'$as_ac_Header'}
13774 $as_echo "$as_val"'`
13775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13776 $as_echo "$ac_res" >&6; }
13777
13778 fi
13779 as_val=`eval 'as_val=${'$as_ac_Header'}
13780 $as_echo "$as_val"'`
13781 if test "x$as_val" = x""yes; then
13782 cat >>confdefs.h <<_ACEOF
13783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13784 _ACEOF
13785
13786 else
13787 $bailout
13788 fi
13789
13790 done
13791
13792 check_lib_no_libs dlm dlm_lock -lpthread
13793 if test $NOTFOUND = 0; then
13794 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13795 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
13796 DLM_LIBS="-ldlm -lpthread"
13797 HAVE_DLM=yes
13798 fi
13799 else
13800 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13801 DLM_LIBS=$pkg_cv_DLM_LIBS
13802 { $as_echo "$as_me:$LINENO: result: yes" >&5
13803 $as_echo "yes" >&6; }
13804 HAVE_DLM=yes
13805 fi
13806 fi
13807
13808 if test x$CLVMD = xall; then
13809 CLVMD=none
13810 if test x$HAVE_CCS = xyes && \
13811 test x$HAVE_GULM = xyes; then
13812 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13813 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
13814 CLVMD="$CLVMD,gulm"
13815 fi
13816 if test x$HAVE_CMAN = xyes && \
13817 test x$HAVE_DLM = xyes; then
13818 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13819 $as_echo "Enabling clvmd cman cluster manager" >&6; }
13820 CLVMD="$CLVMD,cman"
13821 fi
13822 if test x$HAVE_COROSYNC = xyes && \
13823 test x$HAVE_QUORUM = xyes && \
13824 test x$HAVE_CPG = xyes && \
13825 test x$HAVE_DLM = xyes && \
13826 test x$HAVE_CONFDB = xyes; then
13827 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13828 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
13829 CLVMD="$CLVMD,corosync"
13830 fi
13831 if test x$HAVE_COROSYNC = xyes && \
13832 test x$HAVE_CPG = xyes && \
13833 test x$HAVE_SALCK = xyes; then
13834 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13835 $as_echo "Enabling clvmd openais cluster manager" >&6; }
13836 CLVMD="$CLVMD,openais"
13837 fi
13838 if test x$CLVMD = xnone; then
13839 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13840 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
13841 fi
13842 fi
13843
13844 ################################################################################
13845 if test "x$CLVMD" != xnone; then
13846
13847 # Check whether --with-clvmd-pidfile was given.
13848 if test "${with_clvmd_pidfile+set}" = set; then
13849 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13850 else
13851 CLVMD_PIDFILE="/var/run/clvmd.pid"
13852 fi
13853
13854
13855 cat >>confdefs.h <<_ACEOF
13856 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13857 _ACEOF
13858
13859 fi
13860
13861 ################################################################################
13862 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13863 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13864 # Check whether --enable-cmirrord was given.
13865 if test "${enable_cmirrord+set}" = set; then
13866 enableval=$enable_cmirrord; CMIRRORD=$enableval
13867 else
13868 CMIRRORD=no
13869 fi
13870
13871 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13872 $as_echo "$CMIRRORD" >&6; }
13873
13874 BUILD_CMIRRORD=$CMIRRORD
13875
13876 ################################################################################
13877 if test "x$BUILD_CMIRRORD" = xyes; then
13878
13879 # Check whether --with-cmirrord-pidfile was given.
13880 if test "${with_cmirrord_pidfile+set}" = set; then
13881 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
13882 else
13883 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
13884 fi
13885
13886
13887 cat >>confdefs.h <<_ACEOF
13888 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13889 _ACEOF
13890
13891 fi
13892
13893 ################################################################################
13894 if [ "x$BUILD_CMIRRORD" = xyes ]; then
13895 if test x$PKGCONFIG_INIT != x1; then
13896 pkg_config_init
13897 fi
13898
13899 pkg_failed=no
13900 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13901 $as_echo_n "checking for SACKPT... " >&6; }
13902
13903 if test -n "$SACKPT_CFLAGS"; then
13904 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13905 elif test -n "$PKG_CONFIG"; then
13906 if test -n "$PKG_CONFIG" && \
13907 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13908 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; then
13912 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13913 else
13914 pkg_failed=yes
13915 fi
13916 else
13917 pkg_failed=untried
13918 fi
13919 if test -n "$SACKPT_LIBS"; then
13920 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13921 elif test -n "$PKG_CONFIG"; then
13922 if test -n "$PKG_CONFIG" && \
13923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13924 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13925 ac_status=$?
13926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; then
13928 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13929 else
13930 pkg_failed=yes
13931 fi
13932 else
13933 pkg_failed=untried
13934 fi
13935
13936
13937
13938 if test $pkg_failed = yes; then
13939
13940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13941 _pkg_short_errors_supported=yes
13942 else
13943 _pkg_short_errors_supported=no
13944 fi
13945 if test $_pkg_short_errors_supported = yes; then
13946 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13947 else
13948 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13949 fi
13950 # Put the nasty error message in config.log where it belongs
13951 echo "$SACKPT_PKG_ERRORS" >&5
13952
13953 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13954
13955 $SACKPT_PKG_ERRORS
13956
13957 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13958 installed software in a non-standard prefix.
13959
13960 Alternatively, you may set the environment variables SACKPT_CFLAGS
13961 and SACKPT_LIBS to avoid the need to call pkg-config.
13962 See the pkg-config man page for more details.
13963 " >&5
13964 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13965
13966 $SACKPT_PKG_ERRORS
13967
13968 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13969 installed software in a non-standard prefix.
13970
13971 Alternatively, you may set the environment variables SACKPT_CFLAGS
13972 and SACKPT_LIBS to avoid the need to call pkg-config.
13973 See the pkg-config man page for more details.
13974 " >&2;}
13975 { (exit 1); exit 1; }; }
13976 elif test $pkg_failed = untried; then
13977 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13979 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13980 is in your PATH or set the PKG_CONFIG environment variable to the full
13981 path to pkg-config.
13982
13983 Alternatively, you may set the environment variables SACKPT_CFLAGS
13984 and SACKPT_LIBS to avoid the need to call pkg-config.
13985 See the pkg-config man page for more details.
13986
13987 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13988 See \`config.log' for more details." >&5
13989 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13990 is in your PATH or set the PKG_CONFIG environment variable to the full
13991 path to pkg-config.
13992
13993 Alternatively, you may set the environment variables SACKPT_CFLAGS
13994 and SACKPT_LIBS to avoid the need to call pkg-config.
13995 See the pkg-config man page for more details.
13996
13997 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13998 See \`config.log' for more details." >&2;}
13999 { (exit 1); exit 1; }; }; }
14000 else
14001 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14002 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14003 { $as_echo "$as_me:$LINENO: result: yes" >&5
14004 $as_echo "yes" >&6; }
14005 :
14006 fi
14007 if test x$HAVE_CPG != xyes; then
14008
14009 pkg_failed=no
14010 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
14011 $as_echo_n "checking for CPG... " >&6; }
14012
14013 if test -n "$CPG_CFLAGS"; then
14014 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14015 elif test -n "$PKG_CONFIG"; then
14016 if test -n "$PKG_CONFIG" && \
14017 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14018 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14019 ac_status=$?
14020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; then
14022 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14023 else
14024 pkg_failed=yes
14025 fi
14026 else
14027 pkg_failed=untried
14028 fi
14029 if test -n "$CPG_LIBS"; then
14030 pkg_cv_CPG_LIBS="$CPG_LIBS"
14031 elif test -n "$PKG_CONFIG"; then
14032 if test -n "$PKG_CONFIG" && \
14033 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14034 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14035 ac_status=$?
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; then
14038 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14039 else
14040 pkg_failed=yes
14041 fi
14042 else
14043 pkg_failed=untried
14044 fi
14045
14046
14047
14048 if test $pkg_failed = yes; then
14049
14050 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14051 _pkg_short_errors_supported=yes
14052 else
14053 _pkg_short_errors_supported=no
14054 fi
14055 if test $_pkg_short_errors_supported = yes; then
14056 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14057 else
14058 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14059 fi
14060 # Put the nasty error message in config.log where it belongs
14061 echo "$CPG_PKG_ERRORS" >&5
14062
14063 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14064
14065 $CPG_PKG_ERRORS
14066
14067 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14068 installed software in a non-standard prefix.
14069
14070 Alternatively, you may set the environment variables CPG_CFLAGS
14071 and CPG_LIBS to avoid the need to call pkg-config.
14072 See the pkg-config man page for more details.
14073 " >&5
14074 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
14075
14076 $CPG_PKG_ERRORS
14077
14078 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14079 installed software in a non-standard prefix.
14080
14081 Alternatively, you may set the environment variables CPG_CFLAGS
14082 and CPG_LIBS to avoid the need to call pkg-config.
14083 See the pkg-config man page for more details.
14084 " >&2;}
14085 { (exit 1); exit 1; }; }
14086 elif test $pkg_failed = untried; then
14087 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14089 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14090 is in your PATH or set the PKG_CONFIG environment variable to the full
14091 path to pkg-config.
14092
14093 Alternatively, you may set the environment variables CPG_CFLAGS
14094 and CPG_LIBS to avoid the need to call pkg-config.
14095 See the pkg-config man page for more details.
14096
14097 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14098 See \`config.log' for more details." >&5
14099 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14100 is in your PATH or set the PKG_CONFIG environment variable to the full
14101 path to pkg-config.
14102
14103 Alternatively, you may set the environment variables CPG_CFLAGS
14104 and CPG_LIBS to avoid the need to call pkg-config.
14105 See the pkg-config man page for more details.
14106
14107 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14108 See \`config.log' for more details." >&2;}
14109 { (exit 1); exit 1; }; }; }
14110 else
14111 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14112 CPG_LIBS=$pkg_cv_CPG_LIBS
14113 { $as_echo "$as_me:$LINENO: result: yes" >&5
14114 $as_echo "yes" >&6; }
14115 :
14116 fi
14117 fi
14118 fi
14119
14120 ################################################################################
14121 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14122 $as_echo_n "checking whether to enable debugging... " >&6; }
14123 # Check whether --enable-debug was given.
14124 if test "${enable_debug+set}" = set; then
14125 enableval=$enable_debug; DEBUG=$enableval
14126 else
14127 DEBUG=no
14128 fi
14129
14130 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14131 $as_echo "$DEBUG" >&6; }
14132
14133 if test x$DEBUG = xyes; then
14134 COPTIMISE_FLAG=
14135 else
14136 CSCOPE_CMD=
14137 fi
14138
14139 ################################################################################
14140 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14141 $as_echo_n "checking for C optimisation flag... " >&6; }
14142
14143 # Check whether --with-optimisation was given.
14144 if test "${with_optimisation+set}" = set; then
14145 withval=$with_optimisation; COPTIMISE_FLAG=$withval
14146 fi
14147
14148 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14149 $as_echo "$COPTIMISE_FLAG" >&6; }
14150
14151 ################################################################################
14152 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14153 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14154 # Check whether --enable-profiling was given.
14155 if test "${enable_profiling+set}" = set; then
14156 enableval=$enable_profiling; PROFILING=$enableval
14157 else
14158 PROFILING=no
14159 fi
14160
14161 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14162 $as_echo "$PROFILING" >&6; }
14163
14164 if test "x$PROFILING" = xyes; then
14165 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14166 # Extract the first word of "lcov", so it can be a program name with args.
14167 set dummy lcov; ac_word=$2
14168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14169 $as_echo_n "checking for $ac_word... " >&6; }
14170 if test "${ac_cv_path_LCOV+set}" = set; then
14171 $as_echo_n "(cached) " >&6
14172 else
14173 case $LCOV in
14174 [\\/]* | ?:[\\/]*)
14175 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14176 ;;
14177 *)
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14180 do
14181 IFS=$as_save_IFS
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
14186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14187 break 2
14188 fi
14189 done
14190 done
14191 IFS=$as_save_IFS
14192
14193 ;;
14194 esac
14195 fi
14196 LCOV=$ac_cv_path_LCOV
14197 if test -n "$LCOV"; then
14198 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14199 $as_echo "$LCOV" >&6; }
14200 else
14201 { $as_echo "$as_me:$LINENO: result: no" >&5
14202 $as_echo "no" >&6; }
14203 fi
14204
14205
14206 # Extract the first word of "genhtml", so it can be a program name with args.
14207 set dummy genhtml; ac_word=$2
14208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if test "${ac_cv_path_GENHTML+set}" = set; then
14211 $as_echo_n "(cached) " >&6
14212 else
14213 case $GENHTML in
14214 [\\/]* | ?:[\\/]*)
14215 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14216 ;;
14217 *)
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14220 do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
14226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14227 break 2
14228 fi
14229 done
14230 done
14231 IFS=$as_save_IFS
14232
14233 ;;
14234 esac
14235 fi
14236 GENHTML=$ac_cv_path_GENHTML
14237 if test -n "$GENHTML"; then
14238 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14239 $as_echo "$GENHTML" >&6; }
14240 else
14241 { $as_echo "$as_me:$LINENO: result: no" >&5
14242 $as_echo "no" >&6; }
14243 fi
14244
14245
14246 if test -z "$LCOV" -o -z "$GENHTML"; then
14247 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14248 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
14249 { (exit 1); exit 1; }; }
14250 fi
14251 # Extract the first word of "genpng", so it can be a program name with args.
14252 set dummy genpng; ac_word=$2
14253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14254 $as_echo_n "checking for $ac_word... " >&6; }
14255 if test "${ac_cv_path_GENPNG+set}" = set; then
14256 $as_echo_n "(cached) " >&6
14257 else
14258 case $GENPNG in
14259 [\\/]* | ?:[\\/]*)
14260 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14261 ;;
14262 *)
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264 for as_dir in $PATH
14265 do
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274 done
14275 done
14276 IFS=$as_save_IFS
14277
14278 ;;
14279 esac
14280 fi
14281 GENPNG=$ac_cv_path_GENPNG
14282 if test -n "$GENPNG"; then
14283 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14284 $as_echo "$GENPNG" >&6; }
14285 else
14286 { $as_echo "$as_me:$LINENO: result: no" >&5
14287 $as_echo "no" >&6; }
14288 fi
14289
14290
14291 if test -n "$GENPNG"; then
14292 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14293 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14294 if $GENPNG --help > /dev/null 2>&1 ; then
14295 { $as_echo "$as_me:$LINENO: result: ok" >&5
14296 $as_echo "ok" >&6; }
14297 GENHTML="$GENHTML --frames"
14298 else
14299 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14300 $as_echo "not supported" >&6; }
14301 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14302 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14303 GENPNG=
14304 fi
14305 fi
14306 fi
14307
14308 ################################################################################
14309 { $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14310 $as_echo_n "checking whether to enable unit testing... " >&6; }
14311 # Check whether --enable-testing was given.
14312 if test "${enable_testing+set}" = set; then
14313 enableval=$enable_testing; TESTING=$enableval
14314 else
14315 TESTING=no
14316 fi
14317
14318 { $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14319 $as_echo "$TESTING" >&6; }
14320
14321 if test "$TESTING" = yes; then
14322 # Extract the first word of "ruby1.9", so it can be a program name with args.
14323 set dummy ruby1.9; ac_word=$2
14324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if test "${ac_cv_path_RUBY19+set}" = set; then
14327 $as_echo_n "(cached) " >&6
14328 else
14329 case $RUBY19 in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14332 ;;
14333 *)
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14336 do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345 done
14346 done
14347 IFS=$as_save_IFS
14348
14349 ;;
14350 esac
14351 fi
14352 RUBY19=$ac_cv_path_RUBY19
14353 if test -n "$RUBY19"; then
14354 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14355 $as_echo "$RUBY19" >&6; }
14356 else
14357 { $as_echo "$as_me:$LINENO: result: no" >&5
14358 $as_echo "no" >&6; }
14359 fi
14360
14361
14362 # Extract the first word of "valgrind", so it can be a program name with args.
14363 set dummy valgrind; ac_word=$2
14364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14365 $as_echo_n "checking for $ac_word... " >&6; }
14366 if test "${ac_cv_path_VALGRIND+set}" = set; then
14367 $as_echo_n "(cached) " >&6
14368 else
14369 case $VALGRIND in
14370 [\\/]* | ?:[\\/]*)
14371 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14372 ;;
14373 *)
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14376 do
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14384 fi
14385 done
14386 done
14387 IFS=$as_save_IFS
14388
14389 ;;
14390 esac
14391 fi
14392 VALGRIND=$ac_cv_path_VALGRIND
14393 if test -n "$VALGRIND"; then
14394 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14395 $as_echo "$VALGRIND" >&6; }
14396 else
14397 { $as_echo "$as_me:$LINENO: result: no" >&5
14398 $as_echo "no" >&6; }
14399 fi
14400
14401
14402 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14403 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14404 $as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14405 { (exit 1); exit 1; }; }
14406 fi
14407 fi
14408
14409 ################################################################################
14410 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14411 $as_echo_n "checking whether to use device-mapper... " >&6; }
14412 # Check whether --enable-devmapper was given.
14413 if test "${enable_devmapper+set}" = set; then
14414 enableval=$enable_devmapper; DEVMAPPER=$enableval
14415 fi
14416
14417 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14418 $as_echo "$DEVMAPPER" >&6; }
14419
14420 if test x$DEVMAPPER = xyes; then
14421
14422 cat >>confdefs.h <<\_ACEOF
14423 #define DEVMAPPER_SUPPORT 1
14424 _ACEOF
14425
14426 fi
14427
14428 ################################################################################
14429 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14430 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14431 # Check whether --enable-udev_sync was given.
14432 if test "${enable_udev_sync+set}" = set; then
14433 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14434 else
14435 UDEV_SYNC=no
14436 fi
14437
14438 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14439 $as_echo "$UDEV_SYNC" >&6; }
14440
14441 if test x$UDEV_SYNC = xyes; then
14442 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14443 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14444 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14445 $as_echo_n "(cached) " >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-ludev $LIBS"
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h. */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459 #ifdef __cplusplus
14460 extern "C"
14461 #endif
14462 char udev_queue_get_udev_is_active ();
14463 int
14464 main ()
14465 {
14466 return udev_queue_get_udev_is_active ();
14467 ;
14468 return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (ac_try="$ac_link"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14478 $as_echo "$ac_try_echo") >&5
14479 (eval "$ac_link") 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest$ac_exeext && {
14489 test "$cross_compiling" = yes ||
14490 $as_test_x conftest$ac_exeext
14491 }; then
14492 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14493 else
14494 $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14498 fi
14499
14500 rm -rf conftest.dSYM
14501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14502 conftest$ac_exeext conftest.$ac_ext
14503 LIBS=$ac_check_lib_save_LIBS
14504 fi
14505 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14506 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14507 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
14508 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
14509 else
14510 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14511 $as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14512 { (exit 1); exit 1; }; }
14513 fi
14514
14515
14516 cat >>confdefs.h <<\_ACEOF
14517 #define UDEV_SYNC_SUPPORT 1
14518 _ACEOF
14519
14520 fi
14521
14522 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14523 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14524 # Check whether --enable-udev_rules was given.
14525 if test "${enable_udev_rules+set}" = set; then
14526 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14527 else
14528 UDEV_RULES=$UDEV_SYNC
14529 fi
14530
14531 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14532 $as_echo "$UDEV_RULES" >&6; }
14533
14534 ################################################################################
14535 # Check whether --enable-compat was given.
14536 if test "${enable_compat+set}" = set; then
14537 enableval=$enable_compat; DM_COMPAT=$enableval
14538 else
14539 DM_COMPAT=no
14540 fi
14541
14542
14543 ################################################################################
14544 # Check whether --enable-units-compat was given.
14545 if test "${enable_units_compat+set}" = set; then
14546 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14547 else
14548 UNITS_COMPAT=no
14549 fi
14550
14551
14552 if test x$UNITS_COMPAT = xyes; then
14553
14554 cat >>confdefs.h <<\_ACEOF
14555 #define DEFAULT_SI_UNIT_CONSISTENCY 0
14556 _ACEOF
14557
14558 fi
14559
14560 ################################################################################
14561 # Check whether --enable-ioctl was given.
14562 if test "${enable_ioctl+set}" = set; then
14563 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14564 fi
14565
14566
14567 ################################################################################
14568 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14569 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
14570 # Check whether --enable-o_direct was given.
14571 if test "${enable_o_direct+set}" = set; then
14572 enableval=$enable_o_direct; ODIRECT=$enableval
14573 fi
14574
14575 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14576 $as_echo "$ODIRECT" >&6; }
14577
14578 if test x$ODIRECT = xyes; then
14579
14580 cat >>confdefs.h <<\_ACEOF
14581 #define O_DIRECT_SUPPORT 1
14582 _ACEOF
14583
14584 fi
14585
14586 ################################################################################
14587 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14588 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14589 # Check whether --enable-applib was given.
14590 if test "${enable_applib+set}" = set; then
14591 enableval=$enable_applib; APPLIB=$enableval
14592 else
14593 APPLIB=no
14594 fi
14595
14596 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14597 $as_echo "$APPLIB" >&6; }
14598
14599 test x$APPLIB = xyes \
14600 && LVM2APP_LIB=-llvm2app \
14601 || LVM2APP_LIB=
14602
14603 ################################################################################
14604 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14605 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
14606 # Check whether --enable-cmdlib was given.
14607 if test "${enable_cmdlib+set}" = set; then
14608 enableval=$enable_cmdlib; CMDLIB=$enableval
14609 else
14610 CMDLIB=no
14611 fi
14612
14613 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14614 $as_echo "$CMDLIB" >&6; }
14615
14616 test x$CMDLIB = xyes \
14617 && LVM2CMD_LIB=-llvm2cmd \
14618 || LVM2CMD_LIB=
14619
14620 ################################################################################
14621 # Check whether --enable-pkgconfig was given.
14622 if test "${enable_pkgconfig+set}" = set; then
14623 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14624 else
14625 PKGCONFIG=no
14626 fi
14627
14628
14629 ################################################################################
14630 # Check whether --enable-write_install was given.
14631 if test "${enable_write_install+set}" = set; then
14632 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14633 else
14634 WRITE_INSTALL=no
14635 fi
14636
14637
14638 ################################################################################
14639 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14640 $as_echo_n "checking whether to install fsadm... " >&6; }
14641 # Check whether --enable-fsadm was given.
14642 if test "${enable_fsadm+set}" = set; then
14643 enableval=$enable_fsadm; FSADM=$enableval
14644 fi
14645
14646 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14647 $as_echo "$FSADM" >&6; }
14648
14649 ################################################################################
14650 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14651 $as_echo_n "checking whether to use dmeventd... " >&6; }
14652 # Check whether --enable-dmeventd was given.
14653 if test "${enable_dmeventd+set}" = set; then
14654 enableval=$enable_dmeventd; DMEVENTD=$enableval
14655 fi
14656
14657 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14658 $as_echo "$DMEVENTD" >&6; }
14659
14660 BUILD_DMEVENTD=$DMEVENTD
14661
14662 if test x$DMEVENTD = xyes; then
14663 if test x$MIRRORS != xinternal; then
14664 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
14665 " >&5
14666 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
14667 " >&2;}
14668 { (exit 1); exit 1; }; }
14669 fi
14670 if test x$CMDLIB = xno; then
14671 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14672 " >&5
14673 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
14674 " >&2;}
14675 { (exit 1); exit 1; }; }
14676 fi
14677 fi
14678
14679 if test x$DMEVENTD = xyes; then
14680
14681 cat >>confdefs.h <<\_ACEOF
14682 #define DMEVENTD 1
14683 _ACEOF
14684
14685 fi
14686
14687 ################################################################################
14688
14689 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14690 $as_echo_n "checking for getline in -lc... " >&6; }
14691 if test "${ac_cv_lib_c_getline+set}" = set; then
14692 $as_echo_n "(cached) " >&6
14693 else
14694 ac_check_lib_save_LIBS=$LIBS
14695 LIBS="-lc $LIBS"
14696 cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h. */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14702
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char getline ();
14710 int
14711 main ()
14712 {
14713 return getline ();
14714 ;
14715 return 0;
14716 }
14717 _ACEOF
14718 rm -f conftest.$ac_objext conftest$ac_exeext
14719 if { (ac_try="$ac_link"
14720 case "(($ac_try" in
14721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 *) ac_try_echo=$ac_try;;
14723 esac
14724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14725 $as_echo "$ac_try_echo") >&5
14726 (eval "$ac_link") 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } && {
14733 test -z "$ac_c_werror_flag" ||
14734 test ! -s conftest.err
14735 } && test -s conftest$ac_exeext && {
14736 test "$cross_compiling" = yes ||
14737 $as_test_x conftest$ac_exeext
14738 }; then
14739 ac_cv_lib_c_getline=yes
14740 else
14741 $as_echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_cv_lib_c_getline=no
14745 fi
14746
14747 rm -rf conftest.dSYM
14748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14749 conftest$ac_exeext conftest.$ac_ext
14750 LIBS=$ac_check_lib_save_LIBS
14751 fi
14752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14753 $as_echo "$ac_cv_lib_c_getline" >&6; }
14754 if test "x$ac_cv_lib_c_getline" = x""yes; then
14755
14756 cat >>confdefs.h <<\_ACEOF
14757 #define HAVE_GETLINE 1
14758 _ACEOF
14759
14760 fi
14761
14762
14763 ################################################################################
14764
14765 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14766 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
14767 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
14768 $as_echo_n "(cached) " >&6
14769 else
14770 ac_check_lib_save_LIBS=$LIBS
14771 LIBS="-lc $LIBS"
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778
14779 /* Override any GCC internal prototype to avoid an error.
14780 Use char because int might match the return type of a GCC
14781 builtin and then its argument prototype would still apply. */
14782 #ifdef __cplusplus
14783 extern "C"
14784 #endif
14785 char canonicalize_file_name ();
14786 int
14787 main ()
14788 {
14789 return canonicalize_file_name ();
14790 ;
14791 return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext conftest$ac_exeext
14795 if { (ac_try="$ac_link"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14801 $as_echo "$ac_try_echo") >&5
14802 (eval "$ac_link") 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest$ac_exeext && {
14812 test "$cross_compiling" = yes ||
14813 $as_test_x conftest$ac_exeext
14814 }; then
14815 ac_cv_lib_c_canonicalize_file_name=yes
14816 else
14817 $as_echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_cv_lib_c_canonicalize_file_name=no
14821 fi
14822
14823 rm -rf conftest.dSYM
14824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14825 conftest$ac_exeext conftest.$ac_ext
14826 LIBS=$ac_check_lib_save_LIBS
14827 fi
14828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14829 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14830 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
14831
14832 cat >>confdefs.h <<\_ACEOF
14833 #define HAVE_CANONICALIZE_FILE_NAME 1
14834 _ACEOF
14835
14836 fi
14837
14838
14839 ################################################################################
14840 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14841 then exec_prefix="";
14842 fi;
14843
14844 ################################################################################
14845 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14846 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14847 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14849 else
14850 ac_check_lib_save_LIBS=$LIBS
14851 LIBS="-ldl $LIBS"
14852 cat >conftest.$ac_ext <<_ACEOF
14853 /* confdefs.h. */
14854 _ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858
14859 /* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 char dlopen ();
14866 int
14867 main ()
14868 {
14869 return dlopen ();
14870 ;
14871 return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (ac_try="$ac_link"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879 esac
14880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881 $as_echo "$ac_try_echo") >&5
14882 (eval "$ac_link") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest$ac_exeext && {
14892 test "$cross_compiling" = yes ||
14893 $as_test_x conftest$ac_exeext
14894 }; then
14895 ac_cv_lib_dl_dlopen=yes
14896 else
14897 $as_echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_cv_lib_dl_dlopen=no
14901 fi
14902
14903 rm -rf conftest.dSYM
14904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LIBS=$ac_check_lib_save_LIBS
14907 fi
14908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14909 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14910 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14911
14912
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_LIBDL 1
14915 _ACEOF
14916
14917 DL_LIBS="-ldl"
14918 HAVE_LIBDL=yes
14919 else
14920
14921 DL_LIBS=
14922 HAVE_LIBDL=no
14923 fi
14924
14925
14926 ################################################################################
14927 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
14928 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
14929 \) -a "x$STATIC_LINK" = xyes ];
14930 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
14931 " >&5
14932 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
14933 " >&2;}
14934 { (exit 1); exit 1; }; }
14935 fi
14936
14937 ################################################################################
14938 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
14939 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
14940 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
14941 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
14942 $as_echo_n "(cached) " >&6
14943 else
14944 ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lpthread $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 pthread_mutex_lock ();
14960 int
14961 main ()
14962 {
14963 return pthread_mutex_lock ();
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_pthread_pthread_mutex_lock=yes
14990 else
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_cv_lib_pthread_pthread_mutex_lock=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_pthread_pthread_mutex_lock" >&5
15003 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15004 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15005 PTHREAD_LIBS="-lpthread"
15006 else
15007 hard_bailout
15008 fi
15009
15010 fi
15011
15012 ################################################################################
15013 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15014 $as_echo_n "checking whether to enable selinux support... " >&6; }
15015 # Check whether --enable-selinux was given.
15016 if test "${enable_selinux+set}" = set; then
15017 enableval=$enable_selinux; SELINUX=$enableval
15018 fi
15019
15020 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15021 $as_echo "$SELINUX" >&6; }
15022
15023 ################################################################################
15024 if test x$SELINUX = xyes; then
15025 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15026 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
15027 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
15028 $as_echo_n "(cached) " >&6
15029 else
15030 ac_check_lib_save_LIBS=$LIBS
15031 LIBS="-lsepol $LIBS"
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h. */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038
15039 /* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
15042 #ifdef __cplusplus
15043 extern "C"
15044 #endif
15045 char sepol_check_context ();
15046 int
15047 main ()
15048 {
15049 return sepol_check_context ();
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (ac_try="$ac_link"
15056 case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059 esac
15060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15061 $as_echo "$ac_try_echo") >&5
15062 (eval "$ac_link") 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest$ac_exeext && {
15072 test "$cross_compiling" = yes ||
15073 $as_test_x conftest$ac_exeext
15074 }; then
15075 ac_cv_lib_sepol_sepol_check_context=yes
15076 else
15077 $as_echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15079
15080 ac_cv_lib_sepol_sepol_check_context=no
15081 fi
15082
15083 rm -rf conftest.dSYM
15084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15085 conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15087 fi
15088 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15089 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15090 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
15091
15092
15093 cat >>confdefs.h <<\_ACEOF
15094 #define HAVE_SEPOL 1
15095 _ACEOF
15096
15097 SELINUX_LIBS="-lsepol"
15098 fi
15099
15100
15101 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15102 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15103 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15104 $as_echo_n "(cached) " >&6
15105 else
15106 ac_check_lib_save_LIBS=$LIBS
15107 LIBS="-lselinux $LIBS"
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h. */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114
15115 /* Override any GCC internal prototype to avoid an error.
15116 Use char because int might match the return type of a GCC
15117 builtin and then its argument prototype would still apply. */
15118 #ifdef __cplusplus
15119 extern "C"
15120 #endif
15121 char is_selinux_enabled ();
15122 int
15123 main ()
15124 {
15125 return is_selinux_enabled ();
15126 ;
15127 return 0;
15128 }
15129 _ACEOF
15130 rm -f conftest.$ac_objext conftest$ac_exeext
15131 if { (ac_try="$ac_link"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135 esac
15136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15137 $as_echo "$ac_try_echo") >&5
15138 (eval "$ac_link") 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
15147 } && test -s conftest$ac_exeext && {
15148 test "$cross_compiling" = yes ||
15149 $as_test_x conftest$ac_exeext
15150 }; then
15151 ac_cv_lib_selinux_is_selinux_enabled=yes
15152 else
15153 $as_echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 ac_cv_lib_selinux_is_selinux_enabled=no
15157 fi
15158
15159 rm -rf conftest.dSYM
15160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15161 conftest$ac_exeext conftest.$ac_ext
15162 LIBS=$ac_check_lib_save_LIBS
15163 fi
15164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15165 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15166 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15167
15168
15169 for ac_header in selinux/selinux.h
15170 do
15171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 $as_echo_n "checking for $ac_header... " >&6; }
15175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15176 $as_echo_n "(cached) " >&6
15177 fi
15178 ac_res=`eval 'as_val=${'$as_ac_Header'}
15179 $as_echo "$as_val"'`
15180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15181 $as_echo "$ac_res" >&6; }
15182 else
15183 # Is the header compilable?
15184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15185 $as_echo_n "checking $ac_header usability... " >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15193 #include <$ac_header>
15194 _ACEOF
15195 rm -f conftest.$ac_objext
15196 if { (ac_try="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200 esac
15201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15202 $as_echo "$ac_try_echo") >&5
15203 (eval "$ac_compile") 2>conftest.er1
15204 ac_status=$?
15205 grep -v '^ *+' conftest.er1 >conftest.err
15206 rm -f conftest.er1
15207 cat conftest.err >&5
15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && {
15210 test -z "$ac_c_werror_flag" ||
15211 test ! -s conftest.err
15212 } && test -s conftest.$ac_objext; then
15213 ac_header_compiler=yes
15214 else
15215 $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_header_compiler=no
15219 fi
15220
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15223 $as_echo "$ac_header_compiler" >&6; }
15224
15225 # Is the header present?
15226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15227 $as_echo_n "checking $ac_header presence... " >&6; }
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <$ac_header>
15235 _ACEOF
15236 if { (ac_try="$ac_cpp conftest.$ac_ext"
15237 case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240 esac
15241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15242 $as_echo "$ac_try_echo") >&5
15243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev/null && {
15250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15251 test ! -s conftest.err
15252 }; then
15253 ac_header_preproc=yes
15254 else
15255 $as_echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_header_preproc=no
15259 fi
15260
15261 rm -f conftest.err conftest.$ac_ext
15262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15263 $as_echo "$ac_header_preproc" >&6; }
15264
15265 # So? What about this header?
15266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15267 yes:no: )
15268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15272 ac_header_preproc=yes
15273 ;;
15274 no:yes:* )
15275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15287
15288 ;;
15289 esac
15290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15291 $as_echo_n "checking for $ac_header... " >&6; }
15292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15293 $as_echo_n "(cached) " >&6
15294 else
15295 eval "$as_ac_Header=\$ac_header_preproc"
15296 fi
15297 ac_res=`eval 'as_val=${'$as_ac_Header'}
15298 $as_echo "$as_val"'`
15299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15300 $as_echo "$ac_res" >&6; }
15301
15302 fi
15303 as_val=`eval 'as_val=${'$as_ac_Header'}
15304 $as_echo "$as_val"'`
15305 if test "x$as_val" = x""yes; then
15306 cat >>confdefs.h <<_ACEOF
15307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15308 _ACEOF
15309
15310 else
15311 hard_bailout
15312 fi
15313
15314 done
15315
15316
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_SELINUX 1
15319 _ACEOF
15320
15321 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
15322 SELINUX_PC="libselinux"
15323 HAVE_SELINUX=yes
15324 else
15325
15326 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15327 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15328 SELINUX_LIBS=
15329 SELINUX_PC=
15330 HAVE_SELINUX=no
15331 fi
15332
15333 fi
15334
15335 ################################################################################
15336 if test x$REALTIME = xyes; then
15337 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15338 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15339 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
15340 $as_echo_n "(cached) " >&6
15341 else
15342 ac_check_lib_save_LIBS=$LIBS
15343 LIBS="-lrt $LIBS"
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350
15351 /* Override any GCC internal prototype to avoid an error.
15352 Use char because int might match the return type of a GCC
15353 builtin and then its argument prototype would still apply. */
15354 #ifdef __cplusplus
15355 extern "C"
15356 #endif
15357 char clock_gettime ();
15358 int
15359 main ()
15360 {
15361 return clock_gettime ();
15362 ;
15363 return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371 esac
15372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15373 $as_echo "$ac_try_echo") >&5
15374 (eval "$ac_link") 2>conftest.er1
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
15379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
15383 } && test -s conftest$ac_exeext && {
15384 test "$cross_compiling" = yes ||
15385 $as_test_x conftest$ac_exeext
15386 }; then
15387 ac_cv_lib_rt_clock_gettime=yes
15388 else
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_cv_lib_rt_clock_gettime=no
15393 fi
15394
15395 rm -rf conftest.dSYM
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15398 LIBS=$ac_check_lib_save_LIBS
15399 fi
15400 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15401 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15402 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
15403 HAVE_REALTIME=yes
15404 else
15405 HAVE_REALTIME=no
15406 fi
15407
15408
15409 if test x$HAVE_REALTIME = xyes; then
15410
15411 cat >>confdefs.h <<\_ACEOF
15412 #define HAVE_REALTIME 1
15413 _ACEOF
15414
15415 LIBS="-lrt $LIBS"
15416 else
15417 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15418 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
15419 fi
15420 fi
15421
15422 ################################################################################
15423
15424 for ac_header in getopt.h
15425 do
15426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15429 $as_echo_n "checking for $ac_header... " >&6; }
15430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15431 $as_echo_n "(cached) " >&6
15432 fi
15433 ac_res=`eval 'as_val=${'$as_ac_Header'}
15434 $as_echo "$as_val"'`
15435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15436 $as_echo "$ac_res" >&6; }
15437 else
15438 # Is the header compilable?
15439 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440 $as_echo_n "checking $ac_header usability... " >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h. */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 $ac_includes_default
15448 #include <$ac_header>
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (ac_try="$ac_compile"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455 esac
15456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15457 $as_echo "$ac_try_echo") >&5
15458 (eval "$ac_compile") 2>conftest.er1
15459 ac_status=$?
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
15463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } && {
15465 test -z "$ac_c_werror_flag" ||
15466 test ! -s conftest.err
15467 } && test -s conftest.$ac_objext; then
15468 ac_header_compiler=yes
15469 else
15470 $as_echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 ac_header_compiler=no
15474 fi
15475
15476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478 $as_echo "$ac_header_compiler" >&6; }
15479
15480 # Is the header present?
15481 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482 $as_echo_n "checking $ac_header presence... " >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 #include <$ac_header>
15490 _ACEOF
15491 if { (ac_try="$ac_cpp conftest.$ac_ext"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } >/dev/null && {
15505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 }; then
15508 ac_header_preproc=yes
15509 else
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_header_preproc=no
15514 fi
15515
15516 rm -f conftest.err conftest.$ac_ext
15517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15518 $as_echo "$ac_header_preproc" >&6; }
15519
15520 # So? What about this header?
15521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15522 yes:no: )
15523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15524 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15526 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15527 ac_header_preproc=yes
15528 ;;
15529 no:yes:* )
15530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15531 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15533 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15535 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15537 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15541 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15542
15543 ;;
15544 esac
15545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15546 $as_echo_n "checking for $ac_header... " >&6; }
15547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15548 $as_echo_n "(cached) " >&6
15549 else
15550 eval "$as_ac_Header=\$ac_header_preproc"
15551 fi
15552 ac_res=`eval 'as_val=${'$as_ac_Header'}
15553 $as_echo "$as_val"'`
15554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15555 $as_echo "$ac_res" >&6; }
15556
15557 fi
15558 as_val=`eval 'as_val=${'$as_ac_Header'}
15559 $as_echo "$as_val"'`
15560 if test "x$as_val" = x""yes; then
15561 cat >>confdefs.h <<_ACEOF
15562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15563 _ACEOF
15564
15565 cat >>confdefs.h <<\_ACEOF
15566 #define HAVE_GETOPTLONG 1
15567 _ACEOF
15568
15569 fi
15570
15571 done
15572
15573
15574 ################################################################################
15575 if test x$READLINE != xno; then
15576 lvm_saved_libs=$LIBS
15577 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15578 $as_echo_n "checking for library containing tgetent... " >&6; }
15579 if test "${ac_cv_search_tgetent+set}" = set; then
15580 $as_echo_n "(cached) " >&6
15581 else
15582 ac_func_search_save_LIBS=$LIBS
15583 cat >conftest.$ac_ext <<_ACEOF
15584 /* confdefs.h. */
15585 _ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h. */
15589
15590 /* Override any GCC internal prototype to avoid an error.
15591 Use char because int might match the return type of a GCC
15592 builtin and then its argument prototype would still apply. */
15593 #ifdef __cplusplus
15594 extern "C"
15595 #endif
15596 char tgetent ();
15597 int
15598 main ()
15599 {
15600 return tgetent ();
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 for ac_lib in '' tinfo ncurses curses termcap termlib; do
15606 if test -z "$ac_lib"; then
15607 ac_res="none required"
15608 else
15609 ac_res=-l$ac_lib
15610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15611 fi
15612 rm -f conftest.$ac_objext conftest$ac_exeext
15613 if { (ac_try="$ac_link"
15614 case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617 esac
15618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15619 $as_echo "$ac_try_echo") >&5
15620 (eval "$ac_link") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest$ac_exeext && {
15630 test "$cross_compiling" = yes ||
15631 $as_test_x conftest$ac_exeext
15632 }; then
15633 ac_cv_search_tgetent=$ac_res
15634 else
15635 $as_echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638
15639 fi
15640
15641 rm -rf conftest.dSYM
15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15643 conftest$ac_exeext
15644 if test "${ac_cv_search_tgetent+set}" = set; then
15645 break
15646 fi
15647 done
15648 if test "${ac_cv_search_tgetent+set}" = set; then
15649 :
15650 else
15651 ac_cv_search_tgetent=no
15652 fi
15653 rm conftest.$ac_ext
15654 LIBS=$ac_func_search_save_LIBS
15655 fi
15656 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15657 $as_echo "$ac_cv_search_tgetent" >&6; }
15658 ac_res=$ac_cv_search_tgetent
15659 if test "$ac_res" != no; then
15660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15661 READLINE_LIBS=$ac_cv_search_tgetent
15662 else
15663
15664 if test "$READLINE" = yes; then
15665 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15666 --enable-readline option (which is enabled by default). Either disable readline
15667 support with --disable-readline or download and install termcap from:
15668 ftp.gnu.org/gnu/termcap
15669 Note: if you are using precompiled packages you will also need the development
15670 package as well (which may be called termcap-devel or something similar).
15671 Note: (n)curses also seems to work as a substitute for termcap. This was
15672 not found either - but you could try installing that as well." >&5
15673 $as_echo "$as_me: error: termcap could not be found which is required for the
15674 --enable-readline option (which is enabled by default). Either disable readline
15675 support with --disable-readline or download and install termcap from:
15676 ftp.gnu.org/gnu/termcap
15677 Note: if you are using precompiled packages you will also need the development
15678 package as well (which may be called termcap-devel or something similar).
15679 Note: (n)curses also seems to work as a substitute for termcap. This was
15680 not found either - but you could try installing that as well." >&2;}
15681 { (exit 1); exit 1; }; }
15682 fi
15683 fi
15684
15685 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
15686 $as_echo_n "checking for readline in -lreadline... " >&6; }
15687 if test "${ac_cv_lib_readline_readline+set}" = set; then
15688 $as_echo_n "(cached) " >&6
15689 else
15690 ac_check_lib_save_LIBS=$LIBS
15691 LIBS="-lreadline $LIBS"
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h. */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h. */
15698
15699 /* Override any GCC internal prototype to avoid an error.
15700 Use char because int might match the return type of a GCC
15701 builtin and then its argument prototype would still apply. */
15702 #ifdef __cplusplus
15703 extern "C"
15704 #endif
15705 char readline ();
15706 int
15707 main ()
15708 {
15709 return readline ();
15710 ;
15711 return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719 esac
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722 (eval "$ac_link") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest$ac_exeext && {
15732 test "$cross_compiling" = yes ||
15733 $as_test_x conftest$ac_exeext
15734 }; then
15735 ac_cv_lib_readline_readline=yes
15736 else
15737 $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_cv_lib_readline_readline=no
15741 fi
15742
15743 rm -rf conftest.dSYM
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745 conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15747 fi
15748 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15749 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15750 if test "x$ac_cv_lib_readline_readline" = x""yes; then
15751
15752
15753 cat >>confdefs.h <<\_ACEOF
15754 #define READLINE_SUPPORT 1
15755 _ACEOF
15756
15757 LIBS=$lvm_saved_libs
15758 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15759 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15760 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15761 $as_echo_n "(cached) " >&6
15762 else
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lreadline $LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771
15772 /* Override any GCC internal prototype to avoid an error.
15773 Use char because int might match the return type of a GCC
15774 builtin and then its argument prototype would still apply. */
15775 #ifdef __cplusplus
15776 extern "C"
15777 #endif
15778 char rl_line_buffer ();
15779 int
15780 main ()
15781 {
15782 return rl_line_buffer ();
15783 ;
15784 return 0;
15785 }
15786 _ACEOF
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (ac_try="$ac_link"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15794 $as_echo "$ac_try_echo") >&5
15795 (eval "$ac_link") 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } && {
15802 test -z "$ac_c_werror_flag" ||
15803 test ! -s conftest.err
15804 } && test -s conftest$ac_exeext && {
15805 test "$cross_compiling" = yes ||
15806 $as_test_x conftest$ac_exeext
15807 }; then
15808 ac_cv_lib_readline_rl_line_buffer=yes
15809 else
15810 $as_echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_cv_lib_readline_rl_line_buffer=no
15814 fi
15815
15816 rm -rf conftest.dSYM
15817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15818 conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_check_lib_save_LIBS
15820 fi
15821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15822 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15823 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15824 READLINE_LIBS="-lreadline"
15825 else
15826
15827 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15828 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15829 READLINE_LIBS="-lreadline $READLINE_LIBS"
15830
15831 fi
15832
15833 else
15834
15835 READLINE_LIBS=
15836 if test "$READLINE" = yes; then
15837 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
15838 --enable-readline option (which is enabled by default). Either disable readline
15839 support with --disable-readline or download and install readline from:
15840 ftp.gnu.org/gnu/readline
15841 Note: if you are using precompiled packages you will also need the development
15842 package as well (which may be called readline-devel or something similar)." >&5
15843 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
15844 --enable-readline option (which is enabled by default). Either disable readline
15845 support with --disable-readline or download and install readline from:
15846 ftp.gnu.org/gnu/readline
15847 Note: if you are using precompiled packages you will also need the development
15848 package as well (which may be called readline-devel or something similar)." >&2;}
15849 { (exit 1); exit 1; }; }
15850 fi
15851 fi
15852
15853 LIBS="$READLINE_LIBS $lvm_saved_libs"
15854
15855 for ac_func in rl_completion_matches
15856 do
15857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15858 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15859 $as_echo_n "checking for $ac_func... " >&6; }
15860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15861 $as_echo_n "(cached) " >&6
15862 else
15863 cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h. */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15871 #define $ac_func innocuous_$ac_func
15872
15873 /* System header to define __stub macros and hopefully few prototypes,
15874 which can conflict with char $ac_func (); below.
15875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15876 <limits.h> exists even on freestanding compilers. */
15877
15878 #ifdef __STDC__
15879 # include <limits.h>
15880 #else
15881 # include <assert.h>
15882 #endif
15883
15884 #undef $ac_func
15885
15886 /* Override any GCC internal prototype to avoid an error.
15887 Use char because int might match the return type of a GCC
15888 builtin and then its argument prototype would still apply. */
15889 #ifdef __cplusplus
15890 extern "C"
15891 #endif
15892 char $ac_func ();
15893 /* The GNU C library defines this for functions which it implements
15894 to always fail with ENOSYS. Some functions are actually named
15895 something starting with __ and the normal name is an alias. */
15896 #if defined __stub_$ac_func || defined __stub___$ac_func
15897 choke me
15898 #endif
15899
15900 int
15901 main ()
15902 {
15903 return $ac_func ();
15904 ;
15905 return 0;
15906 }
15907 _ACEOF
15908 rm -f conftest.$ac_objext conftest$ac_exeext
15909 if { (ac_try="$ac_link"
15910 case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913 esac
15914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15915 $as_echo "$ac_try_echo") >&5
15916 (eval "$ac_link") 2>conftest.er1
15917 ac_status=$?
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
15921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } && {
15923 test -z "$ac_c_werror_flag" ||
15924 test ! -s conftest.err
15925 } && test -s conftest$ac_exeext && {
15926 test "$cross_compiling" = yes ||
15927 $as_test_x conftest$ac_exeext
15928 }; then
15929 eval "$as_ac_var=yes"
15930 else
15931 $as_echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934 eval "$as_ac_var=no"
15935 fi
15936
15937 rm -rf conftest.dSYM
15938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15939 conftest$ac_exeext conftest.$ac_ext
15940 fi
15941 ac_res=`eval 'as_val=${'$as_ac_var'}
15942 $as_echo "$as_val"'`
15943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15944 $as_echo "$ac_res" >&6; }
15945 as_val=`eval 'as_val=${'$as_ac_var'}
15946 $as_echo "$as_val"'`
15947 if test "x$as_val" = x""yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15950 _ACEOF
15951
15952 fi
15953 done
15954
15955 LIBS=$lvm_saved_libs
15956 fi
15957
15958 ################################################################################
15959 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
15960 $as_echo_n "checking whether to enable internationalisation... " >&6; }
15961 # Check whether --enable-nls was given.
15962 if test "${enable_nls+set}" = set; then
15963 enableval=$enable_nls; INTL=$enableval
15964 else
15965 INTL=no
15966 fi
15967
15968 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
15969 $as_echo "$INTL" >&6; }
15970
15971 if test x$INTL = xyes; then
15972 # FIXME - Move this - can be device-mapper too
15973 INTL_PACKAGE="lvm2"
15974 # Extract the first word of "msgfmt", so it can be a program name with args.
15975 set dummy msgfmt; ac_word=$2
15976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15977 $as_echo_n "checking for $ac_word... " >&6; }
15978 if test "${ac_cv_path_MSGFMT+set}" = set; then
15979 $as_echo_n "(cached) " >&6
15980 else
15981 case $MSGFMT in
15982 [\\/]* | ?:[\\/]*)
15983 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15984 ;;
15985 *)
15986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15987 for as_dir in $PATH
15988 do
15989 IFS=$as_save_IFS
15990 test -z "$as_dir" && as_dir=.
15991 for ac_exec_ext in '' $ac_executable_extensions; do
15992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15993 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
15994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15995 break 2
15996 fi
15997 done
15998 done
15999 IFS=$as_save_IFS
16000
16001 ;;
16002 esac
16003 fi
16004 MSGFMT=$ac_cv_path_MSGFMT
16005 if test -n "$MSGFMT"; then
16006 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16007 $as_echo "$MSGFMT" >&6; }
16008 else
16009 { $as_echo "$as_me:$LINENO: result: no" >&5
16010 $as_echo "no" >&6; }
16011 fi
16012
16013
16014 if [ "x$MSGFMT" == x ];
16015 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
16016 " >&5
16017 $as_echo "$as_me: error: msgfmt not found in path $PATH
16018 " >&2;}
16019 { (exit 1); exit 1; }; }
16020 fi;
16021
16022
16023 # Check whether --with-localedir was given.
16024 if test "${with_localedir+set}" = set; then
16025 withval=$with_localedir; LOCALEDIR=$withval
16026 else
16027 LOCALEDIR='${prefix}/share/locale'
16028 fi
16029
16030 fi
16031
16032 ################################################################################
16033
16034 # Check whether --with-confdir was given.
16035 if test "${with_confdir+set}" = set; then
16036 withval=$with_confdir; CONFDIR=$withval
16037 else
16038 CONFDIR="/etc"
16039 fi
16040
16041
16042
16043 # Check whether --with-staticdir was given.
16044 if test "${with_staticdir+set}" = set; then
16045 withval=$with_staticdir; STATICDIR=$withval
16046 else
16047 STATICDIR='${exec_prefix}/sbin'
16048 fi
16049
16050
16051
16052 # Check whether --with-usrlibdir was given.
16053 if test "${with_usrlibdir+set}" = set; then
16054 withval=$with_usrlibdir; usrlibdir=$withval
16055 else
16056 usrlibdir='${prefix}/lib'
16057 fi
16058
16059
16060
16061 # Check whether --with-usrsbindir was given.
16062 if test "${with_usrsbindir+set}" = set; then
16063 withval=$with_usrsbindir; usrsbindir=$withval
16064 else
16065 usrsbindir='${prefix}/sbin'
16066 fi
16067
16068
16069 ################################################################################
16070
16071 # Check whether --with-udev_prefix was given.
16072 if test "${with_udev_prefix+set}" = set; then
16073 withval=$with_udev_prefix; udev_prefix=$withval
16074 else
16075 udev_prefix='${exec_prefix}'
16076 fi
16077
16078
16079
16080 # Check whether --with-udevdir was given.
16081 if test "${with_udevdir+set}" = set; then
16082 withval=$with_udevdir; udevdir=$withval
16083 else
16084 udevdir='${udev_prefix}/lib/udev/rules.d'
16085 fi
16086
16087
16088 ################################################################################
16089 if test x$READLINE = xyes; then
16090
16091
16092 for ac_header in readline/readline.h readline/history.h
16093 do
16094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16097 $as_echo_n "checking for $ac_header... " >&6; }
16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099 $as_echo_n "(cached) " >&6
16100 fi
16101 ac_res=`eval 'as_val=${'$as_ac_Header'}
16102 $as_echo "$as_val"'`
16103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16104 $as_echo "$ac_res" >&6; }
16105 else
16106 # Is the header compilable?
16107 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 $as_echo_n "checking $ac_header usability... " >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123 esac
16124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16125 $as_echo "$ac_try_echo") >&5
16126 (eval "$ac_compile") 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && {
16133 test -z "$ac_c_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest.$ac_objext; then
16136 ac_header_compiler=yes
16137 else
16138 $as_echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_header_compiler=no
16142 fi
16143
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 $as_echo "$ac_header_compiler" >&6; }
16147
16148 # Is the header present?
16149 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16150 $as_echo_n "checking $ac_header presence... " >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <$ac_header>
16158 _ACEOF
16159 if { (ac_try="$ac_cpp conftest.$ac_ext"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16165 $as_echo "$ac_try_echo") >&5
16166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } >/dev/null && {
16173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 }; then
16176 ac_header_preproc=yes
16177 else
16178 $as_echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 ac_header_preproc=no
16182 fi
16183
16184 rm -f conftest.err conftest.$ac_ext
16185 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186 $as_echo "$ac_header_preproc" >&6; }
16187
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 yes:no: )
16191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16192 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16194 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16195 ac_header_preproc=yes
16196 ;;
16197 no:yes:* )
16198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16199 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16201 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16203 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16205 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16207 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16209 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16210
16211 ;;
16212 esac
16213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16214 $as_echo_n "checking for $ac_header... " >&6; }
16215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16216 $as_echo_n "(cached) " >&6
16217 else
16218 eval "$as_ac_Header=\$ac_header_preproc"
16219 fi
16220 ac_res=`eval 'as_val=${'$as_ac_Header'}
16221 $as_echo "$as_val"'`
16222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16223 $as_echo "$ac_res" >&6; }
16224
16225 fi
16226 as_val=`eval 'as_val=${'$as_ac_Header'}
16227 $as_echo "$as_val"'`
16228 if test "x$as_val" = x""yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16231 _ACEOF
16232
16233 else
16234 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16235 $as_echo "$as_me: error: bailing out" >&2;}
16236 { (exit 1); exit 1; }; }
16237 fi
16238
16239 done
16240
16241 fi
16242
16243 if test x$CLVMD != xnone; then
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254 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
16255 do
16256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16259 $as_echo_n "checking for $ac_header... " >&6; }
16260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261 $as_echo_n "(cached) " >&6
16262 fi
16263 ac_res=`eval 'as_val=${'$as_ac_Header'}
16264 $as_echo "$as_val"'`
16265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16266 $as_echo "$ac_res" >&6; }
16267 else
16268 # Is the header compilable?
16269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16270 $as_echo_n "checking $ac_header usability... " >&6; }
16271 cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h. */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16277 $ac_includes_default
16278 #include <$ac_header>
16279 _ACEOF
16280 rm -f conftest.$ac_objext
16281 if { (ac_try="$ac_compile"
16282 case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285 esac
16286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287 $as_echo "$ac_try_echo") >&5
16288 (eval "$ac_compile") 2>conftest.er1
16289 ac_status=$?
16290 grep -v '^ *+' conftest.er1 >conftest.err
16291 rm -f conftest.er1
16292 cat conftest.err >&5
16293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } && {
16295 test -z "$ac_c_werror_flag" ||
16296 test ! -s conftest.err
16297 } && test -s conftest.$ac_objext; then
16298 ac_header_compiler=yes
16299 else
16300 $as_echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 ac_header_compiler=no
16304 fi
16305
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16308 $as_echo "$ac_header_compiler" >&6; }
16309
16310 # Is the header present?
16311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16312 $as_echo_n "checking $ac_header presence... " >&6; }
16313 cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h. */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 #include <$ac_header>
16320 _ACEOF
16321 if { (ac_try="$ac_cpp conftest.$ac_ext"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325 esac
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } >/dev/null && {
16335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 }; then
16338 ac_header_preproc=yes
16339 else
16340 $as_echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 ac_header_preproc=no
16344 fi
16345
16346 rm -f conftest.err conftest.$ac_ext
16347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348 $as_echo "$ac_header_preproc" >&6; }
16349
16350 # So? What about this header?
16351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16352 yes:no: )
16353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16357 ac_header_preproc=yes
16358 ;;
16359 no:yes:* )
16360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16363 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16367 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16372
16373 ;;
16374 esac
16375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16376 $as_echo_n "checking for $ac_header... " >&6; }
16377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 $as_echo_n "(cached) " >&6
16379 else
16380 eval "$as_ac_Header=\$ac_header_preproc"
16381 fi
16382 ac_res=`eval 'as_val=${'$as_ac_Header'}
16383 $as_echo "$as_val"'`
16384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16385 $as_echo "$ac_res" >&6; }
16386
16387 fi
16388 as_val=`eval 'as_val=${'$as_ac_Header'}
16389 $as_echo "$as_val"'`
16390 if test "x$as_val" = x""yes; then
16391 cat >>confdefs.h <<_ACEOF
16392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16393 _ACEOF
16394
16395 else
16396 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16397 $as_echo "$as_me: error: bailing out" >&2;}
16398 { (exit 1); exit 1; }; }
16399 fi
16400
16401 done
16402
16403
16404
16405
16406
16407
16408 for ac_func in dup2 getmntent memmove select socket
16409 do
16410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16412 $as_echo_n "checking for $ac_func... " >&6; }
16413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16414 $as_echo_n "(cached) " >&6
16415 else
16416 cat >conftest.$ac_ext <<_ACEOF
16417 /* confdefs.h. */
16418 _ACEOF
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h. */
16422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16424 #define $ac_func innocuous_$ac_func
16425
16426 /* System header to define __stub macros and hopefully few prototypes,
16427 which can conflict with char $ac_func (); below.
16428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16429 <limits.h> exists even on freestanding compilers. */
16430
16431 #ifdef __STDC__
16432 # include <limits.h>
16433 #else
16434 # include <assert.h>
16435 #endif
16436
16437 #undef $ac_func
16438
16439 /* Override any GCC internal prototype to avoid an error.
16440 Use char because int might match the return type of a GCC
16441 builtin and then its argument prototype would still apply. */
16442 #ifdef __cplusplus
16443 extern "C"
16444 #endif
16445 char $ac_func ();
16446 /* The GNU C library defines this for functions which it implements
16447 to always fail with ENOSYS. Some functions are actually named
16448 something starting with __ and the normal name is an alias. */
16449 #if defined __stub_$ac_func || defined __stub___$ac_func
16450 choke me
16451 #endif
16452
16453 int
16454 main ()
16455 {
16456 return $ac_func ();
16457 ;
16458 return 0;
16459 }
16460 _ACEOF
16461 rm -f conftest.$ac_objext conftest$ac_exeext
16462 if { (ac_try="$ac_link"
16463 case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466 esac
16467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16468 $as_echo "$ac_try_echo") >&5
16469 (eval "$ac_link") 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
16478 } && test -s conftest$ac_exeext && {
16479 test "$cross_compiling" = yes ||
16480 $as_test_x conftest$ac_exeext
16481 }; then
16482 eval "$as_ac_var=yes"
16483 else
16484 $as_echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 eval "$as_ac_var=no"
16488 fi
16489
16490 rm -rf conftest.dSYM
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492 conftest$ac_exeext conftest.$ac_ext
16493 fi
16494 ac_res=`eval 'as_val=${'$as_ac_var'}
16495 $as_echo "$as_val"'`
16496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16497 $as_echo "$ac_res" >&6; }
16498 as_val=`eval 'as_val=${'$as_ac_var'}
16499 $as_echo "$as_val"'`
16500 if test "x$as_val" = x""yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16503 _ACEOF
16504
16505 else
16506 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16507 $as_echo "$as_me: error: bailing out" >&2;}
16508 { (exit 1); exit 1; }; }
16509 fi
16510 done
16511
16512 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16513 # -lseq on Dynix/PTX, -lgen on Unixware.
16514 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16515 $as_echo_n "checking for library containing getmntent... " >&6; }
16516 if test "${ac_cv_search_getmntent+set}" = set; then
16517 $as_echo_n "(cached) " >&6
16518 else
16519 ac_func_search_save_LIBS=$LIBS
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h. */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526
16527 /* Override any GCC internal prototype to avoid an error.
16528 Use char because int might match the return type of a GCC
16529 builtin and then its argument prototype would still apply. */
16530 #ifdef __cplusplus
16531 extern "C"
16532 #endif
16533 char getmntent ();
16534 int
16535 main ()
16536 {
16537 return getmntent ();
16538 ;
16539 return 0;
16540 }
16541 _ACEOF
16542 for ac_lib in '' sun seq gen; do
16543 if test -z "$ac_lib"; then
16544 ac_res="none required"
16545 else
16546 ac_res=-l$ac_lib
16547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16548 fi
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554 esac
16555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16556 $as_echo "$ac_try_echo") >&5
16557 (eval "$ac_link") 2>conftest.er1
16558 ac_status=$?
16559 grep -v '^ *+' conftest.er1 >conftest.err
16560 rm -f conftest.er1
16561 cat conftest.err >&5
16562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } && {
16564 test -z "$ac_c_werror_flag" ||
16565 test ! -s conftest.err
16566 } && test -s conftest$ac_exeext && {
16567 test "$cross_compiling" = yes ||
16568 $as_test_x conftest$ac_exeext
16569 }; then
16570 ac_cv_search_getmntent=$ac_res
16571 else
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575
16576 fi
16577
16578 rm -rf conftest.dSYM
16579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16580 conftest$ac_exeext
16581 if test "${ac_cv_search_getmntent+set}" = set; then
16582 break
16583 fi
16584 done
16585 if test "${ac_cv_search_getmntent+set}" = set; then
16586 :
16587 else
16588 ac_cv_search_getmntent=no
16589 fi
16590 rm conftest.$ac_ext
16591 LIBS=$ac_func_search_save_LIBS
16592 fi
16593 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16594 $as_echo "$ac_cv_search_getmntent" >&6; }
16595 ac_res=$ac_cv_search_getmntent
16596 if test "$ac_res" != no; then
16597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16598 ac_cv_func_getmntent=yes
16599
16600 cat >>confdefs.h <<\_ACEOF
16601 #define HAVE_GETMNTENT 1
16602 _ACEOF
16603
16604 else
16605 ac_cv_func_getmntent=no
16606 fi
16607
16608
16609
16610
16611 for ac_header in sys/select.h sys/socket.h
16612 do
16613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16616 $as_echo_n "checking for $ac_header... " >&6; }
16617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16618 $as_echo_n "(cached) " >&6
16619 fi
16620 ac_res=`eval 'as_val=${'$as_ac_Header'}
16621 $as_echo "$as_val"'`
16622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16623 $as_echo "$ac_res" >&6; }
16624 else
16625 # Is the header compilable?
16626 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16627 $as_echo_n "checking $ac_header usability... " >&6; }
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 $ac_includes_default
16635 #include <$ac_header>
16636 _ACEOF
16637 rm -f conftest.$ac_objext
16638 if { (ac_try="$ac_compile"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642 esac
16643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16644 $as_echo "$ac_try_echo") >&5
16645 (eval "$ac_compile") 2>conftest.er1
16646 ac_status=$?
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
16650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } && {
16652 test -z "$ac_c_werror_flag" ||
16653 test ! -s conftest.err
16654 } && test -s conftest.$ac_objext; then
16655 ac_header_compiler=yes
16656 else
16657 $as_echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16659
16660 ac_header_compiler=no
16661 fi
16662
16663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16665 $as_echo "$ac_header_compiler" >&6; }
16666
16667 # Is the header present?
16668 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16669 $as_echo_n "checking $ac_header presence... " >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 #include <$ac_header>
16677 _ACEOF
16678 if { (ac_try="$ac_cpp conftest.$ac_ext"
16679 case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682 esac
16683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16684 $as_echo "$ac_try_echo") >&5
16685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } >/dev/null && {
16692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 }; then
16695 ac_header_preproc=yes
16696 else
16697 $as_echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_header_preproc=no
16701 fi
16702
16703 rm -f conftest.err conftest.$ac_ext
16704 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16705 $as_echo "$ac_header_preproc" >&6; }
16706
16707 # So? What about this header?
16708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16709 yes:no: )
16710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16711 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16714 ac_header_preproc=yes
16715 ;;
16716 no:yes:* )
16717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16718 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16720 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16722 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16724 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16726 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16728 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16729
16730 ;;
16731 esac
16732 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16733 $as_echo_n "checking for $ac_header... " >&6; }
16734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16735 $as_echo_n "(cached) " >&6
16736 else
16737 eval "$as_ac_Header=\$ac_header_preproc"
16738 fi
16739 ac_res=`eval 'as_val=${'$as_ac_Header'}
16740 $as_echo "$as_val"'`
16741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16742 $as_echo "$ac_res" >&6; }
16743
16744 fi
16745 as_val=`eval 'as_val=${'$as_ac_Header'}
16746 $as_echo "$as_val"'`
16747 if test "x$as_val" = x""yes; then
16748 cat >>confdefs.h <<_ACEOF
16749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16750 _ACEOF
16751
16752 fi
16753
16754 done
16755
16756 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16757 $as_echo_n "checking types of arguments for select... " >&6; }
16758 if test "${ac_cv_func_select_args+set}" = set; then
16759 $as_echo_n "(cached) " >&6
16760 else
16761 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16762 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16763 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 $ac_includes_default
16771 #ifdef HAVE_SYS_SELECT_H
16772 # include <sys/select.h>
16773 #endif
16774 #ifdef HAVE_SYS_SOCKET_H
16775 # include <sys/socket.h>
16776 #endif
16777
16778 int
16779 main ()
16780 {
16781 extern int select ($ac_arg1,
16782 $ac_arg234, $ac_arg234, $ac_arg234,
16783 $ac_arg5);
16784 ;
16785 return 0;
16786 }
16787 _ACEOF
16788 rm -f conftest.$ac_objext
16789 if { (ac_try="$ac_compile"
16790 case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793 esac
16794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16795 $as_echo "$ac_try_echo") >&5
16796 (eval "$ac_compile") 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } && {
16803 test -z "$ac_c_werror_flag" ||
16804 test ! -s conftest.err
16805 } && test -s conftest.$ac_objext; then
16806 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16807 else
16808 $as_echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16810
16811
16812 fi
16813
16814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815 done
16816 done
16817 done
16818 # Provide a safe default value.
16819 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16820
16821 fi
16822 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16823 $as_echo "$ac_cv_func_select_args" >&6; }
16824 ac_save_IFS=$IFS; IFS=','
16825 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16826 IFS=$ac_save_IFS
16827 shift
16828
16829 cat >>confdefs.h <<_ACEOF
16830 #define SELECT_TYPE_ARG1 $1
16831 _ACEOF
16832
16833
16834 cat >>confdefs.h <<_ACEOF
16835 #define SELECT_TYPE_ARG234 ($2)
16836 _ACEOF
16837
16838
16839 cat >>confdefs.h <<_ACEOF
16840 #define SELECT_TYPE_ARG5 ($3)
16841 _ACEOF
16842
16843 rm -f conftest*
16844
16845 fi
16846
16847 if test x$CLUSTER != xnone; then
16848
16849
16850 for ac_header in sys/socket.h sys/un.h
16851 do
16852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 $as_echo_n "checking for $ac_header... " >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857 $as_echo_n "(cached) " >&6
16858 fi
16859 ac_res=`eval 'as_val=${'$as_ac_Header'}
16860 $as_echo "$as_val"'`
16861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16862 $as_echo "$ac_res" >&6; }
16863 else
16864 # Is the header compilable?
16865 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16866 $as_echo_n "checking $ac_header usability... " >&6; }
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 $ac_includes_default
16874 #include <$ac_header>
16875 _ACEOF
16876 rm -f conftest.$ac_objext
16877 if { (ac_try="$ac_compile"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881 esac
16882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16883 $as_echo "$ac_try_echo") >&5
16884 (eval "$ac_compile") 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && {
16891 test -z "$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 } && test -s conftest.$ac_objext; then
16894 ac_header_compiler=yes
16895 else
16896 $as_echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 ac_header_compiler=no
16900 fi
16901
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16904 $as_echo "$ac_header_compiler" >&6; }
16905
16906 # Is the header present?
16907 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16908 $as_echo_n "checking $ac_header presence... " >&6; }
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 #include <$ac_header>
16916 _ACEOF
16917 if { (ac_try="$ac_cpp conftest.$ac_ext"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921 esac
16922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } >/dev/null && {
16931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 }; then
16934 ac_header_preproc=yes
16935 else
16936 $as_echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_header_preproc=no
16940 fi
16941
16942 rm -f conftest.err conftest.$ac_ext
16943 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16944 $as_echo "$ac_header_preproc" >&6; }
16945
16946 # So? What about this header?
16947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16948 yes:no: )
16949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16950 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16952 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16953 ac_header_preproc=yes
16954 ;;
16955 no:yes:* )
16956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16957 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16959 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16961 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16963 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16967 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16968
16969 ;;
16970 esac
16971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16972 $as_echo_n "checking for $ac_header... " >&6; }
16973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16974 $as_echo_n "(cached) " >&6
16975 else
16976 eval "$as_ac_Header=\$ac_header_preproc"
16977 fi
16978 ac_res=`eval 'as_val=${'$as_ac_Header'}
16979 $as_echo "$as_val"'`
16980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16981 $as_echo "$ac_res" >&6; }
16982
16983 fi
16984 as_val=`eval 'as_val=${'$as_ac_Header'}
16985 $as_echo "$as_val"'`
16986 if test "x$as_val" = x""yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16989 _ACEOF
16990
16991 else
16992 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16993 $as_echo "$as_me: error: bailing out" >&2;}
16994 { (exit 1); exit 1; }; }
16995 fi
16996
16997 done
16998
16999
17000 for ac_func in socket
17001 do
17002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17003 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17004 $as_echo_n "checking for $ac_func... " >&6; }
17005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17006 $as_echo_n "(cached) " >&6
17007 else
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17016 #define $ac_func innocuous_$ac_func
17017
17018 /* System header to define __stub macros and hopefully few prototypes,
17019 which can conflict with char $ac_func (); below.
17020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021 <limits.h> exists even on freestanding compilers. */
17022
17023 #ifdef __STDC__
17024 # include <limits.h>
17025 #else
17026 # include <assert.h>
17027 #endif
17028
17029 #undef $ac_func
17030
17031 /* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034 #ifdef __cplusplus
17035 extern "C"
17036 #endif
17037 char $ac_func ();
17038 /* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
17041 #if defined __stub_$ac_func || defined __stub___$ac_func
17042 choke me
17043 #endif
17044
17045 int
17046 main ()
17047 {
17048 return $ac_func ();
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 rm -f conftest.$ac_objext conftest$ac_exeext
17054 if { (ac_try="$ac_link"
17055 case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058 esac
17059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17060 $as_echo "$ac_try_echo") >&5
17061 (eval "$ac_link") 2>conftest.er1
17062 ac_status=$?
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
17066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest$ac_exeext && {
17071 test "$cross_compiling" = yes ||
17072 $as_test_x conftest$ac_exeext
17073 }; then
17074 eval "$as_ac_var=yes"
17075 else
17076 $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 eval "$as_ac_var=no"
17080 fi
17081
17082 rm -rf conftest.dSYM
17083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17084 conftest$ac_exeext conftest.$ac_ext
17085 fi
17086 ac_res=`eval 'as_val=${'$as_ac_var'}
17087 $as_echo "$as_val"'`
17088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17089 $as_echo "$ac_res" >&6; }
17090 as_val=`eval 'as_val=${'$as_ac_var'}
17091 $as_echo "$as_val"'`
17092 if test "x$as_val" = x""yes; then
17093 cat >>confdefs.h <<_ACEOF
17094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17095 _ACEOF
17096
17097 else
17098 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17099 $as_echo "$as_me: error: bailing out" >&2;}
17100 { (exit 1); exit 1; }; }
17101 fi
17102 done
17103
17104 fi
17105
17106 if test x$DMEVENTD = xyes; then
17107
17108 for ac_header in arpa/inet.h
17109 do
17110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17113 $as_echo_n "checking for $ac_header... " >&6; }
17114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17115 $as_echo_n "(cached) " >&6
17116 fi
17117 ac_res=`eval 'as_val=${'$as_ac_Header'}
17118 $as_echo "$as_val"'`
17119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17120 $as_echo "$ac_res" >&6; }
17121 else
17122 # Is the header compilable?
17123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17124 $as_echo_n "checking $ac_header usability... " >&6; }
17125 cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h. */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h. */
17131 $ac_includes_default
17132 #include <$ac_header>
17133 _ACEOF
17134 rm -f conftest.$ac_objext
17135 if { (ac_try="$ac_compile"
17136 case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139 esac
17140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17141 $as_echo "$ac_try_echo") >&5
17142 (eval "$ac_compile") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest.$ac_objext; then
17152 ac_header_compiler=yes
17153 else
17154 $as_echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 ac_header_compiler=no
17158 fi
17159
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17162 $as_echo "$ac_header_compiler" >&6; }
17163
17164 # Is the header present?
17165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17166 $as_echo_n "checking $ac_header presence... " >&6; }
17167 cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h. */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 #include <$ac_header>
17174 _ACEOF
17175 if { (ac_try="$ac_cpp conftest.$ac_ext"
17176 case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179 esac
17180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17181 $as_echo "$ac_try_echo") >&5
17182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } >/dev/null && {
17189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 }; then
17192 ac_header_preproc=yes
17193 else
17194 $as_echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_header_preproc=no
17198 fi
17199
17200 rm -f conftest.err conftest.$ac_ext
17201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17202 $as_echo "$ac_header_preproc" >&6; }
17203
17204 # So? What about this header?
17205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17206 yes:no: )
17207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17211 ac_header_preproc=yes
17212 ;;
17213 no:yes:* )
17214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17226
17227 ;;
17228 esac
17229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17230 $as_echo_n "checking for $ac_header... " >&6; }
17231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17232 $as_echo_n "(cached) " >&6
17233 else
17234 eval "$as_ac_Header=\$ac_header_preproc"
17235 fi
17236 ac_res=`eval 'as_val=${'$as_ac_Header'}
17237 $as_echo "$as_val"'`
17238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17239 $as_echo "$ac_res" >&6; }
17240
17241 fi
17242 as_val=`eval 'as_val=${'$as_ac_Header'}
17243 $as_echo "$as_val"'`
17244 if test "x$as_val" = x""yes; then
17245 cat >>confdefs.h <<_ACEOF
17246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17247 _ACEOF
17248
17249 else
17250 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17251 $as_echo "$as_me: error: bailing out" >&2;}
17252 { (exit 1); exit 1; }; }
17253 fi
17254
17255 done
17256
17257 fi
17258
17259 if test x$HAVE_LIBDL = xyes; then
17260
17261 for ac_header in dlfcn.h
17262 do
17263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17266 $as_echo_n "checking for $ac_header... " >&6; }
17267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17268 $as_echo_n "(cached) " >&6
17269 fi
17270 ac_res=`eval 'as_val=${'$as_ac_Header'}
17271 $as_echo "$as_val"'`
17272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17273 $as_echo "$ac_res" >&6; }
17274 else
17275 # Is the header compilable?
17276 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17277 $as_echo_n "checking $ac_header usability... " >&6; }
17278 cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h. */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 $ac_includes_default
17285 #include <$ac_header>
17286 _ACEOF
17287 rm -f conftest.$ac_objext
17288 if { (ac_try="$ac_compile"
17289 case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292 esac
17293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17294 $as_echo "$ac_try_echo") >&5
17295 (eval "$ac_compile") 2>conftest.er1
17296 ac_status=$?
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
17300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest.$ac_objext; then
17305 ac_header_compiler=yes
17306 else
17307 $as_echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_header_compiler=no
17311 fi
17312
17313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17314 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17315 $as_echo "$ac_header_compiler" >&6; }
17316
17317 # Is the header present?
17318 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17319 $as_echo_n "checking $ac_header presence... " >&6; }
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h. */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 #include <$ac_header>
17327 _ACEOF
17328 if { (ac_try="$ac_cpp conftest.$ac_ext"
17329 case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332 esac
17333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17334 $as_echo "$ac_try_echo") >&5
17335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } >/dev/null && {
17342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 }; then
17345 ac_header_preproc=yes
17346 else
17347 $as_echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 ac_header_preproc=no
17351 fi
17352
17353 rm -f conftest.err conftest.$ac_ext
17354 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17355 $as_echo "$ac_header_preproc" >&6; }
17356
17357 # So? What about this header?
17358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17359 yes:no: )
17360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17361 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17364 ac_header_preproc=yes
17365 ;;
17366 no:yes:* )
17367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17368 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17370 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17372 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17374 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17378 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17379
17380 ;;
17381 esac
17382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17383 $as_echo_n "checking for $ac_header... " >&6; }
17384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17385 $as_echo_n "(cached) " >&6
17386 else
17387 eval "$as_ac_Header=\$ac_header_preproc"
17388 fi
17389 ac_res=`eval 'as_val=${'$as_ac_Header'}
17390 $as_echo "$as_val"'`
17391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17392 $as_echo "$ac_res" >&6; }
17393
17394 fi
17395 as_val=`eval 'as_val=${'$as_ac_Header'}
17396 $as_echo "$as_val"'`
17397 if test "x$as_val" = x""yes; then
17398 cat >>confdefs.h <<_ACEOF
17399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17400 _ACEOF
17401
17402 else
17403 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17404 $as_echo "$as_me: error: bailing out" >&2;}
17405 { (exit 1); exit 1; }; }
17406 fi
17407
17408 done
17409
17410 fi
17411
17412 if test x$INTL = xyes; then
17413
17414 for ac_header in libintl.h
17415 do
17416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17419 $as_echo_n "checking for $ac_header... " >&6; }
17420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17421 $as_echo_n "(cached) " >&6
17422 fi
17423 ac_res=`eval 'as_val=${'$as_ac_Header'}
17424 $as_echo "$as_val"'`
17425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17426 $as_echo "$ac_res" >&6; }
17427 else
17428 # Is the header compilable?
17429 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17430 $as_echo_n "checking $ac_header usability... " >&6; }
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 $ac_includes_default
17438 #include <$ac_header>
17439 _ACEOF
17440 rm -f conftest.$ac_objext
17441 if { (ac_try="$ac_compile"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445 esac
17446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17447 $as_echo "$ac_try_echo") >&5
17448 (eval "$ac_compile") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest.$ac_objext; then
17458 ac_header_compiler=yes
17459 else
17460 $as_echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17462
17463 ac_header_compiler=no
17464 fi
17465
17466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17468 $as_echo "$ac_header_compiler" >&6; }
17469
17470 # Is the header present?
17471 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17472 $as_echo_n "checking $ac_header presence... " >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 #include <$ac_header>
17480 _ACEOF
17481 if { (ac_try="$ac_cpp conftest.$ac_ext"
17482 case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485 esac
17486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17487 $as_echo "$ac_try_echo") >&5
17488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } >/dev/null && {
17495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 }; then
17498 ac_header_preproc=yes
17499 else
17500 $as_echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 ac_header_preproc=no
17504 fi
17505
17506 rm -f conftest.err conftest.$ac_ext
17507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17508 $as_echo "$ac_header_preproc" >&6; }
17509
17510 # So? What about this header?
17511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17512 yes:no: )
17513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17514 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17516 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17517 ac_header_preproc=yes
17518 ;;
17519 no:yes:* )
17520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17521 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17523 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17525 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17527 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17529 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17531 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17532
17533 ;;
17534 esac
17535 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17536 $as_echo_n "checking for $ac_header... " >&6; }
17537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17538 $as_echo_n "(cached) " >&6
17539 else
17540 eval "$as_ac_Header=\$ac_header_preproc"
17541 fi
17542 ac_res=`eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'`
17544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17545 $as_echo "$ac_res" >&6; }
17546
17547 fi
17548 as_val=`eval 'as_val=${'$as_ac_Header'}
17549 $as_echo "$as_val"'`
17550 if test "x$as_val" = x""yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17553 _ACEOF
17554
17555 else
17556 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17557 $as_echo "$as_me: error: bailing out" >&2;}
17558 { (exit 1); exit 1; }; }
17559 fi
17560
17561 done
17562
17563 fi
17564
17565 if test x$UDEV_SYNC = xyes; then
17566
17567
17568 for ac_header in sys/ipc.h sys/sem.h
17569 do
17570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17573 $as_echo_n "checking for $ac_header... " >&6; }
17574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17575 $as_echo_n "(cached) " >&6
17576 fi
17577 ac_res=`eval 'as_val=${'$as_ac_Header'}
17578 $as_echo "$as_val"'`
17579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17580 $as_echo "$ac_res" >&6; }
17581 else
17582 # Is the header compilable?
17583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17584 $as_echo_n "checking $ac_header usability... " >&6; }
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h. */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h. */
17591 $ac_includes_default
17592 #include <$ac_header>
17593 _ACEOF
17594 rm -f conftest.$ac_objext
17595 if { (ac_try="$ac_compile"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599 esac
17600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17601 $as_echo "$ac_try_echo") >&5
17602 (eval "$ac_compile") 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && {
17609 test -z "$ac_c_werror_flag" ||
17610 test ! -s conftest.err
17611 } && test -s conftest.$ac_objext; then
17612 ac_header_compiler=yes
17613 else
17614 $as_echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 ac_header_compiler=no
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17622 $as_echo "$ac_header_compiler" >&6; }
17623
17624 # Is the header present?
17625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17626 $as_echo_n "checking $ac_header presence... " >&6; }
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 #include <$ac_header>
17634 _ACEOF
17635 if { (ac_try="$ac_cpp conftest.$ac_ext"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639 esac
17640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17641 $as_echo "$ac_try_echo") >&5
17642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } >/dev/null && {
17649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 }; then
17652 ac_header_preproc=yes
17653 else
17654 $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 ac_header_preproc=no
17658 fi
17659
17660 rm -f conftest.err conftest.$ac_ext
17661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17662 $as_echo "$ac_header_preproc" >&6; }
17663
17664 # So? What about this header?
17665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17666 yes:no: )
17667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17671 ac_header_preproc=yes
17672 ;;
17673 no:yes:* )
17674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17686
17687 ;;
17688 esac
17689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17690 $as_echo_n "checking for $ac_header... " >&6; }
17691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17692 $as_echo_n "(cached) " >&6
17693 else
17694 eval "$as_ac_Header=\$ac_header_preproc"
17695 fi
17696 ac_res=`eval 'as_val=${'$as_ac_Header'}
17697 $as_echo "$as_val"'`
17698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17699 $as_echo "$ac_res" >&6; }
17700
17701 fi
17702 as_val=`eval 'as_val=${'$as_ac_Header'}
17703 $as_echo "$as_val"'`
17704 if test "x$as_val" = x""yes; then
17705 cat >>confdefs.h <<_ACEOF
17706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17707 _ACEOF
17708
17709 else
17710 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17711 $as_echo "$as_me: error: bailing out" >&2;}
17712 { (exit 1); exit 1; }; }
17713 fi
17714
17715 done
17716
17717 fi
17718
17719 ################################################################################
17720 # Extract the first word of "modprobe", so it can be a program name with args.
17721 set dummy modprobe; ac_word=$2
17722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17723 $as_echo_n "checking for $ac_word... " >&6; }
17724 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
17725 $as_echo_n "(cached) " >&6
17726 else
17727 case $MODPROBE_CMD in
17728 [\\/]* | ?:[\\/]*)
17729 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17730 ;;
17731 *)
17732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733 for as_dir in $PATH
17734 do
17735 IFS=$as_save_IFS
17736 test -z "$as_dir" && as_dir=.
17737 for ac_exec_ext in '' $ac_executable_extensions; do
17738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17739 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
17740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17741 break 2
17742 fi
17743 done
17744 done
17745 IFS=$as_save_IFS
17746
17747 ;;
17748 esac
17749 fi
17750 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
17751 if test -n "$MODPROBE_CMD"; then
17752 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17753 $as_echo "$MODPROBE_CMD" >&6; }
17754 else
17755 { $as_echo "$as_me:$LINENO: result: no" >&5
17756 $as_echo "no" >&6; }
17757 fi
17758
17759
17760
17761 if test x$MODPROBE_CMD != x; then
17762
17763 cat >>confdefs.h <<_ACEOF
17764 #define MODPROBE_CMD "$MODPROBE_CMD"
17765 _ACEOF
17766
17767 fi
17768
17769
17770 lvm_exec_prefix=$exec_prefix
17771 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17772 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17773
17774 cat >>confdefs.h <<_ACEOF
17775 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
17776 _ACEOF
17777
17778
17779 if test "$CLVMD" != none; then
17780 clvmd_prefix=$ac_default_prefix
17781 test "$prefix" != NONE && clvmd_prefix=$prefix
17782
17783 cat >>confdefs.h <<_ACEOF
17784 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17785 _ACEOF
17786
17787 fi
17788
17789 ################################################################################
17790 if test "$BUILD_DMEVENTD" = yes; then
17791
17792 # Check whether --with-dmeventd-pidfile was given.
17793 if test "${with_dmeventd_pidfile+set}" = set; then
17794 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
17795 else
17796 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
17797 fi
17798
17799
17800 cat >>confdefs.h <<_ACEOF
17801 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17802 _ACEOF
17803
17804 fi
17805
17806 if test "$BUILD_DMEVENTD" = yes; then
17807
17808 # Check whether --with-dmeventd-path was given.
17809 if test "${with_dmeventd_path+set}" = set; then
17810 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
17811 else
17812 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
17813 fi
17814
17815
17816 cat >>confdefs.h <<_ACEOF
17817 #define DMEVENTD_PATH "$DMEVENTD_PATH"
17818 _ACEOF
17819
17820 fi
17821
17822
17823
17824
17825 # Check whether --with-default-run-dir was given.
17826 if test "${with_default_run_dir+set}" = set; then
17827 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
17828 else
17829 DEFAULT_RUN_DIR="/var/run/lvm"
17830 fi
17831
17832 cat >>confdefs.h <<_ACEOF
17833 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
17834 _ACEOF
17835
17836
17837 ################################################################################
17838
17839 # Check whether --with-default-system-dir was given.
17840 if test "${with_default_system_dir+set}" = set; then
17841 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
17842 else
17843 DEFAULT_SYS_DIR="/etc/lvm"
17844 fi
17845
17846
17847 cat >>confdefs.h <<_ACEOF
17848 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17849 _ACEOF
17850
17851
17852
17853 # Check whether --with-default-archive-subdir was given.
17854 if test "${with_default_archive_subdir+set}" = set; then
17855 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
17856 else
17857 DEFAULT_ARCHIVE_SUBDIR=archive
17858 fi
17859
17860
17861 cat >>confdefs.h <<_ACEOF
17862 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17863 _ACEOF
17864
17865
17866
17867 # Check whether --with-default-backup-subdir was given.
17868 if test "${with_default_backup_subdir+set}" = set; then
17869 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
17870 else
17871 DEFAULT_BACKUP_SUBDIR=backup
17872 fi
17873
17874
17875 cat >>confdefs.h <<_ACEOF
17876 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
17877 _ACEOF
17878
17879
17880
17881 # Check whether --with-default-cache-subdir was given.
17882 if test "${with_default_cache_subdir+set}" = set; then
17883 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
17884 else
17885 DEFAULT_CACHE_SUBDIR=cache
17886 fi
17887
17888
17889 cat >>confdefs.h <<_ACEOF
17890 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
17891 _ACEOF
17892
17893
17894
17895 # Check whether --with-default-locking-dir was given.
17896 if test "${with_default_locking_dir+set}" = set; then
17897 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
17898 else
17899 DEFAULT_LOCK_DIR="/var/lock/lvm"
17900 fi
17901
17902
17903 cat >>confdefs.h <<_ACEOF
17904 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
17905 _ACEOF
17906
17907
17908 ################################################################################
17909 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
17910 $as_echo_n "checking for kernel interface choice... " >&6; }
17911
17912 # Check whether --with-interface was given.
17913 if test "${with_interface+set}" = set; then
17914 withval=$with_interface; interface=$withval
17915 else
17916 interface=ioctl
17917 fi
17918
17919 if [ "x$interface" != xioctl ];
17920 then
17921 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
17922 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
17923 { (exit 1); exit 1; }; }
17924 fi
17925 { $as_echo "$as_me:$LINENO: result: $interface" >&5
17926 $as_echo "$interface" >&6; }
17927
17928 ################################################################################
17929 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
17930
17931 cat >>confdefs.h <<_ACEOF
17932 #define DM_LIB_VERSION $DM_LIB_VERSION
17933 _ACEOF
17934
17935
17936 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
17937
17938 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
17939
17940 VER=`cat "$srcdir"/VERSION`
17941 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
17942 VER=`echo "$VER" | $AWK '{print $1}'`
17943 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
17944 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
17945 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
17946 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
17947 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
17948 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
17949
17950 ################################################################################
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048 ################################################################################
18049 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"
18050
18051 cat >confcache <<\_ACEOF
18052 # This file is a shell script that caches the results of configure
18053 # tests run on this system so they can be shared between configure
18054 # scripts and configure runs, see configure's option --config-cache.
18055 # It is not useful on other systems. If it contains results you don't
18056 # want to keep, you may remove or edit it.
18057 #
18058 # config.status only pays attention to the cache file if you give it
18059 # the --recheck option to rerun configure.
18060 #
18061 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18062 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18063 # following values.
18064
18065 _ACEOF
18066
18067 # The following way of writing the cache mishandles newlines in values,
18068 # but we know of no workaround that is simple, portable, and efficient.
18069 # So, we kill variables containing newlines.
18070 # Ultrix sh set writes to stderr and can't be redirected directly,
18071 # and sets the high bit in the cache file unless we assign to the vars.
18072 (
18073 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18074 eval ac_val=\$$ac_var
18075 case $ac_val in #(
18076 *${as_nl}*)
18077 case $ac_var in #(
18078 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18080 esac
18081 case $ac_var in #(
18082 _ | IFS | as_nl) ;; #(
18083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18084 *) $as_unset $ac_var ;;
18085 esac ;;
18086 esac
18087 done
18088
18089 (set) 2>&1 |
18090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18091 *${as_nl}ac_space=\ *)
18092 # `set' does not quote correctly, so add quotes (double-quote
18093 # substitution turns \\\\ into \\, and sed turns \\ into \).
18094 sed -n \
18095 "s/'/'\\\\''/g;
18096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18097 ;; #(
18098 *)
18099 # `set' quotes correctly as required by POSIX, so do not add quotes.
18100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18101 ;;
18102 esac |
18103 sort
18104 ) |
18105 sed '
18106 /^ac_cv_env_/b end
18107 t clear
18108 :clear
18109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18110 t end
18111 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18112 :end' >>confcache
18113 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18114 if test -w "$cache_file"; then
18115 test "x$cache_file" != "x/dev/null" &&
18116 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18117 $as_echo "$as_me: updating cache $cache_file" >&6;}
18118 cat confcache >$cache_file
18119 else
18120 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18121 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18122 fi
18123 fi
18124 rm -f confcache
18125
18126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18127 # Let make expand exec_prefix.
18128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18129
18130 DEFS=-DHAVE_CONFIG_H
18131
18132 ac_libobjs=
18133 ac_ltlibobjs=
18134 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18135 # 1. Remove the extension, and $U if already installed.
18136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18137 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18139 # will be set to the directory where LIBOBJS objects are built.
18140 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18141 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18142 done
18143 LIBOBJS=$ac_libobjs
18144
18145 LTLIBOBJS=$ac_ltlibobjs
18146
18147
18148
18149 : ${CONFIG_STATUS=./config.status}
18150 ac_write_fail=0
18151 ac_clean_files_save=$ac_clean_files
18152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18153 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18155 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18156 #! $SHELL
18157 # Generated by $as_me.
18158 # Run this file to recreate the current configuration.
18159 # Compiler output produced by configure, useful for debugging
18160 # configure, is in config.log if it exists.
18161
18162 debug=false
18163 ac_cs_recheck=false
18164 ac_cs_silent=false
18165 SHELL=\${CONFIG_SHELL-$SHELL}
18166 _ACEOF
18167
18168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18169 ## --------------------- ##
18170 ## M4sh Initialization. ##
18171 ## --------------------- ##
18172
18173 # Be more Bourne compatible
18174 DUALCASE=1; export DUALCASE # for MKS sh
18175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18176 emulate sh
18177 NULLCMD=:
18178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18179 # is contrary to our usage. Disable this feature.
18180 alias -g '${1+"$@"}'='"$@"'
18181 setopt NO_GLOB_SUBST
18182 else
18183 case `(set -o) 2>/dev/null` in
18184 *posix*) set -o posix ;;
18185 esac
18186
18187 fi
18188
18189
18190
18191
18192 # PATH needs CR
18193 # Avoid depending upon Character Ranges.
18194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18197 as_cr_digits='0123456789'
18198 as_cr_alnum=$as_cr_Letters$as_cr_digits
18199
18200 as_nl='
18201 '
18202 export as_nl
18203 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18204 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18207 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18208 as_echo='printf %s\n'
18209 as_echo_n='printf %s'
18210 else
18211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18213 as_echo_n='/usr/ucb/echo -n'
18214 else
18215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18216 as_echo_n_body='eval
18217 arg=$1;
18218 case $arg in
18219 *"$as_nl"*)
18220 expr "X$arg" : "X\\(.*\\)$as_nl";
18221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18222 esac;
18223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18224 '
18225 export as_echo_n_body
18226 as_echo_n='sh -c $as_echo_n_body as_echo'
18227 fi
18228 export as_echo_body
18229 as_echo='sh -c $as_echo_body as_echo'
18230 fi
18231
18232 # The user is always right.
18233 if test "${PATH_SEPARATOR+set}" != set; then
18234 PATH_SEPARATOR=:
18235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18237 PATH_SEPARATOR=';'
18238 }
18239 fi
18240
18241 # Support unset when possible.
18242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18243 as_unset=unset
18244 else
18245 as_unset=false
18246 fi
18247
18248
18249 # IFS
18250 # We need space, tab and new line, in precisely that order. Quoting is
18251 # there to prevent editors from complaining about space-tab.
18252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18253 # splitting by setting IFS to empty value.)
18254 IFS=" "" $as_nl"
18255
18256 # Find who we are. Look in the path if we contain no directory separator.
18257 case $0 in
18258 *[\\/]* ) as_myself=$0 ;;
18259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18260 for as_dir in $PATH
18261 do
18262 IFS=$as_save_IFS
18263 test -z "$as_dir" && as_dir=.
18264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18265 done
18266 IFS=$as_save_IFS
18267
18268 ;;
18269 esac
18270 # We did not find ourselves, most probably we were run as `sh COMMAND'
18271 # in which case we are not to be found in the path.
18272 if test "x$as_myself" = x; then
18273 as_myself=$0
18274 fi
18275 if test ! -f "$as_myself"; then
18276 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18277 { (exit 1); exit 1; }
18278 fi
18279
18280 # Work around bugs in pre-3.0 UWIN ksh.
18281 for as_var in ENV MAIL MAILPATH
18282 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18283 done
18284 PS1='$ '
18285 PS2='> '
18286 PS4='+ '
18287
18288 # NLS nuisances.
18289 LC_ALL=C
18290 export LC_ALL
18291 LANGUAGE=C
18292 export LANGUAGE
18293
18294 # Required to use basename.
18295 if expr a : '\(a\)' >/dev/null 2>&1 &&
18296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18297 as_expr=expr
18298 else
18299 as_expr=false
18300 fi
18301
18302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18303 as_basename=basename
18304 else
18305 as_basename=false
18306 fi
18307
18308
18309 # Name of the executable.
18310 as_me=`$as_basename -- "$0" ||
18311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18312 X"$0" : 'X\(//\)$' \| \
18313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18314 $as_echo X/"$0" |
18315 sed '/^.*\/\([^/][^/]*\)\/*$/{
18316 s//\1/
18317 q
18318 }
18319 /^X\/\(\/\/\)$/{
18320 s//\1/
18321 q
18322 }
18323 /^X\/\(\/\).*/{
18324 s//\1/
18325 q
18326 }
18327 s/.*/./; q'`
18328
18329 # CDPATH.
18330 $as_unset CDPATH
18331
18332
18333
18334 as_lineno_1=$LINENO
18335 as_lineno_2=$LINENO
18336 test "x$as_lineno_1" != "x$as_lineno_2" &&
18337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18338
18339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18340 # uniformly replaced by the line number. The first 'sed' inserts a
18341 # line-number line after each line using $LINENO; the second 'sed'
18342 # does the real work. The second script uses 'N' to pair each
18343 # line-number line with the line containing $LINENO, and appends
18344 # trailing '-' during substitution so that $LINENO is not a special
18345 # case at line end.
18346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18347 # scripts with optimization help from Paolo Bonzini. Blame Lee
18348 # E. McMahon (1931-1989) for sed's syntax. :-)
18349 sed -n '
18350 p
18351 /[$]LINENO/=
18352 ' <$as_myself |
18353 sed '
18354 s/[$]LINENO.*/&-/
18355 t lineno
18356 b
18357 :lineno
18358 N
18359 :loop
18360 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18361 t loop
18362 s/-\n.*//
18363 ' >$as_me.lineno &&
18364 chmod +x "$as_me.lineno" ||
18365 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18366 { (exit 1); exit 1; }; }
18367
18368 # Don't try to exec as it changes $[0], causing all sort of problems
18369 # (the dirname of $[0] is not the place where we might find the
18370 # original and so on. Autoconf is especially sensitive to this).
18371 . "./$as_me.lineno"
18372 # Exit status is that of the last command.
18373 exit
18374 }
18375
18376
18377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18378 as_dirname=dirname
18379 else
18380 as_dirname=false
18381 fi
18382
18383 ECHO_C= ECHO_N= ECHO_T=
18384 case `echo -n x` in
18385 -n*)
18386 case `echo 'x\c'` in
18387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18388 *) ECHO_C='\c';;
18389 esac;;
18390 *)
18391 ECHO_N='-n';;
18392 esac
18393 if expr a : '\(a\)' >/dev/null 2>&1 &&
18394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18395 as_expr=expr
18396 else
18397 as_expr=false
18398 fi
18399
18400 rm -f conf$$ conf$$.exe conf$$.file
18401 if test -d conf$$.dir; then
18402 rm -f conf$$.dir/conf$$.file
18403 else
18404 rm -f conf$$.dir
18405 mkdir conf$$.dir 2>/dev/null
18406 fi
18407 if (echo >conf$$.file) 2>/dev/null; then
18408 if ln -s conf$$.file conf$$ 2>/dev/null; then
18409 as_ln_s='ln -s'
18410 # ... but there are two gotchas:
18411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18413 # In both cases, we have to default to `cp -p'.
18414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18415 as_ln_s='cp -p'
18416 elif ln conf$$.file conf$$ 2>/dev/null; then
18417 as_ln_s=ln
18418 else
18419 as_ln_s='cp -p'
18420 fi
18421 else
18422 as_ln_s='cp -p'
18423 fi
18424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18425 rmdir conf$$.dir 2>/dev/null
18426
18427 if mkdir -p . 2>/dev/null; then
18428 as_mkdir_p=:
18429 else
18430 test -d ./-p && rmdir ./-p
18431 as_mkdir_p=false
18432 fi
18433
18434 if test -x / >/dev/null 2>&1; then
18435 as_test_x='test -x'
18436 else
18437 if ls -dL / >/dev/null 2>&1; then
18438 as_ls_L_option=L
18439 else
18440 as_ls_L_option=
18441 fi
18442 as_test_x='
18443 eval sh -c '\''
18444 if test -d "$1"; then
18445 test -d "$1/.";
18446 else
18447 case $1 in
18448 -*)set "./$1";;
18449 esac;
18450 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18451 ???[sx]*):;;*)false;;esac;fi
18452 '\'' sh
18453 '
18454 fi
18455 as_executable_p=$as_test_x
18456
18457 # Sed expression to map a string onto a valid CPP name.
18458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18459
18460 # Sed expression to map a string onto a valid variable name.
18461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18462
18463
18464 exec 6>&1
18465
18466 # Save the log message, to keep $[0] and so on meaningful, and to
18467 # report actual input values of CONFIG_FILES etc. instead of their
18468 # values after options handling.
18469 ac_log="
18470 This file was extended by $as_me, which was
18471 generated by GNU Autoconf 2.63. Invocation command line was
18472
18473 CONFIG_FILES = $CONFIG_FILES
18474 CONFIG_HEADERS = $CONFIG_HEADERS
18475 CONFIG_LINKS = $CONFIG_LINKS
18476 CONFIG_COMMANDS = $CONFIG_COMMANDS
18477 $ $0 $@
18478
18479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18480 "
18481
18482 _ACEOF
18483
18484 case $ac_config_files in *"
18485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18486 esac
18487
18488 case $ac_config_headers in *"
18489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18490 esac
18491
18492
18493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494 # Files that config.status was made for.
18495 config_files="$ac_config_files"
18496 config_headers="$ac_config_headers"
18497
18498 _ACEOF
18499
18500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18501 ac_cs_usage="\
18502 \`$as_me' instantiates files from templates according to the
18503 current configuration.
18504
18505 Usage: $0 [OPTION]... [FILE]...
18506
18507 -h, --help print this help, then exit
18508 -V, --version print version number and configuration settings, then exit
18509 -q, --quiet, --silent
18510 do not print progress messages
18511 -d, --debug don't remove temporary files
18512 --recheck update $as_me by reconfiguring in the same conditions
18513 --file=FILE[:TEMPLATE]
18514 instantiate the configuration file FILE
18515 --header=FILE[:TEMPLATE]
18516 instantiate the configuration header FILE
18517
18518 Configuration files:
18519 $config_files
18520
18521 Configuration headers:
18522 $config_headers
18523
18524 Report bugs to <bug-autoconf@gnu.org>."
18525
18526 _ACEOF
18527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18528 ac_cs_version="\\
18529 config.status
18530 configured by $0, generated by GNU Autoconf 2.63,
18531 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18532
18533 Copyright (C) 2008 Free Software Foundation, Inc.
18534 This config.status script is free software; the Free Software Foundation
18535 gives unlimited permission to copy, distribute and modify it."
18536
18537 ac_pwd='$ac_pwd'
18538 srcdir='$srcdir'
18539 INSTALL='$INSTALL'
18540 MKDIR_P='$MKDIR_P'
18541 AWK='$AWK'
18542 test -n "\$AWK" || AWK=awk
18543 _ACEOF
18544
18545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18546 # The default lists apply if the user does not specify any file.
18547 ac_need_defaults=:
18548 while test $# != 0
18549 do
18550 case $1 in
18551 --*=*)
18552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18554 ac_shift=:
18555 ;;
18556 *)
18557 ac_option=$1
18558 ac_optarg=$2
18559 ac_shift=shift
18560 ;;
18561 esac
18562
18563 case $ac_option in
18564 # Handling of the options.
18565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18566 ac_cs_recheck=: ;;
18567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18568 $as_echo "$ac_cs_version"; exit ;;
18569 --debug | --debu | --deb | --de | --d | -d )
18570 debug=: ;;
18571 --file | --fil | --fi | --f )
18572 $ac_shift
18573 case $ac_optarg in
18574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18575 esac
18576 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18577 ac_need_defaults=false;;
18578 --header | --heade | --head | --hea )
18579 $ac_shift
18580 case $ac_optarg in
18581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18582 esac
18583 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18584 ac_need_defaults=false;;
18585 --he | --h)
18586 # Conflict between --help and --header
18587 { $as_echo "$as_me: error: ambiguous option: $1
18588 Try \`$0 --help' for more information." >&2
18589 { (exit 1); exit 1; }; };;
18590 --help | --hel | -h )
18591 $as_echo "$ac_cs_usage"; exit ;;
18592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18594 ac_cs_silent=: ;;
18595
18596 # This is an error.
18597 -*) { $as_echo "$as_me: error: unrecognized option: $1
18598 Try \`$0 --help' for more information." >&2
18599 { (exit 1); exit 1; }; } ;;
18600
18601 *) ac_config_targets="$ac_config_targets $1"
18602 ac_need_defaults=false ;;
18603
18604 esac
18605 shift
18606 done
18607
18608 ac_configure_extra_args=
18609
18610 if $ac_cs_silent; then
18611 exec 6>/dev/null
18612 ac_configure_extra_args="$ac_configure_extra_args --silent"
18613 fi
18614
18615 _ACEOF
18616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18617 if \$ac_cs_recheck; then
18618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18619 shift
18620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18621 CONFIG_SHELL='$SHELL'
18622 export CONFIG_SHELL
18623 exec "\$@"
18624 fi
18625
18626 _ACEOF
18627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18628 exec 5>>config.log
18629 {
18630 echo
18631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18632 ## Running $as_me. ##
18633 _ASBOX
18634 $as_echo "$ac_log"
18635 } >&5
18636
18637 _ACEOF
18638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18639 _ACEOF
18640
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642
18643 # Handling of arguments.
18644 for ac_config_target in $ac_config_targets
18645 do
18646 case $ac_config_target in
18647 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18648 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18649 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18650 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18651 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
18652 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
18653 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18654 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
18655 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
18656 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
18657 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18658 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
18659 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18660 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
18661 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
18662 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18663 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18664 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18665 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18666 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18667 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
18668 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
18669 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
18670 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
18671 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18672 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
18673 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
18674 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
18675 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18676 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
18677 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
18678 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
18679 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
18680 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18681 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18682 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
18683 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
18684 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
18685 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18686 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
18687
18688 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18689 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18690 { (exit 1); exit 1; }; };;
18691 esac
18692 done
18693
18694
18695 # If the user did not use the arguments to specify the items to instantiate,
18696 # then the envvar interface is used. Set only those that are not.
18697 # We use the long form for the default assignment because of an extremely
18698 # bizarre bug on SunOS 4.1.3.
18699 if $ac_need_defaults; then
18700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18702 fi
18703
18704 # Have a temporary directory for convenience. Make it in the build tree
18705 # simply because there is no reason against having it here, and in addition,
18706 # creating and moving files from /tmp can sometimes cause problems.
18707 # Hook for its removal unless debugging.
18708 # Note that there is a small window in which the directory will not be cleaned:
18709 # after its creation but before its name has been assigned to `$tmp'.
18710 $debug ||
18711 {
18712 tmp=
18713 trap 'exit_status=$?
18714 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18715 ' 0
18716 trap '{ (exit 1); exit 1; }' 1 2 13 15
18717 }
18718 # Create a (secure) tmp directory for tmp files.
18719
18720 {
18721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18722 test -n "$tmp" && test -d "$tmp"
18723 } ||
18724 {
18725 tmp=./conf$$-$RANDOM
18726 (umask 077 && mkdir "$tmp")
18727 } ||
18728 {
18729 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18730 { (exit 1); exit 1; }
18731 }
18732
18733 # Set up the scripts for CONFIG_FILES section.
18734 # No need to generate them if there are no CONFIG_FILES.
18735 # This happens for instance with `./config.status config.h'.
18736 if test -n "$CONFIG_FILES"; then
18737
18738
18739 ac_cr=' '
18740 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18741 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18742 ac_cs_awk_cr='\\r'
18743 else
18744 ac_cs_awk_cr=$ac_cr
18745 fi
18746
18747 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18748 _ACEOF
18749
18750
18751 {
18752 echo "cat >conf$$subs.awk <<_ACEOF" &&
18753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18754 echo "_ACEOF"
18755 } >conf$$subs.sh ||
18756 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18757 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18758 { (exit 1); exit 1; }; }
18759 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18760 ac_delim='%!_!# '
18761 for ac_last_try in false false false false false :; do
18762 . ./conf$$subs.sh ||
18763 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18764 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18765 { (exit 1); exit 1; }; }
18766
18767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18768 if test $ac_delim_n = $ac_delim_num; then
18769 break
18770 elif $ac_last_try; then
18771 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18772 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18773 { (exit 1); exit 1; }; }
18774 else
18775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18776 fi
18777 done
18778 rm -f conf$$subs.sh
18779
18780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18781 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18782 _ACEOF
18783 sed -n '
18784 h
18785 s/^/S["/; s/!.*/"]=/
18786 p
18787 g
18788 s/^[^!]*!//
18789 :repl
18790 t repl
18791 s/'"$ac_delim"'$//
18792 t delim
18793 :nl
18794 h
18795 s/\(.\{148\}\).*/\1/
18796 t more1
18797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18798 p
18799 n
18800 b repl
18801 :more1
18802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18803 p
18804 g
18805 s/.\{148\}//
18806 t nl
18807 :delim
18808 h
18809 s/\(.\{148\}\).*/\1/
18810 t more2
18811 s/["\\]/\\&/g; s/^/"/; s/$/"/
18812 p
18813 b
18814 :more2
18815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18816 p
18817 g
18818 s/.\{148\}//
18819 t delim
18820 ' <conf$$subs.awk | sed '
18821 /^[^""]/{
18822 N
18823 s/\n//
18824 }
18825 ' >>$CONFIG_STATUS || ac_write_fail=1
18826 rm -f conf$$subs.awk
18827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828 _ACAWK
18829 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18830 for (key in S) S_is_set[key] = 1
18831 FS = "\a"
18832
18833 }
18834 {
18835 line = $ 0
18836 nfields = split(line, field, "@")
18837 substed = 0
18838 len = length(field[1])
18839 for (i = 2; i < nfields; i++) {
18840 key = field[i]
18841 keylen = length(key)
18842 if (S_is_set[key]) {
18843 value = S[key]
18844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18845 len += length(value) + length(field[++i])
18846 substed = 1
18847 } else
18848 len += 1 + keylen
18849 }
18850
18851 print line
18852 }
18853
18854 _ACAWK
18855 _ACEOF
18856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18859 else
18860 cat
18861 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18862 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18863 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18864 { (exit 1); exit 1; }; }
18865 _ACEOF
18866
18867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18869 # trailing colons and then remove the whole line if VPATH becomes empty
18870 # (actually we leave an empty line to preserve line numbers).
18871 if test "x$srcdir" = x.; then
18872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18873 s/:*\$(srcdir):*/:/
18874 s/:*\${srcdir}:*/:/
18875 s/:*@srcdir@:*/:/
18876 s/^\([^=]*=[ ]*\):*/\1/
18877 s/:*$//
18878 s/^[^=]*=[ ]*$//
18879 }'
18880 fi
18881
18882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883 fi # test -n "$CONFIG_FILES"
18884
18885 # Set up the scripts for CONFIG_HEADERS section.
18886 # No need to generate them if there are no CONFIG_HEADERS.
18887 # This happens for instance with `./config.status Makefile'.
18888 if test -n "$CONFIG_HEADERS"; then
18889 cat >"$tmp/defines.awk" <<\_ACAWK ||
18890 BEGIN {
18891 _ACEOF
18892
18893 # Transform confdefs.h into an awk script `defines.awk', embedded as
18894 # here-document in config.status, that substitutes the proper values into
18895 # config.h.in to produce config.h.
18896
18897 # Create a delimiter string that does not exist in confdefs.h, to ease
18898 # handling of long lines.
18899 ac_delim='%!_!# '
18900 for ac_last_try in false false :; do
18901 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18902 if test -z "$ac_t"; then
18903 break
18904 elif $ac_last_try; then
18905 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18906 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18907 { (exit 1); exit 1; }; }
18908 else
18909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18910 fi
18911 done
18912
18913 # For the awk script, D is an array of macro values keyed by name,
18914 # likewise P contains macro parameters if any. Preserve backslash
18915 # newline sequences.
18916
18917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18918 sed -n '
18919 s/.\{148\}/&'"$ac_delim"'/g
18920 t rset
18921 :rset
18922 s/^[ ]*#[ ]*define[ ][ ]*/ /
18923 t def
18924 d
18925 :def
18926 s/\\$//
18927 t bsnl
18928 s/["\\]/\\&/g
18929 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18930 D["\1"]=" \3"/p
18931 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18932 d
18933 :bsnl
18934 s/["\\]/\\&/g
18935 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18936 D["\1"]=" \3\\\\\\n"\\/p
18937 t cont
18938 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18939 t cont
18940 d
18941 :cont
18942 n
18943 s/.\{148\}/&'"$ac_delim"'/g
18944 t clear
18945 :clear
18946 s/\\$//
18947 t bsnlc
18948 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18949 d
18950 :bsnlc
18951 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18952 b cont
18953 ' <confdefs.h | sed '
18954 s/'"$ac_delim"'/"\\\
18955 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18956
18957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 for (key in D) D_is_set[key] = 1
18959 FS = "\a"
18960 }
18961 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18962 line = \$ 0
18963 split(line, arg, " ")
18964 if (arg[1] == "#") {
18965 defundef = arg[2]
18966 mac1 = arg[3]
18967 } else {
18968 defundef = substr(arg[1], 2)
18969 mac1 = arg[2]
18970 }
18971 split(mac1, mac2, "(") #)
18972 macro = mac2[1]
18973 prefix = substr(line, 1, index(line, defundef) - 1)
18974 if (D_is_set[macro]) {
18975 # Preserve the white space surrounding the "#".
18976 print prefix "define", macro P[macro] D[macro]
18977 next
18978 } else {
18979 # Replace #undef with comments. This is necessary, for example,
18980 # in the case of _POSIX_SOURCE, which is predefined and required
18981 # on some systems where configure will not decide to define it.
18982 if (defundef == "undef") {
18983 print "/*", prefix defundef, macro, "*/"
18984 next
18985 }
18986 }
18987 }
18988 { print }
18989 _ACAWK
18990 _ACEOF
18991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18992 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18993 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18994 { (exit 1); exit 1; }; }
18995 fi # test -n "$CONFIG_HEADERS"
18996
18997
18998 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18999 shift
19000 for ac_tag
19001 do
19002 case $ac_tag in
19003 :[FHLC]) ac_mode=$ac_tag; continue;;
19004 esac
19005 case $ac_mode$ac_tag in
19006 :[FHL]*:*);;
19007 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19008 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19009 { (exit 1); exit 1; }; };;
19010 :[FH]-) ac_tag=-:-;;
19011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19012 esac
19013 ac_save_IFS=$IFS
19014 IFS=:
19015 set x $ac_tag
19016 IFS=$ac_save_IFS
19017 shift
19018 ac_file=$1
19019 shift
19020
19021 case $ac_mode in
19022 :L) ac_source=$1;;
19023 :[FH])
19024 ac_file_inputs=
19025 for ac_f
19026 do
19027 case $ac_f in
19028 -) ac_f="$tmp/stdin";;
19029 *) # Look for the file first in the build tree, then in the source tree
19030 # (if the path is not absolute). The absolute path cannot be DOS-style,
19031 # because $ac_f cannot contain `:'.
19032 test -f "$ac_f" ||
19033 case $ac_f in
19034 [\\/$]*) false;;
19035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19036 esac ||
19037 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19038 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19039 { (exit 1); exit 1; }; };;
19040 esac
19041 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19042 ac_file_inputs="$ac_file_inputs '$ac_f'"
19043 done
19044
19045 # Let's still pretend it is `configure' which instantiates (i.e., don't
19046 # use $as_me), people would be surprised to read:
19047 # /* config.h. Generated by config.status. */
19048 configure_input='Generated from '`
19049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19050 `' by configure.'
19051 if test x"$ac_file" != x-; then
19052 configure_input="$ac_file. $configure_input"
19053 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19054 $as_echo "$as_me: creating $ac_file" >&6;}
19055 fi
19056 # Neutralize special characters interpreted by sed in replacement strings.
19057 case $configure_input in #(
19058 *\&* | *\|* | *\\* )
19059 ac_sed_conf_input=`$as_echo "$configure_input" |
19060 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19061 *) ac_sed_conf_input=$configure_input;;
19062 esac
19063
19064 case $ac_tag in
19065 *:-:* | *:-) cat >"$tmp/stdin" \
19066 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19067 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19068 { (exit 1); exit 1; }; } ;;
19069 esac
19070 ;;
19071 esac
19072
19073 ac_dir=`$as_dirname -- "$ac_file" ||
19074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19075 X"$ac_file" : 'X\(//\)[^/]' \| \
19076 X"$ac_file" : 'X\(//\)$' \| \
19077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19078 $as_echo X"$ac_file" |
19079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19080 s//\1/
19081 q
19082 }
19083 /^X\(\/\/\)[^/].*/{
19084 s//\1/
19085 q
19086 }
19087 /^X\(\/\/\)$/{
19088 s//\1/
19089 q
19090 }
19091 /^X\(\/\).*/{
19092 s//\1/
19093 q
19094 }
19095 s/.*/./; q'`
19096 { as_dir="$ac_dir"
19097 case $as_dir in #(
19098 -*) as_dir=./$as_dir;;
19099 esac
19100 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19101 as_dirs=
19102 while :; do
19103 case $as_dir in #(
19104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19105 *) as_qdir=$as_dir;;
19106 esac
19107 as_dirs="'$as_qdir' $as_dirs"
19108 as_dir=`$as_dirname -- "$as_dir" ||
19109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19110 X"$as_dir" : 'X\(//\)[^/]' \| \
19111 X"$as_dir" : 'X\(//\)$' \| \
19112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19113 $as_echo X"$as_dir" |
19114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19115 s//\1/
19116 q
19117 }
19118 /^X\(\/\/\)[^/].*/{
19119 s//\1/
19120 q
19121 }
19122 /^X\(\/\/\)$/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\).*/{
19127 s//\1/
19128 q
19129 }
19130 s/.*/./; q'`
19131 test -d "$as_dir" && break
19132 done
19133 test -z "$as_dirs" || eval "mkdir $as_dirs"
19134 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19135 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19136 { (exit 1); exit 1; }; }; }
19137 ac_builddir=.
19138
19139 case "$ac_dir" in
19140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19141 *)
19142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19143 # A ".." for each directory in $ac_dir_suffix.
19144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19145 case $ac_top_builddir_sub in
19146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19148 esac ;;
19149 esac
19150 ac_abs_top_builddir=$ac_pwd
19151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19152 # for backward compatibility:
19153 ac_top_builddir=$ac_top_build_prefix
19154
19155 case $srcdir in
19156 .) # We are building in place.
19157 ac_srcdir=.
19158 ac_top_srcdir=$ac_top_builddir_sub
19159 ac_abs_top_srcdir=$ac_pwd ;;
19160 [\\/]* | ?:[\\/]* ) # Absolute name.
19161 ac_srcdir=$srcdir$ac_dir_suffix;
19162 ac_top_srcdir=$srcdir
19163 ac_abs_top_srcdir=$srcdir ;;
19164 *) # Relative name.
19165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19166 ac_top_srcdir=$ac_top_build_prefix$srcdir
19167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19168 esac
19169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19170
19171
19172 case $ac_mode in
19173 :F)
19174 #
19175 # CONFIG_FILE
19176 #
19177
19178 case $INSTALL in
19179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19180 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19181 esac
19182 ac_MKDIR_P=$MKDIR_P
19183 case $MKDIR_P in
19184 [\\/$]* | ?:[\\/]* ) ;;
19185 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19186 esac
19187 _ACEOF
19188
19189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19190 # If the template does not know about datarootdir, expand it.
19191 # FIXME: This hack should be removed a few years after 2.60.
19192 ac_datarootdir_hack=; ac_datarootdir_seen=
19193
19194 ac_sed_dataroot='
19195 /datarootdir/ {
19196 p
19197 q
19198 }
19199 /@datadir@/p
19200 /@docdir@/p
19201 /@infodir@/p
19202 /@localedir@/p
19203 /@mandir@/p
19204 '
19205 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19206 *datarootdir*) ac_datarootdir_seen=yes;;
19207 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19208 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19209 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19210 _ACEOF
19211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19212 ac_datarootdir_hack='
19213 s&@datadir@&$datadir&g
19214 s&@docdir@&$docdir&g
19215 s&@infodir@&$infodir&g
19216 s&@localedir@&$localedir&g
19217 s&@mandir@&$mandir&g
19218 s&\\\${datarootdir}&$datarootdir&g' ;;
19219 esac
19220 _ACEOF
19221
19222 # Neutralize VPATH when `$srcdir' = `.'.
19223 # Shell code in configure.ac might set extrasub.
19224 # FIXME: do we really want to maintain this feature?
19225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19226 ac_sed_extra="$ac_vpsub
19227 $extrasub
19228 _ACEOF
19229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230 :t
19231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19232 s|@configure_input@|$ac_sed_conf_input|;t t
19233 s&@top_builddir@&$ac_top_builddir_sub&;t t
19234 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19235 s&@srcdir@&$ac_srcdir&;t t
19236 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19237 s&@top_srcdir@&$ac_top_srcdir&;t t
19238 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19239 s&@builddir@&$ac_builddir&;t t
19240 s&@abs_builddir@&$ac_abs_builddir&;t t
19241 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19242 s&@INSTALL@&$ac_INSTALL&;t t
19243 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19244 $ac_datarootdir_hack
19245 "
19246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19247 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19248 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19249 { (exit 1); exit 1; }; }
19250
19251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19254 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19255 which seems to be undefined. Please make sure it is defined." >&5
19256 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19257 which seems to be undefined. Please make sure it is defined." >&2;}
19258
19259 rm -f "$tmp/stdin"
19260 case $ac_file in
19261 -) cat "$tmp/out" && rm -f "$tmp/out";;
19262 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19263 esac \
19264 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19265 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19266 { (exit 1); exit 1; }; }
19267 ;;
19268 :H)
19269 #
19270 # CONFIG_HEADER
19271 #
19272 if test x"$ac_file" != x-; then
19273 {
19274 $as_echo "/* $configure_input */" \
19275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19276 } >"$tmp/config.h" \
19277 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19278 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19279 { (exit 1); exit 1; }; }
19280 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19281 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19282 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19283 else
19284 rm -f "$ac_file"
19285 mv "$tmp/config.h" "$ac_file" \
19286 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19287 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19288 { (exit 1); exit 1; }; }
19289 fi
19290 else
19291 $as_echo "/* $configure_input */" \
19292 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19293 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19294 $as_echo "$as_me: error: could not create -" >&2;}
19295 { (exit 1); exit 1; }; }
19296 fi
19297 ;;
19298
19299
19300 esac
19301
19302 done # for ac_tag
19303
19304
19305 { (exit 0); exit 0; }
19306 _ACEOF
19307 chmod +x $CONFIG_STATUS
19308 ac_clean_files=$ac_clean_files_save
19309
19310 test $ac_write_fail = 0 ||
19311 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19312 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19313 { (exit 1); exit 1; }; }
19314
19315
19316 # configure is writing to config.log, and then calls config.status.
19317 # config.status does its own redirection, appending to config.log.
19318 # Unfortunately, on DOS this fails, as config.log is still kept open
19319 # by configure, so config.status won't be able to write to it; its
19320 # output is simply discarded. So we exec the FD to /dev/null,
19321 # effectively closing config.log, so it can be properly (re)opened and
19322 # appended to by config.status. When coming back to configure, we
19323 # need to make the FD available again.
19324 if test "$no_create" != yes; then
19325 ac_cs_success=:
19326 ac_config_status_args=
19327 test "$silent" = yes &&
19328 ac_config_status_args="$ac_config_status_args --quiet"
19329 exec 5>/dev/null
19330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19331 exec 5>>config.log
19332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19333 # would make configure fail if this is the last instruction.
19334 $ac_cs_success || { (exit 1); exit 1; }
19335 fi
19336 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19337 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19338 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19339 fi
19340
19341
19342 if test x$ODIRECT != xyes; then
19343 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19344 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
19345 fi
This page took 1.047929 seconds and 6 git commands to generate.