]> sourceware.org Git - lvm2.git/blob - configure
Use UDEV_LIBS, and link -ludev only when needed.
[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 UDEV_SYNC
650 UDEV_RULES
651 UDEV_LIBS
652 STATIC_LINK
653 STATICDIR
654 SNAPSHOTS
655 SELINUX_LIBS
656 READLINE_LIBS
657 PTHREAD_LIBS
658 POOL
659 PKGCONFIG
660 OWNER
661 MIRRORS
662 LVM_RELEASE_DATE
663 LVM_RELEASE
664 LVM_PATCHLEVEL
665 LVM_MINOR
666 LVM_MAJOR
667 LVM_LIBAPI
668 LVM_VERSION
669 LVM1_FALLBACK
670 LVM1
671 LOCALEDIR
672 LIB_SUFFIX
673 LDDEPS
674 JOBS
675 INTL_PACKAGE
676 INTL
677 HAVE_REALTIME
678 HAVE_LIBDL
679 GROUP
680 FSADM
681 DM_LIB_PATCHLEVEL
682 DM_LIB_VERSION
683 DM_IOCTLS
684 DM_DEVICE_UID
685 DM_DEVICE_MODE
686 DM_DEVICE_GID
687 DM_COMPAT
688 DMEVENTD
689 DL_LIBS
690 DEVMAPPER
691 DEBUG
692 COPTIMISE_FLAG
693 CONFDIR
694 CMDLIB
695 CLVMD
696 CLUSTER
697 CLDWHOLEARCHIVE
698 CLDNOWHOLEARCHIVE
699 CLDFLAGS
700 BUILD_DMEVENTD
701 BUILD_CMIRRORD
702 APPLIB
703 MODPROBE_CMD
704 MSGFMT
705 LVM2CMD_LIB
706 LVM2APP_LIB
707 GENHTML
708 LCOV
709 SACKPT_LIBS
710 SACKPT_CFLAGS
711 DLM_LIBS
712 DLM_CFLAGS
713 CPG_LIBS
714 CPG_CFLAGS
715 CONFDB_LIBS
716 CONFDB_CFLAGS
717 SALCK_LIBS
718 SALCK_CFLAGS
719 QUORUM_LIBS
720 QUORUM_CFLAGS
721 COROSYNC_LIBS
722 COROSYNC_CFLAGS
723 CMAN_LIBS
724 CMAN_CFLAGS
725 GULM_LIBS
726 GULM_CFLAGS
727 CCS_LIBS
728 CCS_CFLAGS
729 PKGCONFIGINIT_LIBS
730 PKGCONFIGINIT_CFLAGS
731 PKG_CONFIG
732 POW_LIB
733 LIBOBJS
734 ALLOCA
735 CSCOPE_CMD
736 CFLOW_CMD
737 RANLIB
738 MKDIR_P
739 SET_MAKE
740 LN_S
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 EGREP
745 GREP
746 CPP
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 AWK
755 SED
756 target_os
757 target_vendor
758 target_cpu
759 target
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_static_link
809 with_user
810 with_group
811 with_device_uid
812 with_device_gid
813 with_device_mode
814 enable_lvm1_fallback
815 with_lvm1
816 with_pool
817 with_cluster
818 with_snapshots
819 with_mirrors
820 enable_readline
821 enable_realtime
822 with_clvmd
823 enable_cmirrord
824 with_cmirrord_pidfile
825 enable_debug
826 with_optimisation
827 enable_profiling
828 enable_devmapper
829 enable_udev_sync
830 enable_udev_rules
831 enable_compat
832 enable_units_compat
833 enable_ioctl
834 enable_o_direct
835 enable_applib
836 enable_cmdlib
837 enable_pkgconfig
838 enable_fsadm
839 enable_dmeventd
840 enable_selinux
841 enable_nls
842 with_localedir
843 with_confdir
844 with_staticdir
845 with_usrlibdir
846 with_usrsbindir
847 with_udev_prefix
848 with_udevdir
849 with_dmeventd_pidfile
850 with_dmeventd_path
851 with_interface
852 '
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CPP
862 PKG_CONFIG
863 PKGCONFIGINIT_CFLAGS
864 PKGCONFIGINIT_LIBS
865 CCS_CFLAGS
866 CCS_LIBS
867 GULM_CFLAGS
868 GULM_LIBS
869 CMAN_CFLAGS
870 CMAN_LIBS
871 COROSYNC_CFLAGS
872 COROSYNC_LIBS
873 QUORUM_CFLAGS
874 QUORUM_LIBS
875 SALCK_CFLAGS
876 SALCK_LIBS
877 CONFDB_CFLAGS
878 CONFDB_LIBS
879 CPG_CFLAGS
880 CPG_LIBS
881 DLM_CFLAGS
882 DLM_LIBS
883 SACKPT_CFLAGS
884 SACKPT_LIBS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
994 { (exit 1); exit 1; }; }
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1005
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1010
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1015
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1220
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
1273 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283 { (exit 1); exit 1; }; }
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 ;;
1294
1295 esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1301 { (exit 1); exit 1; }; }
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1308 { (exit 1); exit 1; }; } ;;
1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 esac
1311 fi
1312
1313 # Check all directory arguments for consistency.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1318 do
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
1327 case $ac_val in
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1330 esac
1331 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1332 { (exit 1); exit 1; }; }
1333 done
1334
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1338 build=$build_alias
1339 host=$host_alias
1340 target=$target_alias
1341
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1363 { (exit 1); exit 1; }; }
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1366 { (exit 1); exit 1; }; }
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1406 { (exit 1); exit 1; }; }
1407 fi
1408 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 ac_abs_confdir=`(
1410 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1411 { (exit 1); exit 1; }; }
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures this package to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 System types:
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1498 _ACEOF
1499 fi
1500
1501 if test -n "$ac_init_help"; then
1502
1503 cat <<\_ACEOF
1504
1505 Optional Features:
1506 --disable-option-checking ignore unrecognized --enable/--with options
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --enable-static_link Use this to link the tools to their libraries
1510 statically. Default is dynamic linking
1511 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1512 device-mapper is missing from the kernel
1513 --disable-readline Disable readline support
1514 --enable-realtime Enable realtime clock support
1515 --enable-cmirrord Enable the cluster mirror log daemon
1516 --enable-debug Enable debugging
1517 --enable-profiling Gather gcov profiling data
1518 --disable-devmapper Disable LVM2 device-mapper interaction
1519 --enable-udev_sync Enable synchronisation with udev processing
1520 --enable-udev_rules Install rule files needed for udev synchronisation
1521 --enable-compat Enable support for old device-mapper versions
1522 --enable-units-compat Enable output compatibility with old versions that
1523 that don't use KiB-style unit suffixes
1524 --disable-driver Disable calls to device-mapper in the kernel
1525 --disable-o_direct Disable O_DIRECT
1526 --enable-applib Build application library
1527 --enable-cmdlib Build shared command library
1528 --enable-pkgconfig Install pkgconfig support
1529 --disable-fsadm Disable fsadm
1530 --enable-dmeventd Enable the device-mapper event daemon
1531 --disable-selinux Disable selinux support
1532 --enable-nls Enable Native Language Support
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-user=USER Set the owner of installed files [USER=]
1538 --with-group=GROUP Set the group owner of installed files [GROUP=]
1539 --with-device-uid=UID Set the owner used for new device nodes [UID=0]
1540 --with-device-gid=UID Set the group used for new device nodes [GID=0]
1541 --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1542 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1543 TYPE=internal
1544 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1545 TYPE=internal
1546 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1547 TYPE=internal
1548 --with-snapshots=TYPE Snapshot support: internal/shared/none
1549 TYPE=internal
1550 --with-mirrors=TYPE Mirror support: internal/shared/none
1551 TYPE=internal
1552 --with-clvmd=TYPE Build cluster LVM Daemon.
1553 The following cluster manager combinations are valid:
1554 * cman,gulm (RHEL4 or equivalent)
1555 * cman (RHEL5 or equivalent)
1556 * cman,corosync,openais (or selection of them)
1557 * all (autodetect)
1558 * none (disable build)
1559 TYPE=none
1560 --with-cmirrord-pidfile=PATH cmirrord pidfile [/var/run/cmirrord.pid]
1561 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1562 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
1563 --with-confdir=DIR Configuration files in DIR [/etc]
1564 --with-staticdir=DIR Static binary in DIR [EPREFIX/sbin]
1565 --with-usrlibdir=DIR
1566 --with-usrsbindir=DIR
1567 --with-udev-prefix=UPREFIX Install udev rule files in UPREFIX [EPREFIX]
1568 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
1569 --with-dmeventd-pidfile=PATH dmeventd pidfile [/var/run/dmeventd.pid]
1570 --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd]
1571 --with-interface=IFACE Choose kernel interface (ioctl) [ioctl]
1572
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CPP C preprocessor
1582 PKG_CONFIG path to pkg-config utility
1583 PKGCONFIGINIT_CFLAGS
1584 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1585 PKGCONFIGINIT_LIBS
1586 linker flags for PKGCONFIGINIT, overriding pkg-config
1587 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1588 CCS_LIBS linker flags for CCS, overriding pkg-config
1589 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1590 GULM_LIBS linker flags for GULM, overriding pkg-config
1591 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1592 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1593 COROSYNC_CFLAGS
1594 C compiler flags for COROSYNC, overriding pkg-config
1595 COROSYNC_LIBS
1596 linker flags for COROSYNC, overriding pkg-config
1597 QUORUM_CFLAGS
1598 C compiler flags for QUORUM, overriding pkg-config
1599 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1600 SALCK_CFLAGS
1601 C compiler flags for SALCK, overriding pkg-config
1602 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1603 CONFDB_CFLAGS
1604 C compiler flags for CONFDB, overriding pkg-config
1605 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1606 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1607 CPG_LIBS linker flags for CPG, overriding pkg-config
1608 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1609 DLM_LIBS linker flags for DLM, overriding pkg-config
1610 SACKPT_CFLAGS
1611 C compiler flags for SACKPT, overriding pkg-config
1612 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1613
1614 Use these variables to override the choices made by `configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1616
1617 _ACEOF
1618 ac_status=$?
1619 fi
1620
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678 cat <<\_ACEOF
1679 configure
1680 generated by GNU Autoconf 2.63
1681
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686 _ACEOF
1687 exit
1688 fi
1689 cat >config.log <<_ACEOF
1690 This file contains any messages produced by compilers while
1691 running configure, to aid debugging if configure makes a mistake.
1692
1693 It was created by $as_me, which was
1694 generated by GNU Autoconf 2.63. Invocation command line was
1695
1696 $ $0 $@
1697
1698 _ACEOF
1699 exec 5>>config.log
1700 {
1701 cat <<_ASUNAME
1702 ## --------- ##
1703 ## Platform. ##
1704 ## --------- ##
1705
1706 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1707 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1708 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1709 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1710 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1711
1712 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1713 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1714
1715 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1716 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1717 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1718 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1719 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1720 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1721 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1722
1723 _ASUNAME
1724
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 $as_echo "PATH: $as_dir"
1731 done
1732 IFS=$as_save_IFS
1733
1734 } >&5
1735
1736 cat >&5 <<_ACEOF
1737
1738
1739 ## ----------- ##
1740 ## Core tests. ##
1741 ## ----------- ##
1742
1743 _ACEOF
1744
1745
1746 # Keep a trace of the command line.
1747 # Strip out --no-create and --no-recursion so they do not pile up.
1748 # Strip out --silent because we don't want to record it for future runs.
1749 # Also quote any args containing shell meta-characters.
1750 # Make two passes to allow for proper duplicate-argument suppression.
1751 ac_configure_args=
1752 ac_configure_args0=
1753 ac_configure_args1=
1754 ac_must_keep_next=false
1755 for ac_pass in 1 2
1756 do
1757 for ac_arg
1758 do
1759 case $ac_arg in
1760 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1761 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1762 | -silent | --silent | --silen | --sile | --sil)
1763 continue ;;
1764 *\'*)
1765 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 esac
1767 case $ac_pass in
1768 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769 2)
1770 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1771 if test $ac_must_keep_next = true; then
1772 ac_must_keep_next=false # Got value, back to normal.
1773 else
1774 case $ac_arg in
1775 *=* | --config-cache | -C | -disable-* | --disable-* \
1776 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1777 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1778 | -with-* | --with-* | -without-* | --without-* | --x)
1779 case "$ac_configure_args0 " in
1780 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 esac
1782 ;;
1783 -* ) ac_must_keep_next=true ;;
1784 esac
1785 fi
1786 ac_configure_args="$ac_configure_args '$ac_arg'"
1787 ;;
1788 esac
1789 done
1790 done
1791 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1792 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793
1794 # When interrupted or exit'd, cleanup temporary files, and complete
1795 # config.log. We remove comments because anyway the quotes in there
1796 # would cause problems or look ugly.
1797 # WARNING: Use '\'' to represent an apostrophe within the trap.
1798 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1799 trap 'exit_status=$?
1800 # Save into config.log some information that might help in debugging.
1801 {
1802 echo
1803
1804 cat <<\_ASBOX
1805 ## ---------------- ##
1806 ## Cache variables. ##
1807 ## ---------------- ##
1808 _ASBOX
1809 echo
1810 # The following way of writing the cache mishandles newlines in values,
1811 (
1812 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in #(
1815 *${as_nl}*)
1816 case $ac_var in #(
1817 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1819 esac
1820 case $ac_var in #(
1821 _ | IFS | as_nl) ;; #(
1822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1823 *) $as_unset $ac_var ;;
1824 esac ;;
1825 esac
1826 done
1827 (set) 2>&1 |
1828 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1829 *${as_nl}ac_space=\ *)
1830 sed -n \
1831 "s/'\''/'\''\\\\'\'''\''/g;
1832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 ;; #(
1834 *)
1835 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1836 ;;
1837 esac |
1838 sort
1839 )
1840 echo
1841
1842 cat <<\_ASBOX
1843 ## ----------------- ##
1844 ## Output variables. ##
1845 ## ----------------- ##
1846 _ASBOX
1847 echo
1848 for ac_var in $ac_subst_vars
1849 do
1850 eval ac_val=\$$ac_var
1851 case $ac_val in
1852 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 esac
1854 $as_echo "$ac_var='\''$ac_val'\''"
1855 done | sort
1856 echo
1857
1858 if test -n "$ac_subst_files"; then
1859 cat <<\_ASBOX
1860 ## ------------------- ##
1861 ## File substitutions. ##
1862 ## ------------------- ##
1863 _ASBOX
1864 echo
1865 for ac_var in $ac_subst_files
1866 do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in
1869 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1870 esac
1871 $as_echo "$ac_var='\''$ac_val'\''"
1872 done | sort
1873 echo
1874 fi
1875
1876 if test -s confdefs.h; then
1877 cat <<\_ASBOX
1878 ## ----------- ##
1879 ## confdefs.h. ##
1880 ## ----------- ##
1881 _ASBOX
1882 echo
1883 cat confdefs.h
1884 echo
1885 fi
1886 test "$ac_signal" != 0 &&
1887 $as_echo "$as_me: caught signal $ac_signal"
1888 $as_echo "$as_me: exit $exit_status"
1889 } >&5
1890 rm -f core *.core core.conftest.* &&
1891 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892 exit $exit_status
1893 ' 0
1894 for ac_signal in 1 2 13 15; do
1895 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1896 done
1897 ac_signal=0
1898
1899 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1900 rm -f -r conftest* confdefs.h
1901
1902 # Predefined preprocessor variables.
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_NAME "$PACKAGE_NAME"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1916 _ACEOF
1917
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_STRING "$PACKAGE_STRING"
1921 _ACEOF
1922
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1926 _ACEOF
1927
1928
1929 # Let the site file select an alternate cache file if it wants to.
1930 # Prefer an explicitly selected file to automatically selected ones.
1931 ac_site_file1=NONE
1932 ac_site_file2=NONE
1933 if test -n "$CONFIG_SITE"; then
1934 ac_site_file1=$CONFIG_SITE
1935 elif test "x$prefix" != xNONE; then
1936 ac_site_file1=$prefix/share/config.site
1937 ac_site_file2=$prefix/etc/config.site
1938 else
1939 ac_site_file1=$ac_default_prefix/share/config.site
1940 ac_site_file2=$ac_default_prefix/etc/config.site
1941 fi
1942 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1943 do
1944 test "x$ac_site_file" = xNONE && continue
1945 if test -r "$ac_site_file"; then
1946 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1947 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1948 sed 's/^/| /' "$ac_site_file" >&5
1949 . "$ac_site_file"
1950 fi
1951 done
1952
1953 if test -r "$cache_file"; then
1954 # Some versions of bash will fail to source /dev/null (special
1955 # files actually), so we avoid doing that.
1956 if test -f "$cache_file"; then
1957 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1958 $as_echo "$as_me: loading cache $cache_file" >&6;}
1959 case $cache_file in
1960 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1961 *) . "./$cache_file";;
1962 esac
1963 fi
1964 else
1965 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1966 $as_echo "$as_me: creating cache $cache_file" >&6;}
1967 >$cache_file
1968 fi
1969
1970 # Check that the precious variables saved in the cache have kept the same
1971 # value.
1972 ac_cache_corrupted=false
1973 for ac_var in $ac_precious_vars; do
1974 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1975 eval ac_new_set=\$ac_env_${ac_var}_set
1976 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1977 eval ac_new_val=\$ac_env_${ac_var}_value
1978 case $ac_old_set,$ac_new_set in
1979 set,)
1980 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1981 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1982 ac_cache_corrupted=: ;;
1983 ,set)
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1985 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,);;
1988 *)
1989 if test "x$ac_old_val" != "x$ac_new_val"; then
1990 # differences in whitespace do not lead to failure.
1991 ac_old_val_w=`echo x $ac_old_val`
1992 ac_new_val_w=`echo x $ac_new_val`
1993 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1994 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996 ac_cache_corrupted=:
1997 else
1998 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1999 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2000 eval $ac_var=\$ac_old_val
2001 fi
2002 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2003 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2004 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2005 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
2011 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019 done
2020 if $ac_cache_corrupted; then
2021 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2023 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2024 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2025 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2026 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2027 { (exit 1); exit 1; }; }
2028 fi
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2055
2056
2057 ################################################################################
2058 ac_aux_dir=
2059 for ac_dir in autoconf "$srcdir"/autoconf; do
2060 if test -f "$ac_dir/install-sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 break
2064 elif test -f "$ac_dir/install.sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 break
2068 elif test -f "$ac_dir/shtool"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/shtool install -c"
2071 break
2072 fi
2073 done
2074 if test -z "$ac_aux_dir"; then
2075 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2076 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2077 { (exit 1); exit 1; }; }
2078 fi
2079
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2087
2088
2089
2090 ################################################################################
2091 # Make sure we can run config.sub.
2092 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2093 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2094 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2095 { (exit 1); exit 1; }; }
2096
2097 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2098 $as_echo_n "checking build system type... " >&6; }
2099 if test "${ac_cv_build+set}" = set; then
2100 $as_echo_n "(cached) " >&6
2101 else
2102 ac_build_alias=$build_alias
2103 test "x$ac_build_alias" = x &&
2104 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2105 test "x$ac_build_alias" = x &&
2106 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2107 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2108 { (exit 1); exit 1; }; }
2109 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2110 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2111 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2112 { (exit 1); exit 1; }; }
2113
2114 fi
2115 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2116 $as_echo "$ac_cv_build" >&6; }
2117 case $ac_cv_build in
2118 *-*-*) ;;
2119 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2120 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2121 { (exit 1); exit 1; }; };;
2122 esac
2123 build=$ac_cv_build
2124 ac_save_IFS=$IFS; IFS='-'
2125 set x $ac_cv_build
2126 shift
2127 build_cpu=$1
2128 build_vendor=$2
2129 shift; shift
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2132 build_os=$*
2133 IFS=$ac_save_IFS
2134 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135
2136
2137 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2138 $as_echo_n "checking host system type... " >&6; }
2139 if test "${ac_cv_host+set}" = set; then
2140 $as_echo_n "(cached) " >&6
2141 else
2142 if test "x$host_alias" = x; then
2143 ac_cv_host=$ac_cv_build
2144 else
2145 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2146 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2147 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151 fi
2152 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2153 $as_echo "$ac_cv_host" >&6; }
2154 case $ac_cv_host in
2155 *-*-*) ;;
2156 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2157 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2158 { (exit 1); exit 1; }; };;
2159 esac
2160 host=$ac_cv_host
2161 ac_save_IFS=$IFS; IFS='-'
2162 set x $ac_cv_host
2163 shift
2164 host_cpu=$1
2165 host_vendor=$2
2166 shift; shift
2167 # Remember, the first character of IFS is used to create $*,
2168 # except with old shells:
2169 host_os=$*
2170 IFS=$ac_save_IFS
2171 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172
2173
2174 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2175 $as_echo_n "checking target system type... " >&6; }
2176 if test "${ac_cv_target+set}" = set; then
2177 $as_echo_n "(cached) " >&6
2178 else
2179 if test "x$target_alias" = x; then
2180 ac_cv_target=$ac_cv_host
2181 else
2182 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2183 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2184 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2185 { (exit 1); exit 1; }; }
2186 fi
2187
2188 fi
2189 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2190 $as_echo "$ac_cv_target" >&6; }
2191 case $ac_cv_target in
2192 *-*-*) ;;
2193 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2194 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2195 { (exit 1); exit 1; }; };;
2196 esac
2197 target=$ac_cv_target
2198 ac_save_IFS=$IFS; IFS='-'
2199 set x $ac_cv_target
2200 shift
2201 target_cpu=$1
2202 target_vendor=$2
2203 shift; shift
2204 # Remember, the first character of IFS is used to create $*,
2205 # except with old shells:
2206 target_os=$*
2207 IFS=$ac_save_IFS
2208 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2209
2210
2211 # The aliases save the names the user supplied, while $host etc.
2212 # will get canonicalized.
2213 test -n "$target_alias" &&
2214 test "$program_prefix$program_suffix$program_transform_name" = \
2215 NONENONEs,x,x, &&
2216 program_prefix=${target_alias}-
2217
2218 case "$host_os" in
2219 linux*)
2220 CFLAGS="$CFLAGS"
2221 COPTIMISE_FLAG="-O2"
2222 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2223 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2224 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2225 LDDEPS="$LDDEPS .export.sym"
2226 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2227 LIB_SUFFIX=so
2228 DEVMAPPER=yes
2229 ODIRECT=yes
2230 DM_IOCTLS=yes
2231 SELINUX=yes
2232 CLUSTER=internal
2233 FSADM=yes
2234 ;;
2235 darwin*)
2236 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2237 COPTIMISE_FLAG="-O2"
2238 CLDFLAGS="$CLDFLAGS"
2239 CLDWHOLEARCHIVE="-all_load"
2240 CLDNOWHOLEARCHIVE=
2241 LIB_SUFFIX=dylib
2242 DEVMAPPER=yes
2243 ODIRECT=no
2244 DM_IOCTLS=no
2245 SELINUX=no
2246 CLUSTER=none
2247 FSADM=no
2248 ;;
2249 esac
2250
2251 ################################################################################
2252 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2253 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2254 if test "${ac_cv_path_SED+set}" = set; then
2255 $as_echo_n "(cached) " >&6
2256 else
2257 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2258 for ac_i in 1 2 3 4 5 6 7; do
2259 ac_script="$ac_script$as_nl$ac_script"
2260 done
2261 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2262 $as_unset ac_script || ac_script=
2263 if test -z "$SED"; then
2264 ac_path_SED_found=false
2265 # Loop through the user's path and test for each of PROGNAME-LIST
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 for ac_prog in sed gsed; do
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2274 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2275 # Check for GNU ac_path_SED and select it if it is found.
2276 # Check for GNU $ac_path_SED
2277 case `"$ac_path_SED" --version 2>&1` in
2278 *GNU*)
2279 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2280 *)
2281 ac_count=0
2282 $as_echo_n 0123456789 >"conftest.in"
2283 while :
2284 do
2285 cat "conftest.in" "conftest.in" >"conftest.tmp"
2286 mv "conftest.tmp" "conftest.in"
2287 cp "conftest.in" "conftest.nl"
2288 $as_echo '' >> "conftest.nl"
2289 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2291 ac_count=`expr $ac_count + 1`
2292 if test $ac_count -gt ${ac_path_SED_max-0}; then
2293 # Best one so far, save it but keep looking for a better one
2294 ac_cv_path_SED="$ac_path_SED"
2295 ac_path_SED_max=$ac_count
2296 fi
2297 # 10*(2^10) chars as input seems more than enough
2298 test $ac_count -gt 10 && break
2299 done
2300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2301 esac
2302
2303 $ac_path_SED_found && break 3
2304 done
2305 done
2306 done
2307 IFS=$as_save_IFS
2308 if test -z "$ac_cv_path_SED"; then
2309 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2310 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2311 { (exit 1); exit 1; }; }
2312 fi
2313 else
2314 ac_cv_path_SED=$SED
2315 fi
2316
2317 fi
2318 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2319 $as_echo "$ac_cv_path_SED" >&6; }
2320 SED="$ac_cv_path_SED"
2321 rm -f conftest.sed
2322
2323 for ac_prog in gawk mawk nawk awk
2324 do
2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 $as_echo_n "checking for $ac_word... " >&6; }
2329 if test "${ac_cv_prog_AWK+set}" = set; then
2330 $as_echo_n "(cached) " >&6
2331 else
2332 if test -n "$AWK"; then
2333 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342 ac_cv_prog_AWK="$ac_prog"
2343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 AWK=$ac_cv_prog_AWK
2353 if test -n "$AWK"; then
2354 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2355 $as_echo "$AWK" >&6; }
2356 else
2357 { $as_echo "$as_me:$LINENO: result: no" >&5
2358 $as_echo "no" >&6; }
2359 fi
2360
2361
2362 test -n "$AWK" && break
2363 done
2364
2365 ac_ext=c
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 $as_echo_n "checking for $ac_word... " >&6; }
2375 if test "${ac_cv_prog_CC+set}" = set; then
2376 $as_echo_n "(cached) " >&6
2377 else
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC="$CC" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384 IFS=$as_save_IFS
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 break 2
2391 fi
2392 done
2393 done
2394 IFS=$as_save_IFS
2395
2396 fi
2397 fi
2398 CC=$ac_cv_prog_CC
2399 if test -n "$CC"; then
2400 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2401 $as_echo "$CC" >&6; }
2402 else
2403 { $as_echo "$as_me:$LINENO: result: no" >&5
2404 $as_echo "no" >&6; }
2405 fi
2406
2407
2408 fi
2409 if test -z "$ac_cv_prog_CC"; then
2410 ac_ct_CC=$CC
2411 # Extract the first word of "gcc", so it can be a program name with args.
2412 set dummy gcc; ac_word=$2
2413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2416 $as_echo_n "(cached) " >&6
2417 else
2418 if test -n "$ac_ct_CC"; then
2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_ac_ct_CC="gcc"
2429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 break 2
2431 fi
2432 done
2433 done
2434 IFS=$as_save_IFS
2435
2436 fi
2437 fi
2438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439 if test -n "$ac_ct_CC"; then
2440 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2441 $as_echo "$ac_ct_CC" >&6; }
2442 else
2443 { $as_echo "$as_me:$LINENO: result: no" >&5
2444 $as_echo "no" >&6; }
2445 fi
2446
2447 if test "x$ac_ct_CC" = x; then
2448 CC=""
2449 else
2450 case $cross_compiling:$ac_tool_warned in
2451 yes:)
2452 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2454 ac_tool_warned=yes ;;
2455 esac
2456 CC=$ac_ct_CC
2457 fi
2458 else
2459 CC="$ac_cv_prog_CC"
2460 fi
2461
2462 if test -z "$CC"; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}cc; ac_word=$2
2466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_CC="${ac_tool_prefix}cc"
2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 CC=$ac_cv_prog_CC
2492 if test -n "$CC"; then
2493 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2494 $as_echo "$CC" >&6; }
2495 else
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500
2501 fi
2502 fi
2503 if test -z "$CC"; then
2504 # Extract the first word of "cc", so it can be a program name with args.
2505 set dummy cc; ac_word=$2
2506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_CC+set}" = set; then
2509 $as_echo_n "(cached) " >&6
2510 else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513 else
2514 ac_prog_rejected=no
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2523 ac_prog_rejected=yes
2524 continue
2525 fi
2526 ac_cv_prog_CC="cc"
2527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 if test $ac_prog_rejected = yes; then
2535 # We found a bogon in the path, so make sure we never use it.
2536 set dummy $ac_cv_prog_CC
2537 shift
2538 if test $# != 0; then
2539 # We chose a different compiler from the bogus one.
2540 # However, it has the same basename, so the bogon will be chosen
2541 # first if we set CC to just the basename; use the full file name.
2542 shift
2543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 fi
2545 fi
2546 fi
2547 fi
2548 CC=$ac_cv_prog_CC
2549 if test -n "$CC"; then
2550 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2551 $as_echo "$CC" >&6; }
2552 else
2553 { $as_echo "$as_me:$LINENO: result: no" >&5
2554 $as_echo "no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
2561 for ac_prog in cl.exe
2562 do
2563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if test "${ac_cv_prog_CC+set}" = set; then
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595 { $as_echo "$as_me:$LINENO: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 test -n "$CC" && break
2601 done
2602 fi
2603 if test -z "$CC"; then
2604 ac_ct_CC=$CC
2605 for ac_prog in cl.exe
2606 do
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $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_ac_ct_CC+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635 if test -n "$ac_ct_CC"; then
2636 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637 $as_echo "$ac_ct_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 "$ac_ct_CC" && break
2645 done
2646
2647 if test "x$ac_ct_CC" = x; then
2648 CC=""
2649 else
2650 case $cross_compiling:$ac_tool_warned in
2651 yes:)
2652 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656 CC=$ac_ct_CC
2657 fi
2658 fi
2659
2660 fi
2661
2662
2663 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666 See \`config.log' for more details." >&5
2667 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2668 See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }; }
2670
2671 # Provide some information about the compiler.
2672 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2673 set X $ac_compile
2674 ac_compiler=$2
2675 { (ac_try="$ac_compiler --version >&5"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2681 $as_echo "$ac_try_echo") >&5
2682 (eval "$ac_compiler --version >&5") 2>&5
2683 ac_status=$?
2684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2686 { (ac_try="$ac_compiler -v >&5"
2687 case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2692 $as_echo "$ac_try_echo") >&5
2693 (eval "$ac_compiler -v >&5") 2>&5
2694 ac_status=$?
2695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2697 { (ac_try="$ac_compiler -V >&5"
2698 case "(($ac_try" in
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2701 esac
2702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2703 $as_echo "$ac_try_echo") >&5
2704 (eval "$ac_compiler -V >&5") 2>&5
2705 ac_status=$?
2706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }
2708
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2715
2716 int
2717 main ()
2718 {
2719
2720 ;
2721 return 0;
2722 }
2723 _ACEOF
2724 ac_clean_files_save=$ac_clean_files
2725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2726 # Try to create an executable without -o first, disregard a.out.
2727 # It will help us diagnose broken compilers, and finding out an intuition
2728 # of exeext.
2729 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2730 $as_echo_n "checking for C compiler default output file name... " >&6; }
2731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2732
2733 # The possible output files:
2734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2735
2736 ac_rmfiles=
2737 for ac_file in $ac_files
2738 do
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 esac
2743 done
2744 rm -f $ac_rmfiles
2745
2746 if { (ac_try="$ac_link_default"
2747 case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750 esac
2751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2752 $as_echo "$ac_try_echo") >&5
2753 (eval "$ac_link_default") 2>&5
2754 ac_status=$?
2755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; then
2757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2760 # so that the user can short-circuit this test for compilers unknown to
2761 # Autoconf.
2762 for ac_file in $ac_files ''
2763 do
2764 test -f "$ac_file" || continue
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2767 ;;
2768 [ab].out )
2769 # We found the default executable, but exeext='' is most
2770 # certainly right.
2771 break;;
2772 *.* )
2773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2774 then :; else
2775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776 fi
2777 # We set ac_cv_exeext here because the later test for it is not
2778 # safe: cross compilers may not add the suffix if given an `-o'
2779 # argument, so we may need to know it at that point already.
2780 # Even if this section looks crufty: it has the advantage of
2781 # actually working.
2782 break;;
2783 * )
2784 break;;
2785 esac
2786 done
2787 test "$ac_cv_exeext" = no && ac_cv_exeext=
2788
2789 else
2790 ac_file=''
2791 fi
2792
2793 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2794 $as_echo "$ac_file" >&6; }
2795 if test -z "$ac_file"; then
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2802 See \`config.log' for more details." >&5
2803 $as_echo "$as_me: error: C compiler cannot create executables
2804 See \`config.log' for more details." >&2;}
2805 { (exit 77); exit 77; }; }; }
2806 fi
2807
2808 ac_exeext=$ac_cv_exeext
2809
2810 # Check that the compiler produces executables we can run. If not, either
2811 # the compiler is broken, or we cross compile.
2812 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2813 $as_echo_n "checking whether the C compiler works... " >&6; }
2814 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2815 # If not cross compiling, check that we can run a simple program.
2816 if test "$cross_compiling" != yes; then
2817 if { ac_try='./$ac_file'
2818 { (case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823 $as_echo "$ac_try_echo") >&5
2824 (eval "$ac_try") 2>&5
2825 ac_status=$?
2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 cross_compiling=no
2829 else
2830 if test "$cross_compiling" = maybe; then
2831 cross_compiling=yes
2832 else
2833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2835 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2836 If you meant to cross compile, use \`--host'.
2837 See \`config.log' for more details." >&5
2838 $as_echo "$as_me: error: cannot run C compiled programs.
2839 If you meant to cross compile, use \`--host'.
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }; }
2842 fi
2843 fi
2844 fi
2845 { $as_echo "$as_me:$LINENO: result: yes" >&5
2846 $as_echo "yes" >&6; }
2847
2848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2849 ac_clean_files=$ac_clean_files_save
2850 # Check that the compiler produces executables we can run. If not, either
2851 # the compiler is broken, or we cross compile.
2852 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2853 $as_echo_n "checking whether we are cross compiling... " >&6; }
2854 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2855 $as_echo "$cross_compiling" >&6; }
2856
2857 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2858 $as_echo_n "checking for suffix of executables... " >&6; }
2859 if { (ac_try="$ac_link"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2865 $as_echo "$ac_try_echo") >&5
2866 (eval "$ac_link") 2>&5
2867 ac_status=$?
2868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; then
2870 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2871 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2872 # work properly (i.e., refer to `conftest.exe'), while it won't with
2873 # `rm'.
2874 for ac_file in conftest.exe conftest conftest.*; do
2875 test -f "$ac_file" || continue
2876 case $ac_file in
2877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2878 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879 break;;
2880 * ) break;;
2881 esac
2882 done
2883 else
2884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2887 See \`config.log' for more details." >&5
2888 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2889 See \`config.log' for more details." >&2;}
2890 { (exit 1); exit 1; }; }; }
2891 fi
2892
2893 rm -f conftest$ac_cv_exeext
2894 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2895 $as_echo "$ac_cv_exeext" >&6; }
2896
2897 rm -f conftest.$ac_ext
2898 EXEEXT=$ac_cv_exeext
2899 ac_exeext=$EXEEXT
2900 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2901 $as_echo_n "checking for suffix of object files... " >&6; }
2902 if test "${ac_cv_objext+set}" = set; then
2903 $as_echo_n "(cached) " >&6
2904 else
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911
2912 int
2913 main ()
2914 {
2915
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.o conftest.obj
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927 $as_echo "$ac_try_echo") >&5
2928 (eval "$ac_compile") 2>&5
2929 ac_status=$?
2930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; then
2932 for ac_file in conftest.o conftest.obj conftest.*; do
2933 test -f "$ac_file" || continue;
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2936 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2937 break;;
2938 esac
2939 done
2940 else
2941 $as_echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947 See \`config.log' for more details." >&5
2948 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }; }
2951 fi
2952
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2954 fi
2955 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956 $as_echo "$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2958 ac_objext=$OBJEXT
2959 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2961 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2962 $as_echo_n "(cached) " >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970
2971 int
2972 main ()
2973 {
2974 #ifndef __GNUC__
2975 choke me
2976 #endif
2977
2978 ;
2979 return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989 $as_echo "$ac_try_echo") >&5
2990 (eval "$ac_compile") 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } && {
2997 test -z "$ac_c_werror_flag" ||
2998 test ! -s conftest.err
2999 } && test -s conftest.$ac_objext; then
3000 ac_compiler_gnu=yes
3001 else
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 ac_compiler_gnu=no
3006 fi
3007
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3010
3011 fi
3012 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3013 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3014 if test $ac_compiler_gnu = yes; then
3015 GCC=yes
3016 else
3017 GCC=
3018 fi
3019 ac_test_CFLAGS=${CFLAGS+set}
3020 ac_save_CFLAGS=$CFLAGS
3021 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3022 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3023 if test "${ac_cv_prog_cc_g+set}" = set; then
3024 $as_echo_n "(cached) " >&6
3025 else
3026 ac_save_c_werror_flag=$ac_c_werror_flag
3027 ac_c_werror_flag=yes
3028 ac_cv_prog_cc_g=no
3029 CFLAGS="-g"
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036
3037 int
3038 main ()
3039 {
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } && {
3060 test -z "$ac_c_werror_flag" ||
3061 test ! -s conftest.err
3062 } && test -s conftest.$ac_objext; then
3063 ac_cv_prog_cc_g=yes
3064 else
3065 $as_echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 CFLAGS=""
3069 cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h. */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3075
3076 int
3077 main ()
3078 {
3079
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
3102 :
3103 else
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 ac_c_werror_flag=$ac_save_c_werror_flag
3108 CFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115
3116 int
3117 main ()
3118 {
3119
3120 ;
3121 return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131 $as_echo "$ac_try_echo") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_prog_cc_g=yes
3143 else
3144 $as_echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147
3148 fi
3149
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 fi
3152
3153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 fi
3155
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 fi
3159 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3160 $as_echo "$ac_cv_prog_cc_g" >&6; }
3161 if test "$ac_test_CFLAGS" = set; then
3162 CFLAGS=$ac_save_CFLAGS
3163 elif test $ac_cv_prog_cc_g = yes; then
3164 if test "$GCC" = yes; then
3165 CFLAGS="-g -O2"
3166 else
3167 CFLAGS="-g"
3168 fi
3169 else
3170 if test "$GCC" = yes; then
3171 CFLAGS="-O2"
3172 else
3173 CFLAGS=
3174 fi
3175 fi
3176 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3177 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3178 if test "${ac_cv_prog_cc_c89+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3180 else
3181 ac_cv_prog_cc_c89=no
3182 ac_save_CC=$CC
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <stdarg.h>
3190 #include <stdio.h>
3191 #include <sys/types.h>
3192 #include <sys/stat.h>
3193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3194 struct buf { int x; };
3195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3196 static char *e (p, i)
3197 char **p;
3198 int i;
3199 {
3200 return p[i];
3201 }
3202 static char *f (char * (*g) (char **, int), char **p, ...)
3203 {
3204 char *s;
3205 va_list v;
3206 va_start (v,p);
3207 s = g (p, va_arg (v,int));
3208 va_end (v);
3209 return s;
3210 }
3211
3212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3213 function prototypes and stuff, but not '\xHH' hex character constants.
3214 These don't provoke an error unfortunately, instead are silently treated
3215 as 'x'. The following induces an error, until -std is added to get
3216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3217 array size at least. It's necessary to write '\x00'==0 to get something
3218 that's true only with -std. */
3219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3220
3221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3222 inside strings and character constants. */
3223 #define FOO(x) 'x'
3224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3225
3226 int test (int i, double x);
3227 struct s1 {int (*f) (int a);};
3228 struct s2 {int (*f) (double a);};
3229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3230 int argc;
3231 char **argv;
3232 int
3233 main ()
3234 {
3235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3236 ;
3237 return 0;
3238 }
3239 _ACEOF
3240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242 do
3243 CC="$ac_save_CC $ac_arg"
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3246 case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3251 $as_echo "$ac_try_echo") >&5
3252 (eval "$ac_compile") 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } && {
3259 test -z "$ac_c_werror_flag" ||
3260 test ! -s conftest.err
3261 } && test -s conftest.$ac_objext; then
3262 ac_cv_prog_cc_c89=$ac_arg
3263 else
3264 $as_echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267
3268 fi
3269
3270 rm -f core conftest.err conftest.$ac_objext
3271 test "x$ac_cv_prog_cc_c89" != "xno" && break
3272 done
3273 rm -f conftest.$ac_ext
3274 CC=$ac_save_CC
3275
3276 fi
3277 # AC_CACHE_VAL
3278 case "x$ac_cv_prog_cc_c89" in
3279 x)
3280 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3281 $as_echo "none needed" >&6; } ;;
3282 xno)
3283 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3284 $as_echo "unsupported" >&6; } ;;
3285 *)
3286 CC="$CC $ac_cv_prog_cc_c89"
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3288 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3289 esac
3290
3291
3292 ac_ext=c
3293 ac_cpp='$CPP $CPPFLAGS'
3294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
3299
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3307 # On Suns, sometimes $CPP names a directory.
3308 if test -n "$CPP" && test -d "$CPP"; then
3309 CPP=
3310 fi
3311 if test -z "$CPP"; then
3312 if test "${ac_cv_prog_CPP+set}" = set; then
3313 $as_echo_n "(cached) " >&6
3314 else
3315 # Double quotes because CPP needs to be expanded
3316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317 do
3318 ac_preproc_ok=false
3319 for ac_c_preproc_warn_flag in '' yes
3320 do
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338 Syntax error
3339 _ACEOF
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null && {
3354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3355 test ! -s conftest.err
3356 }; then
3357 :
3358 else
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 # Broken: fails on valid input.
3363 continue
3364 fi
3365
3366 rm -f conftest.err conftest.$ac_ext
3367
3368 # OK, works on sane cases. Now check whether nonexistent headers
3369 # can be detected and how.
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h. */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <ac_nonexistent.h>
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3382 esac
3383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 }; then
3395 # Broken: success on invalid input.
3396 continue
3397 else
3398 $as_echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 # Passes both tests.
3402 ac_preproc_ok=:
3403 break
3404 fi
3405
3406 rm -f conftest.err conftest.$ac_ext
3407
3408 done
3409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3410 rm -f conftest.err conftest.$ac_ext
3411 if $ac_preproc_ok; then
3412 break
3413 fi
3414
3415 done
3416 ac_cv_prog_CPP=$CPP
3417
3418 fi
3419 CPP=$ac_cv_prog_CPP
3420 else
3421 ac_cv_prog_CPP=$CPP
3422 fi
3423 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3424 $as_echo "$CPP" >&6; }
3425 ac_preproc_ok=false
3426 for ac_c_preproc_warn_flag in '' yes
3427 do
3428 # Use a header file that comes with gcc, so configuring glibc
3429 # with a fresh cross-compiler works.
3430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3431 # <limits.h> exists even on freestanding compilers.
3432 # On the NeXT, cc -E runs the code through the compiler's parser,
3433 # not just through cpp. "Syntax error" is here to catch this case.
3434 cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h. */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #ifdef __STDC__
3441 # include <limits.h>
3442 #else
3443 # include <assert.h>
3444 #endif
3445 Syntax error
3446 _ACEOF
3447 if { (ac_try="$ac_cpp conftest.$ac_ext"
3448 case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451 esac
3452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453 $as_echo "$ac_try_echo") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null && {
3461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 }; then
3464 :
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 # Broken: fails on valid input.
3470 continue
3471 fi
3472
3473 rm -f conftest.err conftest.$ac_ext
3474
3475 # OK, works on sane cases. Now check whether nonexistent headers
3476 # can be detected and how.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483 #include <ac_nonexistent.h>
3484 _ACEOF
3485 if { (ac_try="$ac_cpp conftest.$ac_ext"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } >/dev/null && {
3499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3500 test ! -s conftest.err
3501 }; then
3502 # Broken: success on invalid input.
3503 continue
3504 else
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 # Passes both tests.
3509 ac_preproc_ok=:
3510 break
3511 fi
3512
3513 rm -f conftest.err conftest.$ac_ext
3514
3515 done
3516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517 rm -f conftest.err conftest.$ac_ext
3518 if $ac_preproc_ok; then
3519 :
3520 else
3521 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3524 See \`config.log' for more details." >&5
3525 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." >&2;}
3527 { (exit 1); exit 1; }; }; }
3528 fi
3529
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535
3536
3537 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3538 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3539 if test "${ac_cv_path_GREP+set}" = set; then
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -z "$GREP"; then
3543 ac_path_GREP_found=false
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_prog in grep ggrep; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3553 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3554 # Check for GNU ac_path_GREP and select it if it is found.
3555 # Check for GNU $ac_path_GREP
3556 case `"$ac_path_GREP" --version 2>&1` in
3557 *GNU*)
3558 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3559 *)
3560 ac_count=0
3561 $as_echo_n 0123456789 >"conftest.in"
3562 while :
3563 do
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
3567 $as_echo 'GREP' >> "conftest.nl"
3568 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3570 ac_count=`expr $ac_count + 1`
3571 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_GREP="$ac_path_GREP"
3574 ac_path_GREP_max=$ac_count
3575 fi
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3578 done
3579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580 esac
3581
3582 $ac_path_GREP_found && break 3
3583 done
3584 done
3585 done
3586 IFS=$as_save_IFS
3587 if test -z "$ac_cv_path_GREP"; then
3588 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3589 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3590 { (exit 1); exit 1; }; }
3591 fi
3592 else
3593 ac_cv_path_GREP=$GREP
3594 fi
3595
3596 fi
3597 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3598 $as_echo "$ac_cv_path_GREP" >&6; }
3599 GREP="$ac_cv_path_GREP"
3600
3601
3602 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3603 $as_echo_n "checking for egrep... " >&6; }
3604 if test "${ac_cv_path_EGREP+set}" = set; then
3605 $as_echo_n "(cached) " >&6
3606 else
3607 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3608 then ac_cv_path_EGREP="$GREP -E"
3609 else
3610 if test -z "$EGREP"; then
3611 ac_path_EGREP_found=false
3612 # Loop through the user's path and test for each of PROGNAME-LIST
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3615 do
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_prog in egrep; do
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3621 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3622 # Check for GNU ac_path_EGREP and select it if it is found.
3623 # Check for GNU $ac_path_EGREP
3624 case `"$ac_path_EGREP" --version 2>&1` in
3625 *GNU*)
3626 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3627 *)
3628 ac_count=0
3629 $as_echo_n 0123456789 >"conftest.in"
3630 while :
3631 do
3632 cat "conftest.in" "conftest.in" >"conftest.tmp"
3633 mv "conftest.tmp" "conftest.in"
3634 cp "conftest.in" "conftest.nl"
3635 $as_echo 'EGREP' >> "conftest.nl"
3636 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3638 ac_count=`expr $ac_count + 1`
3639 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3640 # Best one so far, save it but keep looking for a better one
3641 ac_cv_path_EGREP="$ac_path_EGREP"
3642 ac_path_EGREP_max=$ac_count
3643 fi
3644 # 10*(2^10) chars as input seems more than enough
3645 test $ac_count -gt 10 && break
3646 done
3647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3648 esac
3649
3650 $ac_path_EGREP_found && break 3
3651 done
3652 done
3653 done
3654 IFS=$as_save_IFS
3655 if test -z "$ac_cv_path_EGREP"; then
3656 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3657 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3658 { (exit 1); exit 1; }; }
3659 fi
3660 else
3661 ac_cv_path_EGREP=$EGREP
3662 fi
3663
3664 fi
3665 fi
3666 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3667 $as_echo "$ac_cv_path_EGREP" >&6; }
3668 EGREP="$ac_cv_path_EGREP"
3669
3670
3671 if test $ac_cv_c_compiler_gnu = yes; then
3672 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3673 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3674 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3675 $as_echo_n "(cached) " >&6
3676 else
3677 ac_pattern="Autoconf.*'x'"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3684 #include <sgtty.h>
3685 Autoconf TIOCGETP
3686 _ACEOF
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3689 ac_cv_prog_gcc_traditional=yes
3690 else
3691 ac_cv_prog_gcc_traditional=no
3692 fi
3693 rm -f conftest*
3694
3695
3696 if test $ac_cv_prog_gcc_traditional = no; then
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <termio.h>
3704 Autoconf TCGETA
3705 _ACEOF
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3708 ac_cv_prog_gcc_traditional=yes
3709 fi
3710 rm -f conftest*
3711
3712 fi
3713 fi
3714 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3715 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3716 if test $ac_cv_prog_gcc_traditional = yes; then
3717 CC="$CC -traditional"
3718 fi
3719 fi
3720
3721 # Find a good install program. We prefer a C program (faster),
3722 # so one script is as good as another. But avoid the broken or
3723 # incompatible versions:
3724 # SysV /etc/install, /usr/sbin/install
3725 # SunOS /usr/etc/install
3726 # IRIX /sbin/install
3727 # AIX /bin/install
3728 # AmigaOS /C/install, which installs bootblocks on floppy discs
3729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3732 # OS/2's system install, which has a completely different semantic
3733 # ./install, which can be erroneously created by make from ./install.sh.
3734 # Reject install programs that cannot install multiple files.
3735 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3736 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3737 if test -z "$INSTALL"; then
3738 if test "${ac_cv_path_install+set}" = set; then
3739 $as_echo_n "(cached) " >&6
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 # Account for people who put trailing slashes in PATH elements.
3747 case $as_dir/ in
3748 ./ | .// | /cC/* | \
3749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3750 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3751 /usr/ucb/* ) ;;
3752 *)
3753 # OSF1 and SCO ODT 3.0 have their own names for install.
3754 # Don't use installbsd from OSF since it installs stuff as root
3755 # by default.
3756 for ac_prog in ginstall scoinst install; do
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3759 if test $ac_prog = install &&
3760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3761 # AIX install. It has an incompatible calling convention.
3762 :
3763 elif test $ac_prog = install &&
3764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3765 # program-specific install script used by HP pwplus--don't use.
3766 :
3767 else
3768 rm -rf conftest.one conftest.two conftest.dir
3769 echo one > conftest.one
3770 echo two > conftest.two
3771 mkdir conftest.dir
3772 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3773 test -s conftest.one && test -s conftest.two &&
3774 test -s conftest.dir/conftest.one &&
3775 test -s conftest.dir/conftest.two
3776 then
3777 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3778 break 3
3779 fi
3780 fi
3781 fi
3782 done
3783 done
3784 ;;
3785 esac
3786
3787 done
3788 IFS=$as_save_IFS
3789
3790 rm -rf conftest.one conftest.two conftest.dir
3791
3792 fi
3793 if test "${ac_cv_path_install+set}" = set; then
3794 INSTALL=$ac_cv_path_install
3795 else
3796 # As a last resort, use the slow shell script. Don't cache a
3797 # value for INSTALL within a source directory, because that will
3798 # break other packages using the cache if that directory is
3799 # removed, or if the value is a relative name.
3800 INSTALL=$ac_install_sh
3801 fi
3802 fi
3803 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3804 $as_echo "$INSTALL" >&6; }
3805
3806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3807 # It thinks the first close brace ends the variable substitution.
3808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3809
3810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3811
3812 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3813
3814 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3815 $as_echo_n "checking whether ln -s works... " >&6; }
3816 LN_S=$as_ln_s
3817 if test "$LN_S" = "ln -s"; then
3818 { $as_echo "$as_me:$LINENO: result: yes" >&5
3819 $as_echo "yes" >&6; }
3820 else
3821 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3822 $as_echo "no, using $LN_S" >&6; }
3823 fi
3824
3825 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3827 set x ${MAKE-make}
3828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3829 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3830 $as_echo_n "(cached) " >&6
3831 else
3832 cat >conftest.make <<\_ACEOF
3833 SHELL = /bin/sh
3834 all:
3835 @echo '@@@%%%=$(MAKE)=@@@%%%'
3836 _ACEOF
3837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3839 *@@@%%%=?*=@@@%%%*)
3840 eval ac_cv_prog_make_${ac_make}_set=yes;;
3841 *)
3842 eval ac_cv_prog_make_${ac_make}_set=no;;
3843 esac
3844 rm -f conftest.make
3845 fi
3846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3847 { $as_echo "$as_me:$LINENO: result: yes" >&5
3848 $as_echo "yes" >&6; }
3849 SET_MAKE=
3850 else
3851 { $as_echo "$as_me:$LINENO: result: no" >&5
3852 $as_echo "no" >&6; }
3853 SET_MAKE="MAKE=${MAKE-make}"
3854 fi
3855
3856 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3857 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3858 if test -z "$MKDIR_P"; then
3859 if test "${ac_cv_path_mkdir+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3861 else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3864 do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in mkdir gmkdir; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3871 'mkdir (GNU coreutils) '* | \
3872 'mkdir (coreutils) '* | \
3873 'mkdir (fileutils) '4.1*)
3874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3875 break 3;;
3876 esac
3877 done
3878 done
3879 done
3880 IFS=$as_save_IFS
3881
3882 fi
3883
3884 if test "${ac_cv_path_mkdir+set}" = set; then
3885 MKDIR_P="$ac_cv_path_mkdir -p"
3886 else
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for MKDIR_P within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 test -d ./--version && rmdir ./--version
3892 MKDIR_P="$ac_install_sh -d"
3893 fi
3894 fi
3895 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3896 $as_echo "$MKDIR_P" >&6; }
3897
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if test "${ac_cv_prog_RANLIB+set}" = set; then
3904 $as_echo_n "(cached) " >&6
3905 else
3906 if test -n "$RANLIB"; then
3907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3919 fi
3920 done
3921 done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 RANLIB=$ac_cv_prog_RANLIB
3927 if test -n "$RANLIB"; then
3928 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3929 $as_echo "$RANLIB" >&6; }
3930 else
3931 { $as_echo "$as_me:$LINENO: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936 fi
3937 if test -z "$ac_cv_prog_RANLIB"; then
3938 ac_ct_RANLIB=$RANLIB
3939 # Extract the first word of "ranlib", so it can be a program name with args.
3940 set dummy ranlib; ac_word=$2
3941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$ac_ct_RANLIB"; then
3947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_ac_ct_RANLIB="ranlib"
3957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960 done
3961 done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3967 if test -n "$ac_ct_RANLIB"; then
3968 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3969 $as_echo "$ac_ct_RANLIB" >&6; }
3970 else
3971 { $as_echo "$as_me:$LINENO: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975 if test "x$ac_ct_RANLIB" = x; then
3976 RANLIB=":"
3977 else
3978 case $cross_compiling:$ac_tool_warned in
3979 yes:)
3980 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982 ac_tool_warned=yes ;;
3983 esac
3984 RANLIB=$ac_ct_RANLIB
3985 fi
3986 else
3987 RANLIB="$ac_cv_prog_RANLIB"
3988 fi
3989
3990 # Extract the first word of "cflow", so it can be a program name with args.
3991 set dummy cflow; ac_word=$2
3992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3995 $as_echo_n "(cached) " >&6
3996 else
3997 case $CFLOW_CMD in
3998 [\\/]* | ?:[\\/]*)
3999 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4000 ;;
4001 *)
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 ;;
4018 esac
4019 fi
4020 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4021 if test -n "$CFLOW_CMD"; then
4022 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4023 $as_echo "$CFLOW_CMD" >&6; }
4024 else
4025 { $as_echo "$as_me:$LINENO: result: no" >&5
4026 $as_echo "no" >&6; }
4027 fi
4028
4029
4030 # Extract the first word of "cscope", so it can be a program name with args.
4031 set dummy cscope; ac_word=$2
4032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4035 $as_echo_n "(cached) " >&6
4036 else
4037 case $CSCOPE_CMD in
4038 [\\/]* | ?:[\\/]*)
4039 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4040 ;;
4041 *)
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057 ;;
4058 esac
4059 fi
4060 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4061 if test -n "$CSCOPE_CMD"; then
4062 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4063 $as_echo "$CSCOPE_CMD" >&6; }
4064 else
4065 { $as_echo "$as_me:$LINENO: result: no" >&5
4066 $as_echo "no" >&6; }
4067 fi
4068
4069
4070
4071 ################################################################################
4072
4073
4074
4075
4076
4077 ac_header_dirent=no
4078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4079 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4080 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4081 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat >conftest.$ac_ext <<_ACEOF
4086 /* confdefs.h. */
4087 _ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <sys/types.h>
4092 #include <$ac_hdr>
4093
4094 int
4095 main ()
4096 {
4097 if ((DIR *) 0)
4098 return 0;
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 eval "$as_ac_Header=yes"
4122 else
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 eval "$as_ac_Header=no"
4127 fi
4128
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 ac_res=`eval 'as_val=${'$as_ac_Header'}
4132 $as_echo "$as_val"'`
4133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4134 $as_echo "$ac_res" >&6; }
4135 as_val=`eval 'as_val=${'$as_ac_Header'}
4136 $as_echo "$as_val"'`
4137 if test "x$as_val" = x""yes; then
4138 cat >>confdefs.h <<_ACEOF
4139 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4140 _ACEOF
4141
4142 ac_header_dirent=$ac_hdr; break
4143 fi
4144
4145 done
4146 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4147 if test $ac_header_dirent = dirent.h; then
4148 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4149 $as_echo_n "checking for library containing opendir... " >&6; }
4150 if test "${ac_cv_search_opendir+set}" = set; then
4151 $as_echo_n "(cached) " >&6
4152 else
4153 ac_func_search_save_LIBS=$LIBS
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160
4161 /* Override any GCC internal prototype to avoid an error.
4162 Use char because int might match the return type of a GCC
4163 builtin and then its argument prototype would still apply. */
4164 #ifdef __cplusplus
4165 extern "C"
4166 #endif
4167 char opendir ();
4168 int
4169 main ()
4170 {
4171 return opendir ();
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 for ac_lib in '' dir; do
4177 if test -z "$ac_lib"; then
4178 ac_res="none required"
4179 else
4180 ac_res=-l$ac_lib
4181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4182 fi
4183 rm -f conftest.$ac_objext conftest$ac_exeext
4184 if { (ac_try="$ac_link"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4190 $as_echo "$ac_try_echo") >&5
4191 (eval "$ac_link") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
4200 } && test -s conftest$ac_exeext && {
4201 test "$cross_compiling" = yes ||
4202 $as_test_x conftest$ac_exeext
4203 }; then
4204 ac_cv_search_opendir=$ac_res
4205 else
4206 $as_echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209
4210 fi
4211
4212 rm -rf conftest.dSYM
4213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4214 conftest$ac_exeext
4215 if test "${ac_cv_search_opendir+set}" = set; then
4216 break
4217 fi
4218 done
4219 if test "${ac_cv_search_opendir+set}" = set; then
4220 :
4221 else
4222 ac_cv_search_opendir=no
4223 fi
4224 rm conftest.$ac_ext
4225 LIBS=$ac_func_search_save_LIBS
4226 fi
4227 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4228 $as_echo "$ac_cv_search_opendir" >&6; }
4229 ac_res=$ac_cv_search_opendir
4230 if test "$ac_res" != no; then
4231 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4232
4233 fi
4234
4235 else
4236 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4237 $as_echo_n "checking for library containing opendir... " >&6; }
4238 if test "${ac_cv_search_opendir+set}" = set; then
4239 $as_echo_n "(cached) " >&6
4240 else
4241 ac_func_search_save_LIBS=$LIBS
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248
4249 /* Override any GCC internal prototype to avoid an error.
4250 Use char because int might match the return type of a GCC
4251 builtin and then its argument prototype would still apply. */
4252 #ifdef __cplusplus
4253 extern "C"
4254 #endif
4255 char opendir ();
4256 int
4257 main ()
4258 {
4259 return opendir ();
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 for ac_lib in '' x; do
4265 if test -z "$ac_lib"; then
4266 ac_res="none required"
4267 else
4268 ac_res=-l$ac_lib
4269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4270 fi
4271 rm -f conftest.$ac_objext conftest$ac_exeext
4272 if { (ac_try="$ac_link"
4273 case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276 esac
4277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4278 $as_echo "$ac_try_echo") >&5
4279 (eval "$ac_link") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest$ac_exeext && {
4289 test "$cross_compiling" = yes ||
4290 $as_test_x conftest$ac_exeext
4291 }; then
4292 ac_cv_search_opendir=$ac_res
4293 else
4294 $as_echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297
4298 fi
4299
4300 rm -rf conftest.dSYM
4301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4302 conftest$ac_exeext
4303 if test "${ac_cv_search_opendir+set}" = set; then
4304 break
4305 fi
4306 done
4307 if test "${ac_cv_search_opendir+set}" = set; then
4308 :
4309 else
4310 ac_cv_search_opendir=no
4311 fi
4312 rm conftest.$ac_ext
4313 LIBS=$ac_func_search_save_LIBS
4314 fi
4315 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4316 $as_echo "$ac_cv_search_opendir" >&6; }
4317 ac_res=$ac_cv_search_opendir
4318 if test "$ac_res" != no; then
4319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4320
4321 fi
4322
4323 fi
4324
4325 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4326 $as_echo_n "checking for ANSI C header files... " >&6; }
4327 if test "${ac_cv_header_stdc+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <stdlib.h>
4337 #include <stdarg.h>
4338 #include <string.h>
4339 #include <float.h>
4340
4341 int
4342 main ()
4343 {
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4351 case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4356 $as_echo "$ac_try_echo") >&5
4357 (eval "$ac_compile") 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.$ac_objext; then
4367 ac_cv_header_stdc=yes
4368 else
4369 $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ac_cv_header_stdc=no
4373 fi
4374
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376
4377 if test $ac_cv_header_stdc = yes; then
4378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <string.h>
4386
4387 _ACEOF
4388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4389 $EGREP "memchr" >/dev/null 2>&1; then
4390 :
4391 else
4392 ac_cv_header_stdc=no
4393 fi
4394 rm -f conftest*
4395
4396 fi
4397
4398 if test $ac_cv_header_stdc = yes; then
4399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #include <stdlib.h>
4407
4408 _ACEOF
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "free" >/dev/null 2>&1; then
4411 :
4412 else
4413 ac_cv_header_stdc=no
4414 fi
4415 rm -f conftest*
4416
4417 fi
4418
4419 if test $ac_cv_header_stdc = yes; then
4420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4421 if test "$cross_compiling" = yes; then
4422 :
4423 else
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 #include <ctype.h>
4431 #include <stdlib.h>
4432 #if ((' ' & 0x0FF) == 0x020)
4433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4435 #else
4436 # define ISLOWER(c) \
4437 (('a' <= (c) && (c) <= 'i') \
4438 || ('j' <= (c) && (c) <= 'r') \
4439 || ('s' <= (c) && (c) <= 'z'))
4440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4441 #endif
4442
4443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4444 int
4445 main ()
4446 {
4447 int i;
4448 for (i = 0; i < 256; i++)
4449 if (XOR (islower (i), ISLOWER (i))
4450 || toupper (i) != TOUPPER (i))
4451 return 2;
4452 return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest$ac_exeext
4456 if { (ac_try="$ac_link"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462 $as_echo "$ac_try_echo") >&5
4463 (eval "$ac_link") 2>&5
4464 ac_status=$?
4465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4467 { (case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4472 $as_echo "$ac_try_echo") >&5
4473 (eval "$ac_try") 2>&5
4474 ac_status=$?
4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 :
4478 else
4479 $as_echo "$as_me: program exited with status $ac_status" >&5
4480 $as_echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ( exit $ac_status )
4484 ac_cv_header_stdc=no
4485 fi
4486 rm -rf conftest.dSYM
4487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4488 fi
4489
4490
4491 fi
4492 fi
4493 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4494 $as_echo "$ac_cv_header_stdc" >&6; }
4495 if test $ac_cv_header_stdc = yes; then
4496
4497 cat >>confdefs.h <<\_ACEOF
4498 #define STDC_HEADERS 1
4499 _ACEOF
4500
4501 fi
4502
4503 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4504 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4505 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <sys/types.h>
4515 #include <sys/wait.h>
4516 #ifndef WEXITSTATUS
4517 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4518 #endif
4519 #ifndef WIFEXITED
4520 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4521 #endif
4522
4523 int
4524 main ()
4525 {
4526 int s;
4527 wait (&s);
4528 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540 $as_echo "$ac_try_echo") >&5
4541 (eval "$ac_compile") 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } && {
4548 test -z "$ac_c_werror_flag" ||
4549 test ! -s conftest.err
4550 } && test -s conftest.$ac_objext; then
4551 ac_cv_header_sys_wait_h=yes
4552 else
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_cv_header_sys_wait_h=no
4557 fi
4558
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 fi
4561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4562 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4563 if test $ac_cv_header_sys_wait_h = yes; then
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define HAVE_SYS_WAIT_H 1
4567 _ACEOF
4568
4569 fi
4570
4571 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4572 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4573 if test "${ac_cv_header_time+set}" = set; then
4574 $as_echo_n "(cached) " >&6
4575 else
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <sys/types.h>
4583 #include <sys/time.h>
4584 #include <time.h>
4585
4586 int
4587 main ()
4588 {
4589 if ((struct tm *) 0)
4590 return 0;
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599 *) ac_try_echo=$ac_try;;
4600 esac
4601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4602 $as_echo "$ac_try_echo") >&5
4603 (eval "$ac_compile") 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest.$ac_objext; then
4613 ac_cv_header_time=yes
4614 else
4615 $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_cv_header_time=no
4619 fi
4620
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4624 $as_echo "$ac_cv_header_time" >&6; }
4625 if test $ac_cv_header_time = yes; then
4626
4627 cat >>confdefs.h <<\_ACEOF
4628 #define TIME_WITH_SYS_TIME 1
4629 _ACEOF
4630
4631 fi
4632
4633
4634 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4645 inttypes.h stdint.h unistd.h
4646 do
4647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4649 $as_echo_n "checking for $ac_header... " >&6; }
4650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 $ac_includes_default
4660
4661 #include <$ac_header>
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compile") 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
4681 eval "$as_ac_Header=yes"
4682 else
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4685
4686 eval "$as_ac_Header=no"
4687 fi
4688
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 ac_res=`eval 'as_val=${'$as_ac_Header'}
4692 $as_echo "$as_val"'`
4693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4694 $as_echo "$ac_res" >&6; }
4695 as_val=`eval 'as_val=${'$as_ac_Header'}
4696 $as_echo "$as_val"'`
4697 if test "x$as_val" = x""yes; then
4698 cat >>confdefs.h <<_ACEOF
4699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4700 _ACEOF
4701
4702 fi
4703
4704 done
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4721 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4722 do
4723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4726 $as_echo_n "checking for $ac_header... " >&6; }
4727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4728 $as_echo_n "(cached) " >&6
4729 fi
4730 ac_res=`eval 'as_val=${'$as_ac_Header'}
4731 $as_echo "$as_val"'`
4732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4733 $as_echo "$ac_res" >&6; }
4734 else
4735 # Is the header compilable?
4736 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4737 $as_echo_n "checking $ac_header usability... " >&6; }
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 $ac_includes_default
4745 #include <$ac_header>
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4749 case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752 esac
4753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4754 $as_echo "$ac_try_echo") >&5
4755 (eval "$ac_compile") 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && {
4762 test -z "$ac_c_werror_flag" ||
4763 test ! -s conftest.err
4764 } && test -s conftest.$ac_objext; then
4765 ac_header_compiler=yes
4766 else
4767 $as_echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 ac_header_compiler=no
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4775 $as_echo "$ac_header_compiler" >&6; }
4776
4777 # Is the header present?
4778 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4779 $as_echo_n "checking $ac_header presence... " >&6; }
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <$ac_header>
4787 _ACEOF
4788 if { (ac_try="$ac_cpp conftest.$ac_ext"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4794 $as_echo "$ac_try_echo") >&5
4795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } >/dev/null && {
4802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4804 }; then
4805 ac_header_preproc=yes
4806 else
4807 $as_echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 ac_header_preproc=no
4811 fi
4812
4813 rm -f conftest.err conftest.$ac_ext
4814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4815 $as_echo "$ac_header_preproc" >&6; }
4816
4817 # So? What about this header?
4818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4819 yes:no: )
4820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4821 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4824 ac_header_preproc=yes
4825 ;;
4826 no:yes:* )
4827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4828 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4830 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4832 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4834 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4838 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4839
4840 ;;
4841 esac
4842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4843 $as_echo_n "checking for $ac_header... " >&6; }
4844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4845 $as_echo_n "(cached) " >&6
4846 else
4847 eval "$as_ac_Header=\$ac_header_preproc"
4848 fi
4849 ac_res=`eval 'as_val=${'$as_ac_Header'}
4850 $as_echo "$as_val"'`
4851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4852 $as_echo "$ac_res" >&6; }
4853
4854 fi
4855 as_val=`eval 'as_val=${'$as_ac_Header'}
4856 $as_echo "$as_val"'`
4857 if test "x$as_val" = x""yes; then
4858 cat >>confdefs.h <<_ACEOF
4859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4860 _ACEOF
4861
4862 else
4863 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4864 $as_echo "$as_me: error: bailing out" >&2;}
4865 { (exit 1); exit 1; }; }
4866 fi
4867
4868 done
4869
4870
4871 case "$host_os" in
4872 linux*)
4873
4874
4875
4876 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4877 do
4878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4880 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4881 $as_echo_n "checking for $ac_header... " >&6; }
4882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4883 $as_echo_n "(cached) " >&6
4884 fi
4885 ac_res=`eval 'as_val=${'$as_ac_Header'}
4886 $as_echo "$as_val"'`
4887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4888 $as_echo "$ac_res" >&6; }
4889 else
4890 # Is the header compilable?
4891 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4892 $as_echo_n "checking $ac_header usability... " >&6; }
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h. */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 $ac_includes_default
4900 #include <$ac_header>
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909 $as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 ac_header_compiler=yes
4921 else
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_header_compiler=no
4926 fi
4927
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 $as_echo "$ac_header_compiler" >&6; }
4931
4932 # Is the header present?
4933 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 $as_echo_n "checking $ac_header presence... " >&6; }
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 #include <$ac_header>
4942 _ACEOF
4943 if { (ac_try="$ac_cpp conftest.$ac_ext"
4944 case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949 $as_echo "$ac_try_echo") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 }; then
4960 ac_header_preproc=yes
4961 else
4962 $as_echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 ac_header_preproc=no
4966 fi
4967
4968 rm -f conftest.err conftest.$ac_ext
4969 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4970 $as_echo "$ac_header_preproc" >&6; }
4971
4972 # So? What about this header?
4973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4974 yes:no: )
4975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4976 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4979 ac_header_preproc=yes
4980 ;;
4981 no:yes:* )
4982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4983 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4985 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4987 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4989 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4991 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4993 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4994
4995 ;;
4996 esac
4997 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4998 $as_echo_n "checking for $ac_header... " >&6; }
4999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5000 $as_echo_n "(cached) " >&6
5001 else
5002 eval "$as_ac_Header=\$ac_header_preproc"
5003 fi
5004 ac_res=`eval 'as_val=${'$as_ac_Header'}
5005 $as_echo "$as_val"'`
5006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5007 $as_echo "$ac_res" >&6; }
5008
5009 fi
5010 as_val=`eval 'as_val=${'$as_ac_Header'}
5011 $as_echo "$as_val"'`
5012 if test "x$as_val" = x""yes; then
5013 cat >>confdefs.h <<_ACEOF
5014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015 _ACEOF
5016
5017 else
5018 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5019 $as_echo "$as_me: error: bailing out" >&2;}
5020 { (exit 1); exit 1; }; }
5021 fi
5022
5023 done
5024 ;;
5025 darwin*)
5026
5027
5028 for ac_header in machine/endian.h sys/disk.h
5029 do
5030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5033 $as_echo_n "checking for $ac_header... " >&6; }
5034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5035 $as_echo_n "(cached) " >&6
5036 fi
5037 ac_res=`eval 'as_val=${'$as_ac_Header'}
5038 $as_echo "$as_val"'`
5039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5040 $as_echo "$ac_res" >&6; }
5041 else
5042 # Is the header compilable?
5043 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5044 $as_echo_n "checking $ac_header usability... " >&6; }
5045 cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h. */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5052 #include <$ac_header>
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (ac_try="$ac_compile"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061 $as_echo "$ac_try_echo") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5072 ac_header_compiler=yes
5073 else
5074 $as_echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_header_compiler=no
5078 fi
5079
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5082 $as_echo "$ac_header_compiler" >&6; }
5083
5084 # Is the header present?
5085 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5086 $as_echo_n "checking $ac_header presence... " >&6; }
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <$ac_header>
5094 _ACEOF
5095 if { (ac_try="$ac_cpp conftest.$ac_ext"
5096 case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101 $as_echo "$ac_try_echo") >&5
5102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } >/dev/null && {
5109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110 test ! -s conftest.err
5111 }; then
5112 ac_header_preproc=yes
5113 else
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 ac_header_preproc=no
5118 fi
5119
5120 rm -f conftest.err conftest.$ac_ext
5121 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5122 $as_echo "$ac_header_preproc" >&6; }
5123
5124 # So? What about this header?
5125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5126 yes:no: )
5127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5128 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5130 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5131 ac_header_preproc=yes
5132 ;;
5133 no:yes:* )
5134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5135 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5137 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5139 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5141 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5145 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5146
5147 ;;
5148 esac
5149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5150 $as_echo_n "checking for $ac_header... " >&6; }
5151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5152 $as_echo_n "(cached) " >&6
5153 else
5154 eval "$as_ac_Header=\$ac_header_preproc"
5155 fi
5156 ac_res=`eval 'as_val=${'$as_ac_Header'}
5157 $as_echo "$as_val"'`
5158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5159 $as_echo "$ac_res" >&6; }
5160
5161 fi
5162 as_val=`eval 'as_val=${'$as_ac_Header'}
5163 $as_echo "$as_val"'`
5164 if test "x$as_val" = x""yes; then
5165 cat >>confdefs.h <<_ACEOF
5166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5167 _ACEOF
5168
5169 else
5170 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5171 $as_echo "$as_me: error: bailing out" >&2;}
5172 { (exit 1); exit 1; }; }
5173 fi
5174
5175 done
5176 ;;
5177 esac
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5196 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5197 sys/types.h unistd.h
5198 do
5199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5202 $as_echo_n "checking for $ac_header... " >&6; }
5203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5204 $as_echo_n "(cached) " >&6
5205 fi
5206 ac_res=`eval 'as_val=${'$as_ac_Header'}
5207 $as_echo "$as_val"'`
5208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5209 $as_echo "$ac_res" >&6; }
5210 else
5211 # Is the header compilable?
5212 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5213 $as_echo_n "checking $ac_header usability... " >&6; }
5214 cat >conftest.$ac_ext <<_ACEOF
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5221 #include <$ac_header>
5222 _ACEOF
5223 rm -f conftest.$ac_objext
5224 if { (ac_try="$ac_compile"
5225 case "(($ac_try" in
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5228 esac
5229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5230 $as_echo "$ac_try_echo") >&5
5231 (eval "$ac_compile") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } && {
5238 test -z "$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5240 } && test -s conftest.$ac_objext; then
5241 ac_header_compiler=yes
5242 else
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 ac_header_compiler=no
5247 fi
5248
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5251 $as_echo "$ac_header_compiler" >&6; }
5252
5253 # Is the header present?
5254 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5255 $as_echo_n "checking $ac_header presence... " >&6; }
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h. */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 }; then
5281 ac_header_preproc=yes
5282 else
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_header_preproc=no
5287 fi
5288
5289 rm -f conftest.err conftest.$ac_ext
5290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5291 $as_echo "$ac_header_preproc" >&6; }
5292
5293 # So? What about this header?
5294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5295 yes:no: )
5296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5297 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5300 ac_header_preproc=yes
5301 ;;
5302 no:yes:* )
5303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5304 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5306 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5308 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5310 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5314 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5315
5316 ;;
5317 esac
5318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5319 $as_echo_n "checking for $ac_header... " >&6; }
5320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5321 $as_echo_n "(cached) " >&6
5322 else
5323 eval "$as_ac_Header=\$ac_header_preproc"
5324 fi
5325 ac_res=`eval 'as_val=${'$as_ac_Header'}
5326 $as_echo "$as_val"'`
5327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5328 $as_echo "$ac_res" >&6; }
5329
5330 fi
5331 as_val=`eval 'as_val=${'$as_ac_Header'}
5332 $as_echo "$as_val"'`
5333 if test "x$as_val" = x""yes; then
5334 cat >>confdefs.h <<_ACEOF
5335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 _ACEOF
5337
5338 else
5339 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5340 $as_echo "$as_me: error: bailing out" >&2;}
5341 { (exit 1); exit 1; }; }
5342 fi
5343
5344 done
5345
5346
5347
5348 for ac_header in termios.h sys/statvfs.h
5349 do
5350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5353 $as_echo_n "checking for $ac_header... " >&6; }
5354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5355 $as_echo_n "(cached) " >&6
5356 fi
5357 ac_res=`eval 'as_val=${'$as_ac_Header'}
5358 $as_echo "$as_val"'`
5359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5360 $as_echo "$ac_res" >&6; }
5361 else
5362 # Is the header compilable?
5363 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5364 $as_echo_n "checking $ac_header usability... " >&6; }
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371 $ac_includes_default
5372 #include <$ac_header>
5373 _ACEOF
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5376 case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5381 $as_echo "$ac_try_echo") >&5
5382 (eval "$ac_compile") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } && {
5389 test -z "$ac_c_werror_flag" ||
5390 test ! -s conftest.err
5391 } && test -s conftest.$ac_objext; then
5392 ac_header_compiler=yes
5393 else
5394 $as_echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 ac_header_compiler=no
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5402 $as_echo "$ac_header_compiler" >&6; }
5403
5404 # Is the header present?
5405 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5406 $as_echo_n "checking $ac_header presence... " >&6; }
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <$ac_header>
5414 _ACEOF
5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5421 $as_echo "$ac_try_echo") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null && {
5429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5431 }; then
5432 ac_header_preproc=yes
5433 else
5434 $as_echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_header_preproc=no
5438 fi
5439
5440 rm -f conftest.err conftest.$ac_ext
5441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5442 $as_echo "$ac_header_preproc" >&6; }
5443
5444 # So? What about this header?
5445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5446 yes:no: )
5447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5448 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5451 ac_header_preproc=yes
5452 ;;
5453 no:yes:* )
5454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5455 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5457 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5459 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5461 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5465 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5466
5467 ;;
5468 esac
5469 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5470 $as_echo_n "checking for $ac_header... " >&6; }
5471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 eval "$as_ac_Header=\$ac_header_preproc"
5475 fi
5476 ac_res=`eval 'as_val=${'$as_ac_Header'}
5477 $as_echo "$as_val"'`
5478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5479 $as_echo "$ac_res" >&6; }
5480
5481 fi
5482 as_val=`eval 'as_val=${'$as_ac_Header'}
5483 $as_echo "$as_val"'`
5484 if test "x$as_val" = x""yes; then
5485 cat >>confdefs.h <<_ACEOF
5486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5488
5489 fi
5490
5491 done
5492
5493
5494 ################################################################################
5495 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5496 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5497 if test "${ac_cv_c_const+set}" = set; then
5498 $as_echo_n "(cached) " >&6
5499 else
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506
5507 int
5508 main ()
5509 {
5510 /* FIXME: Include the comments suggested by Paul. */
5511 #ifndef __cplusplus
5512 /* Ultrix mips cc rejects this. */
5513 typedef int charset[2];
5514 const charset cs;
5515 /* SunOS 4.1.1 cc rejects this. */
5516 char const *const *pcpcc;
5517 char **ppc;
5518 /* NEC SVR4.0.2 mips cc rejects this. */
5519 struct point {int x, y;};
5520 static struct point const zero = {0,0};
5521 /* AIX XL C 1.02.0.0 rejects this.
5522 It does not let you subtract one const X* pointer from another in
5523 an arm of an if-expression whose if-part is not a constant
5524 expression */
5525 const char *g = "string";
5526 pcpcc = &g + (g ? g-g : 0);
5527 /* HPUX 7.0 cc rejects these. */
5528 ++pcpcc;
5529 ppc = (char**) pcpcc;
5530 pcpcc = (char const *const *) ppc;
5531 { /* SCO 3.2v4 cc rejects this. */
5532 char *t;
5533 char const *s = 0 ? (char *) 0 : (char const *) 0;
5534
5535 *t++ = 0;
5536 if (s) return 0;
5537 }
5538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5539 int x[] = {25, 17};
5540 const int *foo = &x[0];
5541 ++foo;
5542 }
5543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5544 typedef const int *iptr;
5545 iptr p = 0;
5546 ++p;
5547 }
5548 { /* AIX XL C 1.02.0.0 rejects this saying
5549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5550 struct s { int j; const int *ap[3]; };
5551 struct s *b; b->j = 5;
5552 }
5553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5554 const int foo = 10;
5555 if (!foo) return 0;
5556 }
5557 return !cs[0] && !zero.x;
5558 #endif
5559
5560 ;
5561 return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (ac_try="$ac_compile"
5566 case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569 esac
5570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5571 $as_echo "$ac_try_echo") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
5582 ac_cv_c_const=yes
5583 else
5584 $as_echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587 ac_cv_c_const=no
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 fi
5592 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5593 $as_echo "$ac_cv_c_const" >&6; }
5594 if test $ac_cv_c_const = no; then
5595
5596 cat >>confdefs.h <<\_ACEOF
5597 #define const /**/
5598 _ACEOF
5599
5600 fi
5601
5602 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5603 $as_echo_n "checking for inline... " >&6; }
5604 if test "${ac_cv_c_inline+set}" = set; then
5605 $as_echo_n "(cached) " >&6
5606 else
5607 ac_cv_c_inline=no
5608 for ac_kw in inline __inline__ __inline; do
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 #ifndef __cplusplus
5616 typedef int foo_t;
5617 static $ac_kw foo_t static_foo () {return 0; }
5618 $ac_kw foo_t foo () {return 0; }
5619 #endif
5620
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5624 case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_cv_c_inline=$ac_kw
5641 else
5642 $as_echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 test "$ac_cv_c_inline" != no && break
5650 done
5651
5652 fi
5653 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5654 $as_echo "$ac_cv_c_inline" >&6; }
5655
5656
5657 case $ac_cv_c_inline in
5658 inline | yes) ;;
5659 *)
5660 case $ac_cv_c_inline in
5661 no) ac_val=;;
5662 *) ac_val=$ac_cv_c_inline;;
5663 esac
5664 cat >>confdefs.h <<_ACEOF
5665 #ifndef __cplusplus
5666 #define inline $ac_val
5667 #endif
5668 _ACEOF
5669 ;;
5670 esac
5671
5672 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5673 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5674 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5675 $as_echo_n "(cached) " >&6
5676 else
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 $ac_includes_default
5684 int
5685 main ()
5686 {
5687 static struct stat ac_aggr;
5688 if (ac_aggr.st_rdev)
5689 return 0;
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (ac_try="$ac_compile"
5696 case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699 esac
5700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5701 $as_echo "$ac_try_echo") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5703 ac_status=$?
5704 grep -v '^ *+' conftest.er1 >conftest.err
5705 rm -f conftest.er1
5706 cat conftest.err >&5
5707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.$ac_objext; then
5712 ac_cv_member_struct_stat_st_rdev=yes
5713 else
5714 $as_echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5716
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723 $ac_includes_default
5724 int
5725 main ()
5726 {
5727 static struct stat ac_aggr;
5728 if (sizeof ac_aggr.st_rdev)
5729 return 0;
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5741 $as_echo "$ac_try_echo") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
5752 ac_cv_member_struct_stat_st_rdev=yes
5753 else
5754 $as_echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 ac_cv_member_struct_stat_st_rdev=no
5758 fi
5759
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 fi
5762
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 fi
5765 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5766 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5767 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5768
5769 cat >>confdefs.h <<_ACEOF
5770 #define HAVE_STRUCT_STAT_ST_RDEV 1
5771 _ACEOF
5772
5773
5774 fi
5775
5776 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5777 $as_echo_n "checking for off_t... " >&6; }
5778 if test "${ac_cv_type_off_t+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5780 else
5781 ac_cv_type_off_t=no
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5789 int
5790 main ()
5791 {
5792 if (sizeof (off_t))
5793 return 0;
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.$ac_objext; then
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 int
5824 main ()
5825 {
5826 if (sizeof ((off_t)))
5827 return 0;
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5839 $as_echo "$ac_try_echo") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 :
5851 else
5852 $as_echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_cv_type_off_t=yes
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 else
5860 $as_echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863
5864 fi
5865
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 fi
5868 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5869 $as_echo "$ac_cv_type_off_t" >&6; }
5870 if test "x$ac_cv_type_off_t" = x""yes; then
5871 :
5872 else
5873
5874 cat >>confdefs.h <<_ACEOF
5875 #define off_t long int
5876 _ACEOF
5877
5878 fi
5879
5880 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5881 $as_echo_n "checking for pid_t... " >&6; }
5882 if test "${ac_cv_type_pid_t+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5884 else
5885 ac_cv_type_pid_t=no
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 $ac_includes_default
5893 int
5894 main ()
5895 {
5896 if (sizeof (pid_t))
5897 return 0;
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5927 int
5928 main ()
5929 {
5930 if (sizeof ((pid_t)))
5931 return 0;
5932 ;
5933 return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (ac_try="$ac_compile"
5938 case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943 $as_echo "$ac_try_echo") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
5954 :
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_cv_type_pid_t=yes
5960 fi
5961
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 else
5964 $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967
5968 fi
5969
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 fi
5972 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5973 $as_echo "$ac_cv_type_pid_t" >&6; }
5974 if test "x$ac_cv_type_pid_t" = x""yes; then
5975 :
5976 else
5977
5978 cat >>confdefs.h <<_ACEOF
5979 #define pid_t int
5980 _ACEOF
5981
5982 fi
5983
5984 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5985 $as_echo_n "checking return type of signal handlers... " >&6; }
5986 if test "${ac_cv_type_signal+set}" = set; then
5987 $as_echo_n "(cached) " >&6
5988 else
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <sys/types.h>
5996 #include <signal.h>
5997
5998 int
5999 main ()
6000 {
6001 return *(signal (0, 0)) (0) == 1;
6002 ;
6003 return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 ac_cv_type_signal=int
6025 else
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ac_cv_type_signal=void
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6035 $as_echo "$ac_cv_type_signal" >&6; }
6036
6037 cat >>confdefs.h <<_ACEOF
6038 #define RETSIGTYPE $ac_cv_type_signal
6039 _ACEOF
6040
6041
6042 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6043 $as_echo_n "checking for size_t... " >&6; }
6044 if test "${ac_cv_type_size_t+set}" = set; then
6045 $as_echo_n "(cached) " >&6
6046 else
6047 ac_cv_type_size_t=no
6048 cat >conftest.$ac_ext <<_ACEOF
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6055 int
6056 main ()
6057 {
6058 if (sizeof (size_t))
6059 return 0;
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (ac_try="$ac_compile"
6066 case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6069 esac
6070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6071 $as_echo "$ac_try_echo") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h. */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 $ac_includes_default
6089 int
6090 main ()
6091 {
6092 if (sizeof ((size_t)))
6093 return 0;
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (ac_try="$ac_compile"
6100 case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103 esac
6104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105 $as_echo "$ac_try_echo") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
6116 :
6117 else
6118 $as_echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 ac_cv_type_size_t=yes
6122 fi
6123
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 else
6126 $as_echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 fi
6134 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6135 $as_echo "$ac_cv_type_size_t" >&6; }
6136 if test "x$ac_cv_type_size_t" = x""yes; then
6137 :
6138 else
6139
6140 cat >>confdefs.h <<_ACEOF
6141 #define size_t unsigned int
6142 _ACEOF
6143
6144 fi
6145
6146 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6147 $as_echo_n "checking for mode_t... " >&6; }
6148 if test "${ac_cv_type_mode_t+set}" = set; then
6149 $as_echo_n "(cached) " >&6
6150 else
6151 ac_cv_type_mode_t=no
6152 cat >conftest.$ac_ext <<_ACEOF
6153 /* confdefs.h. */
6154 _ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 $ac_includes_default
6159 int
6160 main ()
6161 {
6162 if (sizeof (mode_t))
6163 return 0;
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6170 case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173 esac
6174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6175 $as_echo "$ac_try_echo") >&5
6176 (eval "$ac_compile") 2>conftest.er1
6177 ac_status=$?
6178 grep -v '^ *+' conftest.er1 >conftest.err
6179 rm -f conftest.er1
6180 cat conftest.err >&5
6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest.$ac_objext; then
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 int
6194 main ()
6195 {
6196 if (sizeof ((mode_t)))
6197 return 0;
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6204 case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 :
6221 else
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_type_mode_t=yes
6226 fi
6227
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 else
6230 $as_echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233
6234 fi
6235
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6239 $as_echo "$ac_cv_type_mode_t" >&6; }
6240 if test "x$ac_cv_type_mode_t" = x""yes; then
6241 :
6242 else
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define mode_t int
6246 _ACEOF
6247
6248 fi
6249
6250 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6251 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6252 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6262 int
6263 main ()
6264 {
6265 static struct stat ac_aggr;
6266 if (ac_aggr.st_rdev)
6267 return 0;
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 ac_cv_member_struct_stat_st_rdev=yes
6291 else
6292 $as_echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6302 int
6303 main ()
6304 {
6305 static struct stat ac_aggr;
6306 if (sizeof ac_aggr.st_rdev)
6307 return 0;
6308 ;
6309 return 0;
6310 }
6311 _ACEOF
6312 rm -f conftest.$ac_objext
6313 if { (ac_try="$ac_compile"
6314 case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317 esac
6318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6319 $as_echo "$ac_try_echo") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest.$ac_objext; then
6330 ac_cv_member_struct_stat_st_rdev=yes
6331 else
6332 $as_echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_cv_member_struct_stat_st_rdev=no
6336 fi
6337
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 fi
6340
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 fi
6343 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6344 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6345 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6346
6347 cat >>confdefs.h <<_ACEOF
6348 #define HAVE_STRUCT_STAT_ST_RDEV 1
6349 _ACEOF
6350
6351
6352 fi
6353
6354 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6355 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6356 if test "${ac_cv_struct_tm+set}" = set; then
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <sys/types.h>
6366 #include <time.h>
6367
6368 int
6369 main ()
6370 {
6371 struct tm tm;
6372 int *p = &tm.tm_sec;
6373 return !p;
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383 esac
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_cv_struct_tm=time.h
6397 else
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 ac_cv_struct_tm=sys/time.h
6402 fi
6403
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 fi
6406 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6407 $as_echo "$ac_cv_struct_tm" >&6; }
6408 if test $ac_cv_struct_tm = sys/time.h; then
6409
6410 cat >>confdefs.h <<\_ACEOF
6411 #define TM_IN_SYS_TIME 1
6412 _ACEOF
6413
6414 fi
6415
6416
6417 ################################################################################
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6436 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6437 uname
6438 do
6439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6440 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6441 $as_echo_n "checking for $ac_func... " >&6; }
6442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6443 $as_echo_n "(cached) " >&6
6444 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6453 #define $ac_func innocuous_$ac_func
6454
6455 /* System header to define __stub macros and hopefully few prototypes,
6456 which can conflict with char $ac_func (); below.
6457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6458 <limits.h> exists even on freestanding compilers. */
6459
6460 #ifdef __STDC__
6461 # include <limits.h>
6462 #else
6463 # include <assert.h>
6464 #endif
6465
6466 #undef $ac_func
6467
6468 /* Override any GCC internal prototype to avoid an error.
6469 Use char because int might match the return type of a GCC
6470 builtin and then its argument prototype would still apply. */
6471 #ifdef __cplusplus
6472 extern "C"
6473 #endif
6474 char $ac_func ();
6475 /* The GNU C library defines this for functions which it implements
6476 to always fail with ENOSYS. Some functions are actually named
6477 something starting with __ and the normal name is an alias. */
6478 #if defined __stub_$ac_func || defined __stub___$ac_func
6479 choke me
6480 #endif
6481
6482 int
6483 main ()
6484 {
6485 return $ac_func ();
6486 ;
6487 return 0;
6488 }
6489 _ACEOF
6490 rm -f conftest.$ac_objext conftest$ac_exeext
6491 if { (ac_try="$ac_link"
6492 case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495 esac
6496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497 $as_echo "$ac_try_echo") >&5
6498 (eval "$ac_link") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest$ac_exeext && {
6508 test "$cross_compiling" = yes ||
6509 $as_test_x conftest$ac_exeext
6510 }; then
6511 eval "$as_ac_var=yes"
6512 else
6513 $as_echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 eval "$as_ac_var=no"
6517 fi
6518
6519 rm -rf conftest.dSYM
6520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6521 conftest$ac_exeext conftest.$ac_ext
6522 fi
6523 ac_res=`eval 'as_val=${'$as_ac_var'}
6524 $as_echo "$as_val"'`
6525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6526 $as_echo "$ac_res" >&6; }
6527 as_val=`eval 'as_val=${'$as_ac_var'}
6528 $as_echo "$as_val"'`
6529 if test "x$as_val" = x""yes; then
6530 cat >>confdefs.h <<_ACEOF
6531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6532 _ACEOF
6533
6534 else
6535 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6536 $as_echo "$as_me: error: bailing out" >&2;}
6537 { (exit 1); exit 1; }; }
6538 fi
6539 done
6540
6541
6542 for ac_func in siginterrupt
6543 do
6544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6546 $as_echo_n "checking for $ac_func... " >&6; }
6547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6548 $as_echo_n "(cached) " >&6
6549 else
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6558 #define $ac_func innocuous_$ac_func
6559
6560 /* System header to define __stub macros and hopefully few prototypes,
6561 which can conflict with char $ac_func (); below.
6562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563 <limits.h> exists even on freestanding compilers. */
6564
6565 #ifdef __STDC__
6566 # include <limits.h>
6567 #else
6568 # include <assert.h>
6569 #endif
6570
6571 #undef $ac_func
6572
6573 /* Override any GCC internal prototype to avoid an error.
6574 Use char because int might match the return type of a GCC
6575 builtin and then its argument prototype would still apply. */
6576 #ifdef __cplusplus
6577 extern "C"
6578 #endif
6579 char $ac_func ();
6580 /* The GNU C library defines this for functions which it implements
6581 to always fail with ENOSYS. Some functions are actually named
6582 something starting with __ and the normal name is an alias. */
6583 #if defined __stub_$ac_func || defined __stub___$ac_func
6584 choke me
6585 #endif
6586
6587 int
6588 main ()
6589 {
6590 return $ac_func ();
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (ac_try="$ac_link"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6602 $as_echo "$ac_try_echo") >&5
6603 (eval "$ac_link") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest$ac_exeext && {
6613 test "$cross_compiling" = yes ||
6614 $as_test_x conftest$ac_exeext
6615 }; then
6616 eval "$as_ac_var=yes"
6617 else
6618 $as_echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 eval "$as_ac_var=no"
6622 fi
6623
6624 rm -rf conftest.dSYM
6625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6626 conftest$ac_exeext conftest.$ac_ext
6627 fi
6628 ac_res=`eval 'as_val=${'$as_ac_var'}
6629 $as_echo "$as_val"'`
6630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6631 $as_echo "$ac_res" >&6; }
6632 as_val=`eval 'as_val=${'$as_ac_var'}
6633 $as_echo "$as_val"'`
6634 if test "x$as_val" = x""yes; then
6635 cat >>confdefs.h <<_ACEOF
6636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6637 _ACEOF
6638
6639 fi
6640 done
6641
6642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6643 # for constant arguments. Useless!
6644 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6645 $as_echo_n "checking for working alloca.h... " >&6; }
6646 if test "${ac_cv_working_alloca_h+set}" = set; then
6647 $as_echo_n "(cached) " >&6
6648 else
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <alloca.h>
6656 int
6657 main ()
6658 {
6659 char *p = (char *) alloca (2 * sizeof (int));
6660 if (p) return 0;
6661 ;
6662 return 0;
6663 }
6664 _ACEOF
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (ac_try="$ac_link"
6667 case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670 esac
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_link") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest$ac_exeext && {
6683 test "$cross_compiling" = yes ||
6684 $as_test_x conftest$ac_exeext
6685 }; then
6686 ac_cv_working_alloca_h=yes
6687 else
6688 $as_echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_cv_working_alloca_h=no
6692 fi
6693
6694 rm -rf conftest.dSYM
6695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6696 conftest$ac_exeext conftest.$ac_ext
6697 fi
6698 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6699 $as_echo "$ac_cv_working_alloca_h" >&6; }
6700 if test $ac_cv_working_alloca_h = yes; then
6701
6702 cat >>confdefs.h <<\_ACEOF
6703 #define HAVE_ALLOCA_H 1
6704 _ACEOF
6705
6706 fi
6707
6708 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6709 $as_echo_n "checking for alloca... " >&6; }
6710 if test "${ac_cv_func_alloca_works+set}" = set; then
6711 $as_echo_n "(cached) " >&6
6712 else
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 #ifdef __GNUC__
6720 # define alloca __builtin_alloca
6721 #else
6722 # ifdef _MSC_VER
6723 # include <malloc.h>
6724 # define alloca _alloca
6725 # else
6726 # ifdef HAVE_ALLOCA_H
6727 # include <alloca.h>
6728 # else
6729 # ifdef _AIX
6730 #pragma alloca
6731 # else
6732 # ifndef alloca /* predefined by HP cc +Olibcalls */
6733 char *alloca ();
6734 # endif
6735 # endif
6736 # endif
6737 # endif
6738 #endif
6739
6740 int
6741 main ()
6742 {
6743 char *p = (char *) alloca (1);
6744 if (p) return 0;
6745 ;
6746 return 0;
6747 }
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6751 case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754 esac
6755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6756 $as_echo "$ac_try_echo") >&5
6757 (eval "$ac_link") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest$ac_exeext && {
6767 test "$cross_compiling" = yes ||
6768 $as_test_x conftest$ac_exeext
6769 }; then
6770 ac_cv_func_alloca_works=yes
6771 else
6772 $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_cv_func_alloca_works=no
6776 fi
6777
6778 rm -rf conftest.dSYM
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6781 fi
6782 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6783 $as_echo "$ac_cv_func_alloca_works" >&6; }
6784
6785 if test $ac_cv_func_alloca_works = yes; then
6786
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_ALLOCA 1
6789 _ACEOF
6790
6791 else
6792 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6793 # that cause trouble. Some versions do not even contain alloca or
6794 # contain a buggy version. If you still want to use their alloca,
6795 # use ar to extract alloca.o from them instead of compiling alloca.c.
6796
6797 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6798
6799 cat >>confdefs.h <<\_ACEOF
6800 #define C_ALLOCA 1
6801 _ACEOF
6802
6803
6804 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6805 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6806 if test "${ac_cv_os_cray+set}" = set; then
6807 $as_echo_n "(cached) " >&6
6808 else
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #if defined CRAY && ! defined CRAY2
6816 webecray
6817 #else
6818 wenotbecray
6819 #endif
6820
6821 _ACEOF
6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6823 $EGREP "webecray" >/dev/null 2>&1; then
6824 ac_cv_os_cray=yes
6825 else
6826 ac_cv_os_cray=no
6827 fi
6828 rm -f conftest*
6829
6830 fi
6831 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6832 $as_echo "$ac_cv_os_cray" >&6; }
6833 if test $ac_cv_os_cray = yes; then
6834 for ac_func in _getb67 GETB67 getb67; do
6835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6837 $as_echo_n "checking for $ac_func... " >&6; }
6838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6839 $as_echo_n "(cached) " >&6
6840 else
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6849 #define $ac_func innocuous_$ac_func
6850
6851 /* System header to define __stub macros and hopefully few prototypes,
6852 which can conflict with char $ac_func (); below.
6853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6854 <limits.h> exists even on freestanding compilers. */
6855
6856 #ifdef __STDC__
6857 # include <limits.h>
6858 #else
6859 # include <assert.h>
6860 #endif
6861
6862 #undef $ac_func
6863
6864 /* Override any GCC internal prototype to avoid an error.
6865 Use char because int might match the return type of a GCC
6866 builtin and then its argument prototype would still apply. */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 char $ac_func ();
6871 /* The GNU C library defines this for functions which it implements
6872 to always fail with ENOSYS. Some functions are actually named
6873 something starting with __ and the normal name is an alias. */
6874 #if defined __stub_$ac_func || defined __stub___$ac_func
6875 choke me
6876 #endif
6877
6878 int
6879 main ()
6880 {
6881 return $ac_func ();
6882 ;
6883 return 0;
6884 }
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893 $as_echo "$ac_try_echo") >&5
6894 (eval "$ac_link") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest$ac_exeext && {
6904 test "$cross_compiling" = yes ||
6905 $as_test_x conftest$ac_exeext
6906 }; then
6907 eval "$as_ac_var=yes"
6908 else
6909 $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912 eval "$as_ac_var=no"
6913 fi
6914
6915 rm -rf conftest.dSYM
6916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6917 conftest$ac_exeext conftest.$ac_ext
6918 fi
6919 ac_res=`eval 'as_val=${'$as_ac_var'}
6920 $as_echo "$as_val"'`
6921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6922 $as_echo "$ac_res" >&6; }
6923 as_val=`eval 'as_val=${'$as_ac_var'}
6924 $as_echo "$as_val"'`
6925 if test "x$as_val" = x""yes; then
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define CRAY_STACKSEG_END $ac_func
6929 _ACEOF
6930
6931 break
6932 fi
6933
6934 done
6935 fi
6936
6937 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6938 $as_echo_n "checking stack direction for C alloca... " >&6; }
6939 if test "${ac_cv_c_stack_direction+set}" = set; then
6940 $as_echo_n "(cached) " >&6
6941 else
6942 if test "$cross_compiling" = yes; then
6943 ac_cv_c_stack_direction=0
6944 else
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 $ac_includes_default
6952 int
6953 find_stack_direction ()
6954 {
6955 static char *addr = 0;
6956 auto char dummy;
6957 if (addr == 0)
6958 {
6959 addr = &dummy;
6960 return find_stack_direction ();
6961 }
6962 else
6963 return (&dummy > addr) ? 1 : -1;
6964 }
6965
6966 int
6967 main ()
6968 {
6969 return find_stack_direction () < 0;
6970 }
6971 _ACEOF
6972 rm -f conftest$ac_exeext
6973 if { (ac_try="$ac_link"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6979 $as_echo "$ac_try_echo") >&5
6980 (eval "$ac_link") 2>&5
6981 ac_status=$?
6982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6984 { (case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987 esac
6988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6989 $as_echo "$ac_try_echo") >&5
6990 (eval "$ac_try") 2>&5
6991 ac_status=$?
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_c_stack_direction=1
6995 else
6996 $as_echo "$as_me: program exited with status $ac_status" >&5
6997 $as_echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ( exit $ac_status )
7001 ac_cv_c_stack_direction=-1
7002 fi
7003 rm -rf conftest.dSYM
7004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7005 fi
7006
7007
7008 fi
7009 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7010 $as_echo "$ac_cv_c_stack_direction" >&6; }
7011
7012 cat >>confdefs.h <<_ACEOF
7013 #define STACK_DIRECTION $ac_cv_c_stack_direction
7014 _ACEOF
7015
7016
7017 fi
7018
7019 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7020 $as_echo_n "checking whether closedir returns void... " >&6; }
7021 if test "${ac_cv_func_closedir_void+set}" = set; then
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test "$cross_compiling" = yes; then
7025 ac_cv_func_closedir_void=yes
7026 else
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7033 $ac_includes_default
7034 #include <$ac_header_dirent>
7035 #ifndef __cplusplus
7036 int closedir ();
7037 #endif
7038
7039 int
7040 main ()
7041 {
7042 return closedir (opendir (".")) != 0;
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest$ac_exeext
7048 if { (ac_try="$ac_link"
7049 case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052 esac
7053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7054 $as_echo "$ac_try_echo") >&5
7055 (eval "$ac_link") 2>&5
7056 ac_status=$?
7057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7059 { (case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064 $as_echo "$ac_try_echo") >&5
7065 (eval "$ac_try") 2>&5
7066 ac_status=$?
7067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 ac_cv_func_closedir_void=no
7070 else
7071 $as_echo "$as_me: program exited with status $ac_status" >&5
7072 $as_echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075 ( exit $ac_status )
7076 ac_cv_func_closedir_void=yes
7077 fi
7078 rm -rf conftest.dSYM
7079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7080 fi
7081
7082
7083 fi
7084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7085 $as_echo "$ac_cv_func_closedir_void" >&6; }
7086 if test $ac_cv_func_closedir_void = yes; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define CLOSEDIR_VOID 1
7090 _ACEOF
7091
7092 fi
7093
7094
7095 for ac_header in vfork.h
7096 do
7097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7100 $as_echo_n "checking for $ac_header... " >&6; }
7101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7102 $as_echo_n "(cached) " >&6
7103 fi
7104 ac_res=`eval 'as_val=${'$as_ac_Header'}
7105 $as_echo "$as_val"'`
7106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7107 $as_echo "$ac_res" >&6; }
7108 else
7109 # Is the header compilable?
7110 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7111 $as_echo_n "checking $ac_header usability... " >&6; }
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 #include <$ac_header>
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7123 case "(($ac_try" in
7124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7126 esac
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_header_compiler=yes
7140 else
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144 ac_header_compiler=no
7145 fi
7146
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7149 $as_echo "$ac_header_compiler" >&6; }
7150
7151 # Is the header present?
7152 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7153 $as_echo_n "checking $ac_header presence... " >&6; }
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 #include <$ac_header>
7161 _ACEOF
7162 if { (ac_try="$ac_cpp conftest.$ac_ext"
7163 case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166 esac
7167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7168 $as_echo "$ac_try_echo") >&5
7169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } >/dev/null && {
7176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7177 test ! -s conftest.err
7178 }; then
7179 ac_header_preproc=yes
7180 else
7181 $as_echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_header_preproc=no
7185 fi
7186
7187 rm -f conftest.err conftest.$ac_ext
7188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7189 $as_echo "$ac_header_preproc" >&6; }
7190
7191 # So? What about this header?
7192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7193 yes:no: )
7194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7195 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7198 ac_header_preproc=yes
7199 ;;
7200 no:yes:* )
7201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7202 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7204 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7206 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7208 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7212 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7213
7214 ;;
7215 esac
7216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7217 $as_echo_n "checking for $ac_header... " >&6; }
7218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7219 $as_echo_n "(cached) " >&6
7220 else
7221 eval "$as_ac_Header=\$ac_header_preproc"
7222 fi
7223 ac_res=`eval 'as_val=${'$as_ac_Header'}
7224 $as_echo "$as_val"'`
7225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7226 $as_echo "$ac_res" >&6; }
7227
7228 fi
7229 as_val=`eval 'as_val=${'$as_ac_Header'}
7230 $as_echo "$as_val"'`
7231 if test "x$as_val" = x""yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234 _ACEOF
7235
7236 fi
7237
7238 done
7239
7240
7241
7242 for ac_func in fork vfork
7243 do
7244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7245 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7246 $as_echo_n "checking for $ac_func... " >&6; }
7247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7248 $as_echo_n "(cached) " >&6
7249 else
7250 cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7258 #define $ac_func innocuous_$ac_func
7259
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func (); below.
7262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7263 <limits.h> exists even on freestanding compilers. */
7264
7265 #ifdef __STDC__
7266 # include <limits.h>
7267 #else
7268 # include <assert.h>
7269 #endif
7270
7271 #undef $ac_func
7272
7273 /* Override any GCC internal prototype to avoid an error.
7274 Use char because int might match the return type of a GCC
7275 builtin and then its argument prototype would still apply. */
7276 #ifdef __cplusplus
7277 extern "C"
7278 #endif
7279 char $ac_func ();
7280 /* The GNU C library defines this for functions which it implements
7281 to always fail with ENOSYS. Some functions are actually named
7282 something starting with __ and the normal name is an alias. */
7283 #if defined __stub_$ac_func || defined __stub___$ac_func
7284 choke me
7285 #endif
7286
7287 int
7288 main ()
7289 {
7290 return $ac_func ();
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (ac_try="$ac_link"
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_link") 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_exeext && {
7313 test "$cross_compiling" = yes ||
7314 $as_test_x conftest$ac_exeext
7315 }; then
7316 eval "$as_ac_var=yes"
7317 else
7318 $as_echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321 eval "$as_ac_var=no"
7322 fi
7323
7324 rm -rf conftest.dSYM
7325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7326 conftest$ac_exeext conftest.$ac_ext
7327 fi
7328 ac_res=`eval 'as_val=${'$as_ac_var'}
7329 $as_echo "$as_val"'`
7330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7331 $as_echo "$ac_res" >&6; }
7332 as_val=`eval 'as_val=${'$as_ac_var'}
7333 $as_echo "$as_val"'`
7334 if test "x$as_val" = x""yes; then
7335 cat >>confdefs.h <<_ACEOF
7336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7337 _ACEOF
7338
7339 fi
7340 done
7341
7342 if test "x$ac_cv_func_fork" = xyes; then
7343 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7344 $as_echo_n "checking for working fork... " >&6; }
7345 if test "${ac_cv_func_fork_works+set}" = set; then
7346 $as_echo_n "(cached) " >&6
7347 else
7348 if test "$cross_compiling" = yes; then
7349 ac_cv_func_fork_works=cross
7350 else
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 $ac_includes_default
7358 int
7359 main ()
7360 {
7361
7362 /* By Ruediger Kuhlmann. */
7363 return fork () < 0;
7364
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 rm -f conftest$ac_exeext
7370 if { (ac_try="$ac_link"
7371 case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7374 esac
7375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376 $as_echo "$ac_try_echo") >&5
7377 (eval "$ac_link") 2>&5
7378 ac_status=$?
7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7381 { (case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7386 $as_echo "$ac_try_echo") >&5
7387 (eval "$ac_try") 2>&5
7388 ac_status=$?
7389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7391 ac_cv_func_fork_works=yes
7392 else
7393 $as_echo "$as_me: program exited with status $ac_status" >&5
7394 $as_echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 ( exit $ac_status )
7398 ac_cv_func_fork_works=no
7399 fi
7400 rm -rf conftest.dSYM
7401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7402 fi
7403
7404
7405 fi
7406 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7407 $as_echo "$ac_cv_func_fork_works" >&6; }
7408
7409 else
7410 ac_cv_func_fork_works=$ac_cv_func_fork
7411 fi
7412 if test "x$ac_cv_func_fork_works" = xcross; then
7413 case $host in
7414 *-*-amigaos* | *-*-msdosdjgpp*)
7415 # Override, as these systems have only a dummy fork() stub
7416 ac_cv_func_fork_works=no
7417 ;;
7418 *)
7419 ac_cv_func_fork_works=yes
7420 ;;
7421 esac
7422 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7423 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7424 fi
7425 ac_cv_func_vfork_works=$ac_cv_func_vfork
7426 if test "x$ac_cv_func_vfork" = xyes; then
7427 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7428 $as_echo_n "checking for working vfork... " >&6; }
7429 if test "${ac_cv_func_vfork_works+set}" = set; then
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test "$cross_compiling" = yes; then
7433 ac_cv_func_vfork_works=cross
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 /* Thanks to Paul Eggert for this test. */
7442 $ac_includes_default
7443 #include <sys/wait.h>
7444 #ifdef HAVE_VFORK_H
7445 # include <vfork.h>
7446 #endif
7447 /* On some sparc systems, changes by the child to local and incoming
7448 argument registers are propagated back to the parent. The compiler
7449 is told about this with #include <vfork.h>, but some compilers
7450 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7451 static variable whose address is put into a register that is
7452 clobbered by the vfork. */
7453 static void
7454 #ifdef __cplusplus
7455 sparc_address_test (int arg)
7456 # else
7457 sparc_address_test (arg) int arg;
7458 #endif
7459 {
7460 static pid_t child;
7461 if (!child) {
7462 child = vfork ();
7463 if (child < 0) {
7464 perror ("vfork");
7465 _exit(2);
7466 }
7467 if (!child) {
7468 arg = getpid();
7469 write(-1, "", 0);
7470 _exit (arg);
7471 }
7472 }
7473 }
7474
7475 int
7476 main ()
7477 {
7478 pid_t parent = getpid ();
7479 pid_t child;
7480
7481 sparc_address_test (0);
7482
7483 child = vfork ();
7484
7485 if (child == 0) {
7486 /* Here is another test for sparc vfork register problems. This
7487 test uses lots of local variables, at least as many local
7488 variables as main has allocated so far including compiler
7489 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7490 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7491 reuse the register of parent for one of the local variables,
7492 since it will think that parent can't possibly be used any more
7493 in this routine. Assigning to the local variable will thus
7494 munge parent in the parent process. */
7495 pid_t
7496 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7497 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7498 /* Convince the compiler that p..p7 are live; otherwise, it might
7499 use the same hardware register for all 8 local variables. */
7500 if (p != p1 || p != p2 || p != p3 || p != p4
7501 || p != p5 || p != p6 || p != p7)
7502 _exit(1);
7503
7504 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7505 from child file descriptors. If the child closes a descriptor
7506 before it execs or exits, this munges the parent's descriptor
7507 as well. Test for this by closing stdout in the child. */
7508 _exit(close(fileno(stdout)) != 0);
7509 } else {
7510 int status;
7511 struct stat st;
7512
7513 while (wait(&status) != child)
7514 ;
7515 return (
7516 /* Was there some problem with vforking? */
7517 child < 0
7518
7519 /* Did the child fail? (This shouldn't happen.) */
7520 || status
7521
7522 /* Did the vfork/compiler bug occur? */
7523 || parent != getpid()
7524
7525 /* Did the file descriptor bug occur? */
7526 || fstat(fileno(stdout), &st) != 0
7527 );
7528 }
7529 }
7530 _ACEOF
7531 rm -f conftest$ac_exeext
7532 if { (ac_try="$ac_link"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_link") 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7543 { (case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546 esac
7547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548 $as_echo "$ac_try_echo") >&5
7549 (eval "$ac_try") 2>&5
7550 ac_status=$?
7551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 ac_cv_func_vfork_works=yes
7554 else
7555 $as_echo "$as_me: program exited with status $ac_status" >&5
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 ( exit $ac_status )
7560 ac_cv_func_vfork_works=no
7561 fi
7562 rm -rf conftest.dSYM
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7564 fi
7565
7566
7567 fi
7568 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7569 $as_echo "$ac_cv_func_vfork_works" >&6; }
7570
7571 fi;
7572 if test "x$ac_cv_func_fork_works" = xcross; then
7573 ac_cv_func_vfork_works=$ac_cv_func_vfork
7574 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7575 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7576 fi
7577
7578 if test "x$ac_cv_func_vfork_works" = xyes; then
7579
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_WORKING_VFORK 1
7582 _ACEOF
7583
7584 else
7585
7586 cat >>confdefs.h <<\_ACEOF
7587 #define vfork fork
7588 _ACEOF
7589
7590 fi
7591 if test "x$ac_cv_func_fork_works" = xyes; then
7592
7593 cat >>confdefs.h <<\_ACEOF
7594 #define HAVE_WORKING_FORK 1
7595 _ACEOF
7596
7597 fi
7598
7599 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7600 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7601 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7602 $as_echo_n "(cached) " >&6
7603 else
7604 rm -f conftest.sym conftest.file
7605 echo >conftest.file
7606 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7607 if test "$cross_compiling" = yes; then
7608 ac_cv_func_lstat_dereferences_slashed_symlink=no
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 int
7618 main ()
7619 {
7620 struct stat sbuf;
7621 /* Linux will dereference the symlink and fail.
7622 That is better in the sense that it means we will not
7623 have to compile and use the lstat wrapper. */
7624 return lstat ("conftest.sym/", &sbuf) == 0;
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7636 $as_echo "$ac_try_echo") >&5
7637 (eval "$ac_link") 2>&5
7638 ac_status=$?
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7641 { (case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
7645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7646 $as_echo "$ac_try_echo") >&5
7647 (eval "$ac_try") 2>&5
7648 ac_status=$?
7649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7652 else
7653 $as_echo "$as_me: program exited with status $ac_status" >&5
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ( exit $ac_status )
7658 ac_cv_func_lstat_dereferences_slashed_symlink=no
7659 fi
7660 rm -rf conftest.dSYM
7661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7662 fi
7663
7664
7665 else
7666 # If the `ln -s' command failed, then we probably don't even
7667 # have an lstat function.
7668 ac_cv_func_lstat_dereferences_slashed_symlink=no
7669 fi
7670 rm -f conftest.sym conftest.file
7671
7672 fi
7673 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7674 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7675
7676 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7677
7678 cat >>confdefs.h <<_ACEOF
7679 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7680 _ACEOF
7681
7682
7683 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7684 case " $LIBOBJS " in
7685 *" lstat.$ac_objext "* ) ;;
7686 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7687 ;;
7688 esac
7689
7690 fi
7691
7692 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7693 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7694 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test "$cross_compiling" = yes; then
7698 ac_cv_func_lstat_empty_string_bug=yes
7699 else
7700 cat >conftest.$ac_ext <<_ACEOF
7701 /* confdefs.h. */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 $ac_includes_default
7707 int
7708 main ()
7709 {
7710 struct stat sbuf;
7711 return lstat ("", &sbuf) == 0;
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest$ac_exeext
7717 if { (ac_try="$ac_link"
7718 case "(($ac_try" in
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7721 esac
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724 (eval "$ac_link") 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728 { (case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734 (eval "$ac_try") 2>&5
7735 ac_status=$?
7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_cv_func_lstat_empty_string_bug=no
7739 else
7740 $as_echo "$as_me: program exited with status $ac_status" >&5
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ( exit $ac_status )
7745 ac_cv_func_lstat_empty_string_bug=yes
7746 fi
7747 rm -rf conftest.dSYM
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7749 fi
7750
7751
7752 fi
7753 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7754 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7755 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7756 case " $LIBOBJS " in
7757 *" lstat.$ac_objext "* ) ;;
7758 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7759 ;;
7760 esac
7761
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7765 _ACEOF
7766
7767 fi
7768
7769
7770 for ac_header in stdlib.h
7771 do
7772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7775 $as_echo_n "checking for $ac_header... " >&6; }
7776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 $as_echo_n "(cached) " >&6
7778 fi
7779 ac_res=`eval 'as_val=${'$as_ac_Header'}
7780 $as_echo "$as_val"'`
7781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7782 $as_echo "$ac_res" >&6; }
7783 else
7784 # Is the header compilable?
7785 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7786 $as_echo_n "checking $ac_header usability... " >&6; }
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 $ac_includes_default
7794 #include <$ac_header>
7795 _ACEOF
7796 rm -f conftest.$ac_objext
7797 if { (ac_try="$ac_compile"
7798 case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801 esac
7802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7803 $as_echo "$ac_try_echo") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7814 ac_header_compiler=yes
7815 else
7816 $as_echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 ac_header_compiler=no
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7824 $as_echo "$ac_header_compiler" >&6; }
7825
7826 # Is the header present?
7827 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7828 $as_echo_n "checking $ac_header presence... " >&6; }
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <$ac_header>
7836 _ACEOF
7837 if { (ac_try="$ac_cpp conftest.$ac_ext"
7838 case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7843 $as_echo "$ac_try_echo") >&5
7844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } >/dev/null && {
7851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 }; then
7854 ac_header_preproc=yes
7855 else
7856 $as_echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 ac_header_preproc=no
7860 fi
7861
7862 rm -f conftest.err conftest.$ac_ext
7863 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7864 $as_echo "$ac_header_preproc" >&6; }
7865
7866 # So? What about this header?
7867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7868 yes:no: )
7869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7870 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7873 ac_header_preproc=yes
7874 ;;
7875 no:yes:* )
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7879 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7881 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7883 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7887 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7888
7889 ;;
7890 esac
7891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7892 $as_echo_n "checking for $ac_header... " >&6; }
7893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7894 $as_echo_n "(cached) " >&6
7895 else
7896 eval "$as_ac_Header=\$ac_header_preproc"
7897 fi
7898 ac_res=`eval 'as_val=${'$as_ac_Header'}
7899 $as_echo "$as_val"'`
7900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7901 $as_echo "$ac_res" >&6; }
7902
7903 fi
7904 as_val=`eval 'as_val=${'$as_ac_Header'}
7905 $as_echo "$as_val"'`
7906 if test "x$as_val" = x""yes; then
7907 cat >>confdefs.h <<_ACEOF
7908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7909 _ACEOF
7910
7911 fi
7912
7913 done
7914
7915 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7916 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7917 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7918 $as_echo_n "(cached) " >&6
7919 else
7920 if test "$cross_compiling" = yes; then
7921 ac_cv_func_malloc_0_nonnull=no
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7930 # include <stdlib.h>
7931 #else
7932 char *malloc ();
7933 #endif
7934
7935 int
7936 main ()
7937 {
7938 return ! malloc (0);
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest$ac_exeext
7944 if { (ac_try="$ac_link"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7950 $as_echo "$ac_try_echo") >&5
7951 (eval "$ac_link") 2>&5
7952 ac_status=$?
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7955 { (case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7960 $as_echo "$ac_try_echo") >&5
7961 (eval "$ac_try") 2>&5
7962 ac_status=$?
7963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7965 ac_cv_func_malloc_0_nonnull=yes
7966 else
7967 $as_echo "$as_me: program exited with status $ac_status" >&5
7968 $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ( exit $ac_status )
7972 ac_cv_func_malloc_0_nonnull=no
7973 fi
7974 rm -rf conftest.dSYM
7975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7976 fi
7977
7978
7979 fi
7980 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7981 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7982 if test $ac_cv_func_malloc_0_nonnull = yes; then
7983
7984 cat >>confdefs.h <<\_ACEOF
7985 #define HAVE_MALLOC 1
7986 _ACEOF
7987
7988 else
7989 cat >>confdefs.h <<\_ACEOF
7990 #define HAVE_MALLOC 0
7991 _ACEOF
7992
7993 case " $LIBOBJS " in
7994 *" malloc.$ac_objext "* ) ;;
7995 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7996 ;;
7997 esac
7998
7999
8000 cat >>confdefs.h <<\_ACEOF
8001 #define malloc rpl_malloc
8002 _ACEOF
8003
8004 fi
8005
8006
8007
8008 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8009 $as_echo_n "checking for working memcmp... " >&6; }
8010 if test "${ac_cv_func_memcmp_working+set}" = set; then
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test "$cross_compiling" = yes; then
8014 ac_cv_func_memcmp_working=no
8015 else
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 $ac_includes_default
8023 int
8024 main ()
8025 {
8026
8027 /* Some versions of memcmp are not 8-bit clean. */
8028 char c0 = '\100', c1 = '\200', c2 = '\201';
8029 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8030 return 1;
8031
8032 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8033 or more and with at least one buffer not starting on a 4-byte boundary.
8034 William Lewis provided this test program. */
8035 {
8036 char foo[21];
8037 char bar[21];
8038 int i;
8039 for (i = 0; i < 4; i++)
8040 {
8041 char *a = foo + i;
8042 char *b = bar + i;
8043 strcpy (a, "--------01111111");
8044 strcpy (b, "--------10000000");
8045 if (memcmp (a, b, 16) >= 0)
8046 return 1;
8047 }
8048 return 0;
8049 }
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest$ac_exeext
8056 if { (ac_try="$ac_link"
8057 case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060 esac
8061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_link") 2>&5
8064 ac_status=$?
8065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067 { (case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8072 $as_echo "$ac_try_echo") >&5
8073 (eval "$ac_try") 2>&5
8074 ac_status=$?
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_cv_func_memcmp_working=yes
8078 else
8079 $as_echo "$as_me: program exited with status $ac_status" >&5
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ( exit $ac_status )
8084 ac_cv_func_memcmp_working=no
8085 fi
8086 rm -rf conftest.dSYM
8087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8088 fi
8089
8090
8091 fi
8092 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8093 $as_echo "$ac_cv_func_memcmp_working" >&6; }
8094 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8095 *" memcmp.$ac_objext "* ) ;;
8096 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8097 ;;
8098 esac
8099
8100
8101
8102
8103 for ac_header in stdlib.h unistd.h
8104 do
8105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8108 $as_echo_n "checking for $ac_header... " >&6; }
8109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8110 $as_echo_n "(cached) " >&6
8111 fi
8112 ac_res=`eval 'as_val=${'$as_ac_Header'}
8113 $as_echo "$as_val"'`
8114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8115 $as_echo "$ac_res" >&6; }
8116 else
8117 # Is the header compilable?
8118 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8119 $as_echo_n "checking $ac_header usability... " >&6; }
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 #include <$ac_header>
8128 _ACEOF
8129 rm -f conftest.$ac_objext
8130 if { (ac_try="$ac_compile"
8131 case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134 esac
8135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8136 $as_echo "$ac_try_echo") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8147 ac_header_compiler=yes
8148 else
8149 $as_echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_header_compiler=no
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8157 $as_echo "$ac_header_compiler" >&6; }
8158
8159 # Is the header present?
8160 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8161 $as_echo_n "checking $ac_header presence... " >&6; }
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <$ac_header>
8169 _ACEOF
8170 if { (ac_try="$ac_cpp conftest.$ac_ext"
8171 case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174 esac
8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176 $as_echo "$ac_try_echo") >&5
8177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } >/dev/null && {
8184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 }; then
8187 ac_header_preproc=yes
8188 else
8189 $as_echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_header_preproc=no
8193 fi
8194
8195 rm -f conftest.err conftest.$ac_ext
8196 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8197 $as_echo "$ac_header_preproc" >&6; }
8198
8199 # So? What about this header?
8200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8201 yes:no: )
8202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8203 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8206 ac_header_preproc=yes
8207 ;;
8208 no:yes:* )
8209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8210 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8212 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8214 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8216 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8220 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8221
8222 ;;
8223 esac
8224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8225 $as_echo_n "checking for $ac_header... " >&6; }
8226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8227 $as_echo_n "(cached) " >&6
8228 else
8229 eval "$as_ac_Header=\$ac_header_preproc"
8230 fi
8231 ac_res=`eval 'as_val=${'$as_ac_Header'}
8232 $as_echo "$as_val"'`
8233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8234 $as_echo "$ac_res" >&6; }
8235
8236 fi
8237 as_val=`eval 'as_val=${'$as_ac_Header'}
8238 $as_echo "$as_val"'`
8239 if test "x$as_val" = x""yes; then
8240 cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249 for ac_func in getpagesize
8250 do
8251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8252 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8253 $as_echo_n "checking for $ac_func... " >&6; }
8254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define $ac_func innocuous_$ac_func
8266
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8271
8272 #ifdef __STDC__
8273 # include <limits.h>
8274 #else
8275 # include <assert.h>
8276 #endif
8277
8278 #undef $ac_func
8279
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 char $ac_func ();
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined __stub_$ac_func || defined __stub___$ac_func
8291 choke me
8292 #endif
8293
8294 int
8295 main ()
8296 {
8297 return $ac_func ();
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_link") 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest$ac_exeext && {
8320 test "$cross_compiling" = yes ||
8321 $as_test_x conftest$ac_exeext
8322 }; then
8323 eval "$as_ac_var=yes"
8324 else
8325 $as_echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 eval "$as_ac_var=no"
8329 fi
8330
8331 rm -rf conftest.dSYM
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333 conftest$ac_exeext conftest.$ac_ext
8334 fi
8335 ac_res=`eval 'as_val=${'$as_ac_var'}
8336 $as_echo "$as_val"'`
8337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8338 $as_echo "$ac_res" >&6; }
8339 as_val=`eval 'as_val=${'$as_ac_var'}
8340 $as_echo "$as_val"'`
8341 if test "x$as_val" = x""yes; then
8342 cat >>confdefs.h <<_ACEOF
8343 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8344 _ACEOF
8345
8346 fi
8347 done
8348
8349 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8350 $as_echo_n "checking for working mmap... " >&6; }
8351 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8352 $as_echo_n "(cached) " >&6
8353 else
8354 if test "$cross_compiling" = yes; then
8355 ac_cv_func_mmap_fixed_mapped=no
8356 else
8357 cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h. */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8364 /* malloc might have been renamed as rpl_malloc. */
8365 #undef malloc
8366
8367 /* Thanks to Mike Haertel and Jim Avera for this test.
8368 Here is a matrix of mmap possibilities:
8369 mmap private not fixed
8370 mmap private fixed at somewhere currently unmapped
8371 mmap private fixed at somewhere already mapped
8372 mmap shared not fixed
8373 mmap shared fixed at somewhere currently unmapped
8374 mmap shared fixed at somewhere already mapped
8375 For private mappings, we should verify that changes cannot be read()
8376 back from the file, nor mmap's back from the file at a different
8377 address. (There have been systems where private was not correctly
8378 implemented like the infamous i386 svr4.0, and systems where the
8379 VM page cache was not coherent with the file system buffer cache
8380 like early versions of FreeBSD and possibly contemporary NetBSD.)
8381 For shared mappings, we should conversely verify that changes get
8382 propagated back to all the places they're supposed to be.
8383
8384 Grep wants private fixed already mapped.
8385 The main things grep needs to know about mmap are:
8386 * does it exist and is it safe to write into the mmap'd area
8387 * how to use it (BSD variants) */
8388
8389 #include <fcntl.h>
8390 #include <sys/mman.h>
8391
8392 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8393 char *malloc ();
8394 #endif
8395
8396 /* This mess was copied from the GNU getpagesize.h. */
8397 #ifndef HAVE_GETPAGESIZE
8398 /* Assume that all systems that can run configure have sys/param.h. */
8399 # ifndef HAVE_SYS_PARAM_H
8400 # define HAVE_SYS_PARAM_H 1
8401 # endif
8402
8403 # ifdef _SC_PAGESIZE
8404 # define getpagesize() sysconf(_SC_PAGESIZE)
8405 # else /* no _SC_PAGESIZE */
8406 # ifdef HAVE_SYS_PARAM_H
8407 # include <sys/param.h>
8408 # ifdef EXEC_PAGESIZE
8409 # define getpagesize() EXEC_PAGESIZE
8410 # else /* no EXEC_PAGESIZE */
8411 # ifdef NBPG
8412 # define getpagesize() NBPG * CLSIZE
8413 # ifndef CLSIZE
8414 # define CLSIZE 1
8415 # endif /* no CLSIZE */
8416 # else /* no NBPG */
8417 # ifdef NBPC
8418 # define getpagesize() NBPC
8419 # else /* no NBPC */
8420 # ifdef PAGESIZE
8421 # define getpagesize() PAGESIZE
8422 # endif /* PAGESIZE */
8423 # endif /* no NBPC */
8424 # endif /* no NBPG */
8425 # endif /* no EXEC_PAGESIZE */
8426 # else /* no HAVE_SYS_PARAM_H */
8427 # define getpagesize() 8192 /* punt totally */
8428 # endif /* no HAVE_SYS_PARAM_H */
8429 # endif /* no _SC_PAGESIZE */
8430
8431 #endif /* no HAVE_GETPAGESIZE */
8432
8433 int
8434 main ()
8435 {
8436 char *data, *data2, *data3;
8437 int i, pagesize;
8438 int fd;
8439
8440 pagesize = getpagesize ();
8441
8442 /* First, make a file with some known garbage in it. */
8443 data = (char *) malloc (pagesize);
8444 if (!data)
8445 return 1;
8446 for (i = 0; i < pagesize; ++i)
8447 *(data + i) = rand ();
8448 umask (0);
8449 fd = creat ("conftest.mmap", 0600);
8450 if (fd < 0)
8451 return 1;
8452 if (write (fd, data, pagesize) != pagesize)
8453 return 1;
8454 close (fd);
8455
8456 /* Next, try to mmap the file at a fixed address which already has
8457 something else allocated at it. If we can, also make sure that
8458 we see the same garbage. */
8459 fd = open ("conftest.mmap", O_RDWR);
8460 if (fd < 0)
8461 return 1;
8462 data2 = (char *) malloc (2 * pagesize);
8463 if (!data2)
8464 return 1;
8465 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8466 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8467 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8468 return 1;
8469 for (i = 0; i < pagesize; ++i)
8470 if (*(data + i) != *(data2 + i))
8471 return 1;
8472
8473 /* Finally, make sure that changes to the mapped area do not
8474 percolate back to the file as seen by read(). (This is a bug on
8475 some variants of i386 svr4.0.) */
8476 for (i = 0; i < pagesize; ++i)
8477 *(data2 + i) = *(data2 + i) + 1;
8478 data3 = (char *) malloc (pagesize);
8479 if (!data3)
8480 return 1;
8481 if (read (fd, data3, pagesize) != pagesize)
8482 return 1;
8483 for (i = 0; i < pagesize; ++i)
8484 if (*(data + i) != *(data3 + i))
8485 return 1;
8486 close (fd);
8487 return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest$ac_exeext
8491 if { (ac_try="$ac_link"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8497 $as_echo "$ac_try_echo") >&5
8498 (eval "$ac_link") 2>&5
8499 ac_status=$?
8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505 esac
8506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8507 $as_echo "$ac_try_echo") >&5
8508 (eval "$ac_try") 2>&5
8509 ac_status=$?
8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_func_mmap_fixed_mapped=yes
8513 else
8514 $as_echo "$as_me: program exited with status $ac_status" >&5
8515 $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ( exit $ac_status )
8519 ac_cv_func_mmap_fixed_mapped=no
8520 fi
8521 rm -rf conftest.dSYM
8522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8523 fi
8524
8525
8526 fi
8527 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8528 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8529 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8530
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_MMAP 1
8533 _ACEOF
8534
8535 fi
8536 rm -f conftest.mmap
8537
8538 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8539 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8540 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test "$cross_compiling" = yes; then
8544 ac_cv_func_stat_empty_string_bug=yes
8545 else
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 int
8554 main ()
8555 {
8556 struct stat sbuf;
8557 return stat ("", &sbuf) == 0;
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8567 esac
8568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569 $as_echo "$ac_try_echo") >&5
8570 (eval "$ac_link") 2>&5
8571 ac_status=$?
8572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8574 { (case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577 esac
8578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8579 $as_echo "$ac_try_echo") >&5
8580 (eval "$ac_try") 2>&5
8581 ac_status=$?
8582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_cv_func_stat_empty_string_bug=no
8585 else
8586 $as_echo "$as_me: program exited with status $ac_status" >&5
8587 $as_echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ( exit $ac_status )
8591 ac_cv_func_stat_empty_string_bug=yes
8592 fi
8593 rm -rf conftest.dSYM
8594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8595 fi
8596
8597
8598 fi
8599 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8600 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8601 if test $ac_cv_func_stat_empty_string_bug = yes; then
8602 case " $LIBOBJS " in
8603 *" stat.$ac_objext "* ) ;;
8604 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8605 ;;
8606 esac
8607
8608
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_STAT_EMPTY_STRING_BUG 1
8611 _ACEOF
8612
8613 fi
8614
8615 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8616 $as_echo_n "checking for working strtod... " >&6; }
8617 if test "${ac_cv_func_strtod+set}" = set; then
8618 $as_echo_n "(cached) " >&6
8619 else
8620 if test "$cross_compiling" = yes; then
8621 ac_cv_func_strtod=no
8622 else
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h. */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629
8630 $ac_includes_default
8631 #ifndef strtod
8632 double strtod ();
8633 #endif
8634 int
8635 main()
8636 {
8637 {
8638 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8639 char *string = " +69";
8640 char *term;
8641 double value;
8642 value = strtod (string, &term);
8643 if (value != 69 || term != (string + 4))
8644 return 1;
8645 }
8646
8647 {
8648 /* Under Solaris 2.4, strtod returns the wrong value for the
8649 terminating character under some conditions. */
8650 char *string = "NaN";
8651 char *term;
8652 strtod (string, &term);
8653 if (term != string && *(term - 1) == 0)
8654 return 1;
8655 }
8656 return 0;
8657 }
8658
8659 _ACEOF
8660 rm -f conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_link") 2>&5
8669 ac_status=$?
8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8672 { (case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8677 $as_echo "$ac_try_echo") >&5
8678 (eval "$ac_try") 2>&5
8679 ac_status=$?
8680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_cv_func_strtod=yes
8683 else
8684 $as_echo "$as_me: program exited with status $ac_status" >&5
8685 $as_echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 ( exit $ac_status )
8689 ac_cv_func_strtod=no
8690 fi
8691 rm -rf conftest.dSYM
8692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8693 fi
8694
8695
8696 fi
8697 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8698 $as_echo "$ac_cv_func_strtod" >&6; }
8699 if test $ac_cv_func_strtod = no; then
8700 case " $LIBOBJS " in
8701 *" strtod.$ac_objext "* ) ;;
8702 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8703 ;;
8704 esac
8705
8706 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8707 $as_echo_n "checking for pow... " >&6; }
8708 if test "${ac_cv_func_pow+set}" = set; then
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8719 #define pow innocuous_pow
8720
8721 /* System header to define __stub macros and hopefully few prototypes,
8722 which can conflict with char pow (); below.
8723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 <limits.h> exists even on freestanding compilers. */
8725
8726 #ifdef __STDC__
8727 # include <limits.h>
8728 #else
8729 # include <assert.h>
8730 #endif
8731
8732 #undef pow
8733
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8737 #ifdef __cplusplus
8738 extern "C"
8739 #endif
8740 char pow ();
8741 /* The GNU C library defines this for functions which it implements
8742 to always fail with ENOSYS. Some functions are actually named
8743 something starting with __ and the normal name is an alias. */
8744 #if defined __stub_pow || defined __stub___pow
8745 choke me
8746 #endif
8747
8748 int
8749 main ()
8750 {
8751 return pow ();
8752 ;
8753 return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext conftest$ac_exeext
8757 if { (ac_try="$ac_link"
8758 case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761 esac
8762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8763 $as_echo "$ac_try_echo") >&5
8764 (eval "$ac_link") 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest$ac_exeext && {
8774 test "$cross_compiling" = yes ||
8775 $as_test_x conftest$ac_exeext
8776 }; then
8777 ac_cv_func_pow=yes
8778 else
8779 $as_echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_cv_func_pow=no
8783 fi
8784
8785 rm -rf conftest.dSYM
8786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8787 conftest$ac_exeext conftest.$ac_ext
8788 fi
8789 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8790 $as_echo "$ac_cv_func_pow" >&6; }
8791
8792 if test $ac_cv_func_pow = no; then
8793 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8794 $as_echo_n "checking for pow in -lm... " >&6; }
8795 if test "${ac_cv_lib_m_pow+set}" = set; then
8796 $as_echo_n "(cached) " >&6
8797 else
8798 ac_check_lib_save_LIBS=$LIBS
8799 LIBS="-lm $LIBS"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 char pow ();
8814 int
8815 main ()
8816 {
8817 return pow ();
8818 ;
8819 return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8824 case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8829 $as_echo "$ac_try_echo") >&5
8830 (eval "$ac_link") 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } && {
8837 test -z "$ac_c_werror_flag" ||
8838 test ! -s conftest.err
8839 } && test -s conftest$ac_exeext && {
8840 test "$cross_compiling" = yes ||
8841 $as_test_x conftest$ac_exeext
8842 }; then
8843 ac_cv_lib_m_pow=yes
8844 else
8845 $as_echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_cv_lib_m_pow=no
8849 fi
8850
8851 rm -rf conftest.dSYM
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8855 fi
8856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8857 $as_echo "$ac_cv_lib_m_pow" >&6; }
8858 if test "x$ac_cv_lib_m_pow" = x""yes; then
8859 POW_LIB=-lm
8860 else
8861 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8862 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8863 fi
8864
8865 fi
8866
8867 fi
8868
8869
8870 for ac_func in vprintf
8871 do
8872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8873 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8874 $as_echo_n "checking for $ac_func... " >&6; }
8875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8876 $as_echo_n "(cached) " >&6
8877 else
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8886 #define $ac_func innocuous_$ac_func
8887
8888 /* System header to define __stub macros and hopefully few prototypes,
8889 which can conflict with char $ac_func (); below.
8890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8891 <limits.h> exists even on freestanding compilers. */
8892
8893 #ifdef __STDC__
8894 # include <limits.h>
8895 #else
8896 # include <assert.h>
8897 #endif
8898
8899 #undef $ac_func
8900
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char $ac_func ();
8908 /* The GNU C library defines this for functions which it implements
8909 to always fail with ENOSYS. Some functions are actually named
8910 something starting with __ and the normal name is an alias. */
8911 #if defined __stub_$ac_func || defined __stub___$ac_func
8912 choke me
8913 #endif
8914
8915 int
8916 main ()
8917 {
8918 return $ac_func ();
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (ac_try="$ac_link"
8925 case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928 esac
8929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930 $as_echo "$ac_try_echo") >&5
8931 (eval "$ac_link") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
8940 } && test -s conftest$ac_exeext && {
8941 test "$cross_compiling" = yes ||
8942 $as_test_x conftest$ac_exeext
8943 }; then
8944 eval "$as_ac_var=yes"
8945 else
8946 $as_echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949 eval "$as_ac_var=no"
8950 fi
8951
8952 rm -rf conftest.dSYM
8953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8954 conftest$ac_exeext conftest.$ac_ext
8955 fi
8956 ac_res=`eval 'as_val=${'$as_ac_var'}
8957 $as_echo "$as_val"'`
8958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8959 $as_echo "$ac_res" >&6; }
8960 as_val=`eval 'as_val=${'$as_ac_var'}
8961 $as_echo "$as_val"'`
8962 if test "x$as_val" = x""yes; then
8963 cat >>confdefs.h <<_ACEOF
8964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8965 _ACEOF
8966
8967 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8968 $as_echo_n "checking for _doprnt... " >&6; }
8969 if test "${ac_cv_func__doprnt+set}" = set; then
8970 $as_echo_n "(cached) " >&6
8971 else
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8980 #define _doprnt innocuous__doprnt
8981
8982 /* System header to define __stub macros and hopefully few prototypes,
8983 which can conflict with char _doprnt (); below.
8984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8985 <limits.h> exists even on freestanding compilers. */
8986
8987 #ifdef __STDC__
8988 # include <limits.h>
8989 #else
8990 # include <assert.h>
8991 #endif
8992
8993 #undef _doprnt
8994
8995 /* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
8998 #ifdef __cplusplus
8999 extern "C"
9000 #endif
9001 char _doprnt ();
9002 /* The GNU C library defines this for functions which it implements
9003 to always fail with ENOSYS. Some functions are actually named
9004 something starting with __ and the normal name is an alias. */
9005 #if defined __stub__doprnt || defined __stub____doprnt
9006 choke me
9007 #endif
9008
9009 int
9010 main ()
9011 {
9012 return _doprnt ();
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (ac_try="$ac_link"
9019 case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022 esac
9023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024 $as_echo "$ac_try_echo") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest$ac_exeext && {
9035 test "$cross_compiling" = yes ||
9036 $as_test_x conftest$ac_exeext
9037 }; then
9038 ac_cv_func__doprnt=yes
9039 else
9040 $as_echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 ac_cv_func__doprnt=no
9044 fi
9045
9046 rm -rf conftest.dSYM
9047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi
9050 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9051 $as_echo "$ac_cv_func__doprnt" >&6; }
9052 if test "x$ac_cv_func__doprnt" = x""yes; then
9053
9054 cat >>confdefs.h <<\_ACEOF
9055 #define HAVE_DOPRNT 1
9056 _ACEOF
9057
9058 fi
9059
9060 fi
9061 done
9062
9063
9064
9065 ################################################################################
9066 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9067 $as_echo_n "checking whether to use static linking... " >&6; }
9068 # Check whether --enable-static_link was given.
9069 if test "${enable_static_link+set}" = set; then
9070 enableval=$enable_static_link; STATIC_LINK=$enableval
9071 else
9072 STATIC_LINK=no
9073 fi
9074
9075 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9076 $as_echo "$STATIC_LINK" >&6; }
9077
9078 ################################################################################
9079
9080
9081 ################################################################################
9082 { $as_echo "$as_me:$LINENO: checking file owner" >&5
9083 $as_echo_n "checking file owner... " >&6; }
9084 OWNER=""
9085
9086
9087 # Check whether --with-user was given.
9088 if test "${with_user+set}" = set; then
9089 withval=$with_user; OWNER="$withval"
9090 fi
9091
9092 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9093 $as_echo "$OWNER" >&6; }
9094
9095 if test x$OWNER != x; then
9096 OWNER="-o $OWNER"
9097 fi
9098
9099 ################################################################################
9100 { $as_echo "$as_me:$LINENO: checking group owner" >&5
9101 $as_echo_n "checking group owner... " >&6; }
9102 GROUP=""
9103
9104 # Check whether --with-group was given.
9105 if test "${with_group+set}" = set; then
9106 withval=$with_group; GROUP="$withval"
9107 fi
9108
9109 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9110 $as_echo "$GROUP" >&6; }
9111
9112 if test x$GROUP != x; then
9113 GROUP="-g $GROUP"
9114 fi
9115
9116 ################################################################################
9117 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
9118 $as_echo_n "checking device node uid... " >&6; }
9119
9120
9121 # Check whether --with-device-uid was given.
9122 if test "${with_device_uid+set}" = set; then
9123 withval=$with_device_uid; DM_DEVICE_UID="$withval"
9124 else
9125 DM_DEVICE_UID="0"
9126 fi
9127
9128 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9129 $as_echo "$DM_DEVICE_UID" >&6; }
9130
9131 ################################################################################
9132 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
9133 $as_echo_n "checking device node gid... " >&6; }
9134
9135
9136 # Check whether --with-device-gid was given.
9137 if test "${with_device_gid+set}" = set; then
9138 withval=$with_device_gid; DM_DEVICE_GID="$withval"
9139 else
9140 DM_DEVICE_GID="0"
9141 fi
9142
9143 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9144 $as_echo "$DM_DEVICE_GID" >&6; }
9145
9146 ################################################################################
9147 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
9148 $as_echo_n "checking device node mode... " >&6; }
9149
9150
9151 # Check whether --with-device-mode was given.
9152 if test "${with_device_mode+set}" = set; then
9153 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
9154 else
9155 DM_DEVICE_MODE="0600"
9156 fi
9157
9158 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9159 $as_echo "$DM_DEVICE_MODE" >&6; }
9160
9161 ################################################################################
9162 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9163 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9164 # Check whether --enable-lvm1_fallback was given.
9165 if test "${enable_lvm1_fallback+set}" = set; then
9166 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9167 else
9168 LVM1_FALLBACK=no
9169 fi
9170
9171 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9172 $as_echo "$LVM1_FALLBACK" >&6; }
9173
9174 if test x$LVM1_FALLBACK = xyes; then
9175
9176 cat >>confdefs.h <<\_ACEOF
9177 #define LVM1_FALLBACK 1
9178 _ACEOF
9179
9180 fi
9181
9182 ################################################################################
9183 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9184 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9185
9186 # Check whether --with-lvm1 was given.
9187 if test "${with_lvm1+set}" = set; then
9188 withval=$with_lvm1; LVM1="$withval"
9189 else
9190 LVM1="internal"
9191 fi
9192
9193 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9194 $as_echo "$LVM1" >&6; }
9195
9196 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9197 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9198 " >&5
9199 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9200 " >&2;}
9201 { (exit 1); exit 1; }; }
9202 fi;
9203
9204 if test x$LVM1 = xinternal; then
9205
9206 cat >>confdefs.h <<\_ACEOF
9207 #define LVM1_INTERNAL 1
9208 _ACEOF
9209
9210 fi
9211
9212 ################################################################################
9213 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9214 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9215
9216 # Check whether --with-pool was given.
9217 if test "${with_pool+set}" = set; then
9218 withval=$with_pool; POOL="$withval"
9219 else
9220 POOL="internal"
9221 fi
9222
9223 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9224 $as_echo "$POOL" >&6; }
9225
9226 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9227 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9228 " >&5
9229 $as_echo "$as_me: error: --with-pool parameter invalid
9230 " >&2;}
9231 { (exit 1); exit 1; }; }
9232 fi;
9233
9234 if test x$POOL = xinternal; then
9235
9236 cat >>confdefs.h <<\_ACEOF
9237 #define POOL_INTERNAL 1
9238 _ACEOF
9239
9240 fi
9241
9242 ################################################################################
9243 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9244 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9245
9246 # Check whether --with-cluster was given.
9247 if test "${with_cluster+set}" = set; then
9248 withval=$with_cluster; CLUSTER="$withval"
9249 fi
9250
9251 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9252 $as_echo "$CLUSTER" >&6; }
9253
9254 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9255 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9256 " >&5
9257 $as_echo "$as_me: error: --with-cluster parameter invalid
9258 " >&2;}
9259 { (exit 1); exit 1; }; }
9260 fi;
9261
9262 if test x$CLUSTER = xinternal; then
9263
9264 cat >>confdefs.h <<\_ACEOF
9265 #define CLUSTER_LOCKING_INTERNAL 1
9266 _ACEOF
9267
9268 fi
9269
9270 ################################################################################
9271 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9272 $as_echo_n "checking whether to include snapshots... " >&6; }
9273
9274 # Check whether --with-snapshots was given.
9275 if test "${with_snapshots+set}" = set; then
9276 withval=$with_snapshots; SNAPSHOTS="$withval"
9277 else
9278 SNAPSHOTS="internal"
9279 fi
9280
9281 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9282 $as_echo "$SNAPSHOTS" >&6; }
9283
9284 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9285 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9286 " >&5
9287 $as_echo "$as_me: error: --with-snapshots parameter invalid
9288 " >&2;}
9289 { (exit 1); exit 1; }; }
9290 fi;
9291
9292 if test x$SNAPSHOTS = xinternal; then
9293
9294 cat >>confdefs.h <<\_ACEOF
9295 #define SNAPSHOT_INTERNAL 1
9296 _ACEOF
9297
9298 fi
9299
9300 ################################################################################
9301 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9302 $as_echo_n "checking whether to include mirrors... " >&6; }
9303
9304 # Check whether --with-mirrors was given.
9305 if test "${with_mirrors+set}" = set; then
9306 withval=$with_mirrors; MIRRORS="$withval"
9307 else
9308 MIRRORS="internal"
9309 fi
9310
9311 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9312 $as_echo "$MIRRORS" >&6; }
9313
9314 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9315 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9316 " >&5
9317 $as_echo "$as_me: error: --with-mirrors parameter invalid
9318 " >&2;}
9319 { (exit 1); exit 1; }; }
9320 fi;
9321
9322 if test x$MIRRORS = xinternal; then
9323
9324 cat >>confdefs.h <<\_ACEOF
9325 #define MIRRORED_INTERNAL 1
9326 _ACEOF
9327
9328 fi
9329
9330 ################################################################################
9331 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9332 $as_echo_n "checking whether to enable readline... " >&6; }
9333 # Check whether --enable-readline was given.
9334 if test "${enable_readline+set}" = set; then
9335 enableval=$enable_readline; READLINE=$enableval
9336 else
9337 READLINE=maybe
9338 fi
9339
9340 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9341 $as_echo "$READLINE" >&6; }
9342
9343 ################################################################################
9344 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9345 $as_echo_n "checking whether to enable realtime support... " >&6; }
9346 # Check whether --enable-realtime was given.
9347 if test "${enable_realtime+set}" = set; then
9348 enableval=$enable_realtime; REALTIME=$enableval
9349 fi
9350
9351 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9352 $as_echo "$REALTIME" >&6; }
9353
9354 ################################################################################
9355 pkg_config_init() {
9356
9357
9358 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9359 if test -n "$ac_tool_prefix"; then
9360 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9361 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $PKG_CONFIG in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9370 ;;
9371 *)
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9374 do
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9382 fi
9383 done
9384 done
9385 IFS=$as_save_IFS
9386
9387 ;;
9388 esac
9389 fi
9390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9391 if test -n "$PKG_CONFIG"; then
9392 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9393 $as_echo "$PKG_CONFIG" >&6; }
9394 else
9395 { $as_echo "$as_me:$LINENO: result: no" >&5
9396 $as_echo "no" >&6; }
9397 fi
9398
9399
9400 fi
9401 if test -z "$ac_cv_path_PKG_CONFIG"; then
9402 ac_pt_PKG_CONFIG=$PKG_CONFIG
9403 # Extract the first word of "pkg-config", so it can be a program name with args.
9404 set dummy pkg-config; ac_word=$2
9405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $ac_pt_PKG_CONFIG in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9413 ;;
9414 *)
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9417 do
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9425 fi
9426 done
9427 done
9428 IFS=$as_save_IFS
9429
9430 ;;
9431 esac
9432 fi
9433 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9434 if test -n "$ac_pt_PKG_CONFIG"; then
9435 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9436 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9437 else
9438 { $as_echo "$as_me:$LINENO: result: no" >&5
9439 $as_echo "no" >&6; }
9440 fi
9441
9442 if test "x$ac_pt_PKG_CONFIG" = x; then
9443 PKG_CONFIG=""
9444 else
9445 case $cross_compiling:$ac_tool_warned in
9446 yes:)
9447 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9449 ac_tool_warned=yes ;;
9450 esac
9451 PKG_CONFIG=$ac_pt_PKG_CONFIG
9452 fi
9453 else
9454 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9455 fi
9456
9457 fi
9458 if test -n "$PKG_CONFIG"; then
9459 _pkg_min_version=0.9.0
9460 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9461 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9462 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9463 { $as_echo "$as_me:$LINENO: result: yes" >&5
9464 $as_echo "yes" >&6; }
9465 else
9466 { $as_echo "$as_me:$LINENO: result: no" >&5
9467 $as_echo "no" >&6; }
9468 PKG_CONFIG=""
9469 fi
9470
9471 fi
9472
9473 pkg_failed=no
9474 { $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9475 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9476
9477 if test -n "$PKGCONFIGINIT_CFLAGS"; then
9478 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9479 elif test -n "$PKG_CONFIG"; then
9480 if test -n "$PKG_CONFIG" && \
9481 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9482 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9483 ac_status=$?
9484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; then
9486 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9487 else
9488 pkg_failed=yes
9489 fi
9490 else
9491 pkg_failed=untried
9492 fi
9493 if test -n "$PKGCONFIGINIT_LIBS"; then
9494 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9495 elif test -n "$PKG_CONFIG"; then
9496 if test -n "$PKG_CONFIG" && \
9497 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9498 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9499 ac_status=$?
9500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; then
9502 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9503 else
9504 pkg_failed=yes
9505 fi
9506 else
9507 pkg_failed=untried
9508 fi
9509
9510
9511
9512 if test $pkg_failed = yes; then
9513
9514 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9515 _pkg_short_errors_supported=yes
9516 else
9517 _pkg_short_errors_supported=no
9518 fi
9519 if test $_pkg_short_errors_supported = yes; then
9520 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9521 else
9522 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9523 fi
9524 # Put the nasty error message in config.log where it belongs
9525 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9526
9527 { $as_echo "$as_me:$LINENO: result: no" >&5
9528 $as_echo "no" >&6; }
9529 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9530 $as_echo "pkg-config initialized" >&6; }
9531 elif test $pkg_failed = untried; then
9532 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9533 $as_echo "pkg-config initialized" >&6; }
9534 else
9535 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9536 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9537 { $as_echo "$as_me:$LINENO: result: yes" >&5
9538 $as_echo "yes" >&6; }
9539 :
9540 fi
9541 PKGCONFIG_INIT=1
9542 }
9543
9544 ################################################################################
9545 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9546 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9547
9548 # Check whether --with-clvmd was given.
9549 if test "${with_clvmd+set}" = set; then
9550 withval=$with_clvmd; CLVMD="$withval"
9551 else
9552 CLVMD="none"
9553 fi
9554
9555 if test x$CLVMD = xyes; then
9556 CLVMD=all
9557 fi
9558 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9559 $as_echo "$CLVMD" >&6; }
9560
9561 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9562 CLUSTER=internal
9563 fi
9564
9565 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9566 pkg_config_init
9567 fi
9568
9569
9570 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9571 BUILDGULM=yes
9572 fi
9573 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9574 BUILDCOROSYNC=yes
9575 fi
9576 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9577 BUILDOPENAIS=yes
9578 fi
9579 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9580 BUILDCMAN=yes
9581 fi
9582
9583 if test x$BUILDGULM = xyes; then
9584 if test x$BUILDCOROSYNC = xyes || \
9585 test x$BUILDOPENAIS = xyes; then
9586 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9587 $as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9588 { (exit 1); exit 1; }; }
9589 fi
9590 fi
9591
9592 soft_bailout() {
9593 NOTFOUND=1
9594 }
9595
9596 hard_bailout() {
9597 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9598 $as_echo "$as_me: error: bailing out" >&2;}
9599 { (exit 1); exit 1; }; }
9600 }
9601
9602 if test x$CLVMD = xall; then
9603 bailout=soft_bailout
9604 BUILDGULM=yes
9605 BUILDCMAN=yes
9606 BUILDCOROSYNC=yes
9607 BUILDOPENAIS=yes
9608 else
9609 bailout=hard_bailout
9610 fi
9611
9612 check_lib_no_libs() {
9613 lib_no_libs_arg1=$1
9614 shift
9615 lib_no_libs_arg2=$1
9616 shift
9617 lib_no_libs_args=$@
9618
9619 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9620 { $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9621 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9622 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9623 $as_echo_n "(cached) " >&6
9624 else
9625 ac_check_lib_save_LIBS=$LIBS
9626 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char $lib_no_libs_arg2 ();
9641 int
9642 main ()
9643 {
9644 return $lib_no_libs_arg2 ();
9645 ;
9646 return 0;
9647 }
9648 _ACEOF
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9656 $as_echo "$ac_try_echo") >&5
9657 (eval "$ac_link") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && {
9664 test -z "$ac_c_werror_flag" ||
9665 test ! -s conftest.err
9666 } && test -s conftest$ac_exeext && {
9667 test "$cross_compiling" = yes ||
9668 $as_test_x conftest$ac_exeext
9669 }; then
9670 eval "$as_ac_Lib=yes"
9671 else
9672 $as_echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 eval "$as_ac_Lib=no"
9676 fi
9677
9678 rm -rf conftest.dSYM
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9682 fi
9683 ac_res=`eval 'as_val=${'$as_ac_Lib'}
9684 $as_echo "$as_val"'`
9685 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9686 $as_echo "$ac_res" >&6; }
9687 as_val=`eval 'as_val=${'$as_ac_Lib'}
9688 $as_echo "$as_val"'`
9689 if test "x$as_val" = x""yes; then
9690 cat >>confdefs.h <<_ACEOF
9691 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9692 _ACEOF
9693
9694 LIBS="-l$lib_no_libs_arg1 $LIBS"
9695
9696 else
9697 $bailout
9698 fi
9699
9700 LIBS=$ac_check_lib_save_LIBS
9701 }
9702
9703 if test x$BUILDGULM = xyes; then
9704
9705 pkg_failed=no
9706 { $as_echo "$as_me:$LINENO: checking for CCS" >&5
9707 $as_echo_n "checking for CCS... " >&6; }
9708
9709 if test -n "$CCS_CFLAGS"; then
9710 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9711 elif test -n "$PKG_CONFIG"; then
9712 if test -n "$PKG_CONFIG" && \
9713 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9714 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9715 ac_status=$?
9716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; then
9718 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9719 else
9720 pkg_failed=yes
9721 fi
9722 else
9723 pkg_failed=untried
9724 fi
9725 if test -n "$CCS_LIBS"; then
9726 pkg_cv_CCS_LIBS="$CCS_LIBS"
9727 elif test -n "$PKG_CONFIG"; then
9728 if test -n "$PKG_CONFIG" && \
9729 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9730 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9731 ac_status=$?
9732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; then
9734 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9735 else
9736 pkg_failed=yes
9737 fi
9738 else
9739 pkg_failed=untried
9740 fi
9741
9742
9743
9744 if test $pkg_failed = yes; then
9745
9746 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9747 _pkg_short_errors_supported=yes
9748 else
9749 _pkg_short_errors_supported=no
9750 fi
9751 if test $_pkg_short_errors_supported = yes; then
9752 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9753 else
9754 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9755 fi
9756 # Put the nasty error message in config.log where it belongs
9757 echo "$CCS_PKG_ERRORS" >&5
9758
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760 $as_echo "no" >&6; }
9761 NOTFOUND=0
9762
9763 for ac_header in ccs.h
9764 do
9765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9768 $as_echo_n "checking for $ac_header... " >&6; }
9769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9770 $as_echo_n "(cached) " >&6
9771 fi
9772 ac_res=`eval 'as_val=${'$as_ac_Header'}
9773 $as_echo "$as_val"'`
9774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9775 $as_echo "$ac_res" >&6; }
9776 else
9777 # Is the header compilable?
9778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9779 $as_echo_n "checking $ac_header usability... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 $ac_includes_default
9787 #include <$ac_header>
9788 _ACEOF
9789 rm -f conftest.$ac_objext
9790 if { (ac_try="$ac_compile"
9791 case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794 esac
9795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796 $as_echo "$ac_try_echo") >&5
9797 (eval "$ac_compile") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest.$ac_objext; then
9807 ac_header_compiler=yes
9808 else
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 ac_header_compiler=no
9813 fi
9814
9815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9817 $as_echo "$ac_header_compiler" >&6; }
9818
9819 # Is the header present?
9820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9821 $as_echo_n "checking $ac_header presence... " >&6; }
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h. */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 #include <$ac_header>
9829 _ACEOF
9830 if { (ac_try="$ac_cpp conftest.$ac_ext"
9831 case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834 esac
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } >/dev/null && {
9844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 }; then
9847 ac_header_preproc=yes
9848 else
9849 $as_echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_preproc=no
9853 fi
9854
9855 rm -f conftest.err conftest.$ac_ext
9856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9857 $as_echo "$ac_header_preproc" >&6; }
9858
9859 # So? What about this header?
9860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9861 yes:no: )
9862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9866 ac_header_preproc=yes
9867 ;;
9868 no:yes:* )
9869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9876 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9881
9882 ;;
9883 esac
9884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 $as_echo_n "checking for $ac_header... " >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887 $as_echo_n "(cached) " >&6
9888 else
9889 eval "$as_ac_Header=\$ac_header_preproc"
9890 fi
9891 ac_res=`eval 'as_val=${'$as_ac_Header'}
9892 $as_echo "$as_val"'`
9893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9894 $as_echo "$ac_res" >&6; }
9895
9896 fi
9897 as_val=`eval 'as_val=${'$as_ac_Header'}
9898 $as_echo "$as_val"'`
9899 if test "x$as_val" = x""yes; then
9900 cat >>confdefs.h <<_ACEOF
9901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 _ACEOF
9903
9904 else
9905 $bailout
9906 fi
9907
9908 done
9909
9910 check_lib_no_libs ccs ccs_connect
9911 if test $NOTFOUND = 0; then
9912 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9913 $as_echo "no pkg for libccs, using -lccs" >&6; }
9914 CCS_LIBS="-lccs"
9915 HAVE_CCS=yes
9916 fi
9917 elif test $pkg_failed = untried; then
9918 NOTFOUND=0
9919
9920 for ac_header in ccs.h
9921 do
9922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9925 $as_echo_n "checking for $ac_header... " >&6; }
9926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9927 $as_echo_n "(cached) " >&6
9928 fi
9929 ac_res=`eval 'as_val=${'$as_ac_Header'}
9930 $as_echo "$as_val"'`
9931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9932 $as_echo "$ac_res" >&6; }
9933 else
9934 # Is the header compilable?
9935 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9936 $as_echo_n "checking $ac_header usability... " >&6; }
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h. */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 $ac_includes_default
9944 #include <$ac_header>
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (ac_try="$ac_compile"
9948 case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951 esac
9952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_compile") 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest.$ac_objext; then
9964 ac_header_compiler=yes
9965 else
9966 $as_echo "$as_me: failed program was:" >&5
9967 sed 's/^/| /' conftest.$ac_ext >&5
9968
9969 ac_header_compiler=no
9970 fi
9971
9972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9974 $as_echo "$ac_header_compiler" >&6; }
9975
9976 # Is the header present?
9977 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9978 $as_echo_n "checking $ac_header presence... " >&6; }
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 #include <$ac_header>
9986 _ACEOF
9987 if { (ac_try="$ac_cpp conftest.$ac_ext"
9988 case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991 esac
9992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9993 $as_echo "$ac_try_echo") >&5
9994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } >/dev/null && {
10001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 }; then
10004 ac_header_preproc=yes
10005 else
10006 $as_echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_header_preproc=no
10010 fi
10011
10012 rm -f conftest.err conftest.$ac_ext
10013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10014 $as_echo "$ac_header_preproc" >&6; }
10015
10016 # So? What about this header?
10017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10018 yes:no: )
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10023 ac_header_preproc=yes
10024 ;;
10025 no:yes:* )
10026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10027 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10029 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10031 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10038
10039 ;;
10040 esac
10041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10042 $as_echo_n "checking for $ac_header... " >&6; }
10043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044 $as_echo_n "(cached) " >&6
10045 else
10046 eval "$as_ac_Header=\$ac_header_preproc"
10047 fi
10048 ac_res=`eval 'as_val=${'$as_ac_Header'}
10049 $as_echo "$as_val"'`
10050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10051 $as_echo "$ac_res" >&6; }
10052
10053 fi
10054 as_val=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 if test "x$as_val" = x""yes; then
10057 cat >>confdefs.h <<_ACEOF
10058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10059 _ACEOF
10060
10061 else
10062 $bailout
10063 fi
10064
10065 done
10066
10067 check_lib_no_libs ccs ccs_connect
10068 if test $NOTFOUND = 0; then
10069 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10070 $as_echo "no pkg for libccs, using -lccs" >&6; }
10071 CCS_LIBS="-lccs"
10072 HAVE_CCS=yes
10073 fi
10074 else
10075 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10076 CCS_LIBS=$pkg_cv_CCS_LIBS
10077 { $as_echo "$as_me:$LINENO: result: yes" >&5
10078 $as_echo "yes" >&6; }
10079 HAVE_CCS=yes
10080 fi
10081
10082 pkg_failed=no
10083 { $as_echo "$as_me:$LINENO: checking for GULM" >&5
10084 $as_echo_n "checking for GULM... " >&6; }
10085
10086 if test -n "$GULM_CFLAGS"; then
10087 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10088 elif test -n "$PKG_CONFIG"; then
10089 if test -n "$PKG_CONFIG" && \
10090 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10091 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10092 ac_status=$?
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; then
10095 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10096 else
10097 pkg_failed=yes
10098 fi
10099 else
10100 pkg_failed=untried
10101 fi
10102 if test -n "$GULM_LIBS"; then
10103 pkg_cv_GULM_LIBS="$GULM_LIBS"
10104 elif test -n "$PKG_CONFIG"; then
10105 if test -n "$PKG_CONFIG" && \
10106 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10107 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10108 ac_status=$?
10109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; then
10111 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10112 else
10113 pkg_failed=yes
10114 fi
10115 else
10116 pkg_failed=untried
10117 fi
10118
10119
10120
10121 if test $pkg_failed = yes; then
10122
10123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10124 _pkg_short_errors_supported=yes
10125 else
10126 _pkg_short_errors_supported=no
10127 fi
10128 if test $_pkg_short_errors_supported = yes; then
10129 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10130 else
10131 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10132 fi
10133 # Put the nasty error message in config.log where it belongs
10134 echo "$GULM_PKG_ERRORS" >&5
10135
10136 { $as_echo "$as_me:$LINENO: result: no" >&5
10137 $as_echo "no" >&6; }
10138 NOTFOUND=0
10139
10140 for ac_header in libgulm.h
10141 do
10142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10145 $as_echo_n "checking for $ac_header... " >&6; }
10146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10147 $as_echo_n "(cached) " >&6
10148 fi
10149 ac_res=`eval 'as_val=${'$as_ac_Header'}
10150 $as_echo "$as_val"'`
10151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10152 $as_echo "$ac_res" >&6; }
10153 else
10154 # Is the header compilable?
10155 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10156 $as_echo_n "checking $ac_header usability... " >&6; }
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 $ac_includes_default
10164 #include <$ac_header>
10165 _ACEOF
10166 rm -f conftest.$ac_objext
10167 if { (ac_try="$ac_compile"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171 esac
10172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10173 $as_echo "$ac_try_echo") >&5
10174 (eval "$ac_compile") 2>conftest.er1
10175 ac_status=$?
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
10179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest.$ac_objext; then
10184 ac_header_compiler=yes
10185 else
10186 $as_echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_header_compiler=no
10190 fi
10191
10192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10194 $as_echo "$ac_header_compiler" >&6; }
10195
10196 # Is the header present?
10197 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10198 $as_echo_n "checking $ac_header presence... " >&6; }
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10205 #include <$ac_header>
10206 _ACEOF
10207 if { (ac_try="$ac_cpp conftest.$ac_ext"
10208 case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10211 esac
10212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213 $as_echo "$ac_try_echo") >&5
10214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null && {
10221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 }; then
10224 ac_header_preproc=yes
10225 else
10226 $as_echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ac_header_preproc=no
10230 fi
10231
10232 rm -f conftest.err conftest.$ac_ext
10233 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10234 $as_echo "$ac_header_preproc" >&6; }
10235
10236 # So? What about this header?
10237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10238 yes:no: )
10239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10240 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10242 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10243 ac_header_preproc=yes
10244 ;;
10245 no:yes:* )
10246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10247 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10249 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10251 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10253 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10255 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10258
10259 ;;
10260 esac
10261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10262 $as_echo_n "checking for $ac_header... " >&6; }
10263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 $as_echo_n "(cached) " >&6
10265 else
10266 eval "$as_ac_Header=\$ac_header_preproc"
10267 fi
10268 ac_res=`eval 'as_val=${'$as_ac_Header'}
10269 $as_echo "$as_val"'`
10270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10271 $as_echo "$ac_res" >&6; }
10272
10273 fi
10274 as_val=`eval 'as_val=${'$as_ac_Header'}
10275 $as_echo "$as_val"'`
10276 if test "x$as_val" = x""yes; then
10277 cat >>confdefs.h <<_ACEOF
10278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10279 _ACEOF
10280
10281 else
10282 $bailout
10283 fi
10284
10285 done
10286
10287 check_lib_no_libs gulm lg_core_login
10288 if test $NOTFOUND = 0; then
10289 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10290 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10291 GULM_LIBS="-lgulm"
10292 HAVE_GULM=yes
10293 fi
10294 elif test $pkg_failed = untried; then
10295 NOTFOUND=0
10296
10297 for ac_header in libgulm.h
10298 do
10299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10302 $as_echo_n "checking for $ac_header... " >&6; }
10303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10304 $as_echo_n "(cached) " >&6
10305 fi
10306 ac_res=`eval 'as_val=${'$as_ac_Header'}
10307 $as_echo "$as_val"'`
10308 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10309 $as_echo "$ac_res" >&6; }
10310 else
10311 # Is the header compilable?
10312 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10313 $as_echo_n "checking $ac_header usability... " >&6; }
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h. */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 #include <$ac_header>
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10330 $as_echo "$ac_try_echo") >&5
10331 (eval "$ac_compile") 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest.$ac_objext; then
10341 ac_header_compiler=yes
10342 else
10343 $as_echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 ac_header_compiler=no
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10351 $as_echo "$ac_header_compiler" >&6; }
10352
10353 # Is the header present?
10354 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10355 $as_echo_n "checking $ac_header presence... " >&6; }
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 #include <$ac_header>
10363 _ACEOF
10364 if { (ac_try="$ac_cpp conftest.$ac_ext"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368 esac
10369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10370 $as_echo "$ac_try_echo") >&5
10371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } >/dev/null && {
10378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10379 test ! -s conftest.err
10380 }; then
10381 ac_header_preproc=yes
10382 else
10383 $as_echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386 ac_header_preproc=no
10387 fi
10388
10389 rm -f conftest.err conftest.$ac_ext
10390 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10391 $as_echo "$ac_header_preproc" >&6; }
10392
10393 # So? What about this header?
10394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10395 yes:no: )
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10397 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10399 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10400 ac_header_preproc=yes
10401 ;;
10402 no:yes:* )
10403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10404 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10406 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10408 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10410 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10414 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10415
10416 ;;
10417 esac
10418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 $as_echo_n "checking for $ac_header... " >&6; }
10420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 $as_echo_n "(cached) " >&6
10422 else
10423 eval "$as_ac_Header=\$ac_header_preproc"
10424 fi
10425 ac_res=`eval 'as_val=${'$as_ac_Header'}
10426 $as_echo "$as_val"'`
10427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10428 $as_echo "$ac_res" >&6; }
10429
10430 fi
10431 as_val=`eval 'as_val=${'$as_ac_Header'}
10432 $as_echo "$as_val"'`
10433 if test "x$as_val" = x""yes; then
10434 cat >>confdefs.h <<_ACEOF
10435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10436 _ACEOF
10437
10438 else
10439 $bailout
10440 fi
10441
10442 done
10443
10444 check_lib_no_libs gulm lg_core_login
10445 if test $NOTFOUND = 0; then
10446 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10447 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
10448 GULM_LIBS="-lgulm"
10449 HAVE_GULM=yes
10450 fi
10451 else
10452 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10453 GULM_LIBS=$pkg_cv_GULM_LIBS
10454 { $as_echo "$as_me:$LINENO: result: yes" >&5
10455 $as_echo "yes" >&6; }
10456 HAVE_GULM=yes
10457 fi
10458 fi
10459
10460 if test x$BUILDCMAN = xyes; then
10461
10462 pkg_failed=no
10463 { $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10464 $as_echo_n "checking for CMAN... " >&6; }
10465
10466 if test -n "$CMAN_CFLAGS"; then
10467 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10468 elif test -n "$PKG_CONFIG"; then
10469 if test -n "$PKG_CONFIG" && \
10470 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10471 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10472 ac_status=$?
10473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; then
10475 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10476 else
10477 pkg_failed=yes
10478 fi
10479 else
10480 pkg_failed=untried
10481 fi
10482 if test -n "$CMAN_LIBS"; then
10483 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10484 elif test -n "$PKG_CONFIG"; then
10485 if test -n "$PKG_CONFIG" && \
10486 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10487 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; then
10491 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10492 else
10493 pkg_failed=yes
10494 fi
10495 else
10496 pkg_failed=untried
10497 fi
10498
10499
10500
10501 if test $pkg_failed = yes; then
10502
10503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10504 _pkg_short_errors_supported=yes
10505 else
10506 _pkg_short_errors_supported=no
10507 fi
10508 if test $_pkg_short_errors_supported = yes; then
10509 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10510 else
10511 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10512 fi
10513 # Put the nasty error message in config.log where it belongs
10514 echo "$CMAN_PKG_ERRORS" >&5
10515
10516 { $as_echo "$as_me:$LINENO: result: no" >&5
10517 $as_echo "no" >&6; }
10518 NOTFOUND=0
10519
10520 for ac_header in libcman.h
10521 do
10522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 $as_echo_n "checking for $ac_header... " >&6; }
10526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 $as_echo_n "(cached) " >&6
10528 fi
10529 ac_res=`eval 'as_val=${'$as_ac_Header'}
10530 $as_echo "$as_val"'`
10531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10532 $as_echo "$ac_res" >&6; }
10533 else
10534 # Is the header compilable?
10535 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 $as_echo_n "checking $ac_header usability... " >&6; }
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 $ac_includes_default
10544 #include <$ac_header>
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (ac_try="$ac_compile"
10548 case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551 esac
10552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10553 $as_echo "$ac_try_echo") >&5
10554 (eval "$ac_compile") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest.$ac_objext; then
10564 ac_header_compiler=yes
10565 else
10566 $as_echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569 ac_header_compiler=no
10570 fi
10571
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574 $as_echo "$ac_header_compiler" >&6; }
10575
10576 # Is the header present?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578 $as_echo_n "checking $ac_header presence... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #include <$ac_header>
10586 _ACEOF
10587 if { (ac_try="$ac_cpp conftest.$ac_ext"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593 $as_echo "$ac_try_echo") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev/null && {
10601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 }; then
10604 ac_header_preproc=yes
10605 else
10606 $as_echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_preproc=no
10610 fi
10611
10612 rm -f conftest.err conftest.$ac_ext
10613 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614 $as_echo "$ac_header_preproc" >&6; }
10615
10616 # So? What about this header?
10617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10618 yes:no: )
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10623 ac_header_preproc=yes
10624 ;;
10625 no:yes:* )
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10627 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10633 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10637 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10638
10639 ;;
10640 esac
10641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 $as_echo_n "checking for $ac_header... " >&6; }
10643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 $as_echo_n "(cached) " >&6
10645 else
10646 eval "$as_ac_Header=\$ac_header_preproc"
10647 fi
10648 ac_res=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10651 $as_echo "$ac_res" >&6; }
10652
10653 fi
10654 as_val=`eval 'as_val=${'$as_ac_Header'}
10655 $as_echo "$as_val"'`
10656 if test "x$as_val" = x""yes; then
10657 cat >>confdefs.h <<_ACEOF
10658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659 _ACEOF
10660
10661 else
10662 $bailout
10663 fi
10664
10665 done
10666
10667 check_lib_no_libs cman cman_init
10668 if test $NOTFOUND = 0; then
10669 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10670 $as_echo "no pkg for libcman, using -lcman" >&6; }
10671 CMAN_LIBS="-lcman"
10672 HAVE_CMAN=yes
10673 fi
10674 elif test $pkg_failed = untried; then
10675 NOTFOUND=0
10676
10677 for ac_header in libcman.h
10678 do
10679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 $as_echo_n "checking for $ac_header... " >&6; }
10683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 $as_echo_n "(cached) " >&6
10685 fi
10686 ac_res=`eval 'as_val=${'$as_ac_Header'}
10687 $as_echo "$as_val"'`
10688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10689 $as_echo "$ac_res" >&6; }
10690 else
10691 # Is the header compilable?
10692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10693 $as_echo_n "checking $ac_header usability... " >&6; }
10694 cat >conftest.$ac_ext <<_ACEOF
10695 /* confdefs.h. */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 $ac_includes_default
10701 #include <$ac_header>
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721 ac_header_compiler=yes
10722 else
10723 $as_echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_header_compiler=no
10727 fi
10728
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10731 $as_echo "$ac_header_compiler" >&6; }
10732
10733 # Is the header present?
10734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10735 $as_echo_n "checking $ac_header presence... " >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <$ac_header>
10743 _ACEOF
10744 if { (ac_try="$ac_cpp conftest.$ac_ext"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null && {
10758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 }; then
10761 ac_header_preproc=yes
10762 else
10763 $as_echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766 ac_header_preproc=no
10767 fi
10768
10769 rm -f conftest.err conftest.$ac_ext
10770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771 $as_echo "$ac_header_preproc" >&6; }
10772
10773 # So? What about this header?
10774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775 yes:no: )
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780 ac_header_preproc=yes
10781 ;;
10782 no:yes:* )
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10790 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795
10796 ;;
10797 esac
10798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10799 $as_echo_n "checking for $ac_header... " >&6; }
10800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801 $as_echo_n "(cached) " >&6
10802 else
10803 eval "$as_ac_Header=\$ac_header_preproc"
10804 fi
10805 ac_res=`eval 'as_val=${'$as_ac_Header'}
10806 $as_echo "$as_val"'`
10807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10808 $as_echo "$ac_res" >&6; }
10809
10810 fi
10811 as_val=`eval 'as_val=${'$as_ac_Header'}
10812 $as_echo "$as_val"'`
10813 if test "x$as_val" = x""yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816 _ACEOF
10817
10818 else
10819 $bailout
10820 fi
10821
10822 done
10823
10824 check_lib_no_libs cman cman_init
10825 if test $NOTFOUND = 0; then
10826 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10827 $as_echo "no pkg for libcman, using -lcman" >&6; }
10828 CMAN_LIBS="-lcman"
10829 HAVE_CMAN=yes
10830 fi
10831 else
10832 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10833 CMAN_LIBS=$pkg_cv_CMAN_LIBS
10834 { $as_echo "$as_me:$LINENO: result: yes" >&5
10835 $as_echo "yes" >&6; }
10836 HAVE_CMAN=yes
10837 fi
10838 CHECKCONFDB=yes
10839 CHECKDLM=yes
10840 fi
10841
10842 if test x$BUILDCOROSYNC = xyes || \
10843 test x$BUILDOPENAIS = xyes; then
10844
10845 pkg_failed=no
10846 { $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10847 $as_echo_n "checking for COROSYNC... " >&6; }
10848
10849 if test -n "$COROSYNC_CFLAGS"; then
10850 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10851 elif test -n "$PKG_CONFIG"; then
10852 if test -n "$PKG_CONFIG" && \
10853 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10854 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10855 ac_status=$?
10856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; then
10858 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10859 else
10860 pkg_failed=yes
10861 fi
10862 else
10863 pkg_failed=untried
10864 fi
10865 if test -n "$COROSYNC_LIBS"; then
10866 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10867 elif test -n "$PKG_CONFIG"; then
10868 if test -n "$PKG_CONFIG" && \
10869 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10870 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10871 ac_status=$?
10872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; then
10874 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10875 else
10876 pkg_failed=yes
10877 fi
10878 else
10879 pkg_failed=untried
10880 fi
10881
10882
10883
10884 if test $pkg_failed = yes; then
10885
10886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10887 _pkg_short_errors_supported=yes
10888 else
10889 _pkg_short_errors_supported=no
10890 fi
10891 if test $_pkg_short_errors_supported = yes; then
10892 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10893 else
10894 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10895 fi
10896 # Put the nasty error message in config.log where it belongs
10897 echo "$COROSYNC_PKG_ERRORS" >&5
10898
10899 { $as_echo "$as_me:$LINENO: result: no" >&5
10900 $as_echo "no" >&6; }
10901 $bailout
10902 elif test $pkg_failed = untried; then
10903 $bailout
10904 else
10905 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10906 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10907 { $as_echo "$as_me:$LINENO: result: yes" >&5
10908 $as_echo "yes" >&6; }
10909 HAVE_COROSYNC=yes
10910 fi
10911 CHECKCONFDB=yes
10912 fi
10913
10914 if test x$BUILDCOROSYNC = xyes; then
10915
10916 pkg_failed=no
10917 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10918 $as_echo_n "checking for QUORUM... " >&6; }
10919
10920 if test -n "$QUORUM_CFLAGS"; then
10921 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10922 elif test -n "$PKG_CONFIG"; then
10923 if test -n "$PKG_CONFIG" && \
10924 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10925 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10926 ac_status=$?
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; then
10929 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10930 else
10931 pkg_failed=yes
10932 fi
10933 else
10934 pkg_failed=untried
10935 fi
10936 if test -n "$QUORUM_LIBS"; then
10937 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10938 elif test -n "$PKG_CONFIG"; then
10939 if test -n "$PKG_CONFIG" && \
10940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10941 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10942 ac_status=$?
10943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; then
10945 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10946 else
10947 pkg_failed=yes
10948 fi
10949 else
10950 pkg_failed=untried
10951 fi
10952
10953
10954
10955 if test $pkg_failed = yes; then
10956
10957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10958 _pkg_short_errors_supported=yes
10959 else
10960 _pkg_short_errors_supported=no
10961 fi
10962 if test $_pkg_short_errors_supported = yes; then
10963 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10964 else
10965 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10966 fi
10967 # Put the nasty error message in config.log where it belongs
10968 echo "$QUORUM_PKG_ERRORS" >&5
10969
10970 { $as_echo "$as_me:$LINENO: result: no" >&5
10971 $as_echo "no" >&6; }
10972 $bailout
10973 elif test $pkg_failed = untried; then
10974 $bailout
10975 else
10976 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10977 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10978 { $as_echo "$as_me:$LINENO: result: yes" >&5
10979 $as_echo "yes" >&6; }
10980 HAVE_QUORUM=yes
10981 fi
10982 CHECKCPG=yes
10983 CHECKDLM=yes
10984 fi
10985
10986 if test x$BUILDOPENAIS = xyes; then
10987
10988 pkg_failed=no
10989 { $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10990 $as_echo_n "checking for SALCK... " >&6; }
10991
10992 if test -n "$SALCK_CFLAGS"; then
10993 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10994 elif test -n "$PKG_CONFIG"; then
10995 if test -n "$PKG_CONFIG" && \
10996 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10997 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10998 ac_status=$?
10999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; then
11001 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
11002 else
11003 pkg_failed=yes
11004 fi
11005 else
11006 pkg_failed=untried
11007 fi
11008 if test -n "$SALCK_LIBS"; then
11009 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11010 elif test -n "$PKG_CONFIG"; then
11011 if test -n "$PKG_CONFIG" && \
11012 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11013 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11014 ac_status=$?
11015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; then
11017 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11018 else
11019 pkg_failed=yes
11020 fi
11021 else
11022 pkg_failed=untried
11023 fi
11024
11025
11026
11027 if test $pkg_failed = yes; then
11028
11029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11030 _pkg_short_errors_supported=yes
11031 else
11032 _pkg_short_errors_supported=no
11033 fi
11034 if test $_pkg_short_errors_supported = yes; then
11035 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11036 else
11037 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11038 fi
11039 # Put the nasty error message in config.log where it belongs
11040 echo "$SALCK_PKG_ERRORS" >&5
11041
11042 { $as_echo "$as_me:$LINENO: result: no" >&5
11043 $as_echo "no" >&6; }
11044 $bailout
11045 elif test $pkg_failed = untried; then
11046 $bailout
11047 else
11048 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11049 SALCK_LIBS=$pkg_cv_SALCK_LIBS
11050 { $as_echo "$as_me:$LINENO: result: yes" >&5
11051 $as_echo "yes" >&6; }
11052 HAVE_SALCK=yes
11053 fi
11054 CHECKCPG=yes
11055 fi
11056
11057
11058
11059 if test x$CHECKCONFDB = xyes; then
11060
11061 pkg_failed=no
11062 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11063 $as_echo_n "checking for CONFDB... " >&6; }
11064
11065 if test -n "$CONFDB_CFLAGS"; then
11066 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11067 elif test -n "$PKG_CONFIG"; then
11068 if test -n "$PKG_CONFIG" && \
11069 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11070 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11071 ac_status=$?
11072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; then
11074 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11075 else
11076 pkg_failed=yes
11077 fi
11078 else
11079 pkg_failed=untried
11080 fi
11081 if test -n "$CONFDB_LIBS"; then
11082 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11083 elif test -n "$PKG_CONFIG"; then
11084 if test -n "$PKG_CONFIG" && \
11085 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11086 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11087 ac_status=$?
11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; then
11090 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11091 else
11092 pkg_failed=yes
11093 fi
11094 else
11095 pkg_failed=untried
11096 fi
11097
11098
11099
11100 if test $pkg_failed = yes; then
11101
11102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11103 _pkg_short_errors_supported=yes
11104 else
11105 _pkg_short_errors_supported=no
11106 fi
11107 if test $_pkg_short_errors_supported = yes; then
11108 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11109 else
11110 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11111 fi
11112 # Put the nasty error message in config.log where it belongs
11113 echo "$CONFDB_PKG_ERRORS" >&5
11114
11115 { $as_echo "$as_me:$LINENO: result: no" >&5
11116 $as_echo "no" >&6; }
11117 HAVE_CONFDB=no
11118 elif test $pkg_failed = untried; then
11119 HAVE_CONFDB=no
11120 else
11121 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11122 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11123 { $as_echo "$as_me:$LINENO: result: yes" >&5
11124 $as_echo "yes" >&6; }
11125 HAVE_CONFDB=yes
11126 fi
11127
11128
11129 for ac_header in corosync/confdb.h
11130 do
11131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 $as_echo_n "checking for $ac_header... " >&6; }
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 $as_echo_n "(cached) " >&6
11137 fi
11138 ac_res=`eval 'as_val=${'$as_ac_Header'}
11139 $as_echo "$as_val"'`
11140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11141 $as_echo "$ac_res" >&6; }
11142 else
11143 # Is the header compilable?
11144 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11145 $as_echo_n "checking $ac_header usability... " >&6; }
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 $ac_includes_default
11153 #include <$ac_header>
11154 _ACEOF
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160 esac
11161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11162 $as_echo "$ac_try_echo") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11164 ac_status=$?
11165 grep -v '^ *+' conftest.er1 >conftest.err
11166 rm -f conftest.er1
11167 cat conftest.err >&5
11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && {
11170 test -z "$ac_c_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest.$ac_objext; then
11173 ac_header_compiler=yes
11174 else
11175 $as_echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_header_compiler=no
11179 fi
11180
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11182 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11183 $as_echo "$ac_header_compiler" >&6; }
11184
11185 # Is the header present?
11186 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11187 $as_echo_n "checking $ac_header presence... " >&6; }
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h. */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <$ac_header>
11195 _ACEOF
11196 if { (ac_try="$ac_cpp conftest.$ac_ext"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200 esac
11201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } >/dev/null && {
11210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 }; then
11213 ac_header_preproc=yes
11214 else
11215 $as_echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_header_preproc=no
11219 fi
11220
11221 rm -f conftest.err conftest.$ac_ext
11222 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11223 $as_echo "$ac_header_preproc" >&6; }
11224
11225 # So? What about this header?
11226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11227 yes:no: )
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11232 ac_header_preproc=yes
11233 ;;
11234 no:yes:* )
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11238 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11240 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11242 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11247
11248 ;;
11249 esac
11250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 $as_echo_n "checking for $ac_header... " >&6; }
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 $as_echo_n "(cached) " >&6
11254 else
11255 eval "$as_ac_Header=\$ac_header_preproc"
11256 fi
11257 ac_res=`eval 'as_val=${'$as_ac_Header'}
11258 $as_echo "$as_val"'`
11259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11260 $as_echo "$ac_res" >&6; }
11261
11262 fi
11263 as_val=`eval 'as_val=${'$as_ac_Header'}
11264 $as_echo "$as_val"'`
11265 if test "x$as_val" = x""yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268 _ACEOF
11269 HAVE_CONFDB_H=yes
11270 else
11271 HAVE_CONFDB_H=no
11272 fi
11273
11274 done
11275
11276
11277 if test x$HAVE_CONFDB != xyes && \
11278 test x$HAVE_CONFDB_H = xyes; then
11279 check_lib_no_libs confdb confdb_initialize
11280 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11281 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
11282 CONFDB_LIBS="-lconfdb"
11283 HAVE_CONFDB=yes
11284 fi
11285
11286 if test x$BUILDCOROSYNC = xyes && \
11287 test x$HAVE_CONFDB != xyes &&
11288 test x$CLVMD != xall; then
11289 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11290 $as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11291 { (exit 1); exit 1; }; }
11292 fi
11293 fi
11294
11295 if test x$CHECKCPG = xyes; then
11296
11297 pkg_failed=no
11298 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11299 $as_echo_n "checking for CPG... " >&6; }
11300
11301 if test -n "$CPG_CFLAGS"; then
11302 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11303 elif test -n "$PKG_CONFIG"; then
11304 if test -n "$PKG_CONFIG" && \
11305 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11306 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11307 ac_status=$?
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; then
11310 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11311 else
11312 pkg_failed=yes
11313 fi
11314 else
11315 pkg_failed=untried
11316 fi
11317 if test -n "$CPG_LIBS"; then
11318 pkg_cv_CPG_LIBS="$CPG_LIBS"
11319 elif test -n "$PKG_CONFIG"; then
11320 if test -n "$PKG_CONFIG" && \
11321 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11322 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11323 ac_status=$?
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; then
11326 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11327 else
11328 pkg_failed=yes
11329 fi
11330 else
11331 pkg_failed=untried
11332 fi
11333
11334
11335
11336 if test $pkg_failed = yes; then
11337
11338 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11339 _pkg_short_errors_supported=yes
11340 else
11341 _pkg_short_errors_supported=no
11342 fi
11343 if test $_pkg_short_errors_supported = yes; then
11344 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11345 else
11346 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11347 fi
11348 # Put the nasty error message in config.log where it belongs
11349 echo "$CPG_PKG_ERRORS" >&5
11350
11351 { $as_echo "$as_me:$LINENO: result: no" >&5
11352 $as_echo "no" >&6; }
11353 $bailout
11354 elif test $pkg_failed = untried; then
11355 $bailout
11356 else
11357 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11358 CPG_LIBS=$pkg_cv_CPG_LIBS
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 HAVE_CPG=yes
11362 fi
11363 fi
11364
11365 if test x$CHECKDLM = xyes; then
11366
11367 pkg_failed=no
11368 { $as_echo "$as_me:$LINENO: checking for DLM" >&5
11369 $as_echo_n "checking for DLM... " >&6; }
11370
11371 if test -n "$DLM_CFLAGS"; then
11372 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11373 elif test -n "$PKG_CONFIG"; then
11374 if test -n "$PKG_CONFIG" && \
11375 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11376 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11377 ac_status=$?
11378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; then
11380 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11381 else
11382 pkg_failed=yes
11383 fi
11384 else
11385 pkg_failed=untried
11386 fi
11387 if test -n "$DLM_LIBS"; then
11388 pkg_cv_DLM_LIBS="$DLM_LIBS"
11389 elif test -n "$PKG_CONFIG"; then
11390 if test -n "$PKG_CONFIG" && \
11391 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11392 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11393 ac_status=$?
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; then
11396 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11397 else
11398 pkg_failed=yes
11399 fi
11400 else
11401 pkg_failed=untried
11402 fi
11403
11404
11405
11406 if test $pkg_failed = yes; then
11407
11408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11409 _pkg_short_errors_supported=yes
11410 else
11411 _pkg_short_errors_supported=no
11412 fi
11413 if test $_pkg_short_errors_supported = yes; then
11414 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11415 else
11416 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11417 fi
11418 # Put the nasty error message in config.log where it belongs
11419 echo "$DLM_PKG_ERRORS" >&5
11420
11421 { $as_echo "$as_me:$LINENO: result: no" >&5
11422 $as_echo "no" >&6; }
11423 NOTFOUND=0
11424
11425 for ac_header in libdlm.h
11426 do
11427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 $as_echo_n "checking for $ac_header... " >&6; }
11431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 $as_echo_n "(cached) " >&6
11433 fi
11434 ac_res=`eval 'as_val=${'$as_ac_Header'}
11435 $as_echo "$as_val"'`
11436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11437 $as_echo "$ac_res" >&6; }
11438 else
11439 # Is the header compilable?
11440 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 $as_echo_n "checking $ac_header usability... " >&6; }
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h. */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 #include <$ac_header>
11450 _ACEOF
11451 rm -f conftest.$ac_objext
11452 if { (ac_try="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458 $as_echo "$ac_try_echo") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11470 else
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 ac_header_compiler=no
11475 fi
11476
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 $as_echo "$ac_header_compiler" >&6; }
11480
11481 # Is the header present?
11482 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 $as_echo_n "checking $ac_header presence... " >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <$ac_header>
11491 _ACEOF
11492 if { (ac_try="$ac_cpp conftest.$ac_ext"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11498 $as_echo "$ac_try_echo") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 ac_header_preproc=yes
11510 else
11511 $as_echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 ac_header_preproc=no
11515 fi
11516
11517 rm -f conftest.err conftest.$ac_ext
11518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519 $as_echo "$ac_header_preproc" >&6; }
11520
11521 # So? What about this header?
11522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11529 ;;
11530 no:yes:* )
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11543
11544 ;;
11545 esac
11546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 $as_echo_n "checking for $ac_header... " >&6; }
11548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 $as_echo_n "(cached) " >&6
11550 else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11552 fi
11553 ac_res=`eval 'as_val=${'$as_ac_Header'}
11554 $as_echo "$as_val"'`
11555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11556 $as_echo "$ac_res" >&6; }
11557
11558 fi
11559 as_val=`eval 'as_val=${'$as_ac_Header'}
11560 $as_echo "$as_val"'`
11561 if test "x$as_val" = x""yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11564 _ACEOF
11565
11566 else
11567 $bailout
11568 fi
11569
11570 done
11571
11572 check_lib_no_libs dlm dlm_lock -lpthread
11573 if test $NOTFOUND = 0; then
11574 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11575 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11576 DLM_LIBS="-ldlm -lpthread"
11577 HAVE_DLM=yes
11578 fi
11579 elif test $pkg_failed = untried; then
11580 NOTFOUND=0
11581
11582 for ac_header in libdlm.h
11583 do
11584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 $as_echo_n "checking for $ac_header... " >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 $as_echo_n "(cached) " >&6
11590 fi
11591 ac_res=`eval 'as_val=${'$as_ac_Header'}
11592 $as_echo "$as_val"'`
11593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11594 $as_echo "$ac_res" >&6; }
11595 else
11596 # Is the header compilable?
11597 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598 $as_echo_n "checking $ac_header usability... " >&6; }
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11607 _ACEOF
11608 rm -f conftest.$ac_objext
11609 if { (ac_try="$ac_compile"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11613 esac
11614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11615 $as_echo "$ac_try_echo") >&5
11616 (eval "$ac_compile") 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest.$ac_objext; then
11626 ac_header_compiler=yes
11627 else
11628 $as_echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 ac_header_compiler=no
11632 fi
11633
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11636 $as_echo "$ac_header_compiler" >&6; }
11637
11638 # Is the header present?
11639 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11640 $as_echo_n "checking $ac_header presence... " >&6; }
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <$ac_header>
11648 _ACEOF
11649 if { (ac_try="$ac_cpp conftest.$ac_ext"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653 esac
11654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11655 $as_echo "$ac_try_echo") >&5
11656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11657 ac_status=$?
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
11661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null && {
11663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 }; then
11666 ac_header_preproc=yes
11667 else
11668 $as_echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 ac_header_preproc=no
11672 fi
11673
11674 rm -f conftest.err conftest.$ac_ext
11675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11676 $as_echo "$ac_header_preproc" >&6; }
11677
11678 # So? What about this header?
11679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11680 yes:no: )
11681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11682 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11685 ac_header_preproc=yes
11686 ;;
11687 no:yes:* )
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11689 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11695 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11699 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11700
11701 ;;
11702 esac
11703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11704 $as_echo_n "checking for $ac_header... " >&6; }
11705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11706 $as_echo_n "(cached) " >&6
11707 else
11708 eval "$as_ac_Header=\$ac_header_preproc"
11709 fi
11710 ac_res=`eval 'as_val=${'$as_ac_Header'}
11711 $as_echo "$as_val"'`
11712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11713 $as_echo "$ac_res" >&6; }
11714
11715 fi
11716 as_val=`eval 'as_val=${'$as_ac_Header'}
11717 $as_echo "$as_val"'`
11718 if test "x$as_val" = x""yes; then
11719 cat >>confdefs.h <<_ACEOF
11720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721 _ACEOF
11722
11723 else
11724 $bailout
11725 fi
11726
11727 done
11728
11729 check_lib_no_libs dlm dlm_lock -lpthread
11730 if test $NOTFOUND = 0; then
11731 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11732 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
11733 DLM_LIBS="-ldlm -lpthread"
11734 HAVE_DLM=yes
11735 fi
11736 else
11737 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11738 DLM_LIBS=$pkg_cv_DLM_LIBS
11739 { $as_echo "$as_me:$LINENO: result: yes" >&5
11740 $as_echo "yes" >&6; }
11741 HAVE_DLM=yes
11742 fi
11743 fi
11744
11745 if test x$CLVMD = xall; then
11746 CLVMD=none
11747 if test x$HAVE_CCS = xyes && \
11748 test x$HAVE_GULM = xyes; then
11749 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11750 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
11751 CLVMD="$CLVMD,gulm"
11752 fi
11753 if test x$HAVE_CMAN = xyes && \
11754 test x$HAVE_DLM = xyes; then
11755 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11756 $as_echo "Enabling clvmd cman cluster manager" >&6; }
11757 CLVMD="$CLVMD,cman"
11758 fi
11759 if test x$HAVE_COROSYNC = xyes && \
11760 test x$HAVE_QUORUM = xyes && \
11761 test x$HAVE_CPG = xyes && \
11762 test x$HAVE_DLM = xyes && \
11763 test x$HAVE_CONFDB = xyes; then
11764 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11765 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
11766 CLVMD="$CLVMD,corosync"
11767 fi
11768 if test x$HAVE_COROSYNC = xyes && \
11769 test x$HAVE_CPG = xyes && \
11770 test x$HAVE_SALCK = xyes; then
11771 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11772 $as_echo "Enabling clvmd openais cluster manager" >&6; }
11773 CLVMD="$CLVMD,openais"
11774 fi
11775 if test x$CLVMD = xnone; then
11776 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11777 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11778 fi
11779 fi
11780
11781 ################################################################################
11782 { $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11783 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11784 # Check whether --enable-cmirrord was given.
11785 if test "${enable_cmirrord+set}" = set; then
11786 enableval=$enable_cmirrord; CMIRRORD=$enableval
11787 else
11788 CMIRRORD=no
11789 fi
11790
11791 { $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11792 $as_echo "$CMIRRORD" >&6; }
11793
11794 BUILD_CMIRRORD=$CMIRRORD
11795
11796 ################################################################################
11797
11798
11799 if test "x$BUILD_CMIRRORD" = xyes; then
11800
11801 # Check whether --with-cmirrord-pidfile was given.
11802 if test "${with_cmirrord_pidfile+set}" = set; then
11803 withval=$with_cmirrord_pidfile; cat >>confdefs.h <<_ACEOF
11804 #define CMIRRORD_PIDFILE "$withval"
11805 _ACEOF
11806
11807 else
11808 cat >>confdefs.h <<_ACEOF
11809 #define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11810 _ACEOF
11811
11812 fi
11813
11814 fi
11815
11816 ################################################################################
11817 if [ "x$BUILD_CMIRRORD" = xyes ]; then
11818 if test x$PKGCONFIG_INIT != x1; then
11819 pkg_config_init
11820 fi
11821
11822 pkg_failed=no
11823 { $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11824 $as_echo_n "checking for SACKPT... " >&6; }
11825
11826 if test -n "$SACKPT_CFLAGS"; then
11827 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11828 elif test -n "$PKG_CONFIG"; then
11829 if test -n "$PKG_CONFIG" && \
11830 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11831 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; then
11835 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11836 else
11837 pkg_failed=yes
11838 fi
11839 else
11840 pkg_failed=untried
11841 fi
11842 if test -n "$SACKPT_LIBS"; then
11843 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11844 elif test -n "$PKG_CONFIG"; then
11845 if test -n "$PKG_CONFIG" && \
11846 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11847 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11848 ac_status=$?
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; then
11851 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11852 else
11853 pkg_failed=yes
11854 fi
11855 else
11856 pkg_failed=untried
11857 fi
11858
11859
11860
11861 if test $pkg_failed = yes; then
11862
11863 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11864 _pkg_short_errors_supported=yes
11865 else
11866 _pkg_short_errors_supported=no
11867 fi
11868 if test $_pkg_short_errors_supported = yes; then
11869 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11870 else
11871 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11872 fi
11873 # Put the nasty error message in config.log where it belongs
11874 echo "$SACKPT_PKG_ERRORS" >&5
11875
11876 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11877
11878 $SACKPT_PKG_ERRORS
11879
11880 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11881 installed software in a non-standard prefix.
11882
11883 Alternatively, you may set the environment variables SACKPT_CFLAGS
11884 and SACKPT_LIBS to avoid the need to call pkg-config.
11885 See the pkg-config man page for more details.
11886 " >&5
11887 $as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11888
11889 $SACKPT_PKG_ERRORS
11890
11891 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11892 installed software in a non-standard prefix.
11893
11894 Alternatively, you may set the environment variables SACKPT_CFLAGS
11895 and SACKPT_LIBS to avoid the need to call pkg-config.
11896 See the pkg-config man page for more details.
11897 " >&2;}
11898 { (exit 1); exit 1; }; }
11899 elif test $pkg_failed = untried; then
11900 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11903 is in your PATH or set the PKG_CONFIG environment variable to the full
11904 path to pkg-config.
11905
11906 Alternatively, you may set the environment variables SACKPT_CFLAGS
11907 and SACKPT_LIBS to avoid the need to call pkg-config.
11908 See the pkg-config man page for more details.
11909
11910 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11911 See \`config.log' for more details." >&5
11912 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11913 is in your PATH or set the PKG_CONFIG environment variable to the full
11914 path to pkg-config.
11915
11916 Alternatively, you may set the environment variables SACKPT_CFLAGS
11917 and SACKPT_LIBS to avoid the need to call pkg-config.
11918 See the pkg-config man page for more details.
11919
11920 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11921 See \`config.log' for more details." >&2;}
11922 { (exit 1); exit 1; }; }; }
11923 else
11924 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11925 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11926 { $as_echo "$as_me:$LINENO: result: yes" >&5
11927 $as_echo "yes" >&6; }
11928 :
11929 fi
11930 if test x$HAVE_CPG != xyes; then
11931
11932 pkg_failed=no
11933 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
11934 $as_echo_n "checking for CPG... " >&6; }
11935
11936 if test -n "$CPG_CFLAGS"; then
11937 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11938 elif test -n "$PKG_CONFIG"; then
11939 if test -n "$PKG_CONFIG" && \
11940 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11941 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11942 ac_status=$?
11943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; then
11945 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11946 else
11947 pkg_failed=yes
11948 fi
11949 else
11950 pkg_failed=untried
11951 fi
11952 if test -n "$CPG_LIBS"; then
11953 pkg_cv_CPG_LIBS="$CPG_LIBS"
11954 elif test -n "$PKG_CONFIG"; then
11955 if test -n "$PKG_CONFIG" && \
11956 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11957 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11958 ac_status=$?
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; then
11961 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11962 else
11963 pkg_failed=yes
11964 fi
11965 else
11966 pkg_failed=untried
11967 fi
11968
11969
11970
11971 if test $pkg_failed = yes; then
11972
11973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11974 _pkg_short_errors_supported=yes
11975 else
11976 _pkg_short_errors_supported=no
11977 fi
11978 if test $_pkg_short_errors_supported = yes; then
11979 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11980 else
11981 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11982 fi
11983 # Put the nasty error message in config.log where it belongs
11984 echo "$CPG_PKG_ERRORS" >&5
11985
11986 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11987
11988 $CPG_PKG_ERRORS
11989
11990 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11991 installed software in a non-standard prefix.
11992
11993 Alternatively, you may set the environment variables CPG_CFLAGS
11994 and CPG_LIBS to avoid the need to call pkg-config.
11995 See the pkg-config man page for more details.
11996 " >&5
11997 $as_echo "$as_me: error: Package requirements (libcpg) were not met:
11998
11999 $CPG_PKG_ERRORS
12000
12001 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12002 installed software in a non-standard prefix.
12003
12004 Alternatively, you may set the environment variables CPG_CFLAGS
12005 and CPG_LIBS to avoid the need to call pkg-config.
12006 See the pkg-config man page for more details.
12007 " >&2;}
12008 { (exit 1); exit 1; }; }
12009 elif test $pkg_failed = untried; then
12010 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12012 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12013 is in your PATH or set the PKG_CONFIG environment variable to the full
12014 path to pkg-config.
12015
12016 Alternatively, you may set the environment variables CPG_CFLAGS
12017 and CPG_LIBS to avoid the need to call pkg-config.
12018 See the pkg-config man page for more details.
12019
12020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12021 See \`config.log' for more details." >&5
12022 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12023 is in your PATH or set the PKG_CONFIG environment variable to the full
12024 path to pkg-config.
12025
12026 Alternatively, you may set the environment variables CPG_CFLAGS
12027 and CPG_LIBS to avoid the need to call pkg-config.
12028 See the pkg-config man page for more details.
12029
12030 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12031 See \`config.log' for more details." >&2;}
12032 { (exit 1); exit 1; }; }; }
12033 else
12034 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12035 CPG_LIBS=$pkg_cv_CPG_LIBS
12036 { $as_echo "$as_me:$LINENO: result: yes" >&5
12037 $as_echo "yes" >&6; }
12038 :
12039 fi
12040 fi
12041 fi
12042
12043 ################################################################################
12044 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12045 $as_echo_n "checking whether to enable debugging... " >&6; }
12046 # Check whether --enable-debug was given.
12047 if test "${enable_debug+set}" = set; then
12048 enableval=$enable_debug; DEBUG=$enableval
12049 else
12050 DEBUG=no
12051 fi
12052
12053 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12054 $as_echo "$DEBUG" >&6; }
12055
12056 if test x$DEBUG = xyes; then
12057 COPTIMISE_FLAG=
12058 else
12059 CSCOPE_CMD=
12060 fi
12061
12062 ################################################################################
12063 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12064 $as_echo_n "checking for C optimisation flag... " >&6; }
12065
12066 # Check whether --with-optimisation was given.
12067 if test "${with_optimisation+set}" = set; then
12068 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
12069 fi
12070
12071 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12072 $as_echo "$COPTIMISE_FLAG" >&6; }
12073
12074 ################################################################################
12075 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12076 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12077 # Check whether --enable-profiling was given.
12078 if test "${enable_profiling+set}" = set; then
12079 enableval=$enable_profiling; PROFILING=$enableval
12080 else
12081 PROFILING=no
12082 fi
12083
12084 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12085 $as_echo "$PROFILING" >&6; }
12086
12087 if test "x$PROFILING" = xyes; then
12088 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12089 # Extract the first word of "lcov", so it can be a program name with args.
12090 set dummy lcov; ac_word=$2
12091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if test "${ac_cv_path_LCOV+set}" = set; then
12094 $as_echo_n "(cached) " >&6
12095 else
12096 case $LCOV in
12097 [\\/]* | ?:[\\/]*)
12098 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12099 ;;
12100 *)
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12103 do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 break 2
12111 fi
12112 done
12113 done
12114 IFS=$as_save_IFS
12115
12116 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
12117 ;;
12118 esac
12119 fi
12120 LCOV=$ac_cv_path_LCOV
12121 if test -n "$LCOV"; then
12122 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12123 $as_echo "$LCOV" >&6; }
12124 else
12125 { $as_echo "$as_me:$LINENO: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12128
12129
12130 # Extract the first word of "genhtml", so it can be a program name with args.
12131 set dummy genhtml; ac_word=$2
12132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12133 $as_echo_n "checking for $ac_word... " >&6; }
12134 if test "${ac_cv_path_GENHTML+set}" = set; then
12135 $as_echo_n "(cached) " >&6
12136 else
12137 case $GENHTML in
12138 [\\/]* | ?:[\\/]*)
12139 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12140 ;;
12141 *)
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in $PATH
12144 do
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12149 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12151 break 2
12152 fi
12153 done
12154 done
12155 IFS=$as_save_IFS
12156
12157 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
12158 ;;
12159 esac
12160 fi
12161 GENHTML=$ac_cv_path_GENHTML
12162 if test -n "$GENHTML"; then
12163 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12164 $as_echo "$GENHTML" >&6; }
12165 else
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167 $as_echo "no" >&6; }
12168 fi
12169
12170
12171 if test "$LCOV" = no -o "$GENHTML" = no ; then
12172 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12173 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12174 { (exit 1); exit 1; }; }
12175 fi
12176 fi
12177
12178 ################################################################################
12179 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12180 $as_echo_n "checking whether to use device-mapper... " >&6; }
12181 # Check whether --enable-devmapper was given.
12182 if test "${enable_devmapper+set}" = set; then
12183 enableval=$enable_devmapper; DEVMAPPER=$enableval
12184 fi
12185
12186 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12187 $as_echo "$DEVMAPPER" >&6; }
12188
12189 if test x$DEVMAPPER = xyes; then
12190
12191 cat >>confdefs.h <<\_ACEOF
12192 #define DEVMAPPER_SUPPORT 1
12193 _ACEOF
12194
12195 fi
12196
12197 ################################################################################
12198 { $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12199 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12200 # Check whether --enable-udev_sync was given.
12201 if test "${enable_udev_sync+set}" = set; then
12202 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12203 else
12204 UDEV_SYNC=no
12205 fi
12206
12207 { $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12208 $as_echo "$UDEV_SYNC" >&6; }
12209
12210 if test x$UDEV_SYNC = xyes; then
12211
12212 cat >>confdefs.h <<\_ACEOF
12213 #define UDEV_SYNC_SUPPORT 1
12214 _ACEOF
12215
12216 fi
12217
12218 { $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12219 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12220 # Check whether --enable-udev_rules was given.
12221 if test "${enable_udev_rules+set}" = set; then
12222 enableval=$enable_udev_rules; UDEV_RULES=$enableval
12223 else
12224 UDEV_RULES=$UDEV_SYNC
12225 fi
12226
12227 { $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12228 $as_echo "$UDEV_RULES" >&6; }
12229
12230 ################################################################################
12231
12232 if test x$UDEV_SYNC = xyes; then
12233 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12234 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12235 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12236 $as_echo_n "(cached) " >&6
12237 else
12238 ac_check_lib_save_LIBS=$LIBS
12239 LIBS="-ludev $LIBS"
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 char udev_queue_get_udev_is_active ();
12254 int
12255 main ()
12256 {
12257 return udev_queue_get_udev_is_active ();
12258 ;
12259 return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267 esac
12268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12269 $as_echo "$ac_try_echo") >&5
12270 (eval "$ac_link") 2>conftest.er1
12271 ac_status=$?
12272 grep -v '^ *+' conftest.er1 >conftest.err
12273 rm -f conftest.er1
12274 cat conftest.err >&5
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest$ac_exeext && {
12280 test "$cross_compiling" = yes ||
12281 $as_test_x conftest$ac_exeext
12282 }; then
12283 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12284 else
12285 $as_echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12287
12288 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12289 fi
12290
12291 rm -rf conftest.dSYM
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12295 fi
12296 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12297 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12298 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12299 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12300 else
12301 HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12302 fi
12303
12304
12305 if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12306
12307 cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12309 _ACEOF
12310
12311 UDEV_LIBS="-ludev"
12312 else
12313 UDEV_LIBS=
12314 { $as_echo "$as_me:$LINENO: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&5
12315 $as_echo "$as_me: WARNING: It won't be possible to get udev state. We will assume that udev is not running." >&2;}
12316 fi
12317 fi
12318
12319 ################################################################################
12320 # Check whether --enable-compat was given.
12321 if test "${enable_compat+set}" = set; then
12322 enableval=$enable_compat; DM_COMPAT=$enableval
12323 else
12324 DM_COMPAT=no
12325 fi
12326
12327
12328 ################################################################################
12329 # Check whether --enable-units-compat was given.
12330 if test "${enable_units_compat+set}" = set; then
12331 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12332 else
12333 UNITS_COMPAT=no
12334 fi
12335
12336
12337 if test x$UNITS_COMPAT = xyes; then
12338
12339 cat >>confdefs.h <<\_ACEOF
12340 #define DEFAULT_SI_UNIT_CONSISTENCY 0
12341 _ACEOF
12342
12343 fi
12344
12345 ################################################################################
12346 # Check whether --enable-ioctl was given.
12347 if test "${enable_ioctl+set}" = set; then
12348 enableval=$enable_ioctl; DM_IOCTLS=$enableval
12349 fi
12350
12351
12352 ################################################################################
12353 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12354 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12355 # Check whether --enable-o_direct was given.
12356 if test "${enable_o_direct+set}" = set; then
12357 enableval=$enable_o_direct; ODIRECT=$enableval
12358 fi
12359
12360 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12361 $as_echo "$ODIRECT" >&6; }
12362
12363 if test x$ODIRECT = xyes; then
12364
12365 cat >>confdefs.h <<\_ACEOF
12366 #define O_DIRECT_SUPPORT 1
12367 _ACEOF
12368
12369 fi
12370
12371 ################################################################################
12372 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12373 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12374 # Check whether --enable-applib was given.
12375 if test "${enable_applib+set}" = set; then
12376 enableval=$enable_applib; APPLIB=$enableval
12377 else
12378 APPLIB=no
12379 fi
12380
12381 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12382 $as_echo "$APPLIB" >&6; }
12383
12384 test x$APPLIB = xyes \
12385 && LVM2APP_LIB=-llvm2app \
12386 || LVM2APP_LIB=
12387
12388 ################################################################################
12389 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12390 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12391 # Check whether --enable-cmdlib was given.
12392 if test "${enable_cmdlib+set}" = set; then
12393 enableval=$enable_cmdlib; CMDLIB=$enableval
12394 else
12395 CMDLIB=no
12396 fi
12397
12398 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12399 $as_echo "$CMDLIB" >&6; }
12400
12401 test x$CMDLIB = xyes \
12402 && LVM2CMD_LIB=-llvm2cmd \
12403 || LVM2CMD_LIB=
12404
12405 ################################################################################
12406 # Check whether --enable-pkgconfig was given.
12407 if test "${enable_pkgconfig+set}" = set; then
12408 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12409 else
12410 PKGCONFIG=no
12411 fi
12412
12413
12414 ################################################################################
12415 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12416 $as_echo_n "checking whether to install fsadm... " >&6; }
12417 # Check whether --enable-fsadm was given.
12418 if test "${enable_fsadm+set}" = set; then
12419 enableval=$enable_fsadm; FSADM=$enableval
12420 fi
12421
12422 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12423 $as_echo "$FSADM" >&6; }
12424
12425 ################################################################################
12426 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12427 $as_echo_n "checking whether to use dmeventd... " >&6; }
12428 # Check whether --enable-dmeventd was given.
12429 if test "${enable_dmeventd+set}" = set; then
12430 enableval=$enable_dmeventd; DMEVENTD=$enableval
12431 fi
12432
12433 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12434 $as_echo "$DMEVENTD" >&6; }
12435
12436 BUILD_DMEVENTD=$DMEVENTD
12437
12438 if test x$DMEVENTD = xyes; then
12439 if test x$MIRRORS != xinternal; then
12440 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12441 " >&5
12442 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12443 " >&2;}
12444 { (exit 1); exit 1; }; }
12445 fi
12446 if test x$CMDLIB = xno; then
12447 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12448 " >&5
12449 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12450 " >&2;}
12451 { (exit 1); exit 1; }; }
12452 fi
12453 fi
12454
12455 if test x$DMEVENTD = xyes; then
12456
12457 cat >>confdefs.h <<\_ACEOF
12458 #define DMEVENTD 1
12459 _ACEOF
12460
12461 fi
12462
12463 ################################################################################
12464
12465 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12466 $as_echo_n "checking for getline in -lc... " >&6; }
12467 if test "${ac_cv_lib_c_getline+set}" = set; then
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-lc $LIBS"
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char getline ();
12486 int
12487 main ()
12488 {
12489 return getline ();
12490 ;
12491 return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (ac_try="$ac_link"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499 esac
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502 (eval "$ac_link") 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest$ac_exeext && {
12512 test "$cross_compiling" = yes ||
12513 $as_test_x conftest$ac_exeext
12514 }; then
12515 ac_cv_lib_c_getline=yes
12516 else
12517 $as_echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 ac_cv_lib_c_getline=no
12521 fi
12522
12523 rm -rf conftest.dSYM
12524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12525 conftest$ac_exeext conftest.$ac_ext
12526 LIBS=$ac_check_lib_save_LIBS
12527 fi
12528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12529 $as_echo "$ac_cv_lib_c_getline" >&6; }
12530 if test "x$ac_cv_lib_c_getline" = x""yes; then
12531
12532 cat >>confdefs.h <<\_ACEOF
12533 #define HAVE_GETLINE 1
12534 _ACEOF
12535
12536 fi
12537
12538
12539 ################################################################################
12540
12541 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12542 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12543 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12544 $as_echo_n "(cached) " >&6
12545 else
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lc $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char canonicalize_file_name ();
12562 int
12563 main ()
12564 {
12565 return canonicalize_file_name ();
12566 ;
12567 return 0;
12568 }
12569 _ACEOF
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12577 $as_echo "$ac_try_echo") >&5
12578 (eval "$ac_link") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest$ac_exeext && {
12588 test "$cross_compiling" = yes ||
12589 $as_test_x conftest$ac_exeext
12590 }; then
12591 ac_cv_lib_c_canonicalize_file_name=yes
12592 else
12593 $as_echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_cv_lib_c_canonicalize_file_name=no
12597 fi
12598
12599 rm -rf conftest.dSYM
12600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12603 fi
12604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12605 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12606 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12607
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_CANONICALIZE_FILE_NAME 1
12610 _ACEOF
12611
12612 fi
12613
12614
12615 ################################################################################
12616 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12617 then exec_prefix="";
12618 fi;
12619
12620 ################################################################################
12621 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12623 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12624 $as_echo_n "(cached) " >&6
12625 else
12626 ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-ldl $LIBS"
12628 cat >conftest.$ac_ext <<_ACEOF
12629 /* confdefs.h. */
12630 _ACEOF
12631 cat confdefs.h >>conftest.$ac_ext
12632 cat >>conftest.$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12634
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char dlopen ();
12642 int
12643 main ()
12644 {
12645 return dlopen ();
12646 ;
12647 return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (ac_try="$ac_link"
12652 case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655 esac
12656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12657 $as_echo "$ac_try_echo") >&5
12658 (eval "$ac_link") 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest$ac_exeext && {
12668 test "$cross_compiling" = yes ||
12669 $as_test_x conftest$ac_exeext
12670 }; then
12671 ac_cv_lib_dl_dlopen=yes
12672 else
12673 $as_echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 ac_cv_lib_dl_dlopen=no
12677 fi
12678
12679 rm -rf conftest.dSYM
12680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12683 fi
12684 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12685 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12686 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12687
12688
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE_LIBDL 1
12691 _ACEOF
12692
12693 DL_LIBS="-ldl"
12694 HAVE_LIBDL=yes
12695 else
12696
12697 DL_LIBS=
12698 HAVE_LIBDL=no
12699 fi
12700
12701
12702 ################################################################################
12703 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12704 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12705 \) -a "x$STATIC_LINK" = xyes ];
12706 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12707 " >&5
12708 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
12709 " >&2;}
12710 { (exit 1); exit 1; }; }
12711 fi
12712
12713 ################################################################################
12714 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
12715 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
12716 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
12717 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12719 else
12720 ac_check_lib_save_LIBS=$LIBS
12721 LIBS="-lpthread $LIBS"
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h. */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728
12729 /* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 char pthread_mutex_lock ();
12736 int
12737 main ()
12738 {
12739 return pthread_mutex_lock ();
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 rm -f conftest.$ac_objext conftest$ac_exeext
12745 if { (ac_try="$ac_link"
12746 case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749 esac
12750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751 $as_echo "$ac_try_echo") >&5
12752 (eval "$ac_link") 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest$ac_exeext && {
12762 test "$cross_compiling" = yes ||
12763 $as_test_x conftest$ac_exeext
12764 }; then
12765 ac_cv_lib_pthread_pthread_mutex_lock=yes
12766 else
12767 $as_echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 ac_cv_lib_pthread_pthread_mutex_lock=no
12771 fi
12772
12773 rm -rf conftest.dSYM
12774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12775 conftest$ac_exeext conftest.$ac_ext
12776 LIBS=$ac_check_lib_save_LIBS
12777 fi
12778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
12779 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
12780 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
12781 PTHREAD_LIBS="-lpthread"
12782 else
12783 hard_bailout
12784 fi
12785
12786 fi
12787
12788 ################################################################################
12789 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12790 $as_echo_n "checking whether to enable selinux support... " >&6; }
12791 # Check whether --enable-selinux was given.
12792 if test "${enable_selinux+set}" = set; then
12793 enableval=$enable_selinux; SELINUX=$enableval
12794 fi
12795
12796 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12797 $as_echo "$SELINUX" >&6; }
12798
12799 ################################################################################
12800 if test x$SELINUX = xyes; then
12801 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12802 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12803 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-lsepol $LIBS"
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char sepol_check_context ();
12822 int
12823 main ()
12824 {
12825 return sepol_check_context ();
12826 ;
12827 return 0;
12828 }
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (ac_try="$ac_link"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835 esac
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_link") 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12850 }; then
12851 ac_cv_lib_sepol_sepol_check_context=yes
12852 else
12853 $as_echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 ac_cv_lib_sepol_sepol_check_context=no
12857 fi
12858
12859 rm -rf conftest.dSYM
12860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12863 fi
12864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12865 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12866 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12867
12868
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_SEPOL 1
12871 _ACEOF
12872
12873 SELINUX_LIBS="-lsepol"
12874 fi
12875
12876
12877 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12878 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12879 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12880 $as_echo_n "(cached) " >&6
12881 else
12882 ac_check_lib_save_LIBS=$LIBS
12883 LIBS="-lselinux $LIBS"
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 char is_selinux_enabled ();
12898 int
12899 main ()
12900 {
12901 return is_selinux_enabled ();
12902 ;
12903 return 0;
12904 }
12905 _ACEOF
12906 rm -f conftest.$ac_objext conftest$ac_exeext
12907 if { (ac_try="$ac_link"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12913 $as_echo "$ac_try_echo") >&5
12914 (eval "$ac_link") 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && {
12921 test -z "$ac_c_werror_flag" ||
12922 test ! -s conftest.err
12923 } && test -s conftest$ac_exeext && {
12924 test "$cross_compiling" = yes ||
12925 $as_test_x conftest$ac_exeext
12926 }; then
12927 ac_cv_lib_selinux_is_selinux_enabled=yes
12928 else
12929 $as_echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 ac_cv_lib_selinux_is_selinux_enabled=no
12933 fi
12934
12935 rm -rf conftest.dSYM
12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12939 fi
12940 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12941 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12942 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12943
12944
12945 for ac_header in selinux/selinux.h
12946 do
12947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12950 $as_echo_n "checking for $ac_header... " >&6; }
12951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12952 $as_echo_n "(cached) " >&6
12953 fi
12954 ac_res=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12958 else
12959 # Is the header compilable?
12960 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12961 $as_echo_n "checking $ac_header usability... " >&6; }
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 $ac_includes_default
12969 #include <$ac_header>
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 if { (ac_try="$ac_compile"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_header_compiler=yes
12990 else
12991 $as_echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_header_compiler=no
12995 fi
12996
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12999 $as_echo "$ac_header_compiler" >&6; }
13000
13001 # Is the header present?
13002 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13003 $as_echo_n "checking $ac_header presence... " >&6; }
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h. */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 #include <$ac_header>
13011 _ACEOF
13012 if { (ac_try="$ac_cpp conftest.$ac_ext"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016 esac
13017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018 $as_echo "$ac_try_echo") >&5
13019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } >/dev/null && {
13026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13027 test ! -s conftest.err
13028 }; then
13029 ac_header_preproc=yes
13030 else
13031 $as_echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_header_preproc=no
13035 fi
13036
13037 rm -f conftest.err conftest.$ac_ext
13038 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13039 $as_echo "$ac_header_preproc" >&6; }
13040
13041 # So? What about this header?
13042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13043 yes:no: )
13044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13045 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13047 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13048 ac_header_preproc=yes
13049 ;;
13050 no:yes:* )
13051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13052 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13054 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13056 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13058 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13060 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13062 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13063
13064 ;;
13065 esac
13066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13067 $as_echo_n "checking for $ac_header... " >&6; }
13068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13069 $as_echo_n "(cached) " >&6
13070 else
13071 eval "$as_ac_Header=\$ac_header_preproc"
13072 fi
13073 ac_res=`eval 'as_val=${'$as_ac_Header'}
13074 $as_echo "$as_val"'`
13075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13076 $as_echo "$ac_res" >&6; }
13077
13078 fi
13079 as_val=`eval 'as_val=${'$as_ac_Header'}
13080 $as_echo "$as_val"'`
13081 if test "x$as_val" = x""yes; then
13082 cat >>confdefs.h <<_ACEOF
13083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13084 _ACEOF
13085
13086 else
13087 hard_bailout
13088 fi
13089
13090 done
13091
13092
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_SELINUX 1
13095 _ACEOF
13096
13097 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
13098 HAVE_SELINUX=yes
13099 else
13100
13101 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
13102 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
13103 SELINUX_LIBS=
13104 HAVE_SELINUX=no
13105 fi
13106
13107 fi
13108
13109 ################################################################################
13110 if test x$REALTIME = xyes; then
13111 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13112 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13113 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13114 $as_echo_n "(cached) " >&6
13115 else
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-lrt $LIBS"
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char clock_gettime ();
13132 int
13133 main ()
13134 {
13135 return clock_gettime ();
13136 ;
13137 return 0;
13138 }
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145 esac
13146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147 $as_echo "$ac_try_echo") >&5
13148 (eval "$ac_link") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
13157 } && test -s conftest$ac_exeext && {
13158 test "$cross_compiling" = yes ||
13159 $as_test_x conftest$ac_exeext
13160 }; then
13161 ac_cv_lib_rt_clock_gettime=yes
13162 else
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166 ac_cv_lib_rt_clock_gettime=no
13167 fi
13168
13169 rm -rf conftest.dSYM
13170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13173 fi
13174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13175 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13176 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13177 HAVE_REALTIME=yes
13178 else
13179 HAVE_REALTIME=no
13180 fi
13181
13182
13183 if test x$HAVE_REALTIME = xyes; then
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_REALTIME 1
13187 _ACEOF
13188
13189 LIBS="-lrt $LIBS"
13190 else
13191 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13192 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13193 fi
13194 fi
13195
13196 ################################################################################
13197
13198 for ac_header in getopt.h
13199 do
13200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13203 $as_echo_n "checking for $ac_header... " >&6; }
13204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13205 $as_echo_n "(cached) " >&6
13206 fi
13207 ac_res=`eval 'as_val=${'$as_ac_Header'}
13208 $as_echo "$as_val"'`
13209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13210 $as_echo "$ac_res" >&6; }
13211 else
13212 # Is the header compilable?
13213 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13214 $as_echo_n "checking $ac_header usability... " >&6; }
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 $ac_includes_default
13222 #include <$ac_header>
13223 _ACEOF
13224 rm -f conftest.$ac_objext
13225 if { (ac_try="$ac_compile"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231 $as_echo "$ac_try_echo") >&5
13232 (eval "$ac_compile") 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest.$ac_objext; then
13242 ac_header_compiler=yes
13243 else
13244 $as_echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_header_compiler=no
13248 fi
13249
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252 $as_echo "$ac_header_compiler" >&6; }
13253
13254 # Is the header present?
13255 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13256 $as_echo_n "checking $ac_header presence... " >&6; }
13257 cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h. */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h. */
13263 #include <$ac_header>
13264 _ACEOF
13265 if { (ac_try="$ac_cpp conftest.$ac_ext"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269 esac
13270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13271 $as_echo "$ac_try_echo") >&5
13272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13273 ac_status=$?
13274 grep -v '^ *+' conftest.er1 >conftest.err
13275 rm -f conftest.er1
13276 cat conftest.err >&5
13277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } >/dev/null && {
13279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13280 test ! -s conftest.err
13281 }; then
13282 ac_header_preproc=yes
13283 else
13284 $as_echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_header_preproc=no
13288 fi
13289
13290 rm -f conftest.err conftest.$ac_ext
13291 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292 $as_echo "$ac_header_preproc" >&6; }
13293
13294 # So? What about this header?
13295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296 yes:no: )
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13298 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13301 ac_header_preproc=yes
13302 ;;
13303 no:yes:* )
13304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13305 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13307 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13309 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13311 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13315 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13316
13317 ;;
13318 esac
13319 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13320 $as_echo_n "checking for $ac_header... " >&6; }
13321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13322 $as_echo_n "(cached) " >&6
13323 else
13324 eval "$as_ac_Header=\$ac_header_preproc"
13325 fi
13326 ac_res=`eval 'as_val=${'$as_ac_Header'}
13327 $as_echo "$as_val"'`
13328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13329 $as_echo "$ac_res" >&6; }
13330
13331 fi
13332 as_val=`eval 'as_val=${'$as_ac_Header'}
13333 $as_echo "$as_val"'`
13334 if test "x$as_val" = x""yes; then
13335 cat >>confdefs.h <<_ACEOF
13336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13337 _ACEOF
13338
13339 cat >>confdefs.h <<\_ACEOF
13340 #define HAVE_GETOPTLONG 1
13341 _ACEOF
13342
13343 fi
13344
13345 done
13346
13347
13348 ################################################################################
13349 if test x$READLINE != xno; then
13350 lvm_saved_libs=$LIBS
13351 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
13352 $as_echo_n "checking for library containing tgetent... " >&6; }
13353 if test "${ac_cv_search_tgetent+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13355 else
13356 ac_func_search_save_LIBS=$LIBS
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char tgetent ();
13371 int
13372 main ()
13373 {
13374 return tgetent ();
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 for ac_lib in '' tinfo ncurses curses termcap termlib; do
13380 if test -z "$ac_lib"; then
13381 ac_res="none required"
13382 else
13383 ac_res=-l$ac_lib
13384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13385 fi
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391 esac
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394 (eval "$ac_link") 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest$ac_exeext && {
13404 test "$cross_compiling" = yes ||
13405 $as_test_x conftest$ac_exeext
13406 }; then
13407 ac_cv_search_tgetent=$ac_res
13408 else
13409 $as_echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412
13413 fi
13414
13415 rm -rf conftest.dSYM
13416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13417 conftest$ac_exeext
13418 if test "${ac_cv_search_tgetent+set}" = set; then
13419 break
13420 fi
13421 done
13422 if test "${ac_cv_search_tgetent+set}" = set; then
13423 :
13424 else
13425 ac_cv_search_tgetent=no
13426 fi
13427 rm conftest.$ac_ext
13428 LIBS=$ac_func_search_save_LIBS
13429 fi
13430 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13431 $as_echo "$ac_cv_search_tgetent" >&6; }
13432 ac_res=$ac_cv_search_tgetent
13433 if test "$ac_res" != no; then
13434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435 READLINE_LIBS=$ac_cv_search_tgetent
13436 else
13437
13438 if test "$READLINE" = yes; then
13439 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
13440 --enable-readline option (which is enabled by default). Either disable readline
13441 support with --disable-readline or download and install termcap from:
13442 ftp.gnu.org/gnu/termcap
13443 Note: if you are using precompiled packages you will also need the development
13444 package as well (which may be called termcap-devel or something similar).
13445 Note: (n)curses also seems to work as a substitute for termcap. This was
13446 not found either - but you could try installing that as well." >&5
13447 $as_echo "$as_me: error: termcap could not be found which is required for the
13448 --enable-readline option (which is enabled by default). Either disable readline
13449 support with --disable-readline or download and install termcap from:
13450 ftp.gnu.org/gnu/termcap
13451 Note: if you are using precompiled packages you will also need the development
13452 package as well (which may be called termcap-devel or something similar).
13453 Note: (n)curses also seems to work as a substitute for termcap. This was
13454 not found either - but you could try installing that as well." >&2;}
13455 { (exit 1); exit 1; }; }
13456 fi
13457 fi
13458
13459 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13460 $as_echo_n "checking for readline in -lreadline... " >&6; }
13461 if test "${ac_cv_lib_readline_readline+set}" = set; then
13462 $as_echo_n "(cached) " >&6
13463 else
13464 ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lreadline $LIBS"
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 char readline ();
13480 int
13481 main ()
13482 {
13483 return readline ();
13484 ;
13485 return 0;
13486 }
13487 _ACEOF
13488 rm -f conftest.$ac_objext conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495 $as_echo "$ac_try_echo") >&5
13496 (eval "$ac_link") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest$ac_exeext && {
13506 test "$cross_compiling" = yes ||
13507 $as_test_x conftest$ac_exeext
13508 }; then
13509 ac_cv_lib_readline_readline=yes
13510 else
13511 $as_echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_lib_readline_readline=no
13515 fi
13516
13517 rm -rf conftest.dSYM
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13521 fi
13522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13523 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13524 if test "x$ac_cv_lib_readline_readline" = x""yes; then
13525
13526
13527 cat >>confdefs.h <<\_ACEOF
13528 #define READLINE_SUPPORT 1
13529 _ACEOF
13530
13531 LIBS=$lvm_saved_libs
13532 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
13533 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
13534 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
13535 $as_echo_n "(cached) " >&6
13536 else
13537 ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lreadline $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h. */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13545
13546 /* Override any GCC internal prototype to avoid an error.
13547 Use char because int might match the return type of a GCC
13548 builtin and then its argument prototype would still apply. */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 char rl_line_buffer ();
13553 int
13554 main ()
13555 {
13556 return rl_line_buffer ();
13557 ;
13558 return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13566 esac
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_link") 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } && {
13576 test -z "$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13578 } && test -s conftest$ac_exeext && {
13579 test "$cross_compiling" = yes ||
13580 $as_test_x conftest$ac_exeext
13581 }; then
13582 ac_cv_lib_readline_rl_line_buffer=yes
13583 else
13584 $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_cv_lib_readline_rl_line_buffer=no
13588 fi
13589
13590 rm -rf conftest.dSYM
13591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13594 fi
13595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
13596 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
13597 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
13598 READLINE_LIBS="-lreadline"
13599 else
13600
13601 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
13602 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
13603 READLINE_LIBS="-lreadline $READLINE_LIBS"
13604
13605 fi
13606
13607 else
13608
13609 READLINE_LIBS=
13610 if test "$READLINE" = yes; then
13611 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13612 --enable-readline option (which is enabled by default). Either disable readline
13613 support with --disable-readline or download and install readline from:
13614 ftp.gnu.org/gnu/readline
13615 Note: if you are using precompiled packages you will also need the development
13616 package as well (which may be called readline-devel or something similar)." >&5
13617 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
13618 --enable-readline option (which is enabled by default). Either disable readline
13619 support with --disable-readline or download and install readline from:
13620 ftp.gnu.org/gnu/readline
13621 Note: if you are using precompiled packages you will also need the development
13622 package as well (which may be called readline-devel or something similar)." >&2;}
13623 { (exit 1); exit 1; }; }
13624 fi
13625 fi
13626
13627 LIBS="$READLINE_LIBS $lvm_saved_libs"
13628
13629 for ac_func in rl_completion_matches
13630 do
13631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13632 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13633 $as_echo_n "checking for $ac_func... " >&6; }
13634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13635 $as_echo_n "(cached) " >&6
13636 else
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13645 #define $ac_func innocuous_$ac_func
13646
13647 /* System header to define __stub macros and hopefully few prototypes,
13648 which can conflict with char $ac_func (); below.
13649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13650 <limits.h> exists even on freestanding compilers. */
13651
13652 #ifdef __STDC__
13653 # include <limits.h>
13654 #else
13655 # include <assert.h>
13656 #endif
13657
13658 #undef $ac_func
13659
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 char $ac_func ();
13667 /* The GNU C library defines this for functions which it implements
13668 to always fail with ENOSYS. Some functions are actually named
13669 something starting with __ and the normal name is an alias. */
13670 #if defined __stub_$ac_func || defined __stub___$ac_func
13671 choke me
13672 #endif
13673
13674 int
13675 main ()
13676 {
13677 return $ac_func ();
13678 ;
13679 return 0;
13680 }
13681 _ACEOF
13682 rm -f conftest.$ac_objext conftest$ac_exeext
13683 if { (ac_try="$ac_link"
13684 case "(($ac_try" in
13685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13687 esac
13688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13689 $as_echo "$ac_try_echo") >&5
13690 (eval "$ac_link") 2>conftest.er1
13691 ac_status=$?
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
13695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 } && test -s conftest$ac_exeext && {
13700 test "$cross_compiling" = yes ||
13701 $as_test_x conftest$ac_exeext
13702 }; then
13703 eval "$as_ac_var=yes"
13704 else
13705 $as_echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13707
13708 eval "$as_ac_var=no"
13709 fi
13710
13711 rm -rf conftest.dSYM
13712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13713 conftest$ac_exeext conftest.$ac_ext
13714 fi
13715 ac_res=`eval 'as_val=${'$as_ac_var'}
13716 $as_echo "$as_val"'`
13717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13718 $as_echo "$ac_res" >&6; }
13719 as_val=`eval 'as_val=${'$as_ac_var'}
13720 $as_echo "$as_val"'`
13721 if test "x$as_val" = x""yes; then
13722 cat >>confdefs.h <<_ACEOF
13723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13724 _ACEOF
13725
13726 fi
13727 done
13728
13729 LIBS=$lvm_saved_libs
13730 fi
13731
13732 ################################################################################
13733 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13734 $as_echo_n "checking whether to enable internationalisation... " >&6; }
13735 # Check whether --enable-nls was given.
13736 if test "${enable_nls+set}" = set; then
13737 enableval=$enable_nls; INTL=$enableval
13738 else
13739 INTL=no
13740 fi
13741
13742 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
13743 $as_echo "$INTL" >&6; }
13744
13745 if test x$INTL = xyes; then
13746 # FIXME - Move this - can be device-mapper too
13747 INTL_PACKAGE="lvm2"
13748 # Extract the first word of "msgfmt", so it can be a program name with args.
13749 set dummy msgfmt; ac_word=$2
13750 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if test "${ac_cv_path_MSGFMT+set}" = set; then
13753 $as_echo_n "(cached) " >&6
13754 else
13755 case $MSGFMT in
13756 [\\/]* | ?:[\\/]*)
13757 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13758 ;;
13759 *)
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13762 do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13767 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771 done
13772 done
13773 IFS=$as_save_IFS
13774
13775 ;;
13776 esac
13777 fi
13778 MSGFMT=$ac_cv_path_MSGFMT
13779 if test -n "$MSGFMT"; then
13780 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13781 $as_echo "$MSGFMT" >&6; }
13782 else
13783 { $as_echo "$as_me:$LINENO: result: no" >&5
13784 $as_echo "no" >&6; }
13785 fi
13786
13787
13788 if [ "x$MSGFMT" == x ];
13789 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13790 " >&5
13791 $as_echo "$as_me: error: msgfmt not found in path $PATH
13792 " >&2;}
13793 { (exit 1); exit 1; }; }
13794 fi;
13795
13796
13797 # Check whether --with-localedir was given.
13798 if test "${with_localedir+set}" = set; then
13799 withval=$with_localedir; LOCALEDIR="$withval"
13800 else
13801 LOCALEDIR='${prefix}/share/locale'
13802 fi
13803
13804 fi
13805
13806 ################################################################################
13807
13808 # Check whether --with-confdir was given.
13809 if test "${with_confdir+set}" = set; then
13810 withval=$with_confdir; CONFDIR="$withval"
13811 else
13812 CONFDIR='/etc'
13813 fi
13814
13815
13816
13817 # Check whether --with-staticdir was given.
13818 if test "${with_staticdir+set}" = set; then
13819 withval=$with_staticdir; STATICDIR="$withval"
13820 else
13821 STATICDIR='${exec_prefix}/sbin'
13822 fi
13823
13824
13825
13826 # Check whether --with-usrlibdir was given.
13827 if test "${with_usrlibdir+set}" = set; then
13828 withval=$with_usrlibdir; usrlibdir="$withval"
13829 else
13830 usrlibdir='${prefix}/lib'
13831 fi
13832
13833
13834
13835 # Check whether --with-usrsbindir was given.
13836 if test "${with_usrsbindir+set}" = set; then
13837 withval=$with_usrsbindir; usrsbindir="$withval"
13838 else
13839 usrsbindir='${prefix}/sbin'
13840 fi
13841
13842
13843 ################################################################################
13844
13845 # Check whether --with-udev_prefix was given.
13846 if test "${with_udev_prefix+set}" = set; then
13847 withval=$with_udev_prefix; udev_prefix="$withval"
13848 else
13849 udev_prefix='${exec_prefix}'
13850 fi
13851
13852
13853
13854 # Check whether --with-udevdir was given.
13855 if test "${with_udevdir+set}" = set; then
13856 withval=$with_udevdir; udevdir="$withval"
13857 else
13858 udevdir='${udev_prefix}/lib/udev/rules.d'
13859 fi
13860
13861
13862 ################################################################################
13863 if test x$READLINE = xyes; then
13864
13865
13866 for ac_header in readline/readline.h readline/history.h
13867 do
13868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13871 $as_echo_n "checking for $ac_header... " >&6; }
13872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13873 $as_echo_n "(cached) " >&6
13874 fi
13875 ac_res=`eval 'as_val=${'$as_ac_Header'}
13876 $as_echo "$as_val"'`
13877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13878 $as_echo "$ac_res" >&6; }
13879 else
13880 # Is the header compilable?
13881 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13882 $as_echo_n "checking $ac_header usability... " >&6; }
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 $ac_includes_default
13890 #include <$ac_header>
13891 _ACEOF
13892 rm -f conftest.$ac_objext
13893 if { (ac_try="$ac_compile"
13894 case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897 esac
13898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13899 $as_echo "$ac_try_echo") >&5
13900 (eval "$ac_compile") 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest.$ac_objext; then
13910 ac_header_compiler=yes
13911 else
13912 $as_echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ac_header_compiler=no
13916 fi
13917
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13920 $as_echo "$ac_header_compiler" >&6; }
13921
13922 # Is the header present?
13923 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13924 $as_echo_n "checking $ac_header presence... " >&6; }
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 #include <$ac_header>
13932 _ACEOF
13933 if { (ac_try="$ac_cpp conftest.$ac_ext"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13937 esac
13938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13939 $as_echo "$ac_try_echo") >&5
13940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } >/dev/null && {
13947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 }; then
13950 ac_header_preproc=yes
13951 else
13952 $as_echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_header_preproc=no
13956 fi
13957
13958 rm -f conftest.err conftest.$ac_ext
13959 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13960 $as_echo "$ac_header_preproc" >&6; }
13961
13962 # So? What about this header?
13963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13964 yes:no: )
13965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13966 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13969 ac_header_preproc=yes
13970 ;;
13971 no:yes:* )
13972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13973 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13975 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13977 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13979 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13981 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13983 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13984
13985 ;;
13986 esac
13987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13988 $as_echo_n "checking for $ac_header... " >&6; }
13989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13990 $as_echo_n "(cached) " >&6
13991 else
13992 eval "$as_ac_Header=\$ac_header_preproc"
13993 fi
13994 ac_res=`eval 'as_val=${'$as_ac_Header'}
13995 $as_echo "$as_val"'`
13996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13997 $as_echo "$ac_res" >&6; }
13998
13999 fi
14000 as_val=`eval 'as_val=${'$as_ac_Header'}
14001 $as_echo "$as_val"'`
14002 if test "x$as_val" = x""yes; then
14003 cat >>confdefs.h <<_ACEOF
14004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14005 _ACEOF
14006
14007 else
14008 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14009 $as_echo "$as_me: error: bailing out" >&2;}
14010 { (exit 1); exit 1; }; }
14011 fi
14012
14013 done
14014
14015 fi
14016
14017 if test x$CLVMD != xnone; then
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028 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
14029 do
14030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14032 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14033 $as_echo_n "checking for $ac_header... " >&6; }
14034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14035 $as_echo_n "(cached) " >&6
14036 fi
14037 ac_res=`eval 'as_val=${'$as_ac_Header'}
14038 $as_echo "$as_val"'`
14039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14040 $as_echo "$ac_res" >&6; }
14041 else
14042 # Is the header compilable?
14043 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14044 $as_echo_n "checking $ac_header usability... " >&6; }
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14052 #include <$ac_header>
14053 _ACEOF
14054 rm -f conftest.$ac_objext
14055 if { (ac_try="$ac_compile"
14056 case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059 esac
14060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14061 $as_echo "$ac_try_echo") >&5
14062 (eval "$ac_compile") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest.$ac_objext; then
14072 ac_header_compiler=yes
14073 else
14074 $as_echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 ac_header_compiler=no
14078 fi
14079
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082 $as_echo "$ac_header_compiler" >&6; }
14083
14084 # Is the header present?
14085 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14086 $as_echo_n "checking $ac_header presence... " >&6; }
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h. */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <$ac_header>
14094 _ACEOF
14095 if { (ac_try="$ac_cpp conftest.$ac_ext"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14101 $as_echo "$ac_try_echo") >&5
14102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } >/dev/null && {
14109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 }; then
14112 ac_header_preproc=yes
14113 else
14114 $as_echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 ac_header_preproc=no
14118 fi
14119
14120 rm -f conftest.err conftest.$ac_ext
14121 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14122 $as_echo "$ac_header_preproc" >&6; }
14123
14124 # So? What about this header?
14125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14126 yes:no: )
14127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14128 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14130 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14131 ac_header_preproc=yes
14132 ;;
14133 no:yes:* )
14134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14135 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14137 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14139 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14141 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14143 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14145 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14146
14147 ;;
14148 esac
14149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14150 $as_echo_n "checking for $ac_header... " >&6; }
14151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14152 $as_echo_n "(cached) " >&6
14153 else
14154 eval "$as_ac_Header=\$ac_header_preproc"
14155 fi
14156 ac_res=`eval 'as_val=${'$as_ac_Header'}
14157 $as_echo "$as_val"'`
14158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14159 $as_echo "$ac_res" >&6; }
14160
14161 fi
14162 as_val=`eval 'as_val=${'$as_ac_Header'}
14163 $as_echo "$as_val"'`
14164 if test "x$as_val" = x""yes; then
14165 cat >>confdefs.h <<_ACEOF
14166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14167 _ACEOF
14168
14169 else
14170 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14171 $as_echo "$as_me: error: bailing out" >&2;}
14172 { (exit 1); exit 1; }; }
14173 fi
14174
14175 done
14176
14177
14178
14179
14180
14181
14182 for ac_func in dup2 getmntent memmove select socket
14183 do
14184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14185 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14186 $as_echo_n "checking for $ac_func... " >&6; }
14187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14188 $as_echo_n "(cached) " >&6
14189 else
14190 cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h. */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14198 #define $ac_func innocuous_$ac_func
14199
14200 /* System header to define __stub macros and hopefully few prototypes,
14201 which can conflict with char $ac_func (); below.
14202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14203 <limits.h> exists even on freestanding compilers. */
14204
14205 #ifdef __STDC__
14206 # include <limits.h>
14207 #else
14208 # include <assert.h>
14209 #endif
14210
14211 #undef $ac_func
14212
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14216 #ifdef __cplusplus
14217 extern "C"
14218 #endif
14219 char $ac_func ();
14220 /* The GNU C library defines this for functions which it implements
14221 to always fail with ENOSYS. Some functions are actually named
14222 something starting with __ and the normal name is an alias. */
14223 #if defined __stub_$ac_func || defined __stub___$ac_func
14224 choke me
14225 #endif
14226
14227 int
14228 main ()
14229 {
14230 return $ac_func ();
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (ac_try="$ac_link"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14240 esac
14241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14242 $as_echo "$ac_try_echo") >&5
14243 (eval "$ac_link") 2>conftest.er1
14244 ac_status=$?
14245 grep -v '^ *+' conftest.er1 >conftest.err
14246 rm -f conftest.er1
14247 cat conftest.err >&5
14248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } && {
14250 test -z "$ac_c_werror_flag" ||
14251 test ! -s conftest.err
14252 } && test -s conftest$ac_exeext && {
14253 test "$cross_compiling" = yes ||
14254 $as_test_x conftest$ac_exeext
14255 }; then
14256 eval "$as_ac_var=yes"
14257 else
14258 $as_echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 eval "$as_ac_var=no"
14262 fi
14263
14264 rm -rf conftest.dSYM
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 fi
14268 ac_res=`eval 'as_val=${'$as_ac_var'}
14269 $as_echo "$as_val"'`
14270 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14271 $as_echo "$ac_res" >&6; }
14272 as_val=`eval 'as_val=${'$as_ac_var'}
14273 $as_echo "$as_val"'`
14274 if test "x$as_val" = x""yes; then
14275 cat >>confdefs.h <<_ACEOF
14276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14277 _ACEOF
14278
14279 else
14280 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14281 $as_echo "$as_me: error: bailing out" >&2;}
14282 { (exit 1); exit 1; }; }
14283 fi
14284 done
14285
14286 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14287 # -lseq on Dynix/PTX, -lgen on Unixware.
14288 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14289 $as_echo_n "checking for library containing getmntent... " >&6; }
14290 if test "${ac_cv_search_getmntent+set}" = set; then
14291 $as_echo_n "(cached) " >&6
14292 else
14293 ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char getmntent ();
14308 int
14309 main ()
14310 {
14311 return getmntent ();
14312 ;
14313 return 0;
14314 }
14315 _ACEOF
14316 for ac_lib in '' sun seq gen; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14319 else
14320 ac_res=-l$ac_lib
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14322 fi
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14328 esac
14329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330 $as_echo "$ac_try_echo") >&5
14331 (eval "$ac_link") 2>conftest.er1
14332 ac_status=$?
14333 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1
14335 cat conftest.err >&5
14336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && {
14338 test -z "$ac_c_werror_flag" ||
14339 test ! -s conftest.err
14340 } && test -s conftest$ac_exeext && {
14341 test "$cross_compiling" = yes ||
14342 $as_test_x conftest$ac_exeext
14343 }; then
14344 ac_cv_search_getmntent=$ac_res
14345 else
14346 $as_echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349
14350 fi
14351
14352 rm -rf conftest.dSYM
14353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14354 conftest$ac_exeext
14355 if test "${ac_cv_search_getmntent+set}" = set; then
14356 break
14357 fi
14358 done
14359 if test "${ac_cv_search_getmntent+set}" = set; then
14360 :
14361 else
14362 ac_cv_search_getmntent=no
14363 fi
14364 rm conftest.$ac_ext
14365 LIBS=$ac_func_search_save_LIBS
14366 fi
14367 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14368 $as_echo "$ac_cv_search_getmntent" >&6; }
14369 ac_res=$ac_cv_search_getmntent
14370 if test "$ac_res" != no; then
14371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14372 ac_cv_func_getmntent=yes
14373
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_GETMNTENT 1
14376 _ACEOF
14377
14378 else
14379 ac_cv_func_getmntent=no
14380 fi
14381
14382
14383 # AC_FUNC_REALLOC
14384
14385
14386 for ac_header in sys/select.h sys/socket.h
14387 do
14388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14391 $as_echo_n "checking for $ac_header... " >&6; }
14392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14393 $as_echo_n "(cached) " >&6
14394 fi
14395 ac_res=`eval 'as_val=${'$as_ac_Header'}
14396 $as_echo "$as_val"'`
14397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14398 $as_echo "$ac_res" >&6; }
14399 else
14400 # Is the header compilable?
14401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14402 $as_echo_n "checking $ac_header usability... " >&6; }
14403 cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h. */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 #include <$ac_header>
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (ac_try="$ac_compile"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417 esac
14418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14419 $as_echo "$ac_try_echo") >&5
14420 (eval "$ac_compile") 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } && {
14427 test -z "$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14429 } && test -s conftest.$ac_objext; then
14430 ac_header_compiler=yes
14431 else
14432 $as_echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 ac_header_compiler=no
14436 fi
14437
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14440 $as_echo "$ac_header_compiler" >&6; }
14441
14442 # Is the header present?
14443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14444 $as_echo_n "checking $ac_header presence... " >&6; }
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 #include <$ac_header>
14452 _ACEOF
14453 if { (ac_try="$ac_cpp conftest.$ac_ext"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457 esac
14458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459 $as_echo "$ac_try_echo") >&5
14460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } >/dev/null && {
14467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 }; then
14470 ac_header_preproc=yes
14471 else
14472 $as_echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_header_preproc=no
14476 fi
14477
14478 rm -f conftest.err conftest.$ac_ext
14479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480 $as_echo "$ac_header_preproc" >&6; }
14481
14482 # So? What about this header?
14483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14484 yes:no: )
14485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14489 ac_header_preproc=yes
14490 ;;
14491 no:yes:* )
14492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14495 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14499 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14504
14505 ;;
14506 esac
14507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14508 $as_echo_n "checking for $ac_header... " >&6; }
14509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14510 $as_echo_n "(cached) " >&6
14511 else
14512 eval "$as_ac_Header=\$ac_header_preproc"
14513 fi
14514 ac_res=`eval 'as_val=${'$as_ac_Header'}
14515 $as_echo "$as_val"'`
14516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14517 $as_echo "$ac_res" >&6; }
14518
14519 fi
14520 as_val=`eval 'as_val=${'$as_ac_Header'}
14521 $as_echo "$as_val"'`
14522 if test "x$as_val" = x""yes; then
14523 cat >>confdefs.h <<_ACEOF
14524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14525 _ACEOF
14526
14527 fi
14528
14529 done
14530
14531 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14532 $as_echo_n "checking types of arguments for select... " >&6; }
14533 if test "${ac_cv_func_select_args+set}" = set; then
14534 $as_echo_n "(cached) " >&6
14535 else
14536 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14537 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14538 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 $ac_includes_default
14546 #ifdef HAVE_SYS_SELECT_H
14547 # include <sys/select.h>
14548 #endif
14549 #ifdef HAVE_SYS_SOCKET_H
14550 # include <sys/socket.h>
14551 #endif
14552
14553 int
14554 main ()
14555 {
14556 extern int select ($ac_arg1,
14557 $ac_arg234, $ac_arg234, $ac_arg234,
14558 $ac_arg5);
14559 ;
14560 return 0;
14561 }
14562 _ACEOF
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14568 esac
14569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14570 $as_echo "$ac_try_echo") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14582 else
14583 $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586
14587 fi
14588
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 done
14591 done
14592 done
14593 # Provide a safe default value.
14594 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14595
14596 fi
14597 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14598 $as_echo "$ac_cv_func_select_args" >&6; }
14599 ac_save_IFS=$IFS; IFS=','
14600 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14601 IFS=$ac_save_IFS
14602 shift
14603
14604 cat >>confdefs.h <<_ACEOF
14605 #define SELECT_TYPE_ARG1 $1
14606 _ACEOF
14607
14608
14609 cat >>confdefs.h <<_ACEOF
14610 #define SELECT_TYPE_ARG234 ($2)
14611 _ACEOF
14612
14613
14614 cat >>confdefs.h <<_ACEOF
14615 #define SELECT_TYPE_ARG5 ($3)
14616 _ACEOF
14617
14618 rm -f conftest*
14619
14620 fi
14621
14622 if test x$CLUSTER != xnone; then
14623
14624
14625 for ac_header in sys/socket.h sys/un.h
14626 do
14627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14630 $as_echo_n "checking for $ac_header... " >&6; }
14631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14632 $as_echo_n "(cached) " >&6
14633 fi
14634 ac_res=`eval 'as_val=${'$as_ac_Header'}
14635 $as_echo "$as_val"'`
14636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14637 $as_echo "$ac_res" >&6; }
14638 else
14639 # Is the header compilable?
14640 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14641 $as_echo_n "checking $ac_header usability... " >&6; }
14642 cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h. */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14648 $ac_includes_default
14649 #include <$ac_header>
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (ac_try="$ac_compile"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656 esac
14657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14658 $as_echo "$ac_try_echo") >&5
14659 (eval "$ac_compile") 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } && {
14666 test -z "$ac_c_werror_flag" ||
14667 test ! -s conftest.err
14668 } && test -s conftest.$ac_objext; then
14669 ac_header_compiler=yes
14670 else
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 ac_header_compiler=no
14675 fi
14676
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679 $as_echo "$ac_header_compiler" >&6; }
14680
14681 # Is the header present?
14682 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14683 $as_echo_n "checking $ac_header presence... " >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 #include <$ac_header>
14691 _ACEOF
14692 if { (ac_try="$ac_cpp conftest.$ac_ext"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696 esac
14697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14698 $as_echo "$ac_try_echo") >&5
14699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } >/dev/null && {
14706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 }; then
14709 ac_header_preproc=yes
14710 else
14711 $as_echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14713
14714 ac_header_preproc=no
14715 fi
14716
14717 rm -f conftest.err conftest.$ac_ext
14718 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14719 $as_echo "$ac_header_preproc" >&6; }
14720
14721 # So? What about this header?
14722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14723 yes:no: )
14724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14725 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14727 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14728 ac_header_preproc=yes
14729 ;;
14730 no:yes:* )
14731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14732 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14734 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14736 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14738 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14740 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14742 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14743
14744 ;;
14745 esac
14746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 $as_echo_n "checking for $ac_header... " >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749 $as_echo_n "(cached) " >&6
14750 else
14751 eval "$as_ac_Header=\$ac_header_preproc"
14752 fi
14753 ac_res=`eval 'as_val=${'$as_ac_Header'}
14754 $as_echo "$as_val"'`
14755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14756 $as_echo "$ac_res" >&6; }
14757
14758 fi
14759 as_val=`eval 'as_val=${'$as_ac_Header'}
14760 $as_echo "$as_val"'`
14761 if test "x$as_val" = x""yes; then
14762 cat >>confdefs.h <<_ACEOF
14763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14764 _ACEOF
14765
14766 else
14767 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14768 $as_echo "$as_me: error: bailing out" >&2;}
14769 { (exit 1); exit 1; }; }
14770 fi
14771
14772 done
14773
14774
14775 for ac_func in socket
14776 do
14777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14778 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14779 $as_echo_n "checking for $ac_func... " >&6; }
14780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14781 $as_echo_n "(cached) " >&6
14782 else
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14791 #define $ac_func innocuous_$ac_func
14792
14793 /* System header to define __stub macros and hopefully few prototypes,
14794 which can conflict with char $ac_func (); below.
14795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14796 <limits.h> exists even on freestanding compilers. */
14797
14798 #ifdef __STDC__
14799 # include <limits.h>
14800 #else
14801 # include <assert.h>
14802 #endif
14803
14804 #undef $ac_func
14805
14806 /* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809 #ifdef __cplusplus
14810 extern "C"
14811 #endif
14812 char $ac_func ();
14813 /* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816 #if defined __stub_$ac_func || defined __stub___$ac_func
14817 choke me
14818 #endif
14819
14820 int
14821 main ()
14822 {
14823 return $ac_func ();
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (ac_try="$ac_link"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14833 esac
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836 (eval "$ac_link") 2>conftest.er1
14837 ac_status=$?
14838 grep -v '^ *+' conftest.er1 >conftest.err
14839 rm -f conftest.er1
14840 cat conftest.err >&5
14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext && {
14846 test "$cross_compiling" = yes ||
14847 $as_test_x conftest$ac_exeext
14848 }; then
14849 eval "$as_ac_var=yes"
14850 else
14851 $as_echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 eval "$as_ac_var=no"
14855 fi
14856
14857 rm -rf conftest.dSYM
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 fi
14861 ac_res=`eval 'as_val=${'$as_ac_var'}
14862 $as_echo "$as_val"'`
14863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14864 $as_echo "$ac_res" >&6; }
14865 as_val=`eval 'as_val=${'$as_ac_var'}
14866 $as_echo "$as_val"'`
14867 if test "x$as_val" = x""yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14870 _ACEOF
14871
14872 else
14873 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14874 $as_echo "$as_me: error: bailing out" >&2;}
14875 { (exit 1); exit 1; }; }
14876 fi
14877 done
14878
14879 fi
14880
14881 if test x$HAVE_LIBDL = xyes; then
14882
14883 for ac_header in dlfcn.h
14884 do
14885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14888 $as_echo_n "checking for $ac_header... " >&6; }
14889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14890 $as_echo_n "(cached) " >&6
14891 fi
14892 ac_res=`eval 'as_val=${'$as_ac_Header'}
14893 $as_echo "$as_val"'`
14894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14895 $as_echo "$ac_res" >&6; }
14896 else
14897 # Is the header compilable?
14898 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14899 $as_echo_n "checking $ac_header usability... " >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 $ac_includes_default
14907 #include <$ac_header>
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14916 $as_echo "$ac_try_echo") >&5
14917 (eval "$ac_compile") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest.$ac_objext; then
14927 ac_header_compiler=yes
14928 else
14929 $as_echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_header_compiler=no
14933 fi
14934
14935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14937 $as_echo "$ac_header_compiler" >&6; }
14938
14939 # Is the header present?
14940 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14941 $as_echo_n "checking $ac_header presence... " >&6; }
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 #include <$ac_header>
14949 _ACEOF
14950 if { (ac_try="$ac_cpp conftest.$ac_ext"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954 esac
14955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14956 $as_echo "$ac_try_echo") >&5
14957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } >/dev/null && {
14964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14965 test ! -s conftest.err
14966 }; then
14967 ac_header_preproc=yes
14968 else
14969 $as_echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972 ac_header_preproc=no
14973 fi
14974
14975 rm -f conftest.err conftest.$ac_ext
14976 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14977 $as_echo "$ac_header_preproc" >&6; }
14978
14979 # So? What about this header?
14980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14981 yes:no: )
14982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14983 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14985 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14986 ac_header_preproc=yes
14987 ;;
14988 no:yes:* )
14989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14990 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14992 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14994 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14996 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15000 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15001
15002 ;;
15003 esac
15004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15005 $as_echo_n "checking for $ac_header... " >&6; }
15006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15007 $as_echo_n "(cached) " >&6
15008 else
15009 eval "$as_ac_Header=\$ac_header_preproc"
15010 fi
15011 ac_res=`eval 'as_val=${'$as_ac_Header'}
15012 $as_echo "$as_val"'`
15013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15014 $as_echo "$ac_res" >&6; }
15015
15016 fi
15017 as_val=`eval 'as_val=${'$as_ac_Header'}
15018 $as_echo "$as_val"'`
15019 if test "x$as_val" = x""yes; then
15020 cat >>confdefs.h <<_ACEOF
15021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15022 _ACEOF
15023
15024 else
15025 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15026 $as_echo "$as_me: error: bailing out" >&2;}
15027 { (exit 1); exit 1; }; }
15028 fi
15029
15030 done
15031
15032 fi
15033
15034 if test x$INTL = xyes; then
15035
15036 for ac_header in libintl.h
15037 do
15038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15041 $as_echo_n "checking for $ac_header... " >&6; }
15042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15043 $as_echo_n "(cached) " >&6
15044 fi
15045 ac_res=`eval 'as_val=${'$as_ac_Header'}
15046 $as_echo "$as_val"'`
15047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15048 $as_echo "$ac_res" >&6; }
15049 else
15050 # Is the header compilable?
15051 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15052 $as_echo_n "checking $ac_header usability... " >&6; }
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h. */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 $ac_includes_default
15060 #include <$ac_header>
15061 _ACEOF
15062 rm -f conftest.$ac_objext
15063 if { (ac_try="$ac_compile"
15064 case "(($ac_try" in
15065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15067 esac
15068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15069 $as_echo "$ac_try_echo") >&5
15070 (eval "$ac_compile") 2>conftest.er1
15071 ac_status=$?
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
15075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest.$ac_objext; then
15080 ac_header_compiler=yes
15081 else
15082 $as_echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085 ac_header_compiler=no
15086 fi
15087
15088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15090 $as_echo "$ac_header_compiler" >&6; }
15091
15092 # Is the header present?
15093 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15094 $as_echo_n "checking $ac_header presence... " >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h. */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101 #include <$ac_header>
15102 _ACEOF
15103 if { (ac_try="$ac_cpp conftest.$ac_ext"
15104 case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107 esac
15108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15109 $as_echo "$ac_try_echo") >&5
15110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } >/dev/null && {
15117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15118 test ! -s conftest.err
15119 }; then
15120 ac_header_preproc=yes
15121 else
15122 $as_echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 ac_header_preproc=no
15126 fi
15127
15128 rm -f conftest.err conftest.$ac_ext
15129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15130 $as_echo "$ac_header_preproc" >&6; }
15131
15132 # So? What about this header?
15133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15134 yes:no: )
15135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15136 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15138 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15139 ac_header_preproc=yes
15140 ;;
15141 no:yes:* )
15142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15143 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15145 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15147 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15149 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15153 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15154
15155 ;;
15156 esac
15157 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15158 $as_echo_n "checking for $ac_header... " >&6; }
15159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15160 $as_echo_n "(cached) " >&6
15161 else
15162 eval "$as_ac_Header=\$ac_header_preproc"
15163 fi
15164 ac_res=`eval 'as_val=${'$as_ac_Header'}
15165 $as_echo "$as_val"'`
15166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15167 $as_echo "$ac_res" >&6; }
15168
15169 fi
15170 as_val=`eval 'as_val=${'$as_ac_Header'}
15171 $as_echo "$as_val"'`
15172 if test "x$as_val" = x""yes; then
15173 cat >>confdefs.h <<_ACEOF
15174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15175 _ACEOF
15176
15177 else
15178 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15179 $as_echo "$as_me: error: bailing out" >&2;}
15180 { (exit 1); exit 1; }; }
15181 fi
15182
15183 done
15184
15185 fi
15186
15187 if test x$UDEV_SYNC = xyes; then
15188
15189
15190 for ac_header in sys/ipc.h sys/sem.h
15191 do
15192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15195 $as_echo_n "checking for $ac_header... " >&6; }
15196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 $as_echo_n "(cached) " >&6
15198 fi
15199 ac_res=`eval 'as_val=${'$as_ac_Header'}
15200 $as_echo "$as_val"'`
15201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15202 $as_echo "$ac_res" >&6; }
15203 else
15204 # Is the header compilable?
15205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15206 $as_echo_n "checking $ac_header usability... " >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15208 /* confdefs.h. */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <$ac_header>
15215 _ACEOF
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15223 $as_echo "$ac_try_echo") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest.$ac_objext; then
15234 ac_header_compiler=yes
15235 else
15236 $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_header_compiler=no
15240 fi
15241
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15244 $as_echo "$ac_header_compiler" >&6; }
15245
15246 # Is the header present?
15247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15248 $as_echo_n "checking $ac_header presence... " >&6; }
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 #include <$ac_header>
15256 _ACEOF
15257 if { (ac_try="$ac_cpp conftest.$ac_ext"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261 esac
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null && {
15271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 }; then
15274 ac_header_preproc=yes
15275 else
15276 $as_echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_header_preproc=no
15280 fi
15281
15282 rm -f conftest.err conftest.$ac_ext
15283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15284 $as_echo "$ac_header_preproc" >&6; }
15285
15286 # So? What about this header?
15287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15288 yes:no: )
15289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15293 ac_header_preproc=yes
15294 ;;
15295 no:yes:* )
15296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15308
15309 ;;
15310 esac
15311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15312 $as_echo_n "checking for $ac_header... " >&6; }
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 $as_echo_n "(cached) " >&6
15315 else
15316 eval "$as_ac_Header=\$ac_header_preproc"
15317 fi
15318 ac_res=`eval 'as_val=${'$as_ac_Header'}
15319 $as_echo "$as_val"'`
15320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15321 $as_echo "$ac_res" >&6; }
15322
15323 fi
15324 as_val=`eval 'as_val=${'$as_ac_Header'}
15325 $as_echo "$as_val"'`
15326 if test "x$as_val" = x""yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15329 _ACEOF
15330
15331 else
15332 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15333 $as_echo "$as_me: error: bailing out" >&2;}
15334 { (exit 1); exit 1; }; }
15335 fi
15336
15337 done
15338
15339 fi
15340
15341 ################################################################################
15342 # Extract the first word of "modprobe", so it can be a program name with args.
15343 set dummy modprobe; ac_word=$2
15344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15345 $as_echo_n "checking for $ac_word... " >&6; }
15346 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15347 $as_echo_n "(cached) " >&6
15348 else
15349 case $MODPROBE_CMD in
15350 [\\/]* | ?:[\\/]*)
15351 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15352 ;;
15353 *)
15354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15355 for as_dir in $PATH
15356 do
15357 IFS=$as_save_IFS
15358 test -z "$as_dir" && as_dir=.
15359 for ac_exec_ext in '' $ac_executable_extensions; do
15360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15361 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15363 break 2
15364 fi
15365 done
15366 done
15367 IFS=$as_save_IFS
15368
15369 ;;
15370 esac
15371 fi
15372 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15373 if test -n "$MODPROBE_CMD"; then
15374 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15375 $as_echo "$MODPROBE_CMD" >&6; }
15376 else
15377 { $as_echo "$as_me:$LINENO: result: no" >&5
15378 $as_echo "no" >&6; }
15379 fi
15380
15381
15382
15383 if test x$MODPROBE_CMD != x; then
15384
15385 cat >>confdefs.h <<_ACEOF
15386 #define MODPROBE_CMD "$MODPROBE_CMD"
15387 _ACEOF
15388
15389 fi
15390
15391 ################################################################################
15392
15393
15394 if test "$BUILD_DMEVENTD" = yes; then
15395
15396 # Check whether --with-dmeventd-pidfile was given.
15397 if test "${with_dmeventd_pidfile+set}" = set; then
15398 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
15399 #define DMEVENTD_PIDFILE "$withval"
15400 _ACEOF
15401
15402 else
15403 cat >>confdefs.h <<_ACEOF
15404 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15405 _ACEOF
15406
15407 fi
15408
15409 fi
15410
15411
15412
15413 if test "$BUILD_DMEVENTD" = yes; then
15414 dmeventd_prefix="$exec_prefix"
15415 if test "x$dmeventd_prefix" = "xNONE"; then
15416 dmeventd_prefix="$prefix"
15417 fi
15418 if test "x$dmeventd_prefix" = "xNONE"; then
15419 dmeventd_prefix=""
15420 fi
15421
15422 # Check whether --with-dmeventd-path was given.
15423 if test "${with_dmeventd_path+set}" = set; then
15424 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
15425 #define DMEVENTD_PATH "$withval"
15426 _ACEOF
15427
15428 else
15429 cat >>confdefs.h <<_ACEOF
15430 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15431 _ACEOF
15432
15433 fi
15434
15435 fi
15436
15437 ################################################################################
15438 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15439 $as_echo_n "checking for kernel interface choice... " >&6; }
15440
15441 # Check whether --with-interface was given.
15442 if test "${with_interface+set}" = set; then
15443 withval=$with_interface; interface="$withval"
15444 else
15445 interface=ioctl
15446 fi
15447
15448 if [ "x$interface" != xioctl ];
15449 then
15450 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15451 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15452 { (exit 1); exit 1; }; }
15453 fi
15454 { $as_echo "$as_me:$LINENO: result: $interface" >&5
15455 $as_echo "$interface" >&6; }
15456
15457 ################################################################################
15458 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15459
15460 cat >>confdefs.h <<_ACEOF
15461 #define DM_LIB_VERSION $DM_LIB_VERSION
15462 _ACEOF
15463
15464
15465 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15466
15467 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15468
15469 VER=`cat "$srcdir"/VERSION`
15470 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15471 VER=`echo "$VER" | $AWK '{print $1}'`
15472 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15473 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15474 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15475 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15476 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15477 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15478
15479 ################################################################################
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567 ################################################################################
15568 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 include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15569
15570 cat >confcache <<\_ACEOF
15571 # This file is a shell script that caches the results of configure
15572 # tests run on this system so they can be shared between configure
15573 # scripts and configure runs, see configure's option --config-cache.
15574 # It is not useful on other systems. If it contains results you don't
15575 # want to keep, you may remove or edit it.
15576 #
15577 # config.status only pays attention to the cache file if you give it
15578 # the --recheck option to rerun configure.
15579 #
15580 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15582 # following values.
15583
15584 _ACEOF
15585
15586 # The following way of writing the cache mishandles newlines in values,
15587 # but we know of no workaround that is simple, portable, and efficient.
15588 # So, we kill variables containing newlines.
15589 # Ultrix sh set writes to stderr and can't be redirected directly,
15590 # and sets the high bit in the cache file unless we assign to the vars.
15591 (
15592 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15593 eval ac_val=\$$ac_var
15594 case $ac_val in #(
15595 *${as_nl}*)
15596 case $ac_var in #(
15597 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15598 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15599 esac
15600 case $ac_var in #(
15601 _ | IFS | as_nl) ;; #(
15602 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15603 *) $as_unset $ac_var ;;
15604 esac ;;
15605 esac
15606 done
15607
15608 (set) 2>&1 |
15609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15610 *${as_nl}ac_space=\ *)
15611 # `set' does not quote correctly, so add quotes (double-quote
15612 # substitution turns \\\\ into \\, and sed turns \\ into \).
15613 sed -n \
15614 "s/'/'\\\\''/g;
15615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15616 ;; #(
15617 *)
15618 # `set' quotes correctly as required by POSIX, so do not add quotes.
15619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15620 ;;
15621 esac |
15622 sort
15623 ) |
15624 sed '
15625 /^ac_cv_env_/b end
15626 t clear
15627 :clear
15628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15629 t end
15630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15631 :end' >>confcache
15632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15633 if test -w "$cache_file"; then
15634 test "x$cache_file" != "x/dev/null" &&
15635 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15636 $as_echo "$as_me: updating cache $cache_file" >&6;}
15637 cat confcache >$cache_file
15638 else
15639 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15640 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15641 fi
15642 fi
15643 rm -f confcache
15644
15645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15646 # Let make expand exec_prefix.
15647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15648
15649 DEFS=-DHAVE_CONFIG_H
15650
15651 ac_libobjs=
15652 ac_ltlibobjs=
15653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15654 # 1. Remove the extension, and $U if already installed.
15655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15656 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15658 # will be set to the directory where LIBOBJS objects are built.
15659 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15660 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15661 done
15662 LIBOBJS=$ac_libobjs
15663
15664 LTLIBOBJS=$ac_ltlibobjs
15665
15666
15667
15668 : ${CONFIG_STATUS=./config.status}
15669 ac_write_fail=0
15670 ac_clean_files_save=$ac_clean_files
15671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15672 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15673 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15674 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 #! $SHELL
15676 # Generated by $as_me.
15677 # Run this file to recreate the current configuration.
15678 # Compiler output produced by configure, useful for debugging
15679 # configure, is in config.log if it exists.
15680
15681 debug=false
15682 ac_cs_recheck=false
15683 ac_cs_silent=false
15684 SHELL=\${CONFIG_SHELL-$SHELL}
15685 _ACEOF
15686
15687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15688 ## --------------------- ##
15689 ## M4sh Initialization. ##
15690 ## --------------------- ##
15691
15692 # Be more Bourne compatible
15693 DUALCASE=1; export DUALCASE # for MKS sh
15694 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15695 emulate sh
15696 NULLCMD=:
15697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15698 # is contrary to our usage. Disable this feature.
15699 alias -g '${1+"$@"}'='"$@"'
15700 setopt NO_GLOB_SUBST
15701 else
15702 case `(set -o) 2>/dev/null` in
15703 *posix*) set -o posix ;;
15704 esac
15705
15706 fi
15707
15708
15709
15710
15711 # PATH needs CR
15712 # Avoid depending upon Character Ranges.
15713 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15714 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15715 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15716 as_cr_digits='0123456789'
15717 as_cr_alnum=$as_cr_Letters$as_cr_digits
15718
15719 as_nl='
15720 '
15721 export as_nl
15722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15726 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15727 as_echo='printf %s\n'
15728 as_echo_n='printf %s'
15729 else
15730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15732 as_echo_n='/usr/ucb/echo -n'
15733 else
15734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15735 as_echo_n_body='eval
15736 arg=$1;
15737 case $arg in
15738 *"$as_nl"*)
15739 expr "X$arg" : "X\\(.*\\)$as_nl";
15740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15741 esac;
15742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15743 '
15744 export as_echo_n_body
15745 as_echo_n='sh -c $as_echo_n_body as_echo'
15746 fi
15747 export as_echo_body
15748 as_echo='sh -c $as_echo_body as_echo'
15749 fi
15750
15751 # The user is always right.
15752 if test "${PATH_SEPARATOR+set}" != set; then
15753 PATH_SEPARATOR=:
15754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15756 PATH_SEPARATOR=';'
15757 }
15758 fi
15759
15760 # Support unset when possible.
15761 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15762 as_unset=unset
15763 else
15764 as_unset=false
15765 fi
15766
15767
15768 # IFS
15769 # We need space, tab and new line, in precisely that order. Quoting is
15770 # there to prevent editors from complaining about space-tab.
15771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15772 # splitting by setting IFS to empty value.)
15773 IFS=" "" $as_nl"
15774
15775 # Find who we are. Look in the path if we contain no directory separator.
15776 case $0 in
15777 *[\\/]* ) as_myself=$0 ;;
15778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 for as_dir in $PATH
15780 do
15781 IFS=$as_save_IFS
15782 test -z "$as_dir" && as_dir=.
15783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15784 done
15785 IFS=$as_save_IFS
15786
15787 ;;
15788 esac
15789 # We did not find ourselves, most probably we were run as `sh COMMAND'
15790 # in which case we are not to be found in the path.
15791 if test "x$as_myself" = x; then
15792 as_myself=$0
15793 fi
15794 if test ! -f "$as_myself"; then
15795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15796 { (exit 1); exit 1; }
15797 fi
15798
15799 # Work around bugs in pre-3.0 UWIN ksh.
15800 for as_var in ENV MAIL MAILPATH
15801 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15802 done
15803 PS1='$ '
15804 PS2='> '
15805 PS4='+ '
15806
15807 # NLS nuisances.
15808 LC_ALL=C
15809 export LC_ALL
15810 LANGUAGE=C
15811 export LANGUAGE
15812
15813 # Required to use basename.
15814 if expr a : '\(a\)' >/dev/null 2>&1 &&
15815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15816 as_expr=expr
15817 else
15818 as_expr=false
15819 fi
15820
15821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15822 as_basename=basename
15823 else
15824 as_basename=false
15825 fi
15826
15827
15828 # Name of the executable.
15829 as_me=`$as_basename -- "$0" ||
15830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15831 X"$0" : 'X\(//\)$' \| \
15832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15833 $as_echo X/"$0" |
15834 sed '/^.*\/\([^/][^/]*\)\/*$/{
15835 s//\1/
15836 q
15837 }
15838 /^X\/\(\/\/\)$/{
15839 s//\1/
15840 q
15841 }
15842 /^X\/\(\/\).*/{
15843 s//\1/
15844 q
15845 }
15846 s/.*/./; q'`
15847
15848 # CDPATH.
15849 $as_unset CDPATH
15850
15851
15852
15853 as_lineno_1=$LINENO
15854 as_lineno_2=$LINENO
15855 test "x$as_lineno_1" != "x$as_lineno_2" &&
15856 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15857
15858 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15859 # uniformly replaced by the line number. The first 'sed' inserts a
15860 # line-number line after each line using $LINENO; the second 'sed'
15861 # does the real work. The second script uses 'N' to pair each
15862 # line-number line with the line containing $LINENO, and appends
15863 # trailing '-' during substitution so that $LINENO is not a special
15864 # case at line end.
15865 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15866 # scripts with optimization help from Paolo Bonzini. Blame Lee
15867 # E. McMahon (1931-1989) for sed's syntax. :-)
15868 sed -n '
15869 p
15870 /[$]LINENO/=
15871 ' <$as_myself |
15872 sed '
15873 s/[$]LINENO.*/&-/
15874 t lineno
15875 b
15876 :lineno
15877 N
15878 :loop
15879 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15880 t loop
15881 s/-\n.*//
15882 ' >$as_me.lineno &&
15883 chmod +x "$as_me.lineno" ||
15884 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15885 { (exit 1); exit 1; }; }
15886
15887 # Don't try to exec as it changes $[0], causing all sort of problems
15888 # (the dirname of $[0] is not the place where we might find the
15889 # original and so on. Autoconf is especially sensitive to this).
15890 . "./$as_me.lineno"
15891 # Exit status is that of the last command.
15892 exit
15893 }
15894
15895
15896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15897 as_dirname=dirname
15898 else
15899 as_dirname=false
15900 fi
15901
15902 ECHO_C= ECHO_N= ECHO_T=
15903 case `echo -n x` in
15904 -n*)
15905 case `echo 'x\c'` in
15906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15907 *) ECHO_C='\c';;
15908 esac;;
15909 *)
15910 ECHO_N='-n';;
15911 esac
15912 if expr a : '\(a\)' >/dev/null 2>&1 &&
15913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15914 as_expr=expr
15915 else
15916 as_expr=false
15917 fi
15918
15919 rm -f conf$$ conf$$.exe conf$$.file
15920 if test -d conf$$.dir; then
15921 rm -f conf$$.dir/conf$$.file
15922 else
15923 rm -f conf$$.dir
15924 mkdir conf$$.dir 2>/dev/null
15925 fi
15926 if (echo >conf$$.file) 2>/dev/null; then
15927 if ln -s conf$$.file conf$$ 2>/dev/null; then
15928 as_ln_s='ln -s'
15929 # ... but there are two gotchas:
15930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15932 # In both cases, we have to default to `cp -p'.
15933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15934 as_ln_s='cp -p'
15935 elif ln conf$$.file conf$$ 2>/dev/null; then
15936 as_ln_s=ln
15937 else
15938 as_ln_s='cp -p'
15939 fi
15940 else
15941 as_ln_s='cp -p'
15942 fi
15943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15944 rmdir conf$$.dir 2>/dev/null
15945
15946 if mkdir -p . 2>/dev/null; then
15947 as_mkdir_p=:
15948 else
15949 test -d ./-p && rmdir ./-p
15950 as_mkdir_p=false
15951 fi
15952
15953 if test -x / >/dev/null 2>&1; then
15954 as_test_x='test -x'
15955 else
15956 if ls -dL / >/dev/null 2>&1; then
15957 as_ls_L_option=L
15958 else
15959 as_ls_L_option=
15960 fi
15961 as_test_x='
15962 eval sh -c '\''
15963 if test -d "$1"; then
15964 test -d "$1/.";
15965 else
15966 case $1 in
15967 -*)set "./$1";;
15968 esac;
15969 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15970 ???[sx]*):;;*)false;;esac;fi
15971 '\'' sh
15972 '
15973 fi
15974 as_executable_p=$as_test_x
15975
15976 # Sed expression to map a string onto a valid CPP name.
15977 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15978
15979 # Sed expression to map a string onto a valid variable name.
15980 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15981
15982
15983 exec 6>&1
15984
15985 # Save the log message, to keep $[0] and so on meaningful, and to
15986 # report actual input values of CONFIG_FILES etc. instead of their
15987 # values after options handling.
15988 ac_log="
15989 This file was extended by $as_me, which was
15990 generated by GNU Autoconf 2.63. Invocation command line was
15991
15992 CONFIG_FILES = $CONFIG_FILES
15993 CONFIG_HEADERS = $CONFIG_HEADERS
15994 CONFIG_LINKS = $CONFIG_LINKS
15995 CONFIG_COMMANDS = $CONFIG_COMMANDS
15996 $ $0 $@
15997
15998 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15999 "
16000
16001 _ACEOF
16002
16003 case $ac_config_files in *"
16004 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16005 esac
16006
16007 case $ac_config_headers in *"
16008 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16009 esac
16010
16011
16012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16013 # Files that config.status was made for.
16014 config_files="$ac_config_files"
16015 config_headers="$ac_config_headers"
16016
16017 _ACEOF
16018
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 ac_cs_usage="\
16021 \`$as_me' instantiates files from templates according to the
16022 current configuration.
16023
16024 Usage: $0 [OPTION]... [FILE]...
16025
16026 -h, --help print this help, then exit
16027 -V, --version print version number and configuration settings, then exit
16028 -q, --quiet, --silent
16029 do not print progress messages
16030 -d, --debug don't remove temporary files
16031 --recheck update $as_me by reconfiguring in the same conditions
16032 --file=FILE[:TEMPLATE]
16033 instantiate the configuration file FILE
16034 --header=FILE[:TEMPLATE]
16035 instantiate the configuration header FILE
16036
16037 Configuration files:
16038 $config_files
16039
16040 Configuration headers:
16041 $config_headers
16042
16043 Report bugs to <bug-autoconf@gnu.org>."
16044
16045 _ACEOF
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 ac_cs_version="\\
16048 config.status
16049 configured by $0, generated by GNU Autoconf 2.63,
16050 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16051
16052 Copyright (C) 2008 Free Software Foundation, Inc.
16053 This config.status script is free software; the Free Software Foundation
16054 gives unlimited permission to copy, distribute and modify it."
16055
16056 ac_pwd='$ac_pwd'
16057 srcdir='$srcdir'
16058 INSTALL='$INSTALL'
16059 MKDIR_P='$MKDIR_P'
16060 AWK='$AWK'
16061 test -n "\$AWK" || AWK=awk
16062 _ACEOF
16063
16064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16065 # The default lists apply if the user does not specify any file.
16066 ac_need_defaults=:
16067 while test $# != 0
16068 do
16069 case $1 in
16070 --*=*)
16071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16073 ac_shift=:
16074 ;;
16075 *)
16076 ac_option=$1
16077 ac_optarg=$2
16078 ac_shift=shift
16079 ;;
16080 esac
16081
16082 case $ac_option in
16083 # Handling of the options.
16084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16085 ac_cs_recheck=: ;;
16086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16087 $as_echo "$ac_cs_version"; exit ;;
16088 --debug | --debu | --deb | --de | --d | -d )
16089 debug=: ;;
16090 --file | --fil | --fi | --f )
16091 $ac_shift
16092 case $ac_optarg in
16093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16094 esac
16095 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16096 ac_need_defaults=false;;
16097 --header | --heade | --head | --hea )
16098 $ac_shift
16099 case $ac_optarg in
16100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16101 esac
16102 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16103 ac_need_defaults=false;;
16104 --he | --h)
16105 # Conflict between --help and --header
16106 { $as_echo "$as_me: error: ambiguous option: $1
16107 Try \`$0 --help' for more information." >&2
16108 { (exit 1); exit 1; }; };;
16109 --help | --hel | -h )
16110 $as_echo "$ac_cs_usage"; exit ;;
16111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16112 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16113 ac_cs_silent=: ;;
16114
16115 # This is an error.
16116 -*) { $as_echo "$as_me: error: unrecognized option: $1
16117 Try \`$0 --help' for more information." >&2
16118 { (exit 1); exit 1; }; } ;;
16119
16120 *) ac_config_targets="$ac_config_targets $1"
16121 ac_need_defaults=false ;;
16122
16123 esac
16124 shift
16125 done
16126
16127 ac_configure_extra_args=
16128
16129 if $ac_cs_silent; then
16130 exec 6>/dev/null
16131 ac_configure_extra_args="$ac_configure_extra_args --silent"
16132 fi
16133
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136 if \$ac_cs_recheck; then
16137 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16138 shift
16139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16140 CONFIG_SHELL='$SHELL'
16141 export CONFIG_SHELL
16142 exec "\$@"
16143 fi
16144
16145 _ACEOF
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 exec 5>>config.log
16148 {
16149 echo
16150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16151 ## Running $as_me. ##
16152 _ASBOX
16153 $as_echo "$ac_log"
16154 } >&5
16155
16156 _ACEOF
16157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 _ACEOF
16159
16160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16161
16162 # Handling of arguments.
16163 for ac_config_target in $ac_config_targets
16164 do
16165 case $ac_config_target in
16166 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16167 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16168 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16169 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16170 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16171 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16172 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16173 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16174 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16175 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
16176 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16177 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16178 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16179 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16180 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16181 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16182 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16183 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16184 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16185 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16186 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16187 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16188 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16189 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16190 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16191 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16192 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16193 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16194 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16195 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
16196 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16197 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16198 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16199 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16200 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16201 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16202
16203 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16204 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16205 { (exit 1); exit 1; }; };;
16206 esac
16207 done
16208
16209
16210 # If the user did not use the arguments to specify the items to instantiate,
16211 # then the envvar interface is used. Set only those that are not.
16212 # We use the long form for the default assignment because of an extremely
16213 # bizarre bug on SunOS 4.1.3.
16214 if $ac_need_defaults; then
16215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16217 fi
16218
16219 # Have a temporary directory for convenience. Make it in the build tree
16220 # simply because there is no reason against having it here, and in addition,
16221 # creating and moving files from /tmp can sometimes cause problems.
16222 # Hook for its removal unless debugging.
16223 # Note that there is a small window in which the directory will not be cleaned:
16224 # after its creation but before its name has been assigned to `$tmp'.
16225 $debug ||
16226 {
16227 tmp=
16228 trap 'exit_status=$?
16229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16230 ' 0
16231 trap '{ (exit 1); exit 1; }' 1 2 13 15
16232 }
16233 # Create a (secure) tmp directory for tmp files.
16234
16235 {
16236 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16237 test -n "$tmp" && test -d "$tmp"
16238 } ||
16239 {
16240 tmp=./conf$$-$RANDOM
16241 (umask 077 && mkdir "$tmp")
16242 } ||
16243 {
16244 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16245 { (exit 1); exit 1; }
16246 }
16247
16248 # Set up the scripts for CONFIG_FILES section.
16249 # No need to generate them if there are no CONFIG_FILES.
16250 # This happens for instance with `./config.status config.h'.
16251 if test -n "$CONFIG_FILES"; then
16252
16253
16254 ac_cr=' '
16255 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16256 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16257 ac_cs_awk_cr='\\r'
16258 else
16259 ac_cs_awk_cr=$ac_cr
16260 fi
16261
16262 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16263 _ACEOF
16264
16265
16266 {
16267 echo "cat >conf$$subs.awk <<_ACEOF" &&
16268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16269 echo "_ACEOF"
16270 } >conf$$subs.sh ||
16271 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16272 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16273 { (exit 1); exit 1; }; }
16274 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16275 ac_delim='%!_!# '
16276 for ac_last_try in false false false false false :; do
16277 . ./conf$$subs.sh ||
16278 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16279 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16280 { (exit 1); exit 1; }; }
16281
16282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16283 if test $ac_delim_n = $ac_delim_num; then
16284 break
16285 elif $ac_last_try; then
16286 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16287 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16288 { (exit 1); exit 1; }; }
16289 else
16290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16291 fi
16292 done
16293 rm -f conf$$subs.sh
16294
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16297 _ACEOF
16298 sed -n '
16299 h
16300 s/^/S["/; s/!.*/"]=/
16301 p
16302 g
16303 s/^[^!]*!//
16304 :repl
16305 t repl
16306 s/'"$ac_delim"'$//
16307 t delim
16308 :nl
16309 h
16310 s/\(.\{148\}\).*/\1/
16311 t more1
16312 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16313 p
16314 n
16315 b repl
16316 :more1
16317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16318 p
16319 g
16320 s/.\{148\}//
16321 t nl
16322 :delim
16323 h
16324 s/\(.\{148\}\).*/\1/
16325 t more2
16326 s/["\\]/\\&/g; s/^/"/; s/$/"/
16327 p
16328 b
16329 :more2
16330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16331 p
16332 g
16333 s/.\{148\}//
16334 t delim
16335 ' <conf$$subs.awk | sed '
16336 /^[^""]/{
16337 N
16338 s/\n//
16339 }
16340 ' >>$CONFIG_STATUS || ac_write_fail=1
16341 rm -f conf$$subs.awk
16342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343 _ACAWK
16344 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16345 for (key in S) S_is_set[key] = 1
16346 FS = "\a"
16347
16348 }
16349 {
16350 line = $ 0
16351 nfields = split(line, field, "@")
16352 substed = 0
16353 len = length(field[1])
16354 for (i = 2; i < nfields; i++) {
16355 key = field[i]
16356 keylen = length(key)
16357 if (S_is_set[key]) {
16358 value = S[key]
16359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16360 len += length(value) + length(field[++i])
16361 substed = 1
16362 } else
16363 len += 1 + keylen
16364 }
16365
16366 print line
16367 }
16368
16369 _ACAWK
16370 _ACEOF
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16374 else
16375 cat
16376 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16377 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16378 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16379 { (exit 1); exit 1; }; }
16380 _ACEOF
16381
16382 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16383 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16384 # trailing colons and then remove the whole line if VPATH becomes empty
16385 # (actually we leave an empty line to preserve line numbers).
16386 if test "x$srcdir" = x.; then
16387 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16388 s/:*\$(srcdir):*/:/
16389 s/:*\${srcdir}:*/:/
16390 s/:*@srcdir@:*/:/
16391 s/^\([^=]*=[ ]*\):*/\1/
16392 s/:*$//
16393 s/^[^=]*=[ ]*$//
16394 }'
16395 fi
16396
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 fi # test -n "$CONFIG_FILES"
16399
16400 # Set up the scripts for CONFIG_HEADERS section.
16401 # No need to generate them if there are no CONFIG_HEADERS.
16402 # This happens for instance with `./config.status Makefile'.
16403 if test -n "$CONFIG_HEADERS"; then
16404 cat >"$tmp/defines.awk" <<\_ACAWK ||
16405 BEGIN {
16406 _ACEOF
16407
16408 # Transform confdefs.h into an awk script `defines.awk', embedded as
16409 # here-document in config.status, that substitutes the proper values into
16410 # config.h.in to produce config.h.
16411
16412 # Create a delimiter string that does not exist in confdefs.h, to ease
16413 # handling of long lines.
16414 ac_delim='%!_!# '
16415 for ac_last_try in false false :; do
16416 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16417 if test -z "$ac_t"; then
16418 break
16419 elif $ac_last_try; then
16420 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16421 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16422 { (exit 1); exit 1; }; }
16423 else
16424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16425 fi
16426 done
16427
16428 # For the awk script, D is an array of macro values keyed by name,
16429 # likewise P contains macro parameters if any. Preserve backslash
16430 # newline sequences.
16431
16432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16433 sed -n '
16434 s/.\{148\}/&'"$ac_delim"'/g
16435 t rset
16436 :rset
16437 s/^[ ]*#[ ]*define[ ][ ]*/ /
16438 t def
16439 d
16440 :def
16441 s/\\$//
16442 t bsnl
16443 s/["\\]/\\&/g
16444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16445 D["\1"]=" \3"/p
16446 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16447 d
16448 :bsnl
16449 s/["\\]/\\&/g
16450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16451 D["\1"]=" \3\\\\\\n"\\/p
16452 t cont
16453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16454 t cont
16455 d
16456 :cont
16457 n
16458 s/.\{148\}/&'"$ac_delim"'/g
16459 t clear
16460 :clear
16461 s/\\$//
16462 t bsnlc
16463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16464 d
16465 :bsnlc
16466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16467 b cont
16468 ' <confdefs.h | sed '
16469 s/'"$ac_delim"'/"\\\
16470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16471
16472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473 for (key in D) D_is_set[key] = 1
16474 FS = "\a"
16475 }
16476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16477 line = \$ 0
16478 split(line, arg, " ")
16479 if (arg[1] == "#") {
16480 defundef = arg[2]
16481 mac1 = arg[3]
16482 } else {
16483 defundef = substr(arg[1], 2)
16484 mac1 = arg[2]
16485 }
16486 split(mac1, mac2, "(") #)
16487 macro = mac2[1]
16488 prefix = substr(line, 1, index(line, defundef) - 1)
16489 if (D_is_set[macro]) {
16490 # Preserve the white space surrounding the "#".
16491 print prefix "define", macro P[macro] D[macro]
16492 next
16493 } else {
16494 # Replace #undef with comments. This is necessary, for example,
16495 # in the case of _POSIX_SOURCE, which is predefined and required
16496 # on some systems where configure will not decide to define it.
16497 if (defundef == "undef") {
16498 print "/*", prefix defundef, macro, "*/"
16499 next
16500 }
16501 }
16502 }
16503 { print }
16504 _ACAWK
16505 _ACEOF
16506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16508 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16509 { (exit 1); exit 1; }; }
16510 fi # test -n "$CONFIG_HEADERS"
16511
16512
16513 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16514 shift
16515 for ac_tag
16516 do
16517 case $ac_tag in
16518 :[FHLC]) ac_mode=$ac_tag; continue;;
16519 esac
16520 case $ac_mode$ac_tag in
16521 :[FHL]*:*);;
16522 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16523 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16524 { (exit 1); exit 1; }; };;
16525 :[FH]-) ac_tag=-:-;;
16526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16527 esac
16528 ac_save_IFS=$IFS
16529 IFS=:
16530 set x $ac_tag
16531 IFS=$ac_save_IFS
16532 shift
16533 ac_file=$1
16534 shift
16535
16536 case $ac_mode in
16537 :L) ac_source=$1;;
16538 :[FH])
16539 ac_file_inputs=
16540 for ac_f
16541 do
16542 case $ac_f in
16543 -) ac_f="$tmp/stdin";;
16544 *) # Look for the file first in the build tree, then in the source tree
16545 # (if the path is not absolute). The absolute path cannot be DOS-style,
16546 # because $ac_f cannot contain `:'.
16547 test -f "$ac_f" ||
16548 case $ac_f in
16549 [\\/$]*) false;;
16550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16551 esac ||
16552 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16553 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16554 { (exit 1); exit 1; }; };;
16555 esac
16556 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16557 ac_file_inputs="$ac_file_inputs '$ac_f'"
16558 done
16559
16560 # Let's still pretend it is `configure' which instantiates (i.e., don't
16561 # use $as_me), people would be surprised to read:
16562 # /* config.h. Generated by config.status. */
16563 configure_input='Generated from '`
16564 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16565 `' by configure.'
16566 if test x"$ac_file" != x-; then
16567 configure_input="$ac_file. $configure_input"
16568 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16569 $as_echo "$as_me: creating $ac_file" >&6;}
16570 fi
16571 # Neutralize special characters interpreted by sed in replacement strings.
16572 case $configure_input in #(
16573 *\&* | *\|* | *\\* )
16574 ac_sed_conf_input=`$as_echo "$configure_input" |
16575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16576 *) ac_sed_conf_input=$configure_input;;
16577 esac
16578
16579 case $ac_tag in
16580 *:-:* | *:-) cat >"$tmp/stdin" \
16581 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16582 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16583 { (exit 1); exit 1; }; } ;;
16584 esac
16585 ;;
16586 esac
16587
16588 ac_dir=`$as_dirname -- "$ac_file" ||
16589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16590 X"$ac_file" : 'X\(//\)[^/]' \| \
16591 X"$ac_file" : 'X\(//\)$' \| \
16592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16593 $as_echo X"$ac_file" |
16594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16595 s//\1/
16596 q
16597 }
16598 /^X\(\/\/\)[^/].*/{
16599 s//\1/
16600 q
16601 }
16602 /^X\(\/\/\)$/{
16603 s//\1/
16604 q
16605 }
16606 /^X\(\/\).*/{
16607 s//\1/
16608 q
16609 }
16610 s/.*/./; q'`
16611 { as_dir="$ac_dir"
16612 case $as_dir in #(
16613 -*) as_dir=./$as_dir;;
16614 esac
16615 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16616 as_dirs=
16617 while :; do
16618 case $as_dir in #(
16619 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16620 *) as_qdir=$as_dir;;
16621 esac
16622 as_dirs="'$as_qdir' $as_dirs"
16623 as_dir=`$as_dirname -- "$as_dir" ||
16624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16625 X"$as_dir" : 'X\(//\)[^/]' \| \
16626 X"$as_dir" : 'X\(//\)$' \| \
16627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16628 $as_echo X"$as_dir" |
16629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16630 s//\1/
16631 q
16632 }
16633 /^X\(\/\/\)[^/].*/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)$/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\).*/{
16642 s//\1/
16643 q
16644 }
16645 s/.*/./; q'`
16646 test -d "$as_dir" && break
16647 done
16648 test -z "$as_dirs" || eval "mkdir $as_dirs"
16649 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16650 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16651 { (exit 1); exit 1; }; }; }
16652 ac_builddir=.
16653
16654 case "$ac_dir" in
16655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16656 *)
16657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16658 # A ".." for each directory in $ac_dir_suffix.
16659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16660 case $ac_top_builddir_sub in
16661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16663 esac ;;
16664 esac
16665 ac_abs_top_builddir=$ac_pwd
16666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16667 # for backward compatibility:
16668 ac_top_builddir=$ac_top_build_prefix
16669
16670 case $srcdir in
16671 .) # We are building in place.
16672 ac_srcdir=.
16673 ac_top_srcdir=$ac_top_builddir_sub
16674 ac_abs_top_srcdir=$ac_pwd ;;
16675 [\\/]* | ?:[\\/]* ) # Absolute name.
16676 ac_srcdir=$srcdir$ac_dir_suffix;
16677 ac_top_srcdir=$srcdir
16678 ac_abs_top_srcdir=$srcdir ;;
16679 *) # Relative name.
16680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16681 ac_top_srcdir=$ac_top_build_prefix$srcdir
16682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16683 esac
16684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16685
16686
16687 case $ac_mode in
16688 :F)
16689 #
16690 # CONFIG_FILE
16691 #
16692
16693 case $INSTALL in
16694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16696 esac
16697 ac_MKDIR_P=$MKDIR_P
16698 case $MKDIR_P in
16699 [\\/$]* | ?:[\\/]* ) ;;
16700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16701 esac
16702 _ACEOF
16703
16704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16705 # If the template does not know about datarootdir, expand it.
16706 # FIXME: This hack should be removed a few years after 2.60.
16707 ac_datarootdir_hack=; ac_datarootdir_seen=
16708
16709 ac_sed_dataroot='
16710 /datarootdir/ {
16711 p
16712 q
16713 }
16714 /@datadir@/p
16715 /@docdir@/p
16716 /@infodir@/p
16717 /@localedir@/p
16718 /@mandir@/p
16719 '
16720 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16721 *datarootdir*) ac_datarootdir_seen=yes;;
16722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16723 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16724 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16725 _ACEOF
16726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16727 ac_datarootdir_hack='
16728 s&@datadir@&$datadir&g
16729 s&@docdir@&$docdir&g
16730 s&@infodir@&$infodir&g
16731 s&@localedir@&$localedir&g
16732 s&@mandir@&$mandir&g
16733 s&\\\${datarootdir}&$datarootdir&g' ;;
16734 esac
16735 _ACEOF
16736
16737 # Neutralize VPATH when `$srcdir' = `.'.
16738 # Shell code in configure.ac might set extrasub.
16739 # FIXME: do we really want to maintain this feature?
16740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16741 ac_sed_extra="$ac_vpsub
16742 $extrasub
16743 _ACEOF
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745 :t
16746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16747 s|@configure_input@|$ac_sed_conf_input|;t t
16748 s&@top_builddir@&$ac_top_builddir_sub&;t t
16749 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16750 s&@srcdir@&$ac_srcdir&;t t
16751 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16752 s&@top_srcdir@&$ac_top_srcdir&;t t
16753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16754 s&@builddir@&$ac_builddir&;t t
16755 s&@abs_builddir@&$ac_abs_builddir&;t t
16756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16757 s&@INSTALL@&$ac_INSTALL&;t t
16758 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16759 $ac_datarootdir_hack
16760 "
16761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16762 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16763 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16764 { (exit 1); exit 1; }; }
16765
16766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16769 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16770 which seems to be undefined. Please make sure it is defined." >&5
16771 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16772 which seems to be undefined. Please make sure it is defined." >&2;}
16773
16774 rm -f "$tmp/stdin"
16775 case $ac_file in
16776 -) cat "$tmp/out" && rm -f "$tmp/out";;
16777 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16778 esac \
16779 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16780 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16781 { (exit 1); exit 1; }; }
16782 ;;
16783 :H)
16784 #
16785 # CONFIG_HEADER
16786 #
16787 if test x"$ac_file" != x-; then
16788 {
16789 $as_echo "/* $configure_input */" \
16790 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16791 } >"$tmp/config.h" \
16792 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16793 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16794 { (exit 1); exit 1; }; }
16795 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16796 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16797 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16798 else
16799 rm -f "$ac_file"
16800 mv "$tmp/config.h" "$ac_file" \
16801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16802 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16803 { (exit 1); exit 1; }; }
16804 fi
16805 else
16806 $as_echo "/* $configure_input */" \
16807 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16808 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16809 $as_echo "$as_me: error: could not create -" >&2;}
16810 { (exit 1); exit 1; }; }
16811 fi
16812 ;;
16813
16814
16815 esac
16816
16817 done # for ac_tag
16818
16819
16820 { (exit 0); exit 0; }
16821 _ACEOF
16822 chmod +x $CONFIG_STATUS
16823 ac_clean_files=$ac_clean_files_save
16824
16825 test $ac_write_fail = 0 ||
16826 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16827 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16828 { (exit 1); exit 1; }; }
16829
16830
16831 # configure is writing to config.log, and then calls config.status.
16832 # config.status does its own redirection, appending to config.log.
16833 # Unfortunately, on DOS this fails, as config.log is still kept open
16834 # by configure, so config.status won't be able to write to it; its
16835 # output is simply discarded. So we exec the FD to /dev/null,
16836 # effectively closing config.log, so it can be properly (re)opened and
16837 # appended to by config.status. When coming back to configure, we
16838 # need to make the FD available again.
16839 if test "$no_create" != yes; then
16840 ac_cs_success=:
16841 ac_config_status_args=
16842 test "$silent" = yes &&
16843 ac_config_status_args="$ac_config_status_args --quiet"
16844 exec 5>/dev/null
16845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16846 exec 5>>config.log
16847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16848 # would make configure fail if this is the last instruction.
16849 $ac_cs_success || { (exit 1); exit 1; }
16850 fi
16851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16852 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16854 fi
16855
16856
16857 if test x$ODIRECT != xyes; then
16858 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16859 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16860 fi
This page took 0.919331 seconds and 6 git commands to generate.