]> sourceware.org Git - lvm2.git/blame - configure
Append fields to report/pvsegs_cols_verbose.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
66e941e8 3# Generated by GNU Autoconf 2.61a.
795ca3e5 4#
7a197a62
AK
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
7a197a62
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
66e941e8
JM
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (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'
50else
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'
70fi
71
7a197a62
AK
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 echo "#! /bin/sh" >conf$$.sh
75 echo "exit 0" >>conf$$.sh
76 chmod +x conf$$.sh
77 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
78 PATH_SEPARATOR=';'
79 else
80 PATH_SEPARATOR=:
81 fi
82 rm -f conf$$.sh
ad6254c5
AK
83fi
84
85# Support unset when possible.
8a2fc586 86if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
87 as_unset=unset
88else
89 as_unset=false
90fi
91
92
7a197a62
AK
93# IFS
94# We need space, tab and new line, in precisely that order. Quoting is
95# there to prevent editors from complaining about space-tab.
96# (If _AS_PATH_WALK were called with IFS unset, it would disable word
97# splitting by setting IFS to empty value.)
7a197a62
AK
98IFS=" "" $as_nl"
99
100# Find who we are. Look in the path if we contain no directory separator.
101case $0 in
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104for as_dir in $PATH
105do
106 IFS=$as_save_IFS
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109done
110IFS=$as_save_IFS
111
112 ;;
113esac
114# We did not find ourselves, most probably we were run as `sh COMMAND'
115# in which case we are not to be found in the path.
116if test "x$as_myself" = x; then
117 as_myself=$0
118fi
119if test ! -f "$as_myself"; then
66e941e8 120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
121 { (exit 1); exit 1; }
122fi
123
ad6254c5 124# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
125for as_var in ENV MAIL MAILPATH
126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127done
ad6254c5
AK
128PS1='$ '
129PS2='> '
130PS4='+ '
131
132# NLS nuisances.
133for as_var in \
134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
136 LC_TELEPHONE LC_TIME
137do
8a2fc586 138 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
139 eval $as_var=C; export $as_var
140 else
7a197a62 141 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5
AK
142 fi
143done
144
145# Required to use basename.
7a197a62
AK
146if expr a : '\(a\)' >/dev/null 2>&1 &&
147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
148 as_expr=expr
149else
150 as_expr=false
151fi
152
7a197a62 153if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
154 as_basename=basename
155else
156 as_basename=false
157fi
158
159
160# Name of the executable.
7a197a62 161as_me=`$as_basename -- "$0" ||
ad6254c5
AK
162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
163 X"$0" : 'X\(//\)$' \| \
7a197a62 164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66e941e8 165$as_echo X/"$0" |
7a197a62
AK
166 sed '/^.*\/\([^/][^/]*\)\/*$/{
167 s//\1/
168 q
169 }
170 /^X\/\(\/\/\)$/{
171 s//\1/
172 q
173 }
174 /^X\/\(\/\).*/{
175 s//\1/
176 q
177 }
178 s/.*/./; q'`
ad6254c5 179
7a197a62
AK
180# CDPATH.
181$as_unset CDPATH
ad6254c5 182
ad6254c5 183
7a197a62
AK
184if test "x$CONFIG_SHELL" = x; then
185 if (eval ":") 2>/dev/null; then
186 as_have_required=yes
187else
188 as_have_required=no
ad6254c5
AK
189fi
190
7a197a62
AK
191 if test $as_have_required = yes && (eval ":
192(as_func_return () {
193 (exit \$1)
194}
195as_func_success () {
196 as_func_return 0
197}
198as_func_failure () {
199 as_func_return 1
200}
201as_func_ret_success () {
202 return 0
203}
204as_func_ret_failure () {
205 return 1
206}
ad6254c5 207
7a197a62
AK
208exitcode=0
209if as_func_success; then
210 :
211else
212 exitcode=1
213 echo as_func_success failed.
214fi
ad6254c5 215
7a197a62
AK
216if as_func_failure; then
217 exitcode=1
218 echo as_func_failure succeeded.
219fi
220
221if as_func_ret_success; then
222 :
223else
224 exitcode=1
225 echo as_func_ret_success failed.
226fi
227
228if as_func_ret_failure; then
229 exitcode=1
230 echo as_func_ret_failure succeeded.
231fi
232
233if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
234 :
235else
236 exitcode=1
237 echo positional parameters were not saved.
238fi
239
240test \$exitcode = 0) || { (exit 1); exit 1; }
241
242(
243 as_lineno_1=\$LINENO
244 as_lineno_2=\$LINENO
245 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
246 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
247") 2> /dev/null; then
248 :
249else
250 as_candidate_shells=
ad6254c5
AK
251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
252for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
253do
254 IFS=$as_save_IFS
255 test -z "$as_dir" && as_dir=.
7a197a62 256 case $as_dir in
ad6254c5 257 /*)
7a197a62
AK
258 for as_base in sh bash ksh sh5; do
259 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
260 done;;
261 esac
262done
263IFS=$as_save_IFS
264
265
266 for as_shell in $as_candidate_shells $SHELL; do
267 # Try only shells that exist, to save several forks.
268 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
269 { ("$as_shell") 2> /dev/null <<\_ASEOF
270if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
271 emulate sh
272 NULLCMD=:
273 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
274 # is contrary to our usage. Disable this feature.
275 alias -g '${1+"$@"}'='"$@"'
276 setopt NO_GLOB_SUBST
277else
278 case `(set -o) 2>/dev/null` in
279 *posix*) set -o posix ;;
280esac
281
282fi
283
284
285:
286_ASEOF
287}; then
288 CONFIG_SHELL=$as_shell
289 as_have_required=yes
290 if { "$as_shell" 2> /dev/null <<\_ASEOF
291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
292 emulate sh
293 NULLCMD=:
294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
295 # is contrary to our usage. Disable this feature.
296 alias -g '${1+"$@"}'='"$@"'
297 setopt NO_GLOB_SUBST
298else
299 case `(set -o) 2>/dev/null` in
300 *posix*) set -o posix ;;
301esac
302
303fi
304
305
306:
307(as_func_return () {
308 (exit $1)
309}
310as_func_success () {
311 as_func_return 0
312}
313as_func_failure () {
314 as_func_return 1
315}
316as_func_ret_success () {
317 return 0
318}
319as_func_ret_failure () {
320 return 1
321}
322
323exitcode=0
324if as_func_success; then
325 :
326else
327 exitcode=1
328 echo as_func_success failed.
329fi
330
331if as_func_failure; then
332 exitcode=1
333 echo as_func_failure succeeded.
334fi
335
336if as_func_ret_success; then
337 :
338else
339 exitcode=1
340 echo as_func_ret_success failed.
341fi
342
343if as_func_ret_failure; then
344 exitcode=1
345 echo as_func_ret_failure succeeded.
346fi
347
348if ( set x; as_func_ret_success y && test x = "$1" ); then
349 :
350else
351 exitcode=1
352 echo positional parameters were not saved.
353fi
354
355test $exitcode = 0) || { (exit 1); exit 1; }
356
357(
ad6254c5
AK
358 as_lineno_1=$LINENO
359 as_lineno_2=$LINENO
ad6254c5 360 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
361 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
362
363_ASEOF
364}; then
365 break
366fi
367
368fi
369
370 done
371
372 if test "x$CONFIG_SHELL" != x; then
373 for as_var in BASH_ENV ENV
374 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
375 done
376 export CONFIG_SHELL
377 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
378fi
379
380
381 if test $as_have_required = no; then
382 echo This script requires a shell more modern than all the
383 echo shells that I found on your system. Please install a
384 echo modern shell, or manually run the script under such a
385 echo shell if you do have one.
386 { (exit 1); exit 1; }
387fi
388
389
390fi
391
392fi
393
394
395
396(eval "as_func_return () {
397 (exit \$1)
398}
399as_func_success () {
400 as_func_return 0
401}
402as_func_failure () {
403 as_func_return 1
404}
405as_func_ret_success () {
406 return 0
407}
408as_func_ret_failure () {
409 return 1
410}
411
412exitcode=0
413if as_func_success; then
414 :
415else
416 exitcode=1
417 echo as_func_success failed.
418fi
419
420if as_func_failure; then
421 exitcode=1
422 echo as_func_failure succeeded.
423fi
424
425if as_func_ret_success; then
426 :
427else
428 exitcode=1
429 echo as_func_ret_success failed.
430fi
431
432if as_func_ret_failure; then
433 exitcode=1
434 echo as_func_ret_failure succeeded.
435fi
436
437if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
438 :
439else
440 exitcode=1
441 echo positional parameters were not saved.
442fi
443
444test \$exitcode = 0") || {
445 echo No shell found that supports shell functions.
446 echo Please tell autoconf@gnu.org about your system,
447 echo including any error possibly output before this
448 echo message
449}
450
451
452
453 as_lineno_1=$LINENO
454 as_lineno_2=$LINENO
455 test "x$as_lineno_1" != "x$as_lineno_2" &&
456 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
457
458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
459 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
460 # line-number line after each line using $LINENO; the second 'sed'
461 # does the real work. The second script uses 'N' to pair each
462 # line-number line with the line containing $LINENO, and appends
463 # trailing '-' during substitution so that $LINENO is not a special
464 # case at line end.
ad6254c5 465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
466 # scripts with optimization help from Paolo Bonzini. Blame Lee
467 # E. McMahon (1931-1989) for sed's syntax. :-)
468 sed -n '
469 p
470 /[$]LINENO/=
471 ' <$as_myself |
ad6254c5 472 sed '
7a197a62
AK
473 s/[$]LINENO.*/&-/
474 t lineno
475 b
476 :lineno
ad6254c5 477 N
7a197a62
AK
478 :loop
479 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 480 t loop
7a197a62 481 s/-\n.*//
ad6254c5 482 ' >$as_me.lineno &&
7a197a62 483 chmod +x "$as_me.lineno" ||
66e941e8 484 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
485 { (exit 1); exit 1; }; }
486
487 # Don't try to exec as it changes $[0], causing all sort of problems
488 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
489 # original and so on. Autoconf is especially sensitive to this).
490 . "./$as_me.lineno"
ad6254c5
AK
491 # Exit status is that of the last command.
492 exit
493}
795ca3e5 494
ad6254c5 495
7a197a62
AK
496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
497 as_dirname=dirname
498else
499 as_dirname=false
500fi
501
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in
504-n*)
505 case `echo 'x\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 *) ECHO_C='\c';;
508 esac;;
509*)
510 ECHO_N='-n';;
ad6254c5 511esac
7a197a62
AK
512if expr a : '\(a\)' >/dev/null 2>&1 &&
513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
514 as_expr=expr
515else
516 as_expr=false
517fi
518
519rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
520if test -d conf$$.dir; then
521 rm -f conf$$.dir/conf$$.file
522else
523 rm -f conf$$.dir
524 mkdir conf$$.dir
525fi
ad6254c5
AK
526echo >conf$$.file
527if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
528 as_ln_s='ln -s'
529 # ... but there are two gotchas:
530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532 # In both cases, we have to default to `cp -p'.
533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 534 as_ln_s='cp -p'
ad6254c5
AK
535elif ln conf$$.file conf$$ 2>/dev/null; then
536 as_ln_s=ln
537else
538 as_ln_s='cp -p'
539fi
7a197a62
AK
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p=:
545else
8a2fc586 546 test -d ./-p && rmdir ./-p
ad6254c5
AK
547 as_mkdir_p=false
548fi
549
7a197a62
AK
550if test -x / >/dev/null 2>&1; then
551 as_test_x='test -x'
552else
553 if ls -dL / >/dev/null 2>&1; then
554 as_ls_L_option=L
555 else
556 as_ls_L_option=
557 fi
558 as_test_x='
559 eval sh -c '\''
560 if test -d "$1"; then
561 test -d "$1/.";
562 else
563 case $1 in
564 -*)set "./$1";;
565 esac;
566 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
567 ???[sx]*):;;*)false;;esac;fi
568 '\'' sh
569 '
570fi
571as_executable_p=$as_test_x
ad6254c5
AK
572
573# Sed expression to map a string onto a valid CPP name.
8a2fc586 574as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
575
576# Sed expression to map a string onto a valid variable name.
8a2fc586 577as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
578
579
ad6254c5 580
7a197a62 581exec 7<&0 </dev/null 6>&1
ad6254c5
AK
582
583# Name of the host.
584# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
585# so uname gets run too.
586ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
ad6254c5
AK
588#
589# Initializations.
590#
795ca3e5 591ac_default_prefix=/usr/local
7a197a62 592ac_clean_files=
ad6254c5 593ac_config_libobj_dir=.
7a197a62 594LIBOBJS=
ad6254c5
AK
595cross_compiling=no
596subdirs=
597MFLAGS=
598MAKEFLAGS=
599SHELL=${CONFIG_SHELL-/bin/sh}
600
ad6254c5
AK
601# Identity of this package.
602PACKAGE_NAME=
603PACKAGE_TARNAME=
604PACKAGE_VERSION=
605PACKAGE_STRING=
606PACKAGE_BUGREPORT=
607
608ac_unique_file="lib/device/dev-cache.h"
609# Factoring default headers for most tests.
610ac_includes_default="\
611#include <stdio.h>
7a197a62 612#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
613# include <sys/types.h>
614#endif
7a197a62 615#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
616# include <sys/stat.h>
617#endif
7a197a62 618#ifdef STDC_HEADERS
ad6254c5
AK
619# include <stdlib.h>
620# include <stddef.h>
621#else
7a197a62 622# ifdef HAVE_STDLIB_H
ad6254c5
AK
623# include <stdlib.h>
624# endif
625#endif
7a197a62
AK
626#ifdef HAVE_STRING_H
627# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
628# include <memory.h>
629# endif
630# include <string.h>
631#endif
7a197a62 632#ifdef HAVE_STRINGS_H
ad6254c5
AK
633# include <strings.h>
634#endif
7a197a62 635#ifdef HAVE_INTTYPES_H
ad6254c5 636# include <inttypes.h>
ad6254c5 637#endif
7a197a62
AK
638#ifdef HAVE_STDINT_H
639# include <stdint.h>
640#endif
641#ifdef HAVE_UNISTD_H
ad6254c5
AK
642# include <unistd.h>
643#endif"
644
795ca3e5 645ac_default_prefix=/usr
7a197a62
AK
646ac_subst_vars='SHELL
647PATH_SEPARATOR
648PACKAGE_NAME
649PACKAGE_TARNAME
650PACKAGE_VERSION
651PACKAGE_STRING
652PACKAGE_BUGREPORT
653exec_prefix
654prefix
655program_transform_name
656bindir
657sbindir
658libexecdir
659datarootdir
660datadir
661sysconfdir
662sharedstatedir
663localstatedir
664includedir
665oldincludedir
666docdir
667infodir
668htmldir
669dvidir
670pdfdir
671psdir
672libdir
673localedir
674mandir
675DEFS
676ECHO_C
677ECHO_N
678ECHO_T
679LIBS
680build_alias
681host_alias
682target_alias
683build
684build_cpu
685build_vendor
686build_os
687host
688host_cpu
689host_vendor
690host_os
691target
692target_cpu
693target_vendor
694target_os
695AWK
696CC
697CFLAGS
698LDFLAGS
699CPPFLAGS
700ac_ct_CC
701EXEEXT
702OBJEXT
703INSTALL_PROGRAM
704INSTALL_SCRIPT
705INSTALL_DATA
706LN_S
707SET_MAKE
708RANLIB
709CFLOW_CMD
710CSCOPE_CMD
711CPP
712GREP
713EGREP
714ALLOCA
715LIBOBJS
716POW_LIB
717MSGFMT
718MODPROBE_CMD
719JOBS
720STATIC_LINK
721LVM1
722POOL
723SNAPSHOTS
724MIRRORS
725OWNER
726GROUP
727COPTIMISE_FLAG
728CLDFLAGS
729CLDWHOLEARCHIVE
730CLDNOWHOLEARCHIVE
731LDDEPS
732LIB_SUFFIX
733LVM_VERSION
734LVM1_FALLBACK
735DEBUG
736DEVMAPPER
737HAVE_LIBDL
738HAVE_SELINUX
739HAVE_REALTIME
740CMDLIB
741LOCALEDIR
742CONFDIR
743STATICDIR
744DMDIR
745INTL_PACKAGE
746INTL
747CLVMD
748CLUSTER
749FSADM
750DMEVENTD
66e941e8 751LIB_PTHREAD
7a197a62 752LTLIBOBJS'
ad6254c5 753ac_subst_files=''
7a197a62
AK
754 ac_precious_vars='build_alias
755host_alias
756target_alias
757CC
758CFLAGS
759LDFLAGS
760LIBS
761CPPFLAGS
762CPP'
763
795ca3e5
AK
764
765# Initialize some variables set by options.
ad6254c5
AK
766ac_init_help=
767ac_init_version=false
795ca3e5
AK
768# The variables have the same names as the options, with
769# dashes changed to underlines.
ad6254c5 770cache_file=/dev/null
795ca3e5 771exec_prefix=NONE
795ca3e5 772no_create=
795ca3e5
AK
773no_recursion=
774prefix=NONE
775program_prefix=NONE
776program_suffix=NONE
777program_transform_name=s,x,x,
778silent=
779site=
780srcdir=
795ca3e5
AK
781verbose=
782x_includes=NONE
783x_libraries=NONE
ad6254c5
AK
784
785# Installation directory options.
786# These are left unexpanded so users can "make install exec_prefix=/foo"
787# and all the variables that are supposed to be based on exec_prefix
788# by default will actually change.
789# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 790# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
791bindir='${exec_prefix}/bin'
792sbindir='${exec_prefix}/sbin'
793libexecdir='${exec_prefix}/libexec'
7a197a62
AK
794datarootdir='${prefix}/share'
795datadir='${datarootdir}'
795ca3e5
AK
796sysconfdir='${prefix}/etc'
797sharedstatedir='${prefix}/com'
798localstatedir='${prefix}/var'
795ca3e5
AK
799includedir='${prefix}/include'
800oldincludedir='/usr/include'
7a197a62
AK
801docdir='${datarootdir}/doc/${PACKAGE}'
802infodir='${datarootdir}/info'
803htmldir='${docdir}'
804dvidir='${docdir}'
805pdfdir='${docdir}'
806psdir='${docdir}'
807libdir='${exec_prefix}/lib'
808localedir='${datarootdir}/locale'
809mandir='${datarootdir}/man'
795ca3e5 810
795ca3e5 811ac_prev=
7a197a62 812ac_dashdash=
795ca3e5
AK
813for ac_option
814do
795ca3e5
AK
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
7a197a62 817 eval $ac_prev=\$ac_option
795ca3e5
AK
818 ac_prev=
819 continue
820 fi
821
7a197a62
AK
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
795ca3e5
AK
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
7a197a62
AK
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
795ca3e5
AK
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 836 bindir=$ac_optarg ;;
795ca3e5
AK
837
838 -build | --build | --buil | --bui | --bu)
ad6254c5 839 ac_prev=build_alias ;;
795ca3e5 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 841 build_alias=$ac_optarg ;;
795ca3e5
AK
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
795ca3e5 852
7a197a62 853 -datadir | --datadir | --datadi | --datad)
795ca3e5 854 ac_prev=datadir ;;
7a197a62 855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 856 datadir=$ac_optarg ;;
795ca3e5 857
7a197a62
AK
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
795ca3e5 865 -disable-* | --disable-*)
66e941e8 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 867 # Reject names that are not valid shell variable names.
66e941e8
JM
868 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
869 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 870 { (exit 1); exit 1; }; }
66e941e8
JM
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
872 eval enable_$ac_useropt=no ;;
7a197a62
AK
873
874 -docdir | --docdir | --docdi | --doc | --do)
875 ac_prev=docdir ;;
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 docdir=$ac_optarg ;;
878
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 ac_prev=dvidir ;;
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 dvidir=$ac_optarg ;;
795ca3e5
AK
883
884 -enable-* | --enable-*)
66e941e8 885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 886 # Reject names that are not valid shell variable names.
66e941e8
JM
887 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 889 { (exit 1); exit 1; }; }
66e941e8
JM
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
891 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
892
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
ad6254c5 900 exec_prefix=$ac_optarg ;;
795ca3e5
AK
901
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
904 with_gas=yes ;;
905
ad6254c5
AK
906 -help | --help | --hel | --he | -h)
907 ac_init_help=long ;;
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
795ca3e5
AK
912
913 -host | --host | --hos | --ho)
ad6254c5 914 ac_prev=host_alias ;;
795ca3e5 915 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 916 host_alias=$ac_optarg ;;
795ca3e5 917
7a197a62
AK
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919 ac_prev=htmldir ;;
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921 | --ht=*)
922 htmldir=$ac_optarg ;;
923
795ca3e5
AK
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 929 includedir=$ac_optarg ;;
795ca3e5
AK
930
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
932 ac_prev=infodir ;;
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 934 infodir=$ac_optarg ;;
795ca3e5
AK
935
936 -libdir | --libdir | --libdi | --libd)
937 ac_prev=libdir ;;
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 939 libdir=$ac_optarg ;;
795ca3e5
AK
940
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
ad6254c5 946 libexecdir=$ac_optarg ;;
795ca3e5 947
7a197a62
AK
948 -localedir | --localedir | --localedi | --localed | --locale)
949 ac_prev=localedir ;;
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
952
795ca3e5 953 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 954 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 958 localstatedir=$ac_optarg ;;
795ca3e5
AK
959
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961 ac_prev=mandir ;;
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 963 mandir=$ac_optarg ;;
795ca3e5
AK
964
965 -nfp | --nfp | --nf)
966 # Obsolete; use --without-fp.
967 with_fp=no ;;
968
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 970 | --no-cr | --no-c | -n)
795ca3e5
AK
971 no_create=yes ;;
972
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 no_recursion=yes ;;
976
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 984 oldincludedir=$ac_optarg ;;
795ca3e5
AK
985
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987 ac_prev=prefix ;;
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 989 prefix=$ac_optarg ;;
795ca3e5
AK
990
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 996 program_prefix=$ac_optarg ;;
795ca3e5
AK
997
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1003 program_suffix=$ac_optarg ;;
795ca3e5
AK
1004
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1020 program_transform_name=$ac_optarg ;;
795ca3e5 1021
7a197a62
AK
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023 ac_prev=pdfdir ;;
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1026
1027 -psdir | --psdir | --psdi | --psd | --ps)
1028 ac_prev=psdir ;;
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 psdir=$ac_optarg ;;
1031
795ca3e5
AK
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 silent=yes ;;
1035
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037 ac_prev=sbindir ;;
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039 | --sbi=* | --sb=*)
ad6254c5 1040 sbindir=$ac_optarg ;;
795ca3e5
AK
1041
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1045 | --sha | --sh)
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050 | --sha=* | --sh=*)
ad6254c5 1051 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1052
1053 -site | --site | --sit)
1054 ac_prev=site ;;
1055 -site=* | --site=* | --sit=*)
ad6254c5 1056 site=$ac_optarg ;;
795ca3e5
AK
1057
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059 ac_prev=srcdir ;;
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1061 srcdir=$ac_optarg ;;
795ca3e5
AK
1062
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1068 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1069
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1071 ac_prev=target_alias ;;
795ca3e5 1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1073 target_alias=$ac_optarg ;;
795ca3e5
AK
1074
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 verbose=yes ;;
1077
ad6254c5
AK
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
795ca3e5
AK
1080
1081 -with-* | --with-*)
66e941e8 1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1083 # Reject names that are not valid shell variable names.
66e941e8
JM
1084 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1086 { (exit 1); exit 1; }; }
66e941e8
JM
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1088 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1089
1090 -without-* | --without-*)
66e941e8 1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1092 # Reject names that are not valid shell variable names.
66e941e8
JM
1093 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1095 { (exit 1); exit 1; }; }
66e941e8
JM
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1097 eval with_$ac_useropt=no ;;
795ca3e5
AK
1098
1099 --x)
1100 # Obsolete; use --with-x.
1101 with_x=yes ;;
1102
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1108 x_includes=$ac_optarg ;;
795ca3e5
AK
1109
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1115 x_libraries=$ac_optarg ;;
795ca3e5 1116
66e941e8 1117 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1118Try \`$0 --help' for more information." >&2
1119 { (exit 1); exit 1; }; }
795ca3e5
AK
1120 ;;
1121
ad6254c5
AK
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
66e941e8 1126 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1127 { (exit 1); exit 1; }; }
7a197a62 1128 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1129 export $ac_envvar ;;
1130
795ca3e5 1131 *)
ad6254c5 1132 # FIXME: should be removed in autoconf 3.0.
66e941e8 1133 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
66e941e8 1135 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1136 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1137 ;;
1138
1139 esac
1140done
1141
1142if test -n "$ac_prev"; then
ad6254c5 1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
66e941e8 1144 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1145 { (exit 1); exit 1; }; }
795ca3e5 1146fi
795ca3e5 1147
7a197a62
AK
1148# Be sure to have absolute directory names.
1149for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir
795ca3e5 1153do
7a197a62 1154 eval ac_val=\$$ac_var
ad6254c5 1155 case $ac_val in
7a197a62
AK
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1158 esac
66e941e8 1159 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1160 { (exit 1); exit 1; }; }
795ca3e5
AK
1161done
1162
ad6254c5
AK
1163# There might be people who depend on the old broken behavior: `$host'
1164# used to hold the argument of --host etc.
1165# FIXME: To remove some day.
1166build=$build_alias
1167host=$host_alias
1168target=$target_alias
1169
1170# FIXME: To remove some day.
1171if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
66e941e8 1174 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1177 cross_compiling=yes
1178 fi
1179fi
8106cdd5 1180
ad6254c5
AK
1181ac_tool_prefix=
1182test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183
1184test "$silent" = yes && exec 6>/dev/null
795ca3e5 1185
795ca3e5 1186
7a197a62
AK
1187ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188ac_ls_di=`ls -di .` &&
1189ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
66e941e8 1190 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1191 { (exit 1); exit 1; }; }
1192test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
66e941e8 1193 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1194 { (exit 1); exit 1; }; }
1195
1196
795ca3e5
AK
1197# Find the source files, if location was not specified.
1198if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
7a197a62
AK
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$0" ||
ad6254c5 1202$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
1203 X"$0" : 'X\(//\)[^/]' \| \
1204 X"$0" : 'X\(//\)$' \| \
7a197a62 1205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66e941e8 1206$as_echo X"$0" |
7a197a62
AK
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\/\)[^/].*/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)$/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\).*/{
1220 s//\1/
1221 q
1222 }
1223 s/.*/./; q'`
795ca3e5 1224 srcdir=$ac_confdir
7a197a62 1225 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1226 srcdir=..
1227 fi
1228else
1229 ac_srcdir_defaulted=no
1230fi
7a197a62
AK
1231if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
66e941e8 1233 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1234 { (exit 1); exit 1; }; }
795ca3e5 1235fi
7a197a62
AK
1236ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237ac_abs_confdir=`(
66e941e8 1238 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1239 { (exit 1); exit 1; }; }
7a197a62
AK
1240 pwd)`
1241# When building in place, set srcdir=.
1242if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 srcdir=.
1244fi
1245# Remove unnecessary trailing slashes from srcdir.
1246# Double slashes in file names in object file debugging info
1247# mess up M-x gdb in Emacs.
1248case $srcdir in
1249*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250esac
1251for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256done
ad6254c5
AK
1257
1258#
1259# Report the --help message.
1260#
1261if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1264 cat <<_ACEOF
1265\`configure' configures this package to adapt to many kinds of systems.
1266
1267Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270VAR=VALUE. See below for descriptions of some of the useful variables.
1271
1272Defaults for the options are specified in brackets.
1273
1274Configuration:
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284
ad6254c5
AK
1285Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
8a2fc586 1287 [$ac_default_prefix]
ad6254c5 1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 1289 [PREFIX]
ad6254c5
AK
1290
1291By default, \`make install' will install all the files in
1292\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294for instance \`--prefix=\$HOME'.
1295
1296For better control, use the options below.
1297
1298Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
ad6254c5
AK
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7a197a62
AK
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1318_ACEOF
1319
1320 cat <<\_ACEOF
1321
1322System types:
1323 --build=BUILD configure for building on BUILD [guessed]
1324 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1325 --target=TARGET configure for building compilers for TARGET [HOST]
1326_ACEOF
1327fi
1328
1329if test -n "$ac_init_help"; then
1330
1331 cat <<\_ACEOF
1332
1333Optional Features:
1334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1336 --enable-jobs=NUM Number of jobs to run simultaneously
1337 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1338 device-mapper is missing from the kernel
1339 --enable-static_link Use this to link the tools to their libraries
1340 statically. Default is dynamic linking
1341 --enable-readline Enable readline support
1342 --disable-selinux Disable selinux support
3d978351 1343 --disable-realtime Disable realtime clock support
ad6254c5
AK
1344 --enable-debug Enable debugging
1345 --disable-devmapper Disable device-mapper interaction
1346 --disable-o_direct Disable O_DIRECT
1347 --enable-cmdlib Build shared command library
1348 --enable-fsadm Enable fsadm
15d91f5a 1349 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
1350 --enable-nls Enable Native Language Support
1351
1352Optional Packages:
1353 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1355 --with-user=USER Set the owner of installed files
1356 --with-group=GROUP Set the group owner of installed files
1357 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1358 TYPE=internal
1359 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1360 TYPE=internal
1361 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1362 TYPE=internal
1363 --with-snapshots=TYPE Snapshot support: internal/shared/none
1364 TYPE=internal
1365 --with-mirrors=TYPE Mirror support: internal/shared/none
1366 TYPE=internal
5c7fc7c4 1367 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1368 TYPE=none
ad6254c5
AK
1369 --with-optimisation=OPT C optimisation flag OPT=-O2
1370 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
1371 --with-confdir=DIR Configuration files in DIR /etc
1372 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1373 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1374
1375Some influential environment variables:
1376 CC C compiler command
1377 CFLAGS C compiler flags
1378 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379 nonstandard directory <lib dir>
7a197a62
AK
1380 LIBS libraries to pass to the linker, e.g. -l<library>
1381 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1382 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1383 CPP C preprocessor
1384
1385Use these variables to override the choices made by `configure' or to help
1386it to find libraries and programs with nonstandard names/locations.
1387
1388_ACEOF
7a197a62 1389ac_status=$?
ad6254c5
AK
1390fi
1391
1392if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
ad6254c5 1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7a197a62 1395 test -d "$ac_dir" || continue
ad6254c5
AK
1396 ac_builddir=.
1397
7a197a62
AK
1398case "$ac_dir" in
1399.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400*)
66e941e8 1401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1402 # A ".." for each directory in $ac_dir_suffix.
66e941e8 1403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408esac
1409ac_abs_top_builddir=$ac_pwd
1410ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411# for backward compatibility:
1412ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1413
1414case $srcdir in
7a197a62 1415 .) # We are building in place.
ad6254c5 1416 ac_srcdir=.
7a197a62
AK
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1420 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1427esac
7a197a62
AK
1428ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1438 else
66e941e8 1439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1442 done
1443fi
1444
7a197a62 1445test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1446if $ac_init_version; then
1447 cat <<\_ACEOF
7a197a62 1448configure
66e941e8 1449generated by GNU Autoconf 2.61a
ad6254c5 1450
7a197a62
AK
1451Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1453This configure script is free software; the Free Software Foundation
1454gives unlimited permission to copy, distribute and modify it.
1455_ACEOF
7a197a62 1456 exit
ad6254c5 1457fi
7a197a62 1458cat >config.log <<_ACEOF
ad6254c5
AK
1459This file contains any messages produced by compilers while
1460running configure, to aid debugging if configure makes a mistake.
1461
1462It was created by $as_me, which was
66e941e8 1463generated by GNU Autoconf 2.61a. Invocation command line was
ad6254c5
AK
1464
1465 $ $0 $@
1466
1467_ACEOF
7a197a62 1468exec 5>>config.log
ad6254c5
AK
1469{
1470cat <<_ASUNAME
1471## --------- ##
1472## Platform. ##
1473## --------- ##
1474
1475hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479uname -v = `(uname -v) 2>/dev/null || echo unknown`
1480
1481/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1483
1484/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1487/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1488/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1491
1492_ASUNAME
1493
1494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
66e941e8 1499 $as_echo "PATH: $as_dir"
ad6254c5 1500done
7a197a62 1501IFS=$as_save_IFS
ad6254c5
AK
1502
1503} >&5
1504
1505cat >&5 <<_ACEOF
1506
1507
1508## ----------- ##
1509## Core tests. ##
1510## ----------- ##
1511
1512_ACEOF
1513
1514
1515# Keep a trace of the command line.
1516# Strip out --no-create and --no-recursion so they do not pile up.
1517# Strip out --silent because we don't want to record it for future runs.
1518# Also quote any args containing shell meta-characters.
1519# Make two passes to allow for proper duplicate-argument suppression.
1520ac_configure_args=
1521ac_configure_args0=
1522ac_configure_args1=
ad6254c5
AK
1523ac_must_keep_next=false
1524for ac_pass in 1 2
1525do
1526 for ac_arg
1527 do
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
7a197a62 1533 *\'*)
66e941e8 1534 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1535 esac
1536 case $ac_pass in
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1538 2)
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
8a2fc586 1541 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1542 else
8a2fc586
AK
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1551 ;;
1552 -* ) ac_must_keep_next=true ;;
1553 esac
ad6254c5 1554 fi
7a197a62 1555 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1556 ;;
1557 esac
1558 done
1559done
1560$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1562
1563# When interrupted or exit'd, cleanup temporary files, and complete
1564# config.log. We remove comments because anyway the quotes in there
1565# would cause problems or look ugly.
7a197a62
AK
1566# WARNING: Use '\'' to represent an apostrophe within the trap.
1567# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1568trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1570 {
1571 echo
1572
1573 cat <<\_ASBOX
1574## ---------------- ##
1575## Cache variables. ##
1576## ---------------- ##
1577_ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1580(
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
66e941e8
JM
1586 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
66e941e8 1591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1592 *) $as_unset $ac_var ;;
1593 esac ;;
1594 esac
1595 done
ad6254c5 1596 (set) 2>&1 |
7a197a62
AK
1597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1598 *${as_nl}ac_space=\ *)
ad6254c5 1599 sed -n \
7a197a62
AK
1600 "s/'\''/'\''\\\\'\'''\''/g;
1601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1602 ;; #(
ad6254c5 1603 *)
7a197a62 1604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1605 ;;
7a197a62
AK
1606 esac |
1607 sort
1608)
ad6254c5
AK
1609 echo
1610
1611 cat <<\_ASBOX
1612## ----------------- ##
1613## Output variables. ##
1614## ----------------- ##
1615_ASBOX
1616 echo
1617 for ac_var in $ac_subst_vars
1618 do
7a197a62
AK
1619 eval ac_val=\$$ac_var
1620 case $ac_val in
66e941e8 1621 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1622 esac
66e941e8 1623 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1624 done | sort
1625 echo
1626
1627 if test -n "$ac_subst_files"; then
1628 cat <<\_ASBOX
7a197a62
AK
1629## ------------------- ##
1630## File substitutions. ##
1631## ------------------- ##
ad6254c5
AK
1632_ASBOX
1633 echo
1634 for ac_var in $ac_subst_files
1635 do
7a197a62
AK
1636 eval ac_val=\$$ac_var
1637 case $ac_val in
66e941e8 1638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1639 esac
66e941e8 1640 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1641 done | sort
1642 echo
1643 fi
1644
1645 if test -s confdefs.h; then
1646 cat <<\_ASBOX
1647## ----------- ##
1648## confdefs.h. ##
1649## ----------- ##
1650_ASBOX
1651 echo
7a197a62 1652 cat confdefs.h
ad6254c5
AK
1653 echo
1654 fi
1655 test "$ac_signal" != 0 &&
66e941e8
JM
1656 $as_echo "$as_me: caught signal $ac_signal"
1657 $as_echo "$as_me: exit $exit_status"
ad6254c5 1658 } >&5
7a197a62
AK
1659 rm -f core *.core core.conftest.* &&
1660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1661 exit $exit_status
7a197a62 1662' 0
ad6254c5
AK
1663for ac_signal in 1 2 13 15; do
1664 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1665done
1666ac_signal=0
1667
1668# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1669rm -f -r conftest* confdefs.h
ad6254c5
AK
1670
1671# Predefined preprocessor variables.
1672
1673cat >>confdefs.h <<_ACEOF
1674#define PACKAGE_NAME "$PACKAGE_NAME"
1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_VERSION "$PACKAGE_VERSION"
1685_ACEOF
8106cdd5 1686
ad6254c5
AK
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_STRING "$PACKAGE_STRING"
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1695_ACEOF
1696
1697
1698# Let the site file select an alternate cache file if it wants to.
795ca3e5 1699# Prefer explicitly selected file to automatically selected ones.
7a197a62
AK
1700if test -n "$CONFIG_SITE"; then
1701 set x "$CONFIG_SITE"
1702elif test "x$prefix" != xNONE; then
1703 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1704else
1705 set x "$ac_default_prefix/share/config.site" \
1706 "$ac_default_prefix/etc/config.site"
795ca3e5 1707fi
7a197a62
AK
1708shift
1709for ac_site_file
1710do
795ca3e5 1711 if test -r "$ac_site_file"; then
66e941e8
JM
1712 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1713$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1714 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1715 . "$ac_site_file"
1716 fi
1717done
1718
1719if test -r "$cache_file"; then
ad6254c5
AK
1720 # Some versions of bash will fail to source /dev/null (special
1721 # files actually), so we avoid doing that.
1722 if test -f "$cache_file"; then
66e941e8
JM
1723 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1724$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1725 case $cache_file in
7a197a62
AK
1726 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1727 *) . "./$cache_file";;
ad6254c5
AK
1728 esac
1729 fi
795ca3e5 1730else
66e941e8
JM
1731 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1732$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1733 >$cache_file
1734fi
1735
1736# Check that the precious variables saved in the cache have kept the same
1737# value.
1738ac_cache_corrupted=false
7a197a62 1739for ac_var in $ac_precious_vars; do
ad6254c5
AK
1740 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1741 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1742 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1743 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1744 case $ac_old_set,$ac_new_set in
1745 set,)
66e941e8
JM
1746 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1747$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1748 ac_cache_corrupted=: ;;
1749 ,set)
66e941e8
JM
1750 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1751$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1752 ac_cache_corrupted=: ;;
1753 ,);;
1754 *)
1755 if test "x$ac_old_val" != "x$ac_new_val"; then
66e941e8
JM
1756 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1757$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1758 { $as_echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1759$as_echo "$as_me: former value: $ac_old_val" >&2;}
1760 { $as_echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1761$as_echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1762 ac_cache_corrupted=:
ad6254c5
AK
1763 fi;;
1764 esac
1765 # Pass precious variables to config.status.
1766 if test "$ac_new_set" = set; then
1767 case $ac_new_val in
66e941e8 1768 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1769 *) ac_arg=$ac_var=$ac_new_val ;;
1770 esac
1771 case " $ac_configure_args " in
1772 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1773 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1774 esac
1775 fi
1776done
1777if $ac_cache_corrupted; then
66e941e8
JM
1778 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1779$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1780 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1781$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1782 { (exit 1); exit 1; }; }
795ca3e5
AK
1783fi
1784
ad6254c5
AK
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
7a197a62
AK
1801ac_ext=c
1802ac_cpp='$CPP $CPPFLAGS'
1803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1806
795ca3e5
AK
1807
1808
1809
72b2cb61 1810################################################################################
7a197a62 1811ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1812
1813
80992638 1814################################################################################
795ca3e5 1815ac_aux_dir=
7a197a62
AK
1816for ac_dir in autoconf "$srcdir"/autoconf; do
1817 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 break
7a197a62 1821 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 break
7a197a62 1825 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break
795ca3e5
AK
1829 fi
1830done
1831if test -z "$ac_aux_dir"; then
66e941e8
JM
1832 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1833$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1834 { (exit 1); exit 1; }; }
795ca3e5 1835fi
7a197a62
AK
1836
1837# These three variables are undocumented and unsupported,
1838# and are intended to be withdrawn in a future Autoconf release.
1839# They can cause serious problems if a builder's source tree is in a directory
1840# whose full name contains unusual characters.
1841ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1842ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1843ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1844
8ce0cbda
AK
1845
1846
ad6254c5 1847################################################################################
8ce0cbda 1848# Make sure we can run config.sub.
7a197a62 1849$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
66e941e8
JM
1850 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1851$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1852 { (exit 1); exit 1; }; }
1853
66e941e8
JM
1854{ $as_echo "$as_me:$LINENO: checking build system type" >&5
1855$as_echo_n "checking build system type... " >&6; }
ad6254c5 1856if test "${ac_cv_build+set}" = set; then
66e941e8 1857 $as_echo_n "(cached) " >&6
ad6254c5 1858else
7a197a62
AK
1859 ac_build_alias=$build_alias
1860test "x$ac_build_alias" = x &&
1861 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1862test "x$ac_build_alias" = x &&
66e941e8
JM
1863 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1864$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1865 { (exit 1); exit 1; }; }
7a197a62 1866ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
66e941e8
JM
1867 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1868$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1869 { (exit 1); exit 1; }; }
1870
1871fi
66e941e8
JM
1872{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1873$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
1874case $ac_cv_build in
1875*-*-*) ;;
66e941e8
JM
1876*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1877$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1878 { (exit 1); exit 1; }; };;
1879esac
ad6254c5 1880build=$ac_cv_build
7a197a62
AK
1881ac_save_IFS=$IFS; IFS='-'
1882set x $ac_cv_build
1883shift
1884build_cpu=$1
1885build_vendor=$2
1886shift; shift
1887# Remember, the first character of IFS is used to create $*,
1888# except with old shells:
1889build_os=$*
1890IFS=$ac_save_IFS
1891case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1892
1893
66e941e8
JM
1894{ $as_echo "$as_me:$LINENO: checking host system type" >&5
1895$as_echo_n "checking host system type... " >&6; }
ad6254c5 1896if test "${ac_cv_host+set}" = set; then
66e941e8 1897 $as_echo_n "(cached) " >&6
ad6254c5 1898else
7a197a62
AK
1899 if test "x$host_alias" = x; then
1900 ac_cv_host=$ac_cv_build
1901else
1902 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
66e941e8
JM
1903 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1904$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1905 { (exit 1); exit 1; }; }
7a197a62 1906fi
ad6254c5
AK
1907
1908fi
66e941e8
JM
1909{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1910$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
1911case $ac_cv_host in
1912*-*-*) ;;
66e941e8
JM
1913*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1914$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1915 { (exit 1); exit 1; }; };;
1916esac
ad6254c5 1917host=$ac_cv_host
7a197a62
AK
1918ac_save_IFS=$IFS; IFS='-'
1919set x $ac_cv_host
1920shift
1921host_cpu=$1
1922host_vendor=$2
1923shift; shift
1924# Remember, the first character of IFS is used to create $*,
1925# except with old shells:
1926host_os=$*
1927IFS=$ac_save_IFS
1928case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1929
1930
66e941e8
JM
1931{ $as_echo "$as_me:$LINENO: checking target system type" >&5
1932$as_echo_n "checking target system type... " >&6; }
ad6254c5 1933if test "${ac_cv_target+set}" = set; then
66e941e8 1934 $as_echo_n "(cached) " >&6
ad6254c5 1935else
7a197a62
AK
1936 if test "x$target_alias" = x; then
1937 ac_cv_target=$ac_cv_host
1938else
1939 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
66e941e8
JM
1940 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1941$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1942 { (exit 1); exit 1; }; }
7a197a62 1943fi
8ce0cbda 1944
ad6254c5 1945fi
66e941e8
JM
1946{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1947$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
1948case $ac_cv_target in
1949*-*-*) ;;
66e941e8
JM
1950*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1951$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1952 { (exit 1); exit 1; }; };;
1953esac
ad6254c5 1954target=$ac_cv_target
7a197a62
AK
1955ac_save_IFS=$IFS; IFS='-'
1956set x $ac_cv_target
1957shift
1958target_cpu=$1
1959target_vendor=$2
1960shift; shift
1961# Remember, the first character of IFS is used to create $*,
1962# except with old shells:
1963target_os=$*
1964IFS=$ac_save_IFS
1965case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1966
8ce0cbda 1967
ad6254c5
AK
1968# The aliases save the names the user supplied, while $host etc.
1969# will get canonicalized.
1970test -n "$target_alias" &&
8ce0cbda
AK
1971 test "$program_prefix$program_suffix$program_transform_name" = \
1972 NONENONEs,x,x, &&
1973 program_prefix=${target_alias}-
1974
8ce0cbda
AK
1975case "$host_os" in
1976 linux*)
1977 CFLAGS="$CFLAGS"
1978 COPTIMISE_FLAG="-O2"
1979 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1980 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1981 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1982 LDDEPS="$LDDEPS .export.sym"
1983 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1984 LIB_SUFFIX="so"
8ce0cbda
AK
1985 DEVMAPPER=yes
1986 ODIRECT=yes
1987 SELINUX=yes
8b1a3214 1988 REALTIME=yes
8ce0cbda
AK
1989 CLUSTER=internal
1990 FSADM=no ;;
1991 darwin*)
1992 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1993 COPTIMISE_FLAG="-O2"
1994 CLDFLAGS="$CLDFLAGS"
1995 CLDWHOLEARCHIVE="-all_load"
1996 CLDNOWHOLEARCHIVE=
1997 LDDEPS="$LDDEPS"
1998 LDFLAGS="$LDFLAGS"
e4c11ad1 1999 LIB_SUFFIX="dylib"
a653923f 2000 DEVMAPPER=yes
8ce0cbda
AK
2001 ODIRECT=no
2002 SELINUX=no
8b1a3214 2003 REALTIME=no
8ce0cbda
AK
2004 CLUSTER=none
2005 FSADM=no ;;
2006esac
2007
80992638 2008################################################################################
ad6254c5 2009for ac_prog in gawk mawk nawk awk
795ca3e5 2010do
ad6254c5 2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2012set dummy $ac_prog; ac_word=$2
66e941e8
JM
2013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2014$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2015if test "${ac_cv_prog_AWK+set}" = set; then
66e941e8 2016 $as_echo_n "(cached) " >&6
795ca3e5
AK
2017else
2018 if test -n "$AWK"; then
2019 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2020else
ad6254c5
AK
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2028 ac_cv_prog_AWK="$ac_prog"
66e941e8 2029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2030 break 2
2031 fi
2032done
2033done
7a197a62 2034IFS=$as_save_IFS
ad6254c5 2035
795ca3e5
AK
2036fi
2037fi
ad6254c5 2038AWK=$ac_cv_prog_AWK
795ca3e5 2039if test -n "$AWK"; then
66e941e8
JM
2040 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2041$as_echo "$AWK" >&6; }
795ca3e5 2042else
66e941e8
JM
2043 { $as_echo "$as_me:$LINENO: result: no" >&5
2044$as_echo "no" >&6; }
795ca3e5
AK
2045fi
2046
7a197a62 2047
ad6254c5
AK
2048 test -n "$AWK" && break
2049done
2050
2051ac_ext=c
2052ac_cpp='$CPP $CPPFLAGS'
2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056if test -n "$ac_tool_prefix"; then
2057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2058set dummy ${ac_tool_prefix}gcc; ac_word=$2
66e941e8
JM
2059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2060$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2061if test "${ac_cv_prog_CC+set}" = set; then
66e941e8 2062 $as_echo_n "(cached) " >&6
ad6254c5
AK
2063else
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2074 ac_cv_prog_CC="${ac_tool_prefix}gcc"
66e941e8 2075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2076 break 2
2077 fi
2078done
8106cdd5 2079done
7a197a62 2080IFS=$as_save_IFS
8106cdd5 2081
ad6254c5
AK
2082fi
2083fi
2084CC=$ac_cv_prog_CC
2085if test -n "$CC"; then
66e941e8
JM
2086 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2087$as_echo "$CC" >&6; }
ad6254c5 2088else
66e941e8
JM
2089 { $as_echo "$as_me:$LINENO: result: no" >&5
2090$as_echo "no" >&6; }
ad6254c5
AK
2091fi
2092
7a197a62 2093
ad6254c5
AK
2094fi
2095if test -z "$ac_cv_prog_CC"; then
2096 ac_ct_CC=$CC
2097 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2098set dummy gcc; ac_word=$2
66e941e8
JM
2099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2100$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
66e941e8 2102 $as_echo_n "(cached) " >&6
ad6254c5
AK
2103else
2104 if test -n "$ac_ct_CC"; then
2105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2114 ac_cv_prog_ac_ct_CC="gcc"
66e941e8 2115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2116 break 2
2117 fi
2118done
2119done
7a197a62 2120IFS=$as_save_IFS
ad6254c5
AK
2121
2122fi
2123fi
2124ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125if test -n "$ac_ct_CC"; then
66e941e8
JM
2126 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2128else
66e941e8
JM
2129 { $as_echo "$as_me:$LINENO: result: no" >&5
2130$as_echo "no" >&6; }
ad6254c5
AK
2131fi
2132
7a197a62
AK
2133 if test "x$ac_ct_CC" = x; then
2134 CC=""
2135 else
2136 case $cross_compiling:$ac_tool_warned in
2137yes:)
66e941e8 2138{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2139whose name does not start with the host triplet. If you think this
2140configuration is useful to you, please write to autoconf@gnu.org." >&5
66e941e8 2141$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2142whose name does not start with the host triplet. If you think this
2143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2144ac_tool_warned=yes ;;
2145esac
2146 CC=$ac_ct_CC
2147 fi
ad6254c5
AK
2148else
2149 CC="$ac_cv_prog_CC"
2150fi
2151
2152if test -z "$CC"; then
7a197a62
AK
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2155set dummy ${ac_tool_prefix}cc; ac_word=$2
66e941e8
JM
2156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2157$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2158if test "${ac_cv_prog_CC+set}" = set; then
66e941e8 2159 $as_echo_n "(cached) " >&6
8106cdd5
AK
2160else
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC="$CC" # Let the user override the test.
2163else
ad6254c5
AK
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167 IFS=$as_save_IFS
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2171 ac_cv_prog_CC="${ac_tool_prefix}cc"
66e941e8 2172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2173 break 2
2174 fi
2175done
2176done
7a197a62 2177IFS=$as_save_IFS
ad6254c5 2178
8106cdd5
AK
2179fi
2180fi
ad6254c5 2181CC=$ac_cv_prog_CC
8106cdd5 2182if test -n "$CC"; then
66e941e8
JM
2183 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2184$as_echo "$CC" >&6; }
ad6254c5 2185else
66e941e8
JM
2186 { $as_echo "$as_me:$LINENO: result: no" >&5
2187$as_echo "no" >&6; }
ad6254c5
AK
2188fi
2189
8106cdd5 2190
7a197a62 2191 fi
ad6254c5 2192fi
795ca3e5
AK
2193if test -z "$CC"; then
2194 # Extract the first word of "cc", so it can be a program name with args.
2195set dummy cc; ac_word=$2
66e941e8
JM
2196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2197$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2198if test "${ac_cv_prog_CC+set}" = set; then
66e941e8 2199 $as_echo_n "(cached) " >&6
795ca3e5
AK
2200else
2201 if test -n "$CC"; then
2202 ac_cv_prog_CC="$CC" # Let the user override the test.
2203else
795ca3e5 2204 ac_prog_rejected=no
ad6254c5
AK
2205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206for as_dir in $PATH
2207do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2213 ac_prog_rejected=yes
2214 continue
2215 fi
2216 ac_cv_prog_CC="cc"
66e941e8 2217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2218 break 2
2219 fi
2220done
2221done
7a197a62 2222IFS=$as_save_IFS
ad6254c5 2223
795ca3e5
AK
2224if test $ac_prog_rejected = yes; then
2225 # We found a bogon in the path, so make sure we never use it.
2226 set dummy $ac_cv_prog_CC
2227 shift
ad6254c5 2228 if test $# != 0; then
795ca3e5
AK
2229 # We chose a different compiler from the bogus one.
2230 # However, it has the same basename, so the bogon will be chosen
2231 # first if we set CC to just the basename; use the full file name.
2232 shift
ad6254c5 2233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2234 fi
2235fi
2236fi
2237fi
ad6254c5 2238CC=$ac_cv_prog_CC
795ca3e5 2239if test -n "$CC"; then
66e941e8
JM
2240 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2241$as_echo "$CC" >&6; }
795ca3e5 2242else
66e941e8
JM
2243 { $as_echo "$as_me:$LINENO: result: no" >&5
2244$as_echo "no" >&6; }
795ca3e5
AK
2245fi
2246
7a197a62 2247
ad6254c5
AK
2248fi
2249if test -z "$CC"; then
2250 if test -n "$ac_tool_prefix"; then
7a197a62 2251 for ac_prog in cl.exe
ad6254c5
AK
2252 do
2253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
66e941e8
JM
2255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2257if test "${ac_cv_prog_CC+set}" = set; then
66e941e8 2258 $as_echo_n "(cached) " >&6
795ca3e5
AK
2259else
2260 if test -n "$CC"; then
2261 ac_cv_prog_CC="$CC" # Let the user override the test.
2262else
ad6254c5
AK
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
66e941e8 2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2272 break 2
2273 fi
2274done
2275done
7a197a62 2276IFS=$as_save_IFS
ad6254c5 2277
795ca3e5
AK
2278fi
2279fi
ad6254c5 2280CC=$ac_cv_prog_CC
795ca3e5 2281if test -n "$CC"; then
66e941e8
JM
2282 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2283$as_echo "$CC" >&6; }
795ca3e5 2284else
66e941e8
JM
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286$as_echo "no" >&6; }
795ca3e5 2287fi
ad6254c5 2288
7a197a62 2289
ad6254c5
AK
2290 test -n "$CC" && break
2291 done
2292fi
2293if test -z "$CC"; then
2294 ac_ct_CC=$CC
7a197a62 2295 for ac_prog in cl.exe
ad6254c5
AK
2296do
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298set dummy $ac_prog; ac_word=$2
66e941e8
JM
2299{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2300$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2301if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
66e941e8 2302 $as_echo_n "(cached) " >&6
ad6254c5
AK
2303else
2304 if test -n "$ac_ct_CC"; then
2305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306else
2307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308for as_dir in $PATH
2309do
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2314 ac_cv_prog_ac_ct_CC="$ac_prog"
66e941e8 2315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2316 break 2
795ca3e5 2317 fi
ad6254c5
AK
2318done
2319done
7a197a62 2320IFS=$as_save_IFS
ad6254c5
AK
2321
2322fi
2323fi
2324ac_ct_CC=$ac_cv_prog_ac_ct_CC
2325if test -n "$ac_ct_CC"; then
66e941e8
JM
2326 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2327$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2328else
66e941e8
JM
2329 { $as_echo "$as_me:$LINENO: result: no" >&5
2330$as_echo "no" >&6; }
795ca3e5
AK
2331fi
2332
7a197a62 2333
ad6254c5
AK
2334 test -n "$ac_ct_CC" && break
2335done
795ca3e5 2336
7a197a62
AK
2337 if test "x$ac_ct_CC" = x; then
2338 CC=""
2339 else
2340 case $cross_compiling:$ac_tool_warned in
2341yes:)
66e941e8 2342{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2343whose name does not start with the host triplet. If you think this
2344configuration is useful to you, please write to autoconf@gnu.org." >&5
66e941e8 2345$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2346whose name does not start with the host triplet. If you think this
2347configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2348ac_tool_warned=yes ;;
2349esac
2350 CC=$ac_ct_CC
2351 fi
ad6254c5
AK
2352fi
2353
2354fi
2355
2356
66e941e8 2357test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2358See \`config.log' for more details." >&5
66e941e8 2359$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2360See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2362
2363# Provide some information about the compiler.
66e941e8
JM
2364$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2365set X $ac_compile
2366ac_compiler=$2
7a197a62
AK
2367{ (ac_try="$ac_compiler --version >&5"
2368case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371esac
66e941e8
JM
2372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2373$as_echo "$ac_try_echo") >&5
7a197a62 2374 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2375 ac_status=$?
66e941e8 2376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2377 (exit $ac_status); }
7a197a62
AK
2378{ (ac_try="$ac_compiler -v >&5"
2379case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382esac
66e941e8
JM
2383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2384$as_echo "$ac_try_echo") >&5
7a197a62 2385 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2386 ac_status=$?
66e941e8 2387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2388 (exit $ac_status); }
7a197a62
AK
2389{ (ac_try="$ac_compiler -V >&5"
2390case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393esac
66e941e8
JM
2394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2395$as_echo "$ac_try_echo") >&5
7a197a62 2396 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2397 ac_status=$?
66e941e8 2398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2399 (exit $ac_status); }
2400
2401cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
2407
2408int
2409main ()
2410{
2411
2412 ;
2413 return 0;
2414}
2415_ACEOF
2416ac_clean_files_save=$ac_clean_files
2417ac_clean_files="$ac_clean_files a.out a.exe b.out"
2418# Try to create an executable without -o first, disregard a.out.
2419# It will help us diagnose broken compilers, and finding out an intuition
2420# of exeext.
66e941e8
JM
2421{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2422$as_echo_n "checking for C compiler default output file name... " >&6; }
2423ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7a197a62
AK
2424#
2425# List of possible output files, starting from the most likely.
2426# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2427# only as a last resort. b.out is created by i960 compilers.
2428ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2429#
2430# The IRIX 6 linker writes into existing files which may not be
2431# executable, retaining their permissions. Remove them first so a
2432# subsequent execution test works.
2433ac_rmfiles=
2434for ac_file in $ac_files
2435do
2436 case $ac_file in
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2438 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2439 esac
2440done
2441rm -f $ac_rmfiles
2442
2443if { (ac_try="$ac_link_default"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
66e941e8
JM
2448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2449$as_echo "$ac_try_echo") >&5
7a197a62 2450 (eval "$ac_link_default") 2>&5
ad6254c5 2451 ac_status=$?
66e941e8 2452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2453 (exit $ac_status); }; then
7a197a62
AK
2454 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2455# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2456# in a Makefile. We should not override ac_cv_exeext if it was cached,
2457# so that the user can short-circuit this test for compilers unknown to
2458# Autoconf.
2459for ac_file in $ac_files ''
ad6254c5
AK
2460do
2461 test -f "$ac_file" || continue
2462 case $ac_file in
7a197a62 2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2464 ;;
ad6254c5 2465 [ab].out )
8a2fc586
AK
2466 # We found the default executable, but exeext='' is most
2467 # certainly right.
2468 break;;
ad6254c5 2469 *.* )
7a197a62
AK
2470 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2471 then :; else
2472 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473 fi
2474 # We set ac_cv_exeext here because the later test for it is not
2475 # safe: cross compilers may not add the suffix if given an `-o'
2476 # argument, so we may need to know it at that point already.
2477 # Even if this section looks crufty: it has the advantage of
2478 # actually working.
8a2fc586 2479 break;;
ad6254c5 2480 * )
8a2fc586 2481 break;;
ad6254c5
AK
2482 esac
2483done
7a197a62
AK
2484test "$ac_cv_exeext" = no && ac_cv_exeext=
2485
ad6254c5 2486else
7a197a62
AK
2487 ac_file=''
2488fi
2489
66e941e8
JM
2490{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2491$as_echo "$ac_file" >&6; }
7a197a62 2492if test -z "$ac_file"; then
66e941e8 2493 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
66e941e8 2496{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2497See \`config.log' for more details." >&5
66e941e8 2498$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2499See \`config.log' for more details." >&2;}
2500 { (exit 77); exit 77; }; }
2501fi
2502
2503ac_exeext=$ac_cv_exeext
ad6254c5 2504
7a197a62 2505# Check that the compiler produces executables we can run. If not, either
ad6254c5 2506# the compiler is broken, or we cross compile.
66e941e8
JM
2507{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2508$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2509# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2510# If not cross compiling, check that we can run a simple program.
2511if test "$cross_compiling" != yes; then
2512 if { ac_try='./$ac_file'
7a197a62
AK
2513 { (case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516esac
66e941e8
JM
2517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2518$as_echo "$ac_try_echo") >&5
7a197a62 2519 (eval "$ac_try") 2>&5
ad6254c5 2520 ac_status=$?
66e941e8 2521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2522 (exit $ac_status); }; }; then
2523 cross_compiling=no
795ca3e5 2524 else
ad6254c5
AK
2525 if test "$cross_compiling" = maybe; then
2526 cross_compiling=yes
2527 else
66e941e8 2528 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2529If you meant to cross compile, use \`--host'.
2530See \`config.log' for more details." >&5
66e941e8 2531$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2532If you meant to cross compile, use \`--host'.
2533See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2535 fi
795ca3e5 2536 fi
80992638 2537fi
66e941e8
JM
2538{ $as_echo "$as_me:$LINENO: result: yes" >&5
2539$as_echo "yes" >&6; }
ad6254c5
AK
2540
2541rm -f a.out a.exe conftest$ac_cv_exeext b.out
2542ac_clean_files=$ac_clean_files_save
7a197a62 2543# Check that the compiler produces executables we can run. If not, either
ad6254c5 2544# the compiler is broken, or we cross compile.
66e941e8
JM
2545{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2546$as_echo_n "checking whether we are cross compiling... " >&6; }
2547{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2548$as_echo "$cross_compiling" >&6; }
7a197a62 2549
66e941e8
JM
2550{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2551$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2552if { (ac_try="$ac_link"
2553case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556esac
66e941e8
JM
2557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2558$as_echo "$ac_try_echo") >&5
7a197a62 2559 (eval "$ac_link") 2>&5
ad6254c5 2560 ac_status=$?
66e941e8 2561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2562 (exit $ac_status); }; then
2563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2565# work properly (i.e., refer to `conftest.exe'), while it won't with
2566# `rm'.
2567for ac_file in conftest.exe conftest conftest.*; do
2568 test -f "$ac_file" || continue
2569 case $ac_file in
7a197a62 2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2572 break;;
ad6254c5
AK
2573 * ) break;;
2574 esac
2575done
80992638 2576else
66e941e8 2577 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2578See \`config.log' for more details." >&5
66e941e8 2579$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2580See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }
2582fi
2583
2584rm -f conftest$ac_cv_exeext
66e941e8
JM
2585{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2586$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2587
2588rm -f conftest.$ac_ext
2589EXEEXT=$ac_cv_exeext
2590ac_exeext=$EXEEXT
66e941e8
JM
2591{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2592$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2593if test "${ac_cv_objext+set}" = set; then
66e941e8 2594 $as_echo_n "(cached) " >&6
795ca3e5 2595else
ad6254c5 2596 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2597/* confdefs.h. */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h. */
2602
2603int
2604main ()
2605{
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.o conftest.obj
7a197a62
AK
2612if { (ac_try="$ac_compile"
2613case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616esac
66e941e8
JM
2617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2618$as_echo "$ac_try_echo") >&5
7a197a62 2619 (eval "$ac_compile") 2>&5
ad6254c5 2620 ac_status=$?
66e941e8 2621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2622 (exit $ac_status); }; then
7a197a62
AK
2623 for ac_file in conftest.o conftest.obj conftest.*; do
2624 test -f "$ac_file" || continue;
ad6254c5 2625 case $ac_file in
7a197a62 2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2628 break;;
2629 esac
2630done
2631else
66e941e8 2632 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
66e941e8 2635{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2636See \`config.log' for more details." >&5
66e941e8 2637$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2638See \`config.log' for more details." >&2;}
2639 { (exit 1); exit 1; }; }
2640fi
2641
2642rm -f conftest.$ac_cv_objext conftest.$ac_ext
2643fi
66e941e8
JM
2644{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2645$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
2646OBJEXT=$ac_cv_objext
2647ac_objext=$OBJEXT
66e941e8
JM
2648{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2649$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 2650if test "${ac_cv_c_compiler_gnu+set}" = set; then
66e941e8 2651 $as_echo_n "(cached) " >&6
ad6254c5
AK
2652else
2653 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2654/* confdefs.h. */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h. */
2659
2660int
2661main ()
2662{
2663#ifndef __GNUC__
2664 choke me
2665#endif
80992638 2666
ad6254c5
AK
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671rm -f conftest.$ac_objext
7a197a62
AK
2672if { (ac_try="$ac_compile"
2673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
66e941e8
JM
2677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2678$as_echo "$ac_try_echo") >&5
7a197a62 2679 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2680 ac_status=$?
8a2fc586
AK
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
66e941e8 2684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2685 (exit $ac_status); } && {
2686 test -z "$ac_c_werror_flag" ||
2687 test ! -s conftest.err
2688 } && test -s conftest.$ac_objext; then
ad6254c5 2689 ac_compiler_gnu=yes
80992638 2690else
66e941e8 2691 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
7a197a62 2694 ac_compiler_gnu=no
8106cdd5 2695fi
7a197a62
AK
2696
2697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2698ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2699
ad6254c5 2700fi
66e941e8
JM
2701{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2702$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2703if test $ac_compiler_gnu = yes; then
2704 GCC=yes
2705else
2706 GCC=
2707fi
ad6254c5
AK
2708ac_test_CFLAGS=${CFLAGS+set}
2709ac_save_CFLAGS=$CFLAGS
66e941e8
JM
2710{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2711$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 2712if test "${ac_cv_prog_cc_g+set}" = set; then
66e941e8 2713 $as_echo_n "(cached) " >&6
795ca3e5 2714else
7a197a62
AK
2715 ac_save_c_werror_flag=$ac_c_werror_flag
2716 ac_c_werror_flag=yes
2717 ac_cv_prog_cc_g=no
2718 CFLAGS="-g"
2719 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2720/* confdefs.h. */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h. */
2725
2726int
2727main ()
2728{
2729
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
7a197a62
AK
2735if { (ac_try="$ac_compile"
2736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
66e941e8
JM
2740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2741$as_echo "$ac_try_echo") >&5
7a197a62 2742 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2743 ac_status=$?
8a2fc586
AK
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
66e941e8 2747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2752 ac_cv_prog_cc_g=yes
2753else
66e941e8 2754 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 CFLAGS=""
2758 cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h. */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h. */
2764
2765int
2766main ()
2767{
2768
2769 ;
2770 return 0;
2771}
2772_ACEOF
2773rm -f conftest.$ac_objext
2774if { (ac_try="$ac_compile"
2775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
66e941e8
JM
2779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2780$as_echo "$ac_try_echo") >&5
7a197a62 2781 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2782 ac_status=$?
7a197a62
AK
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
66e941e8 2786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2791 :
2792else
66e941e8 2793 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 ac_c_werror_flag=$ac_save_c_werror_flag
2797 CFLAGS="-g"
2798 cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h. */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h. */
2804
2805int
2806main ()
2807{
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext
2814if { (ac_try="$ac_compile"
2815case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818esac
66e941e8
JM
2819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820$as_echo "$ac_try_echo") >&5
7a197a62 2821 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2822 ac_status=$?
7a197a62
AK
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
66e941e8 2826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2827 (exit $ac_status); } && {
2828 test -z "$ac_c_werror_flag" ||
2829 test ! -s conftest.err
2830 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2831 ac_cv_prog_cc_g=yes
2832else
66e941e8 2833 $as_echo "$as_me: failed program was:" >&5
ad6254c5 2834sed 's/^/| /' conftest.$ac_ext >&5
80992638 2835
7a197a62
AK
2836
2837fi
2838
2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840fi
2841
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2843fi
7a197a62
AK
2844
2845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2847fi
66e941e8
JM
2848{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2849$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 2850if test "$ac_test_CFLAGS" = set; then
ad6254c5 2851 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2852elif test $ac_cv_prog_cc_g = yes; then
2853 if test "$GCC" = yes; then
2854 CFLAGS="-g -O2"
2855 else
2856 CFLAGS="-g"
2857 fi
2858else
2859 if test "$GCC" = yes; then
2860 CFLAGS="-O2"
2861 else
2862 CFLAGS=
2863 fi
2864fi
66e941e8
JM
2865{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 2867if test "${ac_cv_prog_cc_c89+set}" = set; then
66e941e8 2868 $as_echo_n "(cached) " >&6
ad6254c5 2869else
7a197a62 2870 ac_cv_prog_cc_c89=no
ad6254c5
AK
2871ac_save_CC=$CC
2872cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
2878#include <stdarg.h>
2879#include <stdio.h>
2880#include <sys/types.h>
2881#include <sys/stat.h>
2882/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2883struct buf { int x; };
2884FILE * (*rcsopen) (struct buf *, struct stat *, int);
2885static char *e (p, i)
2886 char **p;
2887 int i;
2888{
2889 return p[i];
2890}
2891static char *f (char * (*g) (char **, int), char **p, ...)
2892{
2893 char *s;
2894 va_list v;
2895 va_start (v,p);
2896 s = g (p, va_arg (v,int));
2897 va_end (v);
2898 return s;
2899}
8a2fc586
AK
2900
2901/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2902 function prototypes and stuff, but not '\xHH' hex character constants.
2903 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2904 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2906 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2907 that's true only with -std. */
8a2fc586
AK
2908int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2909
7a197a62
AK
2910/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2911 inside strings and character constants. */
2912#define FOO(x) 'x'
2913int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2914
ad6254c5
AK
2915int test (int i, double x);
2916struct s1 {int (*f) (int a);};
2917struct s2 {int (*f) (double a);};
2918int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2919int argc;
2920char **argv;
2921int
2922main ()
2923{
2924return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2925 ;
2926 return 0;
2927}
2928_ACEOF
7a197a62
AK
2929for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2931do
2932 CC="$ac_save_CC $ac_arg"
2933 rm -f conftest.$ac_objext
7a197a62
AK
2934if { (ac_try="$ac_compile"
2935case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938esac
66e941e8
JM
2939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940$as_echo "$ac_try_echo") >&5
7a197a62 2941 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2942 ac_status=$?
8a2fc586
AK
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
66e941e8 2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2951 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 2952else
66e941e8 2953 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
7a197a62 2956
ad6254c5 2957fi
7a197a62
AK
2958
2959rm -f core conftest.err conftest.$ac_objext
2960 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 2961done
7a197a62 2962rm -f conftest.$ac_ext
ad6254c5
AK
2963CC=$ac_save_CC
2964
2965fi
7a197a62
AK
2966# AC_CACHE_VAL
2967case "x$ac_cv_prog_cc_c89" in
2968 x)
66e941e8
JM
2969 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2970$as_echo "none needed" >&6; } ;;
7a197a62 2971 xno)
66e941e8
JM
2972 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2973$as_echo "unsupported" >&6; } ;;
ad6254c5 2974 *)
7a197a62 2975 CC="$CC $ac_cv_prog_cc_c89"
66e941e8
JM
2976 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2977$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
2978esac
2979
ad6254c5 2980
ad6254c5
AK
2981ac_ext=c
2982ac_cpp='$CPP $CPPFLAGS'
2983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2986
2987# Find a good install program. We prefer a C program (faster),
2988# so one script is as good as another. But avoid the broken or
2989# incompatible versions:
2990# SysV /etc/install, /usr/sbin/install
2991# SunOS /usr/etc/install
2992# IRIX /sbin/install
2993# AIX /bin/install
ad6254c5 2994# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2998# OS/2's system install, which has a completely different semantic
795ca3e5 2999# ./install, which can be erroneously created by make from ./install.sh.
66e941e8
JM
3000{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3001$as_echo_n "checking for a BSD-compatible install... " >&6; }
795ca3e5 3002if test -z "$INSTALL"; then
ad6254c5 3003if test "${ac_cv_path_install+set}" = set; then
66e941e8 3004 $as_echo_n "(cached) " >&6
ad6254c5
AK
3005else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 # Account for people who put trailing slashes in PATH elements.
3012case $as_dir/ in
3013 ./ | .// | /cC/* | \
3014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 3015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
3016 /usr/ucb/* ) ;;
3017 *)
3018 # OSF1 and SCO ODT 3.0 have their own names for install.
3019 # Don't use installbsd from OSF since it installs stuff as root
3020 # by default.
3021 for ac_prog in ginstall scoinst install; do
3022 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8a2fc586
AK
3024 if test $ac_prog = install &&
3025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3026 # AIX install. It has an incompatible calling convention.
3027 :
3028 elif test $ac_prog = install &&
3029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3030 # program-specific install script used by HP pwplus--don't use.
3031 :
3032 else
3033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3034 break 3
3035 fi
3036 fi
795ca3e5 3037 done
ad6254c5
AK
3038 done
3039 ;;
3040esac
3041done
7a197a62 3042IFS=$as_save_IFS
ad6254c5 3043
795ca3e5
AK
3044
3045fi
3046 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 3047 INSTALL=$ac_cv_path_install
795ca3e5 3048 else
7a197a62
AK
3049 # As a last resort, use the slow shell script. Don't cache a
3050 # value for INSTALL within a source directory, because that will
795ca3e5 3051 # break other packages using the cache if that directory is
7a197a62 3052 # removed, or if the value is a relative name.
ad6254c5 3053 INSTALL=$ac_install_sh
795ca3e5
AK
3054 fi
3055fi
66e941e8
JM
3056{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3057$as_echo "$INSTALL" >&6; }
795ca3e5
AK
3058
3059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3060# It thinks the first close brace ends the variable substitution.
3061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3062
ad6254c5 3063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
3064
3065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3066
66e941e8
JM
3067{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3068$as_echo_n "checking whether ln -s works... " >&6; }
ad6254c5
AK
3069LN_S=$as_ln_s
3070if test "$LN_S" = "ln -s"; then
66e941e8
JM
3071 { $as_echo "$as_me:$LINENO: result: yes" >&5
3072$as_echo "yes" >&6; }
80992638 3073else
66e941e8
JM
3074 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3075$as_echo "no, using $LN_S" >&6; }
795ca3e5
AK
3076fi
3077
66e941e8
JM
3078{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3079$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3080set x ${MAKE-make}
3081ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7a197a62 3082if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 3083 $as_echo_n "(cached) " >&6
795ca3e5 3084else
ad6254c5 3085 cat >conftest.make <<\_ACEOF
7a197a62 3086SHELL = /bin/sh
795ca3e5 3087all:
7a197a62 3088 @echo '@@@%%%=$(MAKE)=@@@%%%'
ad6254c5 3089_ACEOF
795ca3e5 3090# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7a197a62
AK
3091case `${MAKE-make} -f conftest.make 2>/dev/null` in
3092 *@@@%%%=?*=@@@%%%*)
3093 eval ac_cv_prog_make_${ac_make}_set=yes;;
3094 *)
3095 eval ac_cv_prog_make_${ac_make}_set=no;;
3096esac
ad6254c5 3097rm -f conftest.make
795ca3e5 3098fi
7a197a62 3099if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
66e941e8
JM
3100 { $as_echo "$as_me:$LINENO: result: yes" >&5
3101$as_echo "yes" >&6; }
795ca3e5
AK
3102 SET_MAKE=
3103else
66e941e8
JM
3104 { $as_echo "$as_me:$LINENO: result: no" >&5
3105$as_echo "no" >&6; }
795ca3e5
AK
3106 SET_MAKE="MAKE=${MAKE-make}"
3107fi
3108
ad6254c5
AK
3109if test -n "$ac_tool_prefix"; then
3110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3111set dummy ${ac_tool_prefix}ranlib; ac_word=$2
66e941e8
JM
3112{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 3114if test "${ac_cv_prog_RANLIB+set}" = set; then
66e941e8 3115 $as_echo_n "(cached) " >&6
795ca3e5
AK
3116else
3117 if test -n "$RANLIB"; then
3118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3119else
ad6254c5
AK
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 3127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
66e941e8 3128 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
3129 break 2
3130 fi
3131done
3132done
7a197a62 3133IFS=$as_save_IFS
ad6254c5 3134
795ca3e5
AK
3135fi
3136fi
ad6254c5 3137RANLIB=$ac_cv_prog_RANLIB
795ca3e5 3138if test -n "$RANLIB"; then
66e941e8
JM
3139 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3140$as_echo "$RANLIB" >&6; }
8106cdd5 3141else
66e941e8
JM
3142 { $as_echo "$as_me:$LINENO: result: no" >&5
3143$as_echo "no" >&6; }
8106cdd5
AK
3144fi
3145
7a197a62 3146
795ca3e5 3147fi
ad6254c5
AK
3148if test -z "$ac_cv_prog_RANLIB"; then
3149 ac_ct_RANLIB=$RANLIB
3150 # Extract the first word of "ranlib", so it can be a program name with args.
3151set dummy ranlib; ac_word=$2
66e941e8
JM
3152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 3154if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
66e941e8 3155 $as_echo_n "(cached) " >&6
80992638 3156else
ad6254c5
AK
3157 if test -n "$ac_ct_RANLIB"; then
3158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 3167 ac_cv_prog_ac_ct_RANLIB="ranlib"
66e941e8 3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
3169 break 2
3170 fi
3171done
795ca3e5 3172done
7a197a62 3173IFS=$as_save_IFS
8106cdd5 3174
795ca3e5 3175fi
80992638 3176fi
ad6254c5
AK
3177ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3178if test -n "$ac_ct_RANLIB"; then
66e941e8
JM
3179 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3180$as_echo "$ac_ct_RANLIB" >&6; }
80992638 3181else
66e941e8
JM
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183$as_echo "no" >&6; }
8106cdd5 3184fi
8106cdd5 3185
7a197a62
AK
3186 if test "x$ac_ct_RANLIB" = x; then
3187 RANLIB=":"
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190yes:)
66e941e8 3191{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
3192whose name does not start with the host triplet. If you think this
3193configuration is useful to you, please write to autoconf@gnu.org." >&5
66e941e8 3194$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
3195whose name does not start with the host triplet. If you think this
3196configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3197ac_tool_warned=yes ;;
3198esac
3199 RANLIB=$ac_ct_RANLIB
3200 fi
80992638 3201else
ad6254c5 3202 RANLIB="$ac_cv_prog_RANLIB"
80992638 3203fi
795ca3e5 3204
8a2fc586
AK
3205# Extract the first word of "cflow", so it can be a program name with args.
3206set dummy cflow; ac_word=$2
66e941e8
JM
3207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
8a2fc586 3209if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
66e941e8 3210 $as_echo_n "(cached) " >&6
8a2fc586
AK
3211else
3212 case $CFLOW_CMD in
3213 [\\/]* | ?:[\\/]*)
3214 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3215 ;;
3216 *)
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586 3224 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
66e941e8 3225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8a2fc586
AK
3226 break 2
3227 fi
3228done
3229done
7a197a62 3230IFS=$as_save_IFS
8a2fc586
AK
3231
3232 ;;
3233esac
3234fi
3235CFLOW_CMD=$ac_cv_path_CFLOW_CMD
8a2fc586 3236if test -n "$CFLOW_CMD"; then
66e941e8
JM
3237 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3238$as_echo "$CFLOW_CMD" >&6; }
8a2fc586 3239else
66e941e8
JM
3240 { $as_echo "$as_me:$LINENO: result: no" >&5
3241$as_echo "no" >&6; }
8a2fc586
AK
3242fi
3243
7a197a62 3244
8a2fc586
AK
3245# Extract the first word of "cscope", so it can be a program name with args.
3246set dummy cscope; ac_word=$2
66e941e8
JM
3247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
8a2fc586 3249if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
66e941e8 3250 $as_echo_n "(cached) " >&6
8a2fc586
AK
3251else
3252 case $CSCOPE_CMD in
3253 [\\/]* | ?:[\\/]*)
3254 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3255 ;;
3256 *)
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586 3264 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
66e941e8 3265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8a2fc586
AK
3266 break 2
3267 fi
3268done
3269done
7a197a62 3270IFS=$as_save_IFS
8a2fc586
AK
3271
3272 ;;
3273esac
3274fi
3275CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
8a2fc586 3276if test -n "$CSCOPE_CMD"; then
66e941e8
JM
3277 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3278$as_echo "$CSCOPE_CMD" >&6; }
8a2fc586 3279else
66e941e8
JM
3280 { $as_echo "$as_me:$LINENO: result: no" >&5
3281$as_echo "no" >&6; }
8a2fc586
AK
3282fi
3283
795ca3e5 3284
7a197a62 3285
ad6254c5
AK
3286################################################################################
3287
3288
3289
3290
3291
3292
3293ac_header_dirent=no
3294for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
66e941e8
JM
3295 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3296{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3297$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7a197a62 3298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 3299 $as_echo_n "(cached) " >&6
8106cdd5 3300else
ad6254c5 3301 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307#include <sys/types.h>
3308#include <$ac_hdr>
3309
3310int
3311main ()
3312{
3313if ((DIR *) 0)
3314return 0;
3315 ;
3316 return 0;
3317}
3318_ACEOF
3319rm -f conftest.$ac_objext
7a197a62
AK
3320if { (ac_try="$ac_compile"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
66e941e8
JM
3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3326$as_echo "$ac_try_echo") >&5
7a197a62 3327 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3328 ac_status=$?
8a2fc586
AK
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
66e941e8 3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
ad6254c5 3337 eval "$as_ac_Header=yes"
8106cdd5 3338else
66e941e8 3339 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3340sed 's/^/| /' conftest.$ac_ext >&5
3341
7a197a62 3342 eval "$as_ac_Header=no"
795ca3e5 3343fi
7a197a62
AK
3344
3345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 3346fi
66e941e8
JM
3347ac_res=`eval 'as_val=${'$as_ac_Header'}
3348 $as_echo "$as_val"'`
3349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3350$as_echo "$ac_res" >&6; }
3351if test `eval 'as_val=${'$as_ac_Header'}
3352 $as_echo "$as_val"'` = yes; then
ad6254c5 3353 cat >>confdefs.h <<_ACEOF
66e941e8 3354#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
ad6254c5
AK
3355_ACEOF
3356
3357ac_header_dirent=$ac_hdr; break
795ca3e5 3358fi
8106cdd5 3359
ad6254c5
AK
3360done
3361# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3362if test $ac_header_dirent = dirent.h; then
66e941e8
JM
3363 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
3364$as_echo_n "checking for library containing opendir... " >&6; }
ad6254c5 3365if test "${ac_cv_search_opendir+set}" = set; then
66e941e8 3366 $as_echo_n "(cached) " >&6
795ca3e5 3367else
ad6254c5 3368 ac_func_search_save_LIBS=$LIBS
ad6254c5 3369cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
3374/* end confdefs.h. */
3375
7a197a62
AK
3376/* Override any GCC internal prototype to avoid an error.
3377 Use char because int might match the return type of a GCC
3378 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3379#ifdef __cplusplus
3380extern "C"
3381#endif
ad6254c5
AK
3382char opendir ();
3383int
3384main ()
3385{
7a197a62 3386return opendir ();
ad6254c5
AK
3387 ;
3388 return 0;
3389}
3390_ACEOF
7a197a62
AK
3391for ac_lib in '' dir; do
3392 if test -z "$ac_lib"; then
3393 ac_res="none required"
3394 else
3395 ac_res=-l$ac_lib
3396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3397 fi
3398 rm -f conftest.$ac_objext conftest$ac_exeext
3399if { (ac_try="$ac_link"
3400case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403esac
66e941e8
JM
3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405$as_echo "$ac_try_echo") >&5
7a197a62 3406 (eval "$ac_link") 2>conftest.er1
ad6254c5 3407 ac_status=$?
8a2fc586
AK
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
66e941e8 3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3412 (exit $ac_status); } && {
3413 test -z "$ac_c_werror_flag" ||
3414 test ! -s conftest.err
3415 } && test -s conftest$ac_exeext &&
3416 $as_test_x conftest$ac_exeext; then
3417 ac_cv_search_opendir=$ac_res
795ca3e5 3418else
66e941e8 3419 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
795ca3e5 3422
7a197a62 3423fi
795ca3e5 3424
7a197a62
AK
3425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3426 conftest$ac_exeext
3427 if test "${ac_cv_search_opendir+set}" = set; then
3428 break
795ca3e5 3429fi
7a197a62
AK
3430done
3431if test "${ac_cv_search_opendir+set}" = set; then
3432 :
3433else
3434 ac_cv_search_opendir=no
795ca3e5 3435fi
7a197a62 3436rm conftest.$ac_ext
ad6254c5
AK
3437LIBS=$ac_func_search_save_LIBS
3438fi
66e941e8
JM
3439{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3440$as_echo "$ac_cv_search_opendir" >&6; }
7a197a62
AK
3441ac_res=$ac_cv_search_opendir
3442if test "$ac_res" != no; then
3443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
795ca3e5
AK
3444
3445fi
3446
795ca3e5 3447else
66e941e8
JM
3448 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
3449$as_echo_n "checking for library containing opendir... " >&6; }
ad6254c5 3450if test "${ac_cv_search_opendir+set}" = set; then
66e941e8 3451 $as_echo_n "(cached) " >&6
ad6254c5
AK
3452else
3453 ac_func_search_save_LIBS=$LIBS
ad6254c5 3454cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
80992638 3460
7a197a62
AK
3461/* Override any GCC internal prototype to avoid an error.
3462 Use char because int might match the return type of a GCC
3463 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3464#ifdef __cplusplus
3465extern "C"
3466#endif
ad6254c5
AK
3467char opendir ();
3468int
3469main ()
3470{
7a197a62 3471return opendir ();
ad6254c5
AK
3472 ;
3473 return 0;
3474}
3475_ACEOF
7a197a62
AK
3476for ac_lib in '' x; do
3477 if test -z "$ac_lib"; then
3478 ac_res="none required"
3479 else
3480 ac_res=-l$ac_lib
3481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3482 fi
3483 rm -f conftest.$ac_objext conftest$ac_exeext
3484if { (ac_try="$ac_link"
3485case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488esac
66e941e8
JM
3489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3490$as_echo "$ac_try_echo") >&5
7a197a62 3491 (eval "$ac_link") 2>conftest.er1
ad6254c5 3492 ac_status=$?
8a2fc586
AK
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
66e941e8 3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest$ac_exeext &&
3501 $as_test_x conftest$ac_exeext; then
3502 ac_cv_search_opendir=$ac_res
795ca3e5 3503else
66e941e8 3504 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
ad6254c5 3507
7a197a62 3508fi
80992638 3509
7a197a62
AK
3510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3511 conftest$ac_exeext
3512 if test "${ac_cv_search_opendir+set}" = set; then
3513 break
795ca3e5 3514fi
7a197a62
AK
3515done
3516if test "${ac_cv_search_opendir+set}" = set; then
3517 :
3518else
3519 ac_cv_search_opendir=no
ad6254c5 3520fi
7a197a62 3521rm conftest.$ac_ext
ad6254c5 3522LIBS=$ac_func_search_save_LIBS
795ca3e5 3523fi
66e941e8
JM
3524{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3525$as_echo "$ac_cv_search_opendir" >&6; }
7a197a62
AK
3526ac_res=$ac_cv_search_opendir
3527if test "$ac_res" != no; then
3528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8106cdd5 3529
ad6254c5 3530fi
8106cdd5 3531
795ca3e5 3532fi
8106cdd5 3533
ad6254c5
AK
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
66e941e8
JM
3539{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3540$as_echo_n "checking how to run the C preprocessor... " >&6; }
ad6254c5
AK
3541# On Suns, sometimes $CPP names a directory.
3542if test -n "$CPP" && test -d "$CPP"; then
3543 CPP=
3544fi
3545if test -z "$CPP"; then
3546 if test "${ac_cv_prog_CPP+set}" = set; then
66e941e8 3547 $as_echo_n "(cached) " >&6
ad6254c5
AK
3548else
3549 # Double quotes because CPP needs to be expanded
3550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3551 do
3552 ac_preproc_ok=false
3553for ac_c_preproc_warn_flag in '' yes
8106cdd5 3554do
ad6254c5
AK
3555 # Use a header file that comes with gcc, so configuring glibc
3556 # with a fresh cross-compiler works.
3557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558 # <limits.h> exists even on freestanding compilers.
3559 # On the NeXT, cc -E runs the code through the compiler's parser,
3560 # not just through cpp. "Syntax error" is here to catch this case.
3561 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3562/* confdefs.h. */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h. */
3567#ifdef __STDC__
3568# include <limits.h>
3569#else
3570# include <assert.h>
3571#endif
8a2fc586 3572 Syntax error
ad6254c5 3573_ACEOF
7a197a62
AK
3574if { (ac_try="$ac_cpp conftest.$ac_ext"
3575case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
66e941e8
JM
3579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580$as_echo "$ac_try_echo") >&5
7a197a62 3581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
66e941e8 3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3587 (exit $ac_status); } >/dev/null && {
3588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 }; then
ad6254c5
AK
3591 :
3592else
66e941e8 3593 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 # Broken: fails on valid input.
3597continue
3598fi
7a197a62 3599
ad6254c5
AK
3600rm -f conftest.err conftest.$ac_ext
3601
7a197a62 3602 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3603 # can be detected and how.
3604 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3605/* confdefs.h. */
3606_ACEOF
3607cat confdefs.h >>conftest.$ac_ext
3608cat >>conftest.$ac_ext <<_ACEOF
3609/* end confdefs.h. */
3610#include <ac_nonexistent.h>
3611_ACEOF
7a197a62
AK
3612if { (ac_try="$ac_cpp conftest.$ac_ext"
3613case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616esac
66e941e8
JM
3617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3618$as_echo "$ac_try_echo") >&5
7a197a62 3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
66e941e8 3624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 }; then
ad6254c5
AK
3629 # Broken: success on invalid input.
3630continue
80992638 3631else
66e941e8 3632 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 # Passes both tests.
3636ac_preproc_ok=:
3637break
795ca3e5 3638fi
7a197a62 3639
ad6254c5
AK
3640rm -f conftest.err conftest.$ac_ext
3641
795ca3e5 3642done
ad6254c5
AK
3643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644rm -f conftest.err conftest.$ac_ext
3645if $ac_preproc_ok; then
3646 break
3647fi
795ca3e5 3648
ad6254c5
AK
3649 done
3650 ac_cv_prog_CPP=$CPP
795ca3e5 3651
ad6254c5
AK
3652fi
3653 CPP=$ac_cv_prog_CPP
795ca3e5 3654else
ad6254c5 3655 ac_cv_prog_CPP=$CPP
795ca3e5 3656fi
66e941e8
JM
3657{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3658$as_echo "$CPP" >&6; }
ad6254c5
AK
3659ac_preproc_ok=false
3660for ac_c_preproc_warn_flag in '' yes
3661do
3662 # Use a header file that comes with gcc, so configuring glibc
3663 # with a fresh cross-compiler works.
3664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3665 # <limits.h> exists even on freestanding compilers.
3666 # On the NeXT, cc -E runs the code through the compiler's parser,
3667 # not just through cpp. "Syntax error" is here to catch this case.
3668 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3669/* confdefs.h. */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h. */
3674#ifdef __STDC__
3675# include <limits.h>
3676#else
3677# include <assert.h>
3678#endif
8a2fc586 3679 Syntax error
ad6254c5 3680_ACEOF
7a197a62
AK
3681if { (ac_try="$ac_cpp conftest.$ac_ext"
3682case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685esac
66e941e8
JM
3686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3687$as_echo "$ac_try_echo") >&5
7a197a62 3688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3689 ac_status=$?
3690 grep -v '^ *+' conftest.er1 >conftest.err
3691 rm -f conftest.er1
3692 cat conftest.err >&5
66e941e8 3693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3694 (exit $ac_status); } >/dev/null && {
3695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3696 test ! -s conftest.err
3697 }; then
ad6254c5
AK
3698 :
3699else
66e941e8 3700 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 # Broken: fails on valid input.
3704continue
3705fi
7a197a62 3706
ad6254c5
AK
3707rm -f conftest.err conftest.$ac_ext
3708
7a197a62 3709 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3710 # can be detected and how.
3711 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3712/* confdefs.h. */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h. */
3717#include <ac_nonexistent.h>
3718_ACEOF
7a197a62
AK
3719if { (ac_try="$ac_cpp conftest.$ac_ext"
3720case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
66e941e8
JM
3724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725$as_echo "$ac_try_echo") >&5
7a197a62 3726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
66e941e8 3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3732 (exit $ac_status); } >/dev/null && {
3733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 }; then
ad6254c5
AK
3736 # Broken: success on invalid input.
3737continue
3738else
66e941e8 3739 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3740sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3741
ad6254c5
AK
3742 # Passes both tests.
3743ac_preproc_ok=:
3744break
795ca3e5 3745fi
7a197a62 3746
ad6254c5 3747rm -f conftest.err conftest.$ac_ext
795ca3e5 3748
ad6254c5
AK
3749done
3750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3751rm -f conftest.err conftest.$ac_ext
3752if $ac_preproc_ok; then
3753 :
795ca3e5 3754else
66e941e8 3755 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
ad6254c5 3756See \`config.log' for more details." >&5
66e941e8 3757$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
ad6254c5
AK
3758See \`config.log' for more details." >&2;}
3759 { (exit 1); exit 1; }; }
795ca3e5 3760fi
795ca3e5 3761
ad6254c5
AK
3762ac_ext=c
3763ac_cpp='$CPP $CPPFLAGS'
3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768
66e941e8
JM
3769{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3770$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7a197a62 3771if test "${ac_cv_path_GREP+set}" = set; then
66e941e8 3772 $as_echo_n "(cached) " >&6
7a197a62
AK
3773else
3774 # Extract the first word of "grep ggrep" to use in msg output
3775if test -z "$GREP"; then
3776set dummy grep ggrep; ac_prog_name=$2
3777if test "${ac_cv_path_GREP+set}" = set; then
66e941e8 3778 $as_echo_n "(cached) " >&6
ad6254c5 3779else
7a197a62
AK
3780 ac_path_GREP_found=false
3781# Loop through the user's path and test for each of PROGNAME-LIST
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3784do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 for ac_prog in grep ggrep; do
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3790 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3791 # Check for GNU ac_path_GREP and select it if it is found.
3792 # Check for GNU $ac_path_GREP
3793case `"$ac_path_GREP" --version 2>&1` in
3794*GNU*)
3795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3796*)
3797 ac_count=0
66e941e8 3798 $as_echo_n 0123456789 >"conftest.in"
7a197a62
AK
3799 while :
3800 do
3801 cat "conftest.in" "conftest.in" >"conftest.tmp"
3802 mv "conftest.tmp" "conftest.in"
3803 cp "conftest.in" "conftest.nl"
66e941e8 3804 $as_echo 'GREP' >> "conftest.nl"
7a197a62
AK
3805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3807 ac_count=`expr $ac_count + 1`
3808 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3809 # Best one so far, save it but keep looking for a better one
3810 ac_cv_path_GREP="$ac_path_GREP"
3811 ac_path_GREP_max=$ac_count
ad6254c5 3812 fi
7a197a62
AK
3813 # 10*(2^10) chars as input seems more than enough
3814 test $ac_count -gt 10 && break
3815 done
3816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3817esac
80992638 3818
795ca3e5 3819
7a197a62
AK
3820 $ac_path_GREP_found && break 3
3821 done
3822done
ad6254c5 3823
7a197a62
AK
3824done
3825IFS=$as_save_IFS
ad6254c5 3826
ad6254c5 3827
795ca3e5 3828fi
ad6254c5 3829
7a197a62
AK
3830GREP="$ac_cv_path_GREP"
3831if test -z "$GREP"; then
66e941e8
JM
3832 { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3833$as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7a197a62
AK
3834 { (exit 1); exit 1; }; }
3835fi
3836
3837else
3838 ac_cv_path_GREP=$GREP
3839fi
3840
3841
3842fi
66e941e8
JM
3843{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3844$as_echo "$ac_cv_path_GREP" >&6; }
7a197a62
AK
3845 GREP="$ac_cv_path_GREP"
3846
3847
66e941e8
JM
3848{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3849$as_echo_n "checking for egrep... " >&6; }
7a197a62 3850if test "${ac_cv_path_EGREP+set}" = set; then
66e941e8 3851 $as_echo_n "(cached) " >&6
7a197a62
AK
3852else
3853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3854 then ac_cv_path_EGREP="$GREP -E"
3855 else
3856 # Extract the first word of "egrep" to use in msg output
3857if test -z "$EGREP"; then
3858set dummy egrep; ac_prog_name=$2
3859if test "${ac_cv_path_EGREP+set}" = set; then
66e941e8 3860 $as_echo_n "(cached) " >&6
7a197a62
AK
3861else
3862 ac_path_EGREP_found=false
3863# Loop through the user's path and test for each of PROGNAME-LIST
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in egrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3872 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3873 # Check for GNU ac_path_EGREP and select it if it is found.
3874 # Check for GNU $ac_path_EGREP
3875case `"$ac_path_EGREP" --version 2>&1` in
3876*GNU*)
3877 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3878*)
3879 ac_count=0
66e941e8 3880 $as_echo_n 0123456789 >"conftest.in"
7a197a62
AK
3881 while :
3882 do
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
66e941e8 3886 $as_echo 'EGREP' >> "conftest.nl"
7a197a62
AK
3887 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 ac_count=`expr $ac_count + 1`
3890 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_EGREP="$ac_path_EGREP"
3893 ac_path_EGREP_max=$ac_count
3894 fi
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3897 done
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899esac
3900
3901
3902 $ac_path_EGREP_found && break 3
3903 done
3904done
3905
3906done
3907IFS=$as_save_IFS
3908
3909
3910fi
3911
3912EGREP="$ac_cv_path_EGREP"
3913if test -z "$EGREP"; then
66e941e8
JM
3914 { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3915$as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7a197a62
AK
3916 { (exit 1); exit 1; }; }
3917fi
3918
3919else
3920 ac_cv_path_EGREP=$EGREP
3921fi
3922
3923
3924 fi
3925fi
66e941e8
JM
3926{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3927$as_echo "$ac_cv_path_EGREP" >&6; }
7a197a62
AK
3928 EGREP="$ac_cv_path_EGREP"
3929
3930
66e941e8
JM
3931{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3932$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 3933if test "${ac_cv_header_stdc+set}" = set; then
66e941e8 3934 $as_echo_n "(cached) " >&6
7a197a62
AK
3935else
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942#include <stdlib.h>
3943#include <stdarg.h>
3944#include <string.h>
3945#include <float.h>
3946
3947int
3948main ()
3949{
3950
3951 ;
3952 return 0;
3953}
3954_ACEOF
3955rm -f conftest.$ac_objext
3956if { (ac_try="$ac_compile"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
66e941e8
JM
3961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962$as_echo "$ac_try_echo") >&5
7a197a62
AK
3963 (eval "$ac_compile") 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
66e941e8 3968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest.$ac_objext; then
3973 ac_cv_header_stdc=yes
3974else
66e941e8 3975 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 ac_cv_header_stdc=no
3979fi
3980
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982
3983if test $ac_cv_header_stdc = yes; then
3984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 3985 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991#include <string.h>
8106cdd5 3992
ad6254c5
AK
3993_ACEOF
3994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3995 $EGREP "memchr" >/dev/null 2>&1; then
3996 :
3997else
3998 ac_cv_header_stdc=no
80992638 3999fi
ad6254c5 4000rm -f conftest*
795ca3e5
AK
4001
4002fi
4003
ad6254c5
AK
4004if test $ac_cv_header_stdc = yes; then
4005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
80992638 4012#include <stdlib.h>
ad6254c5
AK
4013
4014_ACEOF
80992638 4015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4016 $EGREP "free" >/dev/null 2>&1; then
4017 :
795ca3e5 4018else
ad6254c5 4019 ac_cv_header_stdc=no
795ca3e5 4020fi
80992638 4021rm -f conftest*
8106cdd5 4022
795ca3e5
AK
4023fi
4024
ad6254c5
AK
4025if test $ac_cv_header_stdc = yes; then
4026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4027 if test "$cross_compiling" = yes; then
4028 :
795ca3e5 4029else
ad6254c5 4030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036#include <ctype.h>
7a197a62 4037#include <stdlib.h>
ad6254c5
AK
4038#if ((' ' & 0x0FF) == 0x020)
4039# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4040# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4041#else
4042# define ISLOWER(c) \
8a2fc586
AK
4043 (('a' <= (c) && (c) <= 'i') \
4044 || ('j' <= (c) && (c) <= 'r') \
4045 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4046# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4047#endif
ad6254c5
AK
4048
4049#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4050int
4051main ()
4052{
4053 int i;
4054 for (i = 0; i < 256; i++)
4055 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4056 || toupper (i) != TOUPPER (i))
7a197a62
AK
4057 return 2;
4058 return 0;
ad6254c5
AK
4059}
4060_ACEOF
4061rm -f conftest$ac_exeext
7a197a62
AK
4062if { (ac_try="$ac_link"
4063case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
66e941e8
JM
4067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4068$as_echo "$ac_try_echo") >&5
7a197a62 4069 (eval "$ac_link") 2>&5
ad6254c5 4070 ac_status=$?
66e941e8 4071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
66e941e8
JM
4077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078$as_echo "$ac_try_echo") >&5
7a197a62 4079 (eval "$ac_try") 2>&5
ad6254c5 4080 ac_status=$?
66e941e8 4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4082 (exit $ac_status); }; }; then
4083 :
795ca3e5 4084else
66e941e8
JM
4085 $as_echo "$as_me: program exited with status $ac_status" >&5
4086$as_echo "$as_me: failed program was:" >&5
ad6254c5 4087sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4088
ad6254c5
AK
4089( exit $ac_status )
4090ac_cv_header_stdc=no
80992638 4091fi
7a197a62 4092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4093fi
7a197a62
AK
4094
4095
ad6254c5
AK
4096fi
4097fi
66e941e8
JM
4098{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4099$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4100if test $ac_cv_header_stdc = yes; then
4101
4102cat >>confdefs.h <<\_ACEOF
4103#define STDC_HEADERS 1
4104_ACEOF
795ca3e5
AK
4105
4106fi
4107
66e941e8
JM
4108{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4109$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
ad6254c5 4110if test "${ac_cv_header_sys_wait_h+set}" = set; then
66e941e8 4111 $as_echo_n "(cached) " >&6
8106cdd5 4112else
ad6254c5 4113 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4114/* confdefs.h. */
4115_ACEOF
4116cat confdefs.h >>conftest.$ac_ext
4117cat >>conftest.$ac_ext <<_ACEOF
4118/* end confdefs.h. */
80992638 4119#include <sys/types.h>
ad6254c5
AK
4120#include <sys/wait.h>
4121#ifndef WEXITSTATUS
7a197a62 4122# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4123#endif
4124#ifndef WIFEXITED
4125# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4126#endif
4127
4128int
4129main ()
4130{
4131 int s;
4132 wait (&s);
4133 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138rm -f conftest.$ac_objext
7a197a62
AK
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
66e941e8
JM
4144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4145$as_echo "$ac_try_echo") >&5
7a197a62 4146 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4147 ac_status=$?
8a2fc586
AK
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
66e941e8 4151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4156 ac_cv_header_sys_wait_h=yes
4157else
66e941e8 4158 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
7a197a62 4161 ac_cv_header_sys_wait_h=no
8106cdd5 4162fi
7a197a62
AK
4163
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4165fi
66e941e8
JM
4166{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4167$as_echo "$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4168if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4169
ad6254c5
AK
4170cat >>confdefs.h <<\_ACEOF
4171#define HAVE_SYS_WAIT_H 1
4172_ACEOF
795ca3e5
AK
4173
4174fi
4175
66e941e8
JM
4176{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4177$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
ad6254c5 4178if test "${ac_cv_header_time+set}" = set; then
66e941e8 4179 $as_echo_n "(cached) " >&6
795ca3e5 4180else
ad6254c5 4181 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4182/* confdefs.h. */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h. */
795ca3e5
AK
4187#include <sys/types.h>
4188#include <sys/time.h>
4189#include <time.h>
ad6254c5
AK
4190
4191int
4192main ()
4193{
4194if ((struct tm *) 0)
4195return 0;
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext
7a197a62
AK
4201if { (ac_try="$ac_compile"
4202case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
66e941e8
JM
4206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4207$as_echo "$ac_try_echo") >&5
7a197a62 4208 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4209 ac_status=$?
8a2fc586
AK
4210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
66e941e8 4213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4214 (exit $ac_status); } && {
4215 test -z "$ac_c_werror_flag" ||
4216 test ! -s conftest.err
4217 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4218 ac_cv_header_time=yes
4219else
66e941e8 4220 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
7a197a62 4223 ac_cv_header_time=no
795ca3e5 4224fi
7a197a62
AK
4225
4226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4227fi
66e941e8
JM
4228{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4229$as_echo "$ac_cv_header_time" >&6; }
80992638 4230if test $ac_cv_header_time = yes; then
ad6254c5
AK
4231
4232cat >>confdefs.h <<\_ACEOF
795ca3e5 4233#define TIME_WITH_SYS_TIME 1
ad6254c5 4234_ACEOF
b896caa1 4235
8106cdd5 4236fi
b896caa1 4237
b896caa1 4238
ad6254c5 4239# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 4240
b896caa1
AK
4241
4242
795ca3e5 4243
8106cdd5 4244
80992638 4245
795ca3e5 4246
a38df97f 4247
80992638 4248
ad6254c5 4249for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 4250 inttypes.h stdint.h unistd.h
ad6254c5 4251do
66e941e8
JM
4252as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4253{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4254$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4256 $as_echo_n "(cached) " >&6
ad6254c5
AK
4257else
4258 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264$ac_includes_default
4265
4266#include <$ac_header>
4267_ACEOF
4268rm -f conftest.$ac_objext
7a197a62
AK
4269if { (ac_try="$ac_compile"
4270case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
66e941e8
JM
4274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4275$as_echo "$ac_try_echo") >&5
7a197a62 4276 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4277 ac_status=$?
8a2fc586
AK
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
66e941e8 4281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4286 eval "$as_ac_Header=yes"
4287else
66e941e8 4288 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4289sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4290
7a197a62 4291 eval "$as_ac_Header=no"
ad6254c5 4292fi
7a197a62
AK
4293
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 4295fi
66e941e8
JM
4296ac_res=`eval 'as_val=${'$as_ac_Header'}
4297 $as_echo "$as_val"'`
4298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4299$as_echo "$ac_res" >&6; }
4300if test `eval 'as_val=${'$as_ac_Header'}
4301 $as_echo "$as_val"'` = yes; then
ad6254c5 4302 cat >>confdefs.h <<_ACEOF
66e941e8 4303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4304_ACEOF
a38df97f 4305
80992638
AK
4306fi
4307
ad6254c5
AK
4308done
4309
7d1552c9 4310
7d1552c9 4311
80992638 4312
5a52dca9 4313
5a52dca9 4314
ad6254c5
AK
4315
4316
4317
4318
4319
4320for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h
4321do
66e941e8 4322as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
4324 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4325$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4327 $as_echo_n "(cached) " >&6
ad6254c5 4328fi
66e941e8
JM
4329ac_res=`eval 'as_val=${'$as_ac_Header'}
4330 $as_echo "$as_val"'`
4331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4332$as_echo "$ac_res" >&6; }
ad6254c5
AK
4333else
4334 # Is the header compilable?
66e941e8
JM
4335{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4336$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4337cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343$ac_includes_default
4344#include <$ac_header>
4345_ACEOF
4346rm -f conftest.$ac_objext
7a197a62
AK
4347if { (ac_try="$ac_compile"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
66e941e8
JM
4352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4353$as_echo "$ac_try_echo") >&5
7a197a62 4354 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4355 ac_status=$?
8a2fc586
AK
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
66e941e8 4359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4360 (exit $ac_status); } && {
4361 test -z "$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4364 ac_header_compiler=yes
4365else
66e941e8 4366 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
7a197a62 4369 ac_header_compiler=no
ad6254c5 4370fi
7a197a62
AK
4371
4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
4373{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4375
4376# Is the header present?
66e941e8
JM
4377{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4379cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4380/* confdefs.h. */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h. */
4385#include <$ac_header>
4386_ACEOF
7a197a62
AK
4387if { (ac_try="$ac_cpp conftest.$ac_ext"
4388case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391esac
66e941e8
JM
4392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4393$as_echo "$ac_try_echo") >&5
7a197a62 4394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
66e941e8 4399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4400 (exit $ac_status); } >/dev/null && {
4401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 }; then
ad6254c5
AK
4404 ac_header_preproc=yes
4405else
66e941e8 4406 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_header_preproc=no
4410fi
7a197a62 4411
ad6254c5 4412rm -f conftest.err conftest.$ac_ext
66e941e8
JM
4413{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4414$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4415
4416# So? What about this header?
8a2fc586
AK
4417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4418 yes:no: )
66e941e8
JM
4419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4420$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4422$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4423 ac_header_preproc=yes
ad6254c5 4424 ;;
8a2fc586 4425 no:yes:* )
66e941e8
JM
4426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4427$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4429$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4431$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4433$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4435$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4437$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4438
ad6254c5
AK
4439 ;;
4440esac
66e941e8
JM
4441{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4442$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4444 $as_echo_n "(cached) " >&6
ad6254c5 4445else
8a2fc586 4446 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4447fi
66e941e8
JM
4448ac_res=`eval 'as_val=${'$as_ac_Header'}
4449 $as_echo "$as_val"'`
4450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4451$as_echo "$ac_res" >&6; }
ad6254c5
AK
4452
4453fi
66e941e8
JM
4454if test `eval 'as_val=${'$as_ac_Header'}
4455 $as_echo "$as_val"'` = yes; then
ad6254c5 4456 cat >>confdefs.h <<_ACEOF
66e941e8 4457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4458_ACEOF
b896caa1 4459
d8ac0fbc 4460else
66e941e8
JM
4461 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4462$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4463 { (exit 1); exit 1; }; }
80992638
AK
4464fi
4465
ad6254c5 4466done
d8ac0fbc 4467
d8ac0fbc 4468
d8ac0fbc 4469
80992638 4470
d3c8211f 4471
d3c8211f 4472
d3c8211f 4473
80992638 4474
4922197a 4475
4922197a 4476
ad6254c5
AK
4477
4478
4479
4480for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h
4481do
66e941e8 4482as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
4484 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4485$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4487 $as_echo_n "(cached) " >&6
ad6254c5 4488fi
66e941e8
JM
4489ac_res=`eval 'as_val=${'$as_ac_Header'}
4490 $as_echo "$as_val"'`
4491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4492$as_echo "$ac_res" >&6; }
ad6254c5
AK
4493else
4494 # Is the header compilable?
66e941e8
JM
4495{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4496$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4497cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4498/* confdefs.h. */
4499_ACEOF
4500cat confdefs.h >>conftest.$ac_ext
4501cat >>conftest.$ac_ext <<_ACEOF
4502/* end confdefs.h. */
4503$ac_includes_default
4504#include <$ac_header>
4505_ACEOF
4506rm -f conftest.$ac_objext
7a197a62
AK
4507if { (ac_try="$ac_compile"
4508case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511esac
66e941e8
JM
4512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513$as_echo "$ac_try_echo") >&5
7a197a62 4514 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4515 ac_status=$?
8a2fc586
AK
4516 grep -v '^ *+' conftest.er1 >conftest.err
4517 rm -f conftest.er1
4518 cat conftest.err >&5
66e941e8 4519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4520 (exit $ac_status); } && {
4521 test -z "$ac_c_werror_flag" ||
4522 test ! -s conftest.err
4523 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4524 ac_header_compiler=yes
4525else
66e941e8 4526 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4527sed 's/^/| /' conftest.$ac_ext >&5
4528
7a197a62 4529 ac_header_compiler=no
ad6254c5 4530fi
7a197a62
AK
4531
4532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
4533{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4534$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4535
4536# Is the header present?
66e941e8
JM
4537{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4538$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4539cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4540/* confdefs.h. */
4541_ACEOF
4542cat confdefs.h >>conftest.$ac_ext
4543cat >>conftest.$ac_ext <<_ACEOF
4544/* end confdefs.h. */
4545#include <$ac_header>
4546_ACEOF
7a197a62
AK
4547if { (ac_try="$ac_cpp conftest.$ac_ext"
4548case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551esac
66e941e8
JM
4552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553$as_echo "$ac_try_echo") >&5
7a197a62 4554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4555 ac_status=$?
4556 grep -v '^ *+' conftest.er1 >conftest.err
4557 rm -f conftest.er1
4558 cat conftest.err >&5
66e941e8 4559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4560 (exit $ac_status); } >/dev/null && {
4561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4562 test ! -s conftest.err
4563 }; then
ad6254c5
AK
4564 ac_header_preproc=yes
4565else
66e941e8 4566 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 ac_header_preproc=no
4570fi
7a197a62 4571
ad6254c5 4572rm -f conftest.err conftest.$ac_ext
66e941e8
JM
4573{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4574$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4575
4576# So? What about this header?
8a2fc586
AK
4577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4578 yes:no: )
66e941e8
JM
4579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4580$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4582$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4583 ac_header_preproc=yes
ad6254c5 4584 ;;
8a2fc586 4585 no:yes:* )
66e941e8
JM
4586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4587$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4589$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4591$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4593$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4595$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4597$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4598
ad6254c5
AK
4599 ;;
4600esac
66e941e8
JM
4601{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4602$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4603if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4604 $as_echo_n "(cached) " >&6
ad6254c5 4605else
8a2fc586 4606 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4607fi
66e941e8
JM
4608ac_res=`eval 'as_val=${'$as_ac_Header'}
4609 $as_echo "$as_val"'`
4610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4611$as_echo "$ac_res" >&6; }
ad6254c5
AK
4612
4613fi
66e941e8
JM
4614if test `eval 'as_val=${'$as_ac_Header'}
4615 $as_echo "$as_val"'` = yes; then
ad6254c5 4616 cat >>confdefs.h <<_ACEOF
66e941e8 4617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4618_ACEOF
4922197a 4619
4922197a 4620else
66e941e8
JM
4621 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4622$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4623 { (exit 1); exit 1; }; }
80992638
AK
4624fi
4625
ad6254c5 4626done
4922197a 4627
4922197a 4628
ad6254c5
AK
4629case "$host_os" in
4630 linux*)
4922197a 4631
ad6254c5
AK
4632
4633
4634for ac_header in asm/byteorder.h linux/fs.h malloc.h
4635do
66e941e8 4636as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
4638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4639$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4641 $as_echo_n "(cached) " >&6
ad6254c5 4642fi
66e941e8
JM
4643ac_res=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4646$as_echo "$ac_res" >&6; }
795ca3e5 4647else
ad6254c5 4648 # Is the header compilable?
66e941e8
JM
4649{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4650$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4651cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
4657$ac_includes_default
4658#include <$ac_header>
4659_ACEOF
4660rm -f conftest.$ac_objext
7a197a62
AK
4661if { (ac_try="$ac_compile"
4662case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665esac
66e941e8
JM
4666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667$as_echo "$ac_try_echo") >&5
7a197a62 4668 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4669 ac_status=$?
8a2fc586
AK
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
66e941e8 4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4678 ac_header_compiler=yes
4679else
66e941e8 4680 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
7a197a62 4683 ac_header_compiler=no
ad6254c5 4684fi
7a197a62
AK
4685
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
4687{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4689
4690# Is the header present?
66e941e8
JM
4691{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4693cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699#include <$ac_header>
4700_ACEOF
7a197a62
AK
4701if { (ac_try="$ac_cpp conftest.$ac_ext"
4702case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705esac
66e941e8
JM
4706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4707$as_echo "$ac_try_echo") >&5
7a197a62 4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
66e941e8 4713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4714 (exit $ac_status); } >/dev/null && {
4715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4717 }; then
ad6254c5
AK
4718 ac_header_preproc=yes
4719else
66e941e8 4720 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4721sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ac_header_preproc=no
4724fi
7a197a62 4725
ad6254c5 4726rm -f conftest.err conftest.$ac_ext
66e941e8
JM
4727{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4729
4730# So? What about this header?
8a2fc586
AK
4731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4732 yes:no: )
66e941e8
JM
4733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4737 ac_header_preproc=yes
ad6254c5 4738 ;;
8a2fc586 4739 no:yes:* )
66e941e8
JM
4740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4752
ad6254c5
AK
4753 ;;
4754esac
66e941e8
JM
4755{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4756$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4758 $as_echo_n "(cached) " >&6
ad6254c5 4759else
8a2fc586 4760 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4761fi
66e941e8
JM
4762ac_res=`eval 'as_val=${'$as_ac_Header'}
4763 $as_echo "$as_val"'`
4764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4765$as_echo "$ac_res" >&6; }
80992638 4766
ad6254c5 4767fi
66e941e8
JM
4768if test `eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'` = yes; then
ad6254c5 4770 cat >>confdefs.h <<_ACEOF
66e941e8 4771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4772_ACEOF
795ca3e5 4773
795ca3e5 4774else
66e941e8
JM
4775 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4776$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4777 { (exit 1); exit 1; }; }
80992638
AK
4778fi
4779
ad6254c5
AK
4780done
4781 ;;
4782 darwin*)
4783
795ca3e5 4784
ad6254c5
AK
4785for ac_header in machine/endian.h sys/disk.h
4786do
66e941e8 4787as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
4789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4790$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4792 $as_echo_n "(cached) " >&6
ad6254c5 4793fi
66e941e8
JM
4794ac_res=`eval 'as_val=${'$as_ac_Header'}
4795 $as_echo "$as_val"'`
4796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4797$as_echo "$ac_res" >&6; }
ad6254c5
AK
4798else
4799 # Is the header compilable?
66e941e8
JM
4800{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 4802cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4803/* confdefs.h. */
4804_ACEOF
4805cat confdefs.h >>conftest.$ac_ext
4806cat >>conftest.$ac_ext <<_ACEOF
4807/* end confdefs.h. */
4808$ac_includes_default
4809#include <$ac_header>
4810_ACEOF
4811rm -f conftest.$ac_objext
7a197a62
AK
4812if { (ac_try="$ac_compile"
4813case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816esac
66e941e8
JM
4817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4818$as_echo "$ac_try_echo") >&5
7a197a62 4819 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4820 ac_status=$?
8a2fc586
AK
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
4823 cat conftest.err >&5
66e941e8 4824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4825 (exit $ac_status); } && {
4826 test -z "$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4828 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4829 ac_header_compiler=yes
4830else
66e941e8 4831 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
7a197a62 4834 ac_header_compiler=no
ad6254c5 4835fi
7a197a62
AK
4836
4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
4838{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4839$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4840
4841# Is the header present?
66e941e8
JM
4842{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4843$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 4844cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4845/* confdefs.h. */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h. */
4850#include <$ac_header>
4851_ACEOF
7a197a62
AK
4852if { (ac_try="$ac_cpp conftest.$ac_ext"
4853case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856esac
66e941e8
JM
4857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858$as_echo "$ac_try_echo") >&5
7a197a62 4859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4860 ac_status=$?
4861 grep -v '^ *+' conftest.er1 >conftest.err
4862 rm -f conftest.er1
4863 cat conftest.err >&5
66e941e8 4864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
4865 (exit $ac_status); } >/dev/null && {
4866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 }; then
ad6254c5
AK
4869 ac_header_preproc=yes
4870else
66e941e8 4871 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_header_preproc=no
4875fi
7a197a62 4876
ad6254c5 4877rm -f conftest.err conftest.$ac_ext
66e941e8
JM
4878{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4879$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4880
4881# So? What about this header?
8a2fc586
AK
4882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4883 yes:no: )
66e941e8
JM
4884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4885$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4887$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4888 ac_header_preproc=yes
ad6254c5 4889 ;;
8a2fc586 4890 no:yes:* )
66e941e8
JM
4891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4892$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4894$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4896$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4898$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4900$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4902$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4903
ad6254c5
AK
4904 ;;
4905esac
66e941e8
JM
4906{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4907$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 4908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 4909 $as_echo_n "(cached) " >&6
ad6254c5 4910else
8a2fc586 4911 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4912fi
66e941e8
JM
4913ac_res=`eval 'as_val=${'$as_ac_Header'}
4914 $as_echo "$as_val"'`
4915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4916$as_echo "$ac_res" >&6; }
b896caa1 4917
ad6254c5 4918fi
66e941e8
JM
4919if test `eval 'as_val=${'$as_ac_Header'}
4920 $as_echo "$as_val"'` = yes; then
ad6254c5 4921 cat >>confdefs.h <<_ACEOF
66e941e8 4922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
4923_ACEOF
4924
4925else
66e941e8
JM
4926 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4927$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 4928 { (exit 1); exit 1; }; }
80992638
AK
4929fi
4930
ad6254c5
AK
4931done
4932 ;;
4933esac
d3c8211f 4934
80992638 4935################################################################################
66e941e8
JM
4936{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4937$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
ad6254c5 4938if test "${ac_cv_c_const+set}" = set; then
66e941e8 4939 $as_echo_n "(cached) " >&6
d3c8211f 4940else
ad6254c5 4941 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947
4948int
4949main ()
4950{
4951/* FIXME: Include the comments suggested by Paul. */
4952#ifndef __cplusplus
4953 /* Ultrix mips cc rejects this. */
4954 typedef int charset[2];
7a197a62 4955 const charset cs;
ad6254c5 4956 /* SunOS 4.1.1 cc rejects this. */
7a197a62
AK
4957 char const *const *pcpcc;
4958 char **ppc;
ad6254c5
AK
4959 /* NEC SVR4.0.2 mips cc rejects this. */
4960 struct point {int x, y;};
4961 static struct point const zero = {0,0};
4962 /* AIX XL C 1.02.0.0 rejects this.
4963 It does not let you subtract one const X* pointer from another in
4964 an arm of an if-expression whose if-part is not a constant
4965 expression */
4966 const char *g = "string";
7a197a62 4967 pcpcc = &g + (g ? g-g : 0);
ad6254c5 4968 /* HPUX 7.0 cc rejects these. */
7a197a62
AK
4969 ++pcpcc;
4970 ppc = (char**) pcpcc;
4971 pcpcc = (char const *const *) ppc;
ad6254c5
AK
4972 { /* SCO 3.2v4 cc rejects this. */
4973 char *t;
4974 char const *s = 0 ? (char *) 0 : (char const *) 0;
4975
4976 *t++ = 0;
7a197a62 4977 if (s) return 0;
ad6254c5
AK
4978 }
4979 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4980 int x[] = {25, 17};
4981 const int *foo = &x[0];
4982 ++foo;
4983 }
4984 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4985 typedef const int *iptr;
4986 iptr p = 0;
4987 ++p;
4988 }
4989 { /* AIX XL C 1.02.0.0 rejects this saying
4990 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4991 struct s { int j; const int *ap[3]; };
4992 struct s *b; b->j = 5;
4993 }
4994 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4995 const int foo = 10;
7a197a62 4996 if (!foo) return 0;
ad6254c5 4997 }
7a197a62 4998 return !cs[0] && !zero.x;
ad6254c5
AK
4999#endif
5000
5001 ;
5002 return 0;
5003}
5004_ACEOF
5005rm -f conftest.$ac_objext
7a197a62
AK
5006if { (ac_try="$ac_compile"
5007case "(($ac_try" in
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5010esac
66e941e8
JM
5011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5012$as_echo "$ac_try_echo") >&5
7a197a62 5013 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5014 ac_status=$?
8a2fc586
AK
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
66e941e8 5018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5019 (exit $ac_status); } && {
5020 test -z "$ac_c_werror_flag" ||
5021 test ! -s conftest.err
5022 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5023 ac_cv_c_const=yes
5024else
66e941e8 5025 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
7a197a62 5028 ac_cv_c_const=no
ad6254c5 5029fi
7a197a62
AK
5030
5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5032fi
66e941e8
JM
5033{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5034$as_echo "$ac_cv_c_const" >&6; }
ad6254c5 5035if test $ac_cv_c_const = no; then
80992638 5036
ad6254c5
AK
5037cat >>confdefs.h <<\_ACEOF
5038#define const
5039_ACEOF
80992638 5040
d3c8211f 5041fi
d3c8211f 5042
66e941e8
JM
5043{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5044$as_echo_n "checking for inline... " >&6; }
ad6254c5 5045if test "${ac_cv_c_inline+set}" = set; then
66e941e8 5046 $as_echo_n "(cached) " >&6
8ef2b021 5047else
ad6254c5
AK
5048 ac_cv_c_inline=no
5049for ac_kw in inline __inline__ __inline; do
5050 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
5056#ifndef __cplusplus
5057typedef int foo_t;
5058static $ac_kw foo_t static_foo () {return 0; }
5059$ac_kw foo_t foo () {return 0; }
5060#endif
80992638 5061
ad6254c5
AK
5062_ACEOF
5063rm -f conftest.$ac_objext
7a197a62
AK
5064if { (ac_try="$ac_compile"
5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
66e941e8
JM
5069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070$as_echo "$ac_try_echo") >&5
7a197a62 5071 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5072 ac_status=$?
8a2fc586
AK
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
66e941e8 5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5081 ac_cv_c_inline=$ac_kw
ad6254c5 5082else
66e941e8 5083 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5084sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5085
7a197a62 5086
8ce0cbda 5087fi
7a197a62
AK
5088
5089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 test "$ac_cv_c_inline" != no && break
ad6254c5 5091done
8ce0cbda 5092
8ce0cbda 5093fi
66e941e8
JM
5094{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5095$as_echo "$ac_cv_c_inline" >&6; }
8a2fc586
AK
5096
5097
ad6254c5
AK
5098case $ac_cv_c_inline in
5099 inline | yes) ;;
8a2fc586
AK
5100 *)
5101 case $ac_cv_c_inline in
5102 no) ac_val=;;
5103 *) ac_val=$ac_cv_c_inline;;
5104 esac
5105 cat >>confdefs.h <<_ACEOF
5106#ifndef __cplusplus
5107#define inline $ac_val
5108#endif
c1c065a3 5109_ACEOF
8a2fc586 5110 ;;
ad6254c5 5111esac
8ce0cbda 5112
66e941e8
JM
5113{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5114$as_echo_n "checking for off_t... " >&6; }
ad6254c5 5115if test "${ac_cv_type_off_t+set}" = set; then
66e941e8 5116 $as_echo_n "(cached) " >&6
ad6254c5
AK
5117else
5118 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5119/* confdefs.h. */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h. */
5124$ac_includes_default
7a197a62 5125typedef off_t ac__type_new_;
ad6254c5
AK
5126int
5127main ()
5128{
7a197a62 5129if ((ac__type_new_ *) 0)
ad6254c5 5130 return 0;
7a197a62 5131if (sizeof (ac__type_new_))
ad6254c5
AK
5132 return 0;
5133 ;
5134 return 0;
5135}
5136_ACEOF
5137rm -f conftest.$ac_objext
7a197a62
AK
5138if { (ac_try="$ac_compile"
5139case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142esac
66e941e8
JM
5143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5144$as_echo "$ac_try_echo") >&5
7a197a62 5145 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5146 ac_status=$?
8a2fc586
AK
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
66e941e8 5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5155 ac_cv_type_off_t=yes
5156else
66e941e8 5157 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5158sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5159
7a197a62 5160 ac_cv_type_off_t=no
80992638 5161fi
7a197a62
AK
5162
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5164fi
66e941e8
JM
5165{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5166$as_echo "$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5167if test $ac_cv_type_off_t = yes; then
5168 :
5169else
80992638 5170
ad6254c5 5171cat >>confdefs.h <<_ACEOF
7a197a62 5172#define off_t long int
ad6254c5 5173_ACEOF
199e490e 5174
b896caa1
AK
5175fi
5176
66e941e8
JM
5177{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5178$as_echo_n "checking for pid_t... " >&6; }
ad6254c5 5179if test "${ac_cv_type_pid_t+set}" = set; then
66e941e8 5180 $as_echo_n "(cached) " >&6
ad6254c5
AK
5181else
5182 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5183/* confdefs.h. */
5184_ACEOF
5185cat confdefs.h >>conftest.$ac_ext
5186cat >>conftest.$ac_ext <<_ACEOF
5187/* end confdefs.h. */
5188$ac_includes_default
7a197a62 5189typedef pid_t ac__type_new_;
ad6254c5
AK
5190int
5191main ()
5192{
7a197a62 5193if ((ac__type_new_ *) 0)
ad6254c5 5194 return 0;
7a197a62 5195if (sizeof (ac__type_new_))
ad6254c5
AK
5196 return 0;
5197 ;
5198 return 0;
5199}
5200_ACEOF
5201rm -f conftest.$ac_objext
7a197a62
AK
5202if { (ac_try="$ac_compile"
5203case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206esac
66e941e8
JM
5207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208$as_echo "$ac_try_echo") >&5
7a197a62 5209 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5210 ac_status=$?
8a2fc586
AK
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
66e941e8 5214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5219 ac_cv_type_pid_t=yes
5220else
66e941e8 5221 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5222sed 's/^/| /' conftest.$ac_ext >&5
5223
7a197a62 5224 ac_cv_type_pid_t=no
ad6254c5 5225fi
7a197a62
AK
5226
5227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5228fi
66e941e8
JM
5229{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5230$as_echo "$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5231if test $ac_cv_type_pid_t = yes; then
5232 :
5233else
80992638 5234
ad6254c5
AK
5235cat >>confdefs.h <<_ACEOF
5236#define pid_t int
5237_ACEOF
2dc95e1c 5238
2dc95e1c
AK
5239fi
5240
66e941e8
JM
5241{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5242$as_echo_n "checking for size_t... " >&6; }
ad6254c5 5243if test "${ac_cv_type_size_t+set}" = set; then
66e941e8 5244 $as_echo_n "(cached) " >&6
8106cdd5 5245else
ad6254c5 5246 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
5252$ac_includes_default
7a197a62 5253typedef size_t ac__type_new_;
ad6254c5
AK
5254int
5255main ()
5256{
7a197a62 5257if ((ac__type_new_ *) 0)
ad6254c5 5258 return 0;
7a197a62 5259if (sizeof (ac__type_new_))
ad6254c5
AK
5260 return 0;
5261 ;
5262 return 0;
5263}
5264_ACEOF
5265rm -f conftest.$ac_objext
7a197a62
AK
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270esac
66e941e8
JM
5271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5272$as_echo "$ac_try_echo") >&5
7a197a62 5273 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5274 ac_status=$?
8a2fc586
AK
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
66e941e8 5278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5283 ac_cv_type_size_t=yes
5284else
66e941e8 5285 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
7a197a62 5288 ac_cv_type_size_t=no
80992638 5289fi
7a197a62
AK
5290
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5292fi
66e941e8
JM
5293{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5294$as_echo "$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5295if test $ac_cv_type_size_t = yes; then
5296 :
5297else
80992638 5298
ad6254c5 5299cat >>confdefs.h <<_ACEOF
7a197a62 5300#define size_t unsigned int
ad6254c5 5301_ACEOF
8106cdd5 5302
8106cdd5
AK
5303fi
5304
66e941e8
JM
5305{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
5306$as_echo_n "checking for mode_t... " >&6; }
ad6254c5 5307if test "${ac_cv_type_mode_t+set}" = set; then
66e941e8 5308 $as_echo_n "(cached) " >&6
ad6254c5
AK
5309else
5310 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5311/* confdefs.h. */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h. */
5316$ac_includes_default
7a197a62 5317typedef mode_t ac__type_new_;
ad6254c5
AK
5318int
5319main ()
5320{
7a197a62 5321if ((ac__type_new_ *) 0)
ad6254c5 5322 return 0;
7a197a62 5323if (sizeof (ac__type_new_))
ad6254c5
AK
5324 return 0;
5325 ;
5326 return 0;
5327}
5328_ACEOF
5329rm -f conftest.$ac_objext
7a197a62
AK
5330if { (ac_try="$ac_compile"
5331case "(($ac_try" in
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5334esac
66e941e8
JM
5335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5336$as_echo "$ac_try_echo") >&5
7a197a62 5337 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5338 ac_status=$?
8a2fc586
AK
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
66e941e8 5342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5343 (exit $ac_status); } && {
5344 test -z "$ac_c_werror_flag" ||
5345 test ! -s conftest.err
5346 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5347 ac_cv_type_mode_t=yes
5348else
66e941e8 5349 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
7a197a62 5352 ac_cv_type_mode_t=no
80992638 5353fi
7a197a62
AK
5354
5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5356fi
66e941e8
JM
5357{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5358$as_echo "$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5359if test $ac_cv_type_mode_t = yes; then
5360 :
5361else
80992638 5362
ad6254c5
AK
5363cat >>confdefs.h <<_ACEOF
5364#define mode_t int
5365_ACEOF
5366
5367fi
5368
66e941e8
JM
5369{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5370$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 5371if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
66e941e8 5372 $as_echo_n "(cached) " >&6
ad6254c5
AK
5373else
5374 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380$ac_includes_default
5381int
5382main ()
5383{
5384static struct stat ac_aggr;
5385if (ac_aggr.st_rdev)
5386return 0;
5387 ;
5388 return 0;
5389}
5390_ACEOF
5391rm -f conftest.$ac_objext
7a197a62
AK
5392if { (ac_try="$ac_compile"
5393case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396esac
66e941e8
JM
5397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398$as_echo "$ac_try_echo") >&5
7a197a62 5399 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5400 ac_status=$?
8a2fc586
AK
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
66e941e8 5404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5405 (exit $ac_status); } && {
5406 test -z "$ac_c_werror_flag" ||
5407 test ! -s conftest.err
5408 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5409 ac_cv_member_struct_stat_st_rdev=yes
5410else
66e941e8 5411 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5412sed 's/^/| /' conftest.$ac_ext >&5
5413
7a197a62 5414 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420$ac_includes_default
5421int
5422main ()
5423{
5424static struct stat ac_aggr;
5425if (sizeof ac_aggr.st_rdev)
5426return 0;
5427 ;
5428 return 0;
5429}
5430_ACEOF
5431rm -f conftest.$ac_objext
7a197a62
AK
5432if { (ac_try="$ac_compile"
5433case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436esac
66e941e8
JM
5437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438$as_echo "$ac_try_echo") >&5
7a197a62 5439 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5440 ac_status=$?
8a2fc586
AK
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
66e941e8 5444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5449 ac_cv_member_struct_stat_st_rdev=yes
5450else
66e941e8 5451 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
7a197a62 5454 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5455fi
7a197a62
AK
5456
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5458fi
7a197a62
AK
5459
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5461fi
66e941e8
JM
5462{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5463$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5464if test $ac_cv_member_struct_stat_st_rdev = yes; then
5465
5466cat >>confdefs.h <<_ACEOF
5467#define HAVE_STRUCT_STAT_ST_RDEV 1
5468_ACEOF
5469
5470
ad6254c5
AK
5471fi
5472
66e941e8
JM
5473{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5474$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 5475if test "${ac_cv_struct_tm+set}" = set; then
66e941e8 5476 $as_echo_n "(cached) " >&6
ad6254c5
AK
5477else
5478 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484#include <sys/types.h>
5485#include <time.h>
5486
5487int
5488main ()
5489{
7a197a62
AK
5490struct tm tm;
5491 int *p = &tm.tm_sec;
5492 return !p;
ad6254c5
AK
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext
7a197a62
AK
5498if { (ac_try="$ac_compile"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
66e941e8
JM
5503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5504$as_echo "$ac_try_echo") >&5
7a197a62 5505 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5506 ac_status=$?
8a2fc586
AK
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
66e941e8 5510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5515 ac_cv_struct_tm=time.h
5516else
66e941e8 5517 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
7a197a62 5520 ac_cv_struct_tm=sys/time.h
ad6254c5 5521fi
7a197a62
AK
5522
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5524fi
66e941e8
JM
5525{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5526$as_echo "$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5527if test $ac_cv_struct_tm = sys/time.h; then
5528
5529cat >>confdefs.h <<\_ACEOF
5530#define TM_IN_SYS_TIME 1
5531_ACEOF
5532
5533fi
809fae91 5534
795ca3e5 5535
80992638 5536################################################################################
ad6254c5
AK
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
5552do
66e941e8
JM
5553as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5554{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5555$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 5556if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 5557 $as_echo_n "(cached) " >&6
795ca3e5 5558else
ad6254c5 5559 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
8a2fc586
AK
5565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5567#define $ac_func innocuous_$ac_func
5568
ad6254c5
AK
5569/* System header to define __stub macros and hopefully few prototypes,
5570 which can conflict with char $ac_func (); below.
5571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 <limits.h> exists even on freestanding compilers. */
8a2fc586 5573
ad6254c5
AK
5574#ifdef __STDC__
5575# include <limits.h>
5576#else
5577# include <assert.h>
5578#endif
8a2fc586
AK
5579
5580#undef $ac_func
5581
7a197a62
AK
5582/* Override any GCC internal prototype to avoid an error.
5583 Use char because int might match the return type of a GCC
5584 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5585#ifdef __cplusplus
5586extern "C"
ad6254c5 5587#endif
ad6254c5
AK
5588char $ac_func ();
5589/* The GNU C library defines this for functions which it implements
5590 to always fail with ENOSYS. Some functions are actually named
5591 something starting with __ and the normal name is an alias. */
7a197a62 5592#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5593choke me
ad6254c5
AK
5594#endif
5595
5596int
5597main ()
5598{
7a197a62 5599return $ac_func ();
ad6254c5
AK
5600 ;
5601 return 0;
5602}
5603_ACEOF
5604rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5605if { (ac_try="$ac_link"
5606case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609esac
66e941e8
JM
5610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5611$as_echo "$ac_try_echo") >&5
7a197a62 5612 (eval "$ac_link") 2>conftest.er1
ad6254c5 5613 ac_status=$?
8a2fc586
AK
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
66e941e8 5617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5618 (exit $ac_status); } && {
5619 test -z "$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest$ac_exeext &&
5622 $as_test_x conftest$ac_exeext; then
ad6254c5 5623 eval "$as_ac_var=yes"
795ca3e5 5624else
66e941e8 5625 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
7a197a62 5628 eval "$as_ac_var=no"
795ca3e5 5629fi
7a197a62
AK
5630
5631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5632 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5633fi
66e941e8
JM
5634ac_res=`eval 'as_val=${'$as_ac_var'}
5635 $as_echo "$as_val"'`
5636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5637$as_echo "$ac_res" >&6; }
5638if test `eval 'as_val=${'$as_ac_var'}
5639 $as_echo "$as_val"'` = yes; then
ad6254c5 5640 cat >>confdefs.h <<_ACEOF
66e941e8 5641#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
5642_ACEOF
5643
5644else
66e941e8
JM
5645 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5646$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
5647 { (exit 1); exit 1; }; }
5648fi
5649done
795ca3e5 5650
ad6254c5
AK
5651# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5652# for constant arguments. Useless!
66e941e8
JM
5653{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
5654$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 5655if test "${ac_cv_working_alloca_h+set}" = set; then
66e941e8 5656 $as_echo_n "(cached) " >&6
ad6254c5
AK
5657else
5658 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5659/* confdefs.h. */
5660_ACEOF
5661cat confdefs.h >>conftest.$ac_ext
5662cat >>conftest.$ac_ext <<_ACEOF
5663/* end confdefs.h. */
5664#include <alloca.h>
5665int
5666main ()
5667{
5668char *p = (char *) alloca (2 * sizeof (int));
7a197a62 5669 if (p) return 0;
ad6254c5
AK
5670 ;
5671 return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5675if { (ac_try="$ac_link"
5676case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
66e941e8
JM
5680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5681$as_echo "$ac_try_echo") >&5
7a197a62 5682 (eval "$ac_link") 2>conftest.er1
ad6254c5 5683 ac_status=$?
8a2fc586
AK
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
66e941e8 5687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest$ac_exeext &&
5692 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5693 ac_cv_working_alloca_h=yes
5694else
66e941e8 5695 $as_echo "$as_me: failed program was:" >&5
ad6254c5 5696sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5697
7a197a62 5698 ac_cv_working_alloca_h=no
ad6254c5 5699fi
7a197a62
AK
5700
5701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5702 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5703fi
66e941e8
JM
5704{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5705$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
5706if test $ac_cv_working_alloca_h = yes; then
5707
5708cat >>confdefs.h <<\_ACEOF
5709#define HAVE_ALLOCA_H 1
5710_ACEOF
5711
5712fi
5713
66e941e8
JM
5714{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
5715$as_echo_n "checking for alloca... " >&6; }
ad6254c5 5716if test "${ac_cv_func_alloca_works+set}" = set; then
66e941e8 5717 $as_echo_n "(cached) " >&6
ad6254c5
AK
5718else
5719 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725#ifdef __GNUC__
5726# define alloca __builtin_alloca
5727#else
5728# ifdef _MSC_VER
5729# include <malloc.h>
5730# define alloca _alloca
5731# else
7a197a62 5732# ifdef HAVE_ALLOCA_H
ad6254c5
AK
5733# include <alloca.h>
5734# else
5735# ifdef _AIX
5736 #pragma alloca
5737# else
5738# ifndef alloca /* predefined by HP cc +Olibcalls */
5739char *alloca ();
5740# endif
5741# endif
5742# endif
5743# endif
5744#endif
5745
5746int
5747main ()
5748{
5749char *p = (char *) alloca (1);
7a197a62 5750 if (p) return 0;
ad6254c5
AK
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5756if { (ac_try="$ac_link"
5757case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
66e941e8
JM
5761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5762$as_echo "$ac_try_echo") >&5
7a197a62 5763 (eval "$ac_link") 2>conftest.er1
ad6254c5 5764 ac_status=$?
8a2fc586
AK
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
66e941e8 5768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest$ac_exeext &&
5773 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5774 ac_cv_func_alloca_works=yes
5775else
66e941e8 5776 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5777sed 's/^/| /' conftest.$ac_ext >&5
5778
7a197a62 5779 ac_cv_func_alloca_works=no
ad6254c5 5780fi
7a197a62
AK
5781
5782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5783 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5784fi
66e941e8
JM
5785{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5786$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
5787
5788if test $ac_cv_func_alloca_works = yes; then
5789
5790cat >>confdefs.h <<\_ACEOF
5791#define HAVE_ALLOCA 1
5792_ACEOF
5793
5794else
5795 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5796# that cause trouble. Some versions do not even contain alloca or
5797# contain a buggy version. If you still want to use their alloca,
5798# use ar to extract alloca.o from them instead of compiling alloca.c.
5799
7a197a62 5800ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
5801
5802cat >>confdefs.h <<\_ACEOF
5803#define C_ALLOCA 1
5804_ACEOF
5805
5806
66e941e8
JM
5807{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5808$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 5809if test "${ac_cv_os_cray+set}" = set; then
66e941e8 5810 $as_echo_n "(cached) " >&6
ad6254c5
AK
5811else
5812 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
7a197a62 5818#if defined CRAY && ! defined CRAY2
ad6254c5
AK
5819webecray
5820#else
5821wenotbecray
5822#endif
5823
5824_ACEOF
795ca3e5 5825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5826 $EGREP "webecray" >/dev/null 2>&1; then
5827 ac_cv_os_cray=yes
5828else
5829 ac_cv_os_cray=no
795ca3e5
AK
5830fi
5831rm -f conftest*
5832
795ca3e5 5833fi
66e941e8
JM
5834{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5835$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
5836if test $ac_cv_os_cray = yes; then
5837 for ac_func in _getb67 GETB67 getb67; do
66e941e8
JM
5838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5839{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5840$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 5841if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 5842 $as_echo_n "(cached) " >&6
ad6254c5
AK
5843else
5844 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5845/* confdefs.h. */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h. */
8a2fc586
AK
5850/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5852#define $ac_func innocuous_$ac_func
5853
ad6254c5
AK
5854/* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char $ac_func (); below.
5856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857 <limits.h> exists even on freestanding compilers. */
8a2fc586 5858
ad6254c5
AK
5859#ifdef __STDC__
5860# include <limits.h>
5861#else
5862# include <assert.h>
5863#endif
8a2fc586
AK
5864
5865#undef $ac_func
5866
7a197a62
AK
5867/* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5870#ifdef __cplusplus
5871extern "C"
ad6254c5 5872#endif
ad6254c5
AK
5873char $ac_func ();
5874/* The GNU C library defines this for functions which it implements
5875 to always fail with ENOSYS. Some functions are actually named
5876 something starting with __ and the normal name is an alias. */
7a197a62 5877#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5878choke me
ad6254c5
AK
5879#endif
5880
5881int
5882main ()
5883{
7a197a62 5884return $ac_func ();
ad6254c5
AK
5885 ;
5886 return 0;
5887}
5888_ACEOF
5889rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5890if { (ac_try="$ac_link"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
66e941e8
JM
5895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896$as_echo "$ac_try_echo") >&5
7a197a62 5897 (eval "$ac_link") 2>conftest.er1
ad6254c5 5898 ac_status=$?
8a2fc586
AK
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
66e941e8 5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
5908 eval "$as_ac_var=yes"
5909else
66e941e8 5910 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
7a197a62 5913 eval "$as_ac_var=no"
ad6254c5 5914fi
7a197a62
AK
5915
5916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 5917 conftest$ac_exeext conftest.$ac_ext
ad6254c5 5918fi
66e941e8
JM
5919ac_res=`eval 'as_val=${'$as_ac_var'}
5920 $as_echo "$as_val"'`
5921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5922$as_echo "$ac_res" >&6; }
5923if test `eval 'as_val=${'$as_ac_var'}
5924 $as_echo "$as_val"'` = yes; then
80992638 5925
ad6254c5
AK
5926cat >>confdefs.h <<_ACEOF
5927#define CRAY_STACKSEG_END $ac_func
5928_ACEOF
5929
5930 break
5931fi
5932
5933 done
5934fi
5935
66e941e8
JM
5936{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5937$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 5938if test "${ac_cv_c_stack_direction+set}" = set; then
66e941e8 5939 $as_echo_n "(cached) " >&6
ad6254c5
AK
5940else
5941 if test "$cross_compiling" = yes; then
5942 ac_cv_c_stack_direction=0
5943else
5944 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5945/* confdefs.h. */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
5949/* end confdefs.h. */
7a197a62 5950$ac_includes_default
ad6254c5
AK
5951int
5952find_stack_direction ()
5953{
5954 static char *addr = 0;
5955 auto char dummy;
5956 if (addr == 0)
5957 {
5958 addr = &dummy;
5959 return find_stack_direction ();
5960 }
5961 else
5962 return (&dummy > addr) ? 1 : -1;
5963}
5964
5965int
5966main ()
5967{
7a197a62 5968 return find_stack_direction () < 0;
ad6254c5
AK
5969}
5970_ACEOF
5971rm -f conftest$ac_exeext
7a197a62
AK
5972if { (ac_try="$ac_link"
5973case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976esac
66e941e8
JM
5977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978$as_echo "$ac_try_echo") >&5
7a197a62 5979 (eval "$ac_link") 2>&5
ad6254c5 5980 ac_status=$?
66e941e8 5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 5982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
5983 { (case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
66e941e8
JM
5987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988$as_echo "$ac_try_echo") >&5
7a197a62 5989 (eval "$ac_try") 2>&5
ad6254c5 5990 ac_status=$?
66e941e8 5991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
5992 (exit $ac_status); }; }; then
5993 ac_cv_c_stack_direction=1
5994else
66e941e8
JM
5995 $as_echo "$as_me: program exited with status $ac_status" >&5
5996$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999( exit $ac_status )
6000ac_cv_c_stack_direction=-1
6001fi
7a197a62 6002rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6003fi
7a197a62
AK
6004
6005
ad6254c5 6006fi
66e941e8
JM
6007{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6008$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6009
6010cat >>confdefs.h <<_ACEOF
6011#define STACK_DIRECTION $ac_cv_c_stack_direction
6012_ACEOF
6013
6014
6015fi
6016
66e941e8
JM
6017{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6018$as_echo_n "checking whether closedir returns void... " >&6; }
ad6254c5 6019if test "${ac_cv_func_closedir_void+set}" = set; then
66e941e8 6020 $as_echo_n "(cached) " >&6
ad6254c5
AK
6021else
6022 if test "$cross_compiling" = yes; then
6023 ac_cv_func_closedir_void=yes
6024else
6025 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031$ac_includes_default
6032#include <$ac_header_dirent>
6033#ifndef __cplusplus
6034int closedir ();
6035#endif
6036
6037int
6038main ()
6039{
7a197a62 6040return closedir (opendir (".")) != 0;
ad6254c5
AK
6041 ;
6042 return 0;
6043}
6044_ACEOF
6045rm -f conftest$ac_exeext
7a197a62
AK
6046if { (ac_try="$ac_link"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
66e941e8
JM
6051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6052$as_echo "$ac_try_echo") >&5
7a197a62 6053 (eval "$ac_link") 2>&5
ad6254c5 6054 ac_status=$?
66e941e8 6055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6057 { (case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
66e941e8
JM
6061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6062$as_echo "$ac_try_echo") >&5
7a197a62 6063 (eval "$ac_try") 2>&5
ad6254c5 6064 ac_status=$?
66e941e8 6065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6066 (exit $ac_status); }; }; then
6067 ac_cv_func_closedir_void=no
6068else
66e941e8
JM
6069 $as_echo "$as_me: program exited with status $ac_status" >&5
6070$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073( exit $ac_status )
6074ac_cv_func_closedir_void=yes
6075fi
7a197a62 6076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6077fi
7a197a62
AK
6078
6079
ad6254c5 6080fi
66e941e8
JM
6081{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6082$as_echo "$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6083if test $ac_cv_func_closedir_void = yes; then
6084
6085cat >>confdefs.h <<\_ACEOF
6086#define CLOSEDIR_VOID 1
6087_ACEOF
6088
6089fi
6090
6091
7a197a62 6092for ac_header in vfork.h
ad6254c5 6093do
66e941e8 6094as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
6096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6097$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 6099 $as_echo_n "(cached) " >&6
ad6254c5 6100fi
66e941e8
JM
6101ac_res=`eval 'as_val=${'$as_ac_Header'}
6102 $as_echo "$as_val"'`
6103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6104$as_echo "$ac_res" >&6; }
ad6254c5
AK
6105else
6106 # Is the header compilable?
66e941e8
JM
6107{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6108$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6109cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6110/* confdefs.h. */
6111_ACEOF
6112cat confdefs.h >>conftest.$ac_ext
6113cat >>conftest.$ac_ext <<_ACEOF
6114/* end confdefs.h. */
6115$ac_includes_default
6116#include <$ac_header>
6117_ACEOF
6118rm -f conftest.$ac_objext
7a197a62
AK
6119if { (ac_try="$ac_compile"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
66e941e8
JM
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
7a197a62 6126 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6127 ac_status=$?
8a2fc586
AK
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
66e941e8 6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6136 ac_header_compiler=yes
6137else
66e941e8 6138 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
7a197a62 6141 ac_header_compiler=no
ad6254c5 6142fi
7a197a62
AK
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
6145{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6146$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6147
6148# Is the header present?
66e941e8
JM
6149{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6150$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6151cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157#include <$ac_header>
6158_ACEOF
7a197a62
AK
6159if { (ac_try="$ac_cpp conftest.$ac_ext"
6160case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
66e941e8
JM
6164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6165$as_echo "$ac_try_echo") >&5
7a197a62 6166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6167 ac_status=$?
6168 grep -v '^ *+' conftest.er1 >conftest.err
6169 rm -f conftest.er1
6170 cat conftest.err >&5
66e941e8 6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6172 (exit $ac_status); } >/dev/null && {
6173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6175 }; then
ad6254c5
AK
6176 ac_header_preproc=yes
6177else
66e941e8 6178 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_header_preproc=no
6182fi
7a197a62 6183
ad6254c5 6184rm -f conftest.err conftest.$ac_ext
66e941e8
JM
6185{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6186$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
6187
6188# So? What about this header?
8a2fc586
AK
6189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6190 yes:no: )
66e941e8
JM
6191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6192$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6194$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6195 ac_header_preproc=yes
ad6254c5 6196 ;;
8a2fc586 6197 no:yes:* )
66e941e8
JM
6198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6199$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6201$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6203$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6205$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6207$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6209$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6210
ad6254c5
AK
6211 ;;
6212esac
66e941e8
JM
6213{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6214$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 6216 $as_echo_n "(cached) " >&6
ad6254c5 6217else
8a2fc586 6218 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6219fi
66e941e8
JM
6220ac_res=`eval 'as_val=${'$as_ac_Header'}
6221 $as_echo "$as_val"'`
6222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6223$as_echo "$ac_res" >&6; }
ad6254c5 6224
795ca3e5 6225fi
66e941e8
JM
6226if test `eval 'as_val=${'$as_ac_Header'}
6227 $as_echo "$as_val"'` = yes; then
ad6254c5 6228 cat >>confdefs.h <<_ACEOF
66e941e8 6229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6230_ACEOF
6231
6232fi
6233
6234done
795ca3e5 6235
ad6254c5
AK
6236
6237
6238for ac_func in fork vfork
6239do
66e941e8
JM
6240as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6241{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6242$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 6243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 6244 $as_echo_n "(cached) " >&6
795ca3e5 6245else
ad6254c5 6246 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */
8a2fc586
AK
6252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6254#define $ac_func innocuous_$ac_func
6255
ad6254c5
AK
6256/* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char $ac_func (); below.
6258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6259 <limits.h> exists even on freestanding compilers. */
8a2fc586 6260
ad6254c5
AK
6261#ifdef __STDC__
6262# include <limits.h>
6263#else
6264# include <assert.h>
795ca3e5 6265#endif
8a2fc586
AK
6266
6267#undef $ac_func
6268
7a197a62
AK
6269/* Override any GCC internal prototype to avoid an error.
6270 Use char because int might match the return type of a GCC
6271 builtin and then its argument prototype would still apply. */
795ca3e5 6272#ifdef __cplusplus
ad6254c5 6273extern "C"
ad6254c5 6274#endif
ad6254c5
AK
6275char $ac_func ();
6276/* The GNU C library defines this for functions which it implements
6277 to always fail with ENOSYS. Some functions are actually named
6278 something starting with __ and the normal name is an alias. */
7a197a62 6279#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6280choke me
795ca3e5
AK
6281#endif
6282
ad6254c5
AK
6283int
6284main ()
6285{
7a197a62 6286return $ac_func ();
ad6254c5
AK
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6292if { (ac_try="$ac_link"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
66e941e8
JM
6297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6298$as_echo "$ac_try_echo") >&5
7a197a62 6299 (eval "$ac_link") 2>conftest.er1
ad6254c5 6300 ac_status=$?
8a2fc586
AK
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
66e941e8 6304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest$ac_exeext &&
6309 $as_test_x conftest$ac_exeext; then
ad6254c5 6310 eval "$as_ac_var=yes"
795ca3e5 6311else
66e941e8 6312 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
7a197a62 6315 eval "$as_ac_var=no"
795ca3e5 6316fi
7a197a62
AK
6317
6318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6319 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6320fi
66e941e8
JM
6321ac_res=`eval 'as_val=${'$as_ac_var'}
6322 $as_echo "$as_val"'`
6323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6324$as_echo "$ac_res" >&6; }
6325if test `eval 'as_val=${'$as_ac_var'}
6326 $as_echo "$as_val"'` = yes; then
ad6254c5 6327 cat >>confdefs.h <<_ACEOF
66e941e8 6328#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6329_ACEOF
6330
6331fi
6332done
6333
6334if test "x$ac_cv_func_fork" = xyes; then
66e941e8
JM
6335 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
6336$as_echo_n "checking for working fork... " >&6; }
ad6254c5 6337if test "${ac_cv_func_fork_works+set}" = set; then
66e941e8 6338 $as_echo_n "(cached) " >&6
ad6254c5
AK
6339else
6340 if test "$cross_compiling" = yes; then
6341 ac_cv_func_fork_works=cross
6342else
6343 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
6349$ac_includes_default
6350int
6351main ()
6352{
6353
6354 /* By Ruediger Kuhlmann. */
6355 return fork () < 0;
6356
6357 ;
6358 return 0;
6359}
ad6254c5
AK
6360_ACEOF
6361rm -f conftest$ac_exeext
7a197a62
AK
6362if { (ac_try="$ac_link"
6363case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366esac
66e941e8
JM
6367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6368$as_echo "$ac_try_echo") >&5
7a197a62 6369 (eval "$ac_link") 2>&5
ad6254c5 6370 ac_status=$?
66e941e8 6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
66e941e8
JM
6377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6378$as_echo "$ac_try_echo") >&5
7a197a62 6379 (eval "$ac_try") 2>&5
ad6254c5 6380 ac_status=$?
66e941e8 6381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6382 (exit $ac_status); }; }; then
6383 ac_cv_func_fork_works=yes
6384else
66e941e8
JM
6385 $as_echo "$as_me: program exited with status $ac_status" >&5
6386$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389( exit $ac_status )
6390ac_cv_func_fork_works=no
6391fi
7a197a62 6392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6393fi
7a197a62
AK
6394
6395
ad6254c5 6396fi
66e941e8
JM
6397{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6398$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6399
6400else
6401 ac_cv_func_fork_works=$ac_cv_func_fork
6402fi
6403if test "x$ac_cv_func_fork_works" = xcross; then
6404 case $host in
6405 *-*-amigaos* | *-*-msdosdjgpp*)
6406 # Override, as these systems have only a dummy fork() stub
6407 ac_cv_func_fork_works=no
6408 ;;
6409 *)
6410 ac_cv_func_fork_works=yes
6411 ;;
6412 esac
66e941e8
JM
6413 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6414$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6415fi
6416ac_cv_func_vfork_works=$ac_cv_func_vfork
6417if test "x$ac_cv_func_vfork" = xyes; then
66e941e8
JM
6418 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
6419$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 6420if test "${ac_cv_func_vfork_works+set}" = set; then
66e941e8 6421 $as_echo_n "(cached) " >&6
ad6254c5
AK
6422else
6423 if test "$cross_compiling" = yes; then
6424 ac_cv_func_vfork_works=cross
6425else
6426 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6427/* confdefs.h. */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h. */
6432/* Thanks to Paul Eggert for this test. */
7a197a62 6433$ac_includes_default
ad6254c5 6434#include <sys/wait.h>
7a197a62 6435#ifdef HAVE_VFORK_H
ad6254c5
AK
6436# include <vfork.h>
6437#endif
6438/* On some sparc systems, changes by the child to local and incoming
6439 argument registers are propagated back to the parent. The compiler
6440 is told about this with #include <vfork.h>, but some compilers
6441 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6442 static variable whose address is put into a register that is
6443 clobbered by the vfork. */
6444static void
6445#ifdef __cplusplus
6446sparc_address_test (int arg)
6447# else
6448sparc_address_test (arg) int arg;
6449#endif
6450{
6451 static pid_t child;
6452 if (!child) {
6453 child = vfork ();
6454 if (child < 0) {
6455 perror ("vfork");
6456 _exit(2);
6457 }
6458 if (!child) {
6459 arg = getpid();
6460 write(-1, "", 0);
6461 _exit (arg);
6462 }
6463 }
6464}
6465
6466int
6467main ()
6468{
6469 pid_t parent = getpid ();
6470 pid_t child;
6471
6472 sparc_address_test (0);
6473
6474 child = vfork ();
6475
6476 if (child == 0) {
6477 /* Here is another test for sparc vfork register problems. This
6478 test uses lots of local variables, at least as many local
6479 variables as main has allocated so far including compiler
6480 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6481 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6482 reuse the register of parent for one of the local variables,
6483 since it will think that parent can't possibly be used any more
6484 in this routine. Assigning to the local variable will thus
6485 munge parent in the parent process. */
6486 pid_t
6487 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6488 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6489 /* Convince the compiler that p..p7 are live; otherwise, it might
6490 use the same hardware register for all 8 local variables. */
6491 if (p != p1 || p != p2 || p != p3 || p != p4
6492 || p != p5 || p != p6 || p != p7)
6493 _exit(1);
6494
6495 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6496 from child file descriptors. If the child closes a descriptor
6497 before it execs or exits, this munges the parent's descriptor
6498 as well. Test for this by closing stdout in the child. */
6499 _exit(close(fileno(stdout)) != 0);
6500 } else {
6501 int status;
6502 struct stat st;
6503
6504 while (wait(&status) != child)
6505 ;
7a197a62 6506 return (
ad6254c5
AK
6507 /* Was there some problem with vforking? */
6508 child < 0
6509
6510 /* Did the child fail? (This shouldn't happen.) */
6511 || status
6512
6513 /* Did the vfork/compiler bug occur? */
6514 || parent != getpid()
6515
6516 /* Did the file descriptor bug occur? */
6517 || fstat(fileno(stdout), &st) != 0
6518 );
6519 }
6520}
6521_ACEOF
6522rm -f conftest$ac_exeext
7a197a62
AK
6523if { (ac_try="$ac_link"
6524case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527esac
66e941e8
JM
6528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6529$as_echo "$ac_try_echo") >&5
7a197a62 6530 (eval "$ac_link") 2>&5
ad6254c5 6531 ac_status=$?
66e941e8 6532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6534 { (case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
66e941e8
JM
6538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6539$as_echo "$ac_try_echo") >&5
7a197a62 6540 (eval "$ac_try") 2>&5
ad6254c5 6541 ac_status=$?
66e941e8 6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6543 (exit $ac_status); }; }; then
6544 ac_cv_func_vfork_works=yes
6545else
66e941e8
JM
6546 $as_echo "$as_me: program exited with status $ac_status" >&5
6547$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550( exit $ac_status )
6551ac_cv_func_vfork_works=no
6552fi
7a197a62 6553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6554fi
7a197a62
AK
6555
6556
ad6254c5 6557fi
66e941e8
JM
6558{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6559$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6560
6561fi;
6562if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6563 ac_cv_func_vfork_works=$ac_cv_func_vfork
66e941e8
JM
6564 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6565$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6566fi
6567
6568if test "x$ac_cv_func_vfork_works" = xyes; then
6569
6570cat >>confdefs.h <<\_ACEOF
6571#define HAVE_WORKING_VFORK 1
6572_ACEOF
6573
6574else
6575
6576cat >>confdefs.h <<\_ACEOF
6577#define vfork fork
6578_ACEOF
6579
6580fi
6581if test "x$ac_cv_func_fork_works" = xyes; then
6582
6583cat >>confdefs.h <<\_ACEOF
6584#define HAVE_WORKING_FORK 1
6585_ACEOF
6586
6587fi
6588
66e941e8
JM
6589{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6590$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 6591if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
66e941e8 6592 $as_echo_n "(cached) " >&6
ad6254c5
AK
6593else
6594 rm -f conftest.sym conftest.file
6595echo >conftest.file
6596if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6597 if test "$cross_compiling" = yes; then
6598 ac_cv_func_lstat_dereferences_slashed_symlink=no
6599else
6600 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606$ac_includes_default
6607int
6608main ()
6609{
6610struct stat sbuf;
6611 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6612 That is better in the sense that it means we will not
6613 have to compile and use the lstat wrapper. */
7a197a62 6614 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
6615 ;
6616 return 0;
6617}
6618_ACEOF
6619rm -f conftest$ac_exeext
7a197a62
AK
6620if { (ac_try="$ac_link"
6621case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624esac
66e941e8
JM
6625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6626$as_echo "$ac_try_echo") >&5
7a197a62 6627 (eval "$ac_link") 2>&5
ad6254c5 6628 ac_status=$?
66e941e8 6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6631 { (case "(($ac_try" in
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6634esac
66e941e8
JM
6635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6636$as_echo "$ac_try_echo") >&5
7a197a62 6637 (eval "$ac_try") 2>&5
ad6254c5 6638 ac_status=$?
66e941e8 6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6640 (exit $ac_status); }; }; then
6641 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6642else
66e941e8
JM
6643 $as_echo "$as_me: program exited with status $ac_status" >&5
6644$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647( exit $ac_status )
6648ac_cv_func_lstat_dereferences_slashed_symlink=no
6649fi
7a197a62 6650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6651fi
7a197a62
AK
6652
6653
ad6254c5
AK
6654else
6655 # If the `ln -s' command failed, then we probably don't even
6656 # have an lstat function.
6657 ac_cv_func_lstat_dereferences_slashed_symlink=no
6658fi
6659rm -f conftest.sym conftest.file
6660
6661fi
66e941e8
JM
6662{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6663$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
6664
6665test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6666
6667cat >>confdefs.h <<_ACEOF
6668#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6669_ACEOF
6670
6671
6672if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 6673 case " $LIBOBJS " in
8a2fc586 6674 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6675 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6676 ;;
8a2fc586
AK
6677esac
6678
ad6254c5
AK
6679fi
6680
66e941e8
JM
6681{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6682$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 6683if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
66e941e8 6684 $as_echo_n "(cached) " >&6
ad6254c5
AK
6685else
6686 if test "$cross_compiling" = yes; then
6687 ac_cv_func_lstat_empty_string_bug=yes
6688else
6689 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6690/* confdefs.h. */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h. */
6695$ac_includes_default
6696int
6697main ()
6698{
6699struct stat sbuf;
7a197a62 6700 return lstat ("", &sbuf) == 0;
ad6254c5
AK
6701 ;
6702 return 0;
6703}
6704_ACEOF
6705rm -f conftest$ac_exeext
7a197a62
AK
6706if { (ac_try="$ac_link"
6707case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710esac
66e941e8
JM
6711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6712$as_echo "$ac_try_echo") >&5
7a197a62 6713 (eval "$ac_link") 2>&5
ad6254c5 6714 ac_status=$?
66e941e8 6715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6717 { (case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720esac
66e941e8
JM
6721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6722$as_echo "$ac_try_echo") >&5
7a197a62 6723 (eval "$ac_try") 2>&5
ad6254c5 6724 ac_status=$?
66e941e8 6725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6726 (exit $ac_status); }; }; then
7a197a62 6727 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 6728else
66e941e8
JM
6729 $as_echo "$as_me: program exited with status $ac_status" >&5
6730$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733( exit $ac_status )
7a197a62 6734ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 6735fi
7a197a62 6736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6737fi
7a197a62
AK
6738
6739
ad6254c5 6740fi
66e941e8
JM
6741{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6742$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 6743if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 6744 case " $LIBOBJS " in
8a2fc586 6745 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6746 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6747 ;;
8a2fc586
AK
6748esac
6749
ad6254c5
AK
6750
6751cat >>confdefs.h <<_ACEOF
6752#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6753_ACEOF
6754
6755fi
6756
6757
6758for ac_header in stdlib.h
6759do
66e941e8 6760as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
6762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6763$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 6765 $as_echo_n "(cached) " >&6
ad6254c5 6766fi
66e941e8
JM
6767ac_res=`eval 'as_val=${'$as_ac_Header'}
6768 $as_echo "$as_val"'`
6769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6770$as_echo "$ac_res" >&6; }
ad6254c5
AK
6771else
6772 # Is the header compilable?
66e941e8
JM
6773{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6774$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 6775cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781$ac_includes_default
6782#include <$ac_header>
6783_ACEOF
6784rm -f conftest.$ac_objext
7a197a62
AK
6785if { (ac_try="$ac_compile"
6786case "(($ac_try" in
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6789esac
66e941e8
JM
6790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6791$as_echo "$ac_try_echo") >&5
7a197a62 6792 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6793 ac_status=$?
8a2fc586
AK
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
66e941e8 6797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6802 ac_header_compiler=yes
6803else
66e941e8 6804 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
7a197a62 6807 ac_header_compiler=no
ad6254c5 6808fi
7a197a62
AK
6809
6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
6811{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6812$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
6813
6814# Is the header present?
66e941e8
JM
6815{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6816$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 6817cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6818/* confdefs.h. */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h. */
6823#include <$ac_header>
6824_ACEOF
7a197a62
AK
6825if { (ac_try="$ac_cpp conftest.$ac_ext"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
66e941e8
JM
6830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831$as_echo "$ac_try_echo") >&5
7a197a62 6832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
66e941e8 6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
6838 (exit $ac_status); } >/dev/null && {
6839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 }; then
ad6254c5
AK
6842 ac_header_preproc=yes
6843else
66e941e8 6844 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6845sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ac_header_preproc=no
6848fi
7a197a62 6849
ad6254c5 6850rm -f conftest.err conftest.$ac_ext
66e941e8
JM
6851{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6852$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
6853
6854# So? What about this header?
8a2fc586
AK
6855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6856 yes:no: )
66e941e8
JM
6857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6858$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6860$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6861 ac_header_preproc=yes
ad6254c5 6862 ;;
8a2fc586 6863 no:yes:* )
66e941e8
JM
6864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6865$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6867$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6869$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6871$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6873$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6875$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6876
ad6254c5
AK
6877 ;;
6878esac
66e941e8
JM
6879{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6880$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 6881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 6882 $as_echo_n "(cached) " >&6
ad6254c5 6883else
8a2fc586 6884 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6885fi
66e941e8
JM
6886ac_res=`eval 'as_val=${'$as_ac_Header'}
6887 $as_echo "$as_val"'`
6888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6889$as_echo "$ac_res" >&6; }
ad6254c5
AK
6890
6891fi
66e941e8
JM
6892if test `eval 'as_val=${'$as_ac_Header'}
6893 $as_echo "$as_val"'` = yes; then
ad6254c5 6894 cat >>confdefs.h <<_ACEOF
66e941e8 6895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6896_ACEOF
6897
6898fi
6899
6900done
6901
66e941e8
JM
6902{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6903$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 6904if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
66e941e8 6905 $as_echo_n "(cached) " >&6
ad6254c5
AK
6906else
6907 if test "$cross_compiling" = yes; then
6908 ac_cv_func_malloc_0_nonnull=no
6909else
6910 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6911/* confdefs.h. */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h. */
7a197a62 6916#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
6917# include <stdlib.h>
6918#else
6919char *malloc ();
6920#endif
6921
6922int
6923main ()
6924{
7a197a62 6925return ! malloc (0);
ad6254c5
AK
6926 ;
6927 return 0;
6928}
6929_ACEOF
6930rm -f conftest$ac_exeext
7a197a62
AK
6931if { (ac_try="$ac_link"
6932case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
66e941e8
JM
6936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6937$as_echo "$ac_try_echo") >&5
7a197a62 6938 (eval "$ac_link") 2>&5
ad6254c5 6939 ac_status=$?
66e941e8 6940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6942 { (case "(($ac_try" in
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6945esac
66e941e8
JM
6946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6947$as_echo "$ac_try_echo") >&5
7a197a62 6948 (eval "$ac_try") 2>&5
ad6254c5 6949 ac_status=$?
66e941e8 6950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6951 (exit $ac_status); }; }; then
6952 ac_cv_func_malloc_0_nonnull=yes
6953else
66e941e8
JM
6954 $as_echo "$as_me: program exited with status $ac_status" >&5
6955$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958( exit $ac_status )
6959ac_cv_func_malloc_0_nonnull=no
6960fi
7a197a62 6961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6962fi
7a197a62
AK
6963
6964
ad6254c5 6965fi
66e941e8
JM
6966{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6967$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
6968if test $ac_cv_func_malloc_0_nonnull = yes; then
6969
6970cat >>confdefs.h <<\_ACEOF
6971#define HAVE_MALLOC 1
6972_ACEOF
6973
6974else
6975 cat >>confdefs.h <<\_ACEOF
6976#define HAVE_MALLOC 0
6977_ACEOF
6978
7a197a62 6979 case " $LIBOBJS " in
8a2fc586 6980 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
6981 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6982 ;;
8a2fc586
AK
6983esac
6984
ad6254c5
AK
6985
6986cat >>confdefs.h <<\_ACEOF
6987#define malloc rpl_malloc
6988_ACEOF
6989
6990fi
6991
6992
6993
66e941e8
JM
6994{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
6995$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 6996if test "${ac_cv_func_memcmp_working+set}" = set; then
66e941e8 6997 $as_echo_n "(cached) " >&6
ad6254c5
AK
6998else
6999 if test "$cross_compiling" = yes; then
7000 ac_cv_func_memcmp_working=no
7001else
7002 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7003/* confdefs.h. */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h. */
8a2fc586 7008$ac_includes_default
ad6254c5
AK
7009int
7010main ()
7011{
7012
7013 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7014 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7015 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7016 return 1;
ad6254c5
AK
7017
7018 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7019 or more and with at least one buffer not starting on a 4-byte boundary.
7020 William Lewis provided this test program. */
7021 {
7022 char foo[21];
7023 char bar[21];
7024 int i;
7025 for (i = 0; i < 4; i++)
7026 {
8a2fc586
AK
7027 char *a = foo + i;
7028 char *b = bar + i;
7029 strcpy (a, "--------01111111");
7030 strcpy (b, "--------10000000");
7031 if (memcmp (a, b, 16) >= 0)
7a197a62 7032 return 1;
ad6254c5 7033 }
7a197a62 7034 return 0;
ad6254c5
AK
7035 }
7036
7037 ;
7038 return 0;
7039}
7040_ACEOF
7041rm -f conftest$ac_exeext
7a197a62
AK
7042if { (ac_try="$ac_link"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
66e941e8
JM
7047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048$as_echo "$ac_try_echo") >&5
7a197a62 7049 (eval "$ac_link") 2>&5
ad6254c5 7050 ac_status=$?
66e941e8 7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7053 { (case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056esac
66e941e8
JM
7057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7058$as_echo "$ac_try_echo") >&5
7a197a62 7059 (eval "$ac_try") 2>&5
ad6254c5 7060 ac_status=$?
66e941e8 7061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7062 (exit $ac_status); }; }; then
7063 ac_cv_func_memcmp_working=yes
7064else
66e941e8
JM
7065 $as_echo "$as_me: program exited with status $ac_status" >&5
7066$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069( exit $ac_status )
7070ac_cv_func_memcmp_working=no
7071fi
7a197a62 7072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7073fi
7a197a62
AK
7074
7075
ad6254c5 7076fi
66e941e8
JM
7077{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7078$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 7079test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7080 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7081 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7082 ;;
8a2fc586
AK
7083esac
7084
ad6254c5
AK
7085
7086
7087
7088for ac_header in stdlib.h unistd.h
7089do
66e941e8 7090as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
7092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7093$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 7095 $as_echo_n "(cached) " >&6
ad6254c5 7096fi
66e941e8
JM
7097ac_res=`eval 'as_val=${'$as_ac_Header'}
7098 $as_echo "$as_val"'`
7099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7100$as_echo "$ac_res" >&6; }
ad6254c5
AK
7101else
7102 # Is the header compilable?
66e941e8
JM
7103{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7104$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 7105cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7106/* confdefs.h. */
7107_ACEOF
7108cat confdefs.h >>conftest.$ac_ext
7109cat >>conftest.$ac_ext <<_ACEOF
7110/* end confdefs.h. */
7111$ac_includes_default
7112#include <$ac_header>
7113_ACEOF
7114rm -f conftest.$ac_objext
7a197a62
AK
7115if { (ac_try="$ac_compile"
7116case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119esac
66e941e8
JM
7120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121$as_echo "$ac_try_echo") >&5
7a197a62 7122 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7123 ac_status=$?
8a2fc586
AK
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
66e941e8 7127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7132 ac_header_compiler=yes
7133else
66e941e8 7134 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7a197a62 7137 ac_header_compiler=no
ad6254c5 7138fi
7a197a62
AK
7139
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
7141{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
7143
7144# Is the header present?
66e941e8
JM
7145{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 7147cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153#include <$ac_header>
7154_ACEOF
7a197a62
AK
7155if { (ac_try="$ac_cpp conftest.$ac_ext"
7156case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159esac
66e941e8
JM
7160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161$as_echo "$ac_try_echo") >&5
7a197a62 7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
66e941e8 7167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 }; then
ad6254c5
AK
7172 ac_header_preproc=yes
7173else
66e941e8 7174 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7175sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 ac_header_preproc=no
7178fi
7a197a62 7179
ad6254c5 7180rm -f conftest.err conftest.$ac_ext
66e941e8
JM
7181{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
7183
7184# So? What about this header?
8a2fc586
AK
7185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 yes:no: )
66e941e8
JM
7187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7191 ac_header_preproc=yes
ad6254c5 7192 ;;
8a2fc586 7193 no:yes:* )
66e941e8
JM
7194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7206
ad6254c5
AK
7207 ;;
7208esac
66e941e8
JM
7209{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7210$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 7211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 7212 $as_echo_n "(cached) " >&6
ad6254c5 7213else
8a2fc586 7214 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7215fi
66e941e8
JM
7216ac_res=`eval 'as_val=${'$as_ac_Header'}
7217 $as_echo "$as_val"'`
7218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7219$as_echo "$ac_res" >&6; }
ad6254c5
AK
7220
7221fi
66e941e8
JM
7222if test `eval 'as_val=${'$as_ac_Header'}
7223 $as_echo "$as_val"'` = yes; then
ad6254c5 7224 cat >>confdefs.h <<_ACEOF
66e941e8 7225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7226_ACEOF
7227
7228fi
7229
7230done
7231
7232
7233for ac_func in getpagesize
7234do
66e941e8
JM
7235as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7236{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7237$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 7238if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 7239 $as_echo_n "(cached) " >&6
ad6254c5
AK
7240else
7241 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7242/* confdefs.h. */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h. */
8a2fc586
AK
7247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7249#define $ac_func innocuous_$ac_func
7250
ad6254c5
AK
7251/* System header to define __stub macros and hopefully few prototypes,
7252 which can conflict with char $ac_func (); below.
7253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7254 <limits.h> exists even on freestanding compilers. */
8a2fc586 7255
ad6254c5
AK
7256#ifdef __STDC__
7257# include <limits.h>
7258#else
7259# include <assert.h>
7260#endif
8a2fc586
AK
7261
7262#undef $ac_func
7263
7a197a62
AK
7264/* Override any GCC internal prototype to avoid an error.
7265 Use char because int might match the return type of a GCC
7266 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7267#ifdef __cplusplus
7268extern "C"
ad6254c5 7269#endif
ad6254c5
AK
7270char $ac_func ();
7271/* The GNU C library defines this for functions which it implements
7272 to always fail with ENOSYS. Some functions are actually named
7273 something starting with __ and the normal name is an alias. */
7a197a62 7274#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7275choke me
ad6254c5
AK
7276#endif
7277
7278int
7279main ()
7280{
7a197a62 7281return $ac_func ();
ad6254c5
AK
7282 ;
7283 return 0;
7284}
7285_ACEOF
7286rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7287if { (ac_try="$ac_link"
7288case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291esac
66e941e8
JM
7292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293$as_echo "$ac_try_echo") >&5
7a197a62 7294 (eval "$ac_link") 2>conftest.er1
ad6254c5 7295 ac_status=$?
8a2fc586
AK
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
66e941e8 7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext &&
7304 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7305 eval "$as_ac_var=yes"
7306else
66e941e8 7307 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7a197a62 7310 eval "$as_ac_var=no"
ad6254c5 7311fi
7a197a62
AK
7312
7313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7314 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7315fi
66e941e8
JM
7316ac_res=`eval 'as_val=${'$as_ac_var'}
7317 $as_echo "$as_val"'`
7318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7319$as_echo "$ac_res" >&6; }
7320if test `eval 'as_val=${'$as_ac_var'}
7321 $as_echo "$as_val"'` = yes; then
ad6254c5 7322 cat >>confdefs.h <<_ACEOF
66e941e8 7323#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7324_ACEOF
7325
7326fi
7327done
7328
66e941e8
JM
7329{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7330$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 7331if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
66e941e8 7332 $as_echo_n "(cached) " >&6
ad6254c5
AK
7333else
7334 if test "$cross_compiling" = yes; then
7335 ac_cv_func_mmap_fixed_mapped=no
7336else
7337 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343$ac_includes_default
7344/* malloc might have been renamed as rpl_malloc. */
7345#undef malloc
7346
7347/* Thanks to Mike Haertel and Jim Avera for this test.
7348 Here is a matrix of mmap possibilities:
7349 mmap private not fixed
7350 mmap private fixed at somewhere currently unmapped
7351 mmap private fixed at somewhere already mapped
7352 mmap shared not fixed
7353 mmap shared fixed at somewhere currently unmapped
7354 mmap shared fixed at somewhere already mapped
7355 For private mappings, we should verify that changes cannot be read()
7356 back from the file, nor mmap's back from the file at a different
7357 address. (There have been systems where private was not correctly
7358 implemented like the infamous i386 svr4.0, and systems where the
7359 VM page cache was not coherent with the file system buffer cache
7360 like early versions of FreeBSD and possibly contemporary NetBSD.)
7361 For shared mappings, we should conversely verify that changes get
7362 propagated back to all the places they're supposed to be.
7363
7364 Grep wants private fixed already mapped.
7365 The main things grep needs to know about mmap are:
7366 * does it exist and is it safe to write into the mmap'd area
7367 * how to use it (BSD variants) */
7368
7369#include <fcntl.h>
7370#include <sys/mman.h>
7371
7a197a62 7372#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7373char *malloc ();
7374#endif
7375
7376/* This mess was copied from the GNU getpagesize.h. */
7a197a62 7377#ifndef HAVE_GETPAGESIZE
ad6254c5 7378/* Assume that all systems that can run configure have sys/param.h. */
7a197a62 7379# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7380# define HAVE_SYS_PARAM_H 1
7381# endif
7382
7383# ifdef _SC_PAGESIZE
7384# define getpagesize() sysconf(_SC_PAGESIZE)
7385# else /* no _SC_PAGESIZE */
7a197a62 7386# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7387# include <sys/param.h>
7388# ifdef EXEC_PAGESIZE
7389# define getpagesize() EXEC_PAGESIZE
7390# else /* no EXEC_PAGESIZE */
7391# ifdef NBPG
7392# define getpagesize() NBPG * CLSIZE
7393# ifndef CLSIZE
7394# define CLSIZE 1
7395# endif /* no CLSIZE */
7396# else /* no NBPG */
7397# ifdef NBPC
7398# define getpagesize() NBPC
7399# else /* no NBPC */
7400# ifdef PAGESIZE
7401# define getpagesize() PAGESIZE
7402# endif /* PAGESIZE */
7403# endif /* no NBPC */
7404# endif /* no NBPG */
7405# endif /* no EXEC_PAGESIZE */
7406# else /* no HAVE_SYS_PARAM_H */
7407# define getpagesize() 8192 /* punt totally */
7408# endif /* no HAVE_SYS_PARAM_H */
7409# endif /* no _SC_PAGESIZE */
7410
7411#endif /* no HAVE_GETPAGESIZE */
7412
7413int
7414main ()
7415{
7416 char *data, *data2, *data3;
7417 int i, pagesize;
7418 int fd;
7419
7420 pagesize = getpagesize ();
7421
7422 /* First, make a file with some known garbage in it. */
7423 data = (char *) malloc (pagesize);
7424 if (!data)
7a197a62 7425 return 1;
ad6254c5
AK
7426 for (i = 0; i < pagesize; ++i)
7427 *(data + i) = rand ();
7428 umask (0);
7429 fd = creat ("conftest.mmap", 0600);
7430 if (fd < 0)
7a197a62 7431 return 1;
ad6254c5 7432 if (write (fd, data, pagesize) != pagesize)
7a197a62 7433 return 1;
ad6254c5
AK
7434 close (fd);
7435
7436 /* Next, try to mmap the file at a fixed address which already has
7437 something else allocated at it. If we can, also make sure that
7438 we see the same garbage. */
7439 fd = open ("conftest.mmap", O_RDWR);
7440 if (fd < 0)
7a197a62 7441 return 1;
ad6254c5
AK
7442 data2 = (char *) malloc (2 * pagesize);
7443 if (!data2)
7a197a62
AK
7444 return 1;
7445 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7448 return 1;
ad6254c5
AK
7449 for (i = 0; i < pagesize; ++i)
7450 if (*(data + i) != *(data2 + i))
7a197a62 7451 return 1;
ad6254c5
AK
7452
7453 /* Finally, make sure that changes to the mapped area do not
7454 percolate back to the file as seen by read(). (This is a bug on
7455 some variants of i386 svr4.0.) */
7456 for (i = 0; i < pagesize; ++i)
7457 *(data2 + i) = *(data2 + i) + 1;
7458 data3 = (char *) malloc (pagesize);
7459 if (!data3)
7a197a62 7460 return 1;
ad6254c5 7461 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7462 return 1;
ad6254c5
AK
7463 for (i = 0; i < pagesize; ++i)
7464 if (*(data + i) != *(data3 + i))
7a197a62 7465 return 1;
ad6254c5 7466 close (fd);
7a197a62 7467 return 0;
ad6254c5
AK
7468}
7469_ACEOF
7470rm -f conftest$ac_exeext
7a197a62
AK
7471if { (ac_try="$ac_link"
7472case "(($ac_try" in
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7475esac
66e941e8
JM
7476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7477$as_echo "$ac_try_echo") >&5
7a197a62 7478 (eval "$ac_link") 2>&5
ad6254c5 7479 ac_status=$?
66e941e8 7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7482 { (case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485esac
66e941e8
JM
7486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487$as_echo "$ac_try_echo") >&5
7a197a62 7488 (eval "$ac_try") 2>&5
ad6254c5 7489 ac_status=$?
66e941e8 7490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7491 (exit $ac_status); }; }; then
7492 ac_cv_func_mmap_fixed_mapped=yes
7493else
66e941e8
JM
7494 $as_echo "$as_me: program exited with status $ac_status" >&5
7495$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498( exit $ac_status )
7499ac_cv_func_mmap_fixed_mapped=no
7500fi
7a197a62 7501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7502fi
7a197a62
AK
7503
7504
ad6254c5 7505fi
66e941e8
JM
7506{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7507$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7508if test $ac_cv_func_mmap_fixed_mapped = yes; then
7509
7510cat >>confdefs.h <<\_ACEOF
7511#define HAVE_MMAP 1
7512_ACEOF
7513
7514fi
7515rm -f conftest.mmap
7516
66e941e8
JM
7517{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7518$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 7519if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
66e941e8 7520 $as_echo_n "(cached) " >&6
ad6254c5
AK
7521else
7522 if test "$cross_compiling" = yes; then
7523 ac_cv_func_stat_empty_string_bug=yes
7524else
7525 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7526/* confdefs.h. */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h. */
7531$ac_includes_default
7532int
7533main ()
7534{
7535struct stat sbuf;
7a197a62 7536 return stat ("", &sbuf) == 0;
ad6254c5
AK
7537 ;
7538 return 0;
7539}
7540_ACEOF
7541rm -f conftest$ac_exeext
7a197a62
AK
7542if { (ac_try="$ac_link"
7543case "(($ac_try" in
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546esac
66e941e8
JM
7547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548$as_echo "$ac_try_echo") >&5
7a197a62 7549 (eval "$ac_link") 2>&5
ad6254c5 7550 ac_status=$?
66e941e8 7551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7553 { (case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556esac
66e941e8
JM
7557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7558$as_echo "$ac_try_echo") >&5
7a197a62 7559 (eval "$ac_try") 2>&5
ad6254c5 7560 ac_status=$?
66e941e8 7561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7562 (exit $ac_status); }; }; then
7a197a62 7563 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7564else
66e941e8
JM
7565 $as_echo "$as_me: program exited with status $ac_status" >&5
7566$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7567sed 's/^/| /' conftest.$ac_ext >&5
7568
7569( exit $ac_status )
7a197a62 7570ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7571fi
7a197a62 7572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7573fi
7a197a62
AK
7574
7575
ad6254c5 7576fi
66e941e8
JM
7577{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7578$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7579if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7580 case " $LIBOBJS " in
8a2fc586 7581 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7582 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7583 ;;
8a2fc586
AK
7584esac
7585
ad6254c5
AK
7586
7587cat >>confdefs.h <<_ACEOF
7588#define HAVE_STAT_EMPTY_STRING_BUG 1
7589_ACEOF
7590
7591fi
7592
66e941e8
JM
7593{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
7594$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 7595if test "${ac_cv_func_strtod+set}" = set; then
66e941e8 7596 $as_echo_n "(cached) " >&6
ad6254c5
AK
7597else
7598 if test "$cross_compiling" = yes; then
7599 ac_cv_func_strtod=no
7600else
7601 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607
7a197a62
AK
7608$ac_includes_default
7609#ifndef strtod
ad6254c5 7610double strtod ();
7a197a62 7611#endif
ad6254c5
AK
7612int
7613main()
7614{
7615 {
7616 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7617 char *string = " +69";
7618 char *term;
7619 double value;
7620 value = strtod (string, &term);
7621 if (value != 69 || term != (string + 4))
7a197a62 7622 return 1;
ad6254c5
AK
7623 }
7624
7625 {
7626 /* Under Solaris 2.4, strtod returns the wrong value for the
7627 terminating character under some conditions. */
7628 char *string = "NaN";
7629 char *term;
7630 strtod (string, &term);
7631 if (term != string && *(term - 1) == 0)
7a197a62 7632 return 1;
ad6254c5 7633 }
7a197a62 7634 return 0;
ad6254c5
AK
7635}
7636
7637_ACEOF
7638rm -f conftest$ac_exeext
7a197a62
AK
7639if { (ac_try="$ac_link"
7640case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643esac
66e941e8
JM
7644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645$as_echo "$ac_try_echo") >&5
7a197a62 7646 (eval "$ac_link") 2>&5
ad6254c5 7647 ac_status=$?
66e941e8 7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7650 { (case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653esac
66e941e8
JM
7654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655$as_echo "$ac_try_echo") >&5
7a197a62 7656 (eval "$ac_try") 2>&5
ad6254c5 7657 ac_status=$?
66e941e8 7658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7659 (exit $ac_status); }; }; then
7660 ac_cv_func_strtod=yes
7661else
66e941e8
JM
7662 $as_echo "$as_me: program exited with status $ac_status" >&5
7663$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7664sed 's/^/| /' conftest.$ac_ext >&5
7665
7666( exit $ac_status )
7667ac_cv_func_strtod=no
7668fi
7a197a62 7669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7670fi
7a197a62
AK
7671
7672
ad6254c5 7673fi
66e941e8
JM
7674{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
7675$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 7676if test $ac_cv_func_strtod = no; then
7a197a62 7677 case " $LIBOBJS " in
8a2fc586 7678 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
7679 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7680 ;;
8a2fc586
AK
7681esac
7682
66e941e8
JM
7683{ $as_echo "$as_me:$LINENO: checking for pow" >&5
7684$as_echo_n "checking for pow... " >&6; }
ad6254c5 7685if test "${ac_cv_func_pow+set}" = set; then
66e941e8 7686 $as_echo_n "(cached) " >&6
ad6254c5
AK
7687else
7688 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
8a2fc586
AK
7694/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7696#define pow innocuous_pow
7697
ad6254c5
AK
7698/* System header to define __stub macros and hopefully few prototypes,
7699 which can conflict with char pow (); below.
7700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701 <limits.h> exists even on freestanding compilers. */
8a2fc586 7702
ad6254c5
AK
7703#ifdef __STDC__
7704# include <limits.h>
7705#else
7706# include <assert.h>
7707#endif
8a2fc586
AK
7708
7709#undef pow
7710
7a197a62
AK
7711/* Override any GCC internal prototype to avoid an error.
7712 Use char because int might match the return type of a GCC
7713 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7714#ifdef __cplusplus
7715extern "C"
ad6254c5 7716#endif
ad6254c5
AK
7717char pow ();
7718/* The GNU C library defines this for functions which it implements
7719 to always fail with ENOSYS. Some functions are actually named
7720 something starting with __ and the normal name is an alias. */
7a197a62 7721#if defined __stub_pow || defined __stub___pow
ad6254c5 7722choke me
ad6254c5
AK
7723#endif
7724
7725int
7726main ()
7727{
7a197a62 7728return pow ();
ad6254c5
AK
7729 ;
7730 return 0;
7731}
7732_ACEOF
7733rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7734if { (ac_try="$ac_link"
7735case "(($ac_try" in
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7738esac
66e941e8
JM
7739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7740$as_echo "$ac_try_echo") >&5
7a197a62 7741 (eval "$ac_link") 2>conftest.er1
ad6254c5 7742 ac_status=$?
8a2fc586
AK
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
66e941e8 7746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest$ac_exeext &&
7751 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7752 ac_cv_func_pow=yes
7753else
66e941e8 7754 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7755sed 's/^/| /' conftest.$ac_ext >&5
7756
7a197a62 7757 ac_cv_func_pow=no
ad6254c5 7758fi
7a197a62
AK
7759
7760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7761 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7762fi
66e941e8
JM
7763{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7764$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
7765
7766if test $ac_cv_func_pow = no; then
66e941e8
JM
7767 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
7768$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 7769if test "${ac_cv_lib_m_pow+set}" = set; then
66e941e8 7770 $as_echo_n "(cached) " >&6
ad6254c5
AK
7771else
7772 ac_check_lib_save_LIBS=$LIBS
7773LIBS="-lm $LIBS"
7774cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7775/* confdefs.h. */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h. */
7780
7a197a62
AK
7781/* Override any GCC internal prototype to avoid an error.
7782 Use char because int might match the return type of a GCC
7783 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7784#ifdef __cplusplus
7785extern "C"
7786#endif
ad6254c5
AK
7787char pow ();
7788int
7789main ()
7790{
7a197a62 7791return pow ();
ad6254c5
AK
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7797if { (ac_try="$ac_link"
7798case "(($ac_try" in
7799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7801esac
66e941e8
JM
7802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7803$as_echo "$ac_try_echo") >&5
7a197a62 7804 (eval "$ac_link") 2>conftest.er1
ad6254c5 7805 ac_status=$?
8a2fc586
AK
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
66e941e8 7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest$ac_exeext &&
7814 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7815 ac_cv_lib_m_pow=yes
7816else
66e941e8 7817 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7a197a62 7820 ac_cv_lib_m_pow=no
ad6254c5 7821fi
7a197a62
AK
7822
7823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7824 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7825LIBS=$ac_check_lib_save_LIBS
7826fi
66e941e8
JM
7827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7828$as_echo "$ac_cv_lib_m_pow" >&6; }
ad6254c5
AK
7829if test $ac_cv_lib_m_pow = yes; then
7830 POW_LIB=-lm
7831else
66e941e8
JM
7832 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7833$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
ad6254c5
AK
7834fi
7835
7836fi
7837
7838fi
7839
7840
7841################################################################################
7842
7843
7844################################################################################
7a197a62 7845# Check whether --enable-jobs was given.
ad6254c5 7846if test "${enable_jobs+set}" = set; then
7a197a62 7847 enableval=$enable_jobs; JOBS=-j$enableval
ad6254c5
AK
7848else
7849 JOBS=-j2
7a197a62
AK
7850fi
7851
ad6254c5
AK
7852
7853################################################################################
66e941e8
JM
7854{ $as_echo "$as_me:$LINENO: checking file owner" >&5
7855$as_echo_n "checking file owner... " >&6; }
ad6254c5
AK
7856OWNER="root"
7857
7858
7a197a62 7859# Check whether --with-user was given.
ad6254c5 7860if test "${with_user+set}" = set; then
7a197a62
AK
7861 withval=$with_user; OWNER="$withval"
7862fi
7863
66e941e8
JM
7864{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
7865$as_echo "$OWNER" >&6; }
ad6254c5
AK
7866
7867if test x$OWNER != x; then
7868 OWNER="-o $OWNER"
7869fi
7870
7871################################################################################
66e941e8
JM
7872{ $as_echo "$as_me:$LINENO: checking group owner" >&5
7873$as_echo_n "checking group owner... " >&6; }
ad6254c5
AK
7874GROUP="root"
7875
7a197a62 7876# Check whether --with-group was given.
ad6254c5 7877if test "${with_group+set}" = set; then
7a197a62
AK
7878 withval=$with_group; GROUP="$withval"
7879fi
7880
66e941e8
JM
7881{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
7882$as_echo "$GROUP" >&6; }
ad6254c5
AK
7883
7884if test x$GROUP != x; then
7885 GROUP="-g $GROUP"
7886fi
7887
7888################################################################################
66e941e8
JM
7889{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7890$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
7a197a62 7891# Check whether --enable-lvm1_fallback was given.
ad6254c5 7892if test "${enable_lvm1_fallback+set}" = set; then
7a197a62 7893 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
ad6254c5
AK
7894else
7895 LVM1_FALLBACK=no
7a197a62
AK
7896fi
7897
66e941e8
JM
7898{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7899$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5
AK
7900
7901if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
7902
7903cat >>confdefs.h <<\_ACEOF
7904#define LVM1_FALLBACK 1
7905_ACEOF
7906
ad6254c5
AK
7907fi
7908
7909################################################################################
66e941e8
JM
7910{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7911$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
ad6254c5 7912
7a197a62 7913# Check whether --with-lvm1 was given.
ad6254c5 7914if test "${with_lvm1+set}" = set; then
7a197a62 7915 withval=$with_lvm1; LVM1="$withval"
ad6254c5
AK
7916else
7917 LVM1="internal"
7a197a62
AK
7918fi
7919
66e941e8
JM
7920{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
7921$as_echo "$LVM1" >&6; }
ad6254c5
AK
7922
7923if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
66e941e8 7924 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
ad6254c5 7925" >&5
66e941e8 7926$as_echo "$as_me: error: --with-lvm1 parameter invalid
ad6254c5
AK
7927" >&2;}
7928 { (exit 1); exit 1; }; }
7929fi;
7930
7931if test x$LVM1 = xinternal; then
72b2cb61
AK
7932
7933cat >>confdefs.h <<\_ACEOF
7934#define LVM1_INTERNAL 1
7935_ACEOF
7936
ad6254c5
AK
7937fi
7938
7939################################################################################
66e941e8
JM
7940{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7941$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
ad6254c5 7942
7a197a62 7943# Check whether --with-pool was given.
ad6254c5 7944if test "${with_pool+set}" = set; then
7a197a62 7945 withval=$with_pool; POOL="$withval"
ad6254c5
AK
7946else
7947 POOL="internal"
7a197a62
AK
7948fi
7949
66e941e8
JM
7950{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
7951$as_echo "$POOL" >&6; }
ad6254c5
AK
7952
7953if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
66e941e8 7954 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
ad6254c5 7955" >&5
66e941e8 7956$as_echo "$as_me: error: --with-pool parameter invalid
ad6254c5
AK
7957" >&2;}
7958 { (exit 1); exit 1; }; }
7959fi;
7960
7961if test x$POOL = xinternal; then
72b2cb61
AK
7962
7963cat >>confdefs.h <<\_ACEOF
7964#define POOL_INTERNAL 1
7965_ACEOF
7966
ad6254c5
AK
7967fi
7968
7969################################################################################
66e941e8
JM
7970{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7971$as_echo_n "checking whether to include support for cluster locking... " >&6; }
ad6254c5 7972
7a197a62 7973# Check whether --with-cluster was given.
ad6254c5 7974if test "${with_cluster+set}" = set; then
7a197a62
AK
7975 withval=$with_cluster; CLUSTER="$withval"
7976fi
7977
66e941e8
JM
7978{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
7979$as_echo "$CLUSTER" >&6; }
ad6254c5
AK
7980
7981if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
66e941e8 7982 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
ad6254c5 7983" >&5
66e941e8 7984$as_echo "$as_me: error: --with-cluster parameter invalid
ad6254c5
AK
7985" >&2;}
7986 { (exit 1); exit 1; }; }
7987fi;
7988
7989if test x$CLUSTER = xinternal; then
72b2cb61
AK
7990
7991cat >>confdefs.h <<\_ACEOF
7992#define CLUSTER_LOCKING_INTERNAL 1
7993_ACEOF
7994
ad6254c5
AK
7995fi
7996
7997################################################################################
66e941e8
JM
7998{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7999$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 8000
7a197a62 8001# Check whether --with-snapshots was given.
ad6254c5 8002if test "${with_snapshots+set}" = set; then
7a197a62 8003 withval=$with_snapshots; SNAPSHOTS="$withval"
ad6254c5
AK
8004else
8005 SNAPSHOTS="internal"
7a197a62
AK
8006fi
8007
66e941e8
JM
8008{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8009$as_echo "$SNAPSHOTS" >&6; }
ad6254c5
AK
8010
8011if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
66e941e8 8012 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
ad6254c5 8013" >&5
66e941e8 8014$as_echo "$as_me: error: --with-snapshots parameter invalid
ad6254c5
AK
8015" >&2;}
8016 { (exit 1); exit 1; }; }
8017fi;
8018
8019if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
8020
8021cat >>confdefs.h <<\_ACEOF
8022#define SNAPSHOT_INTERNAL 1
8023_ACEOF
8024
ad6254c5
AK
8025fi
8026
8027################################################################################
66e941e8
JM
8028{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8029$as_echo_n "checking whether to include mirrors... " >&6; }
ad6254c5 8030
7a197a62 8031# Check whether --with-mirrors was given.
ad6254c5 8032if test "${with_mirrors+set}" = set; then
7a197a62 8033 withval=$with_mirrors; MIRRORS="$withval"
ad6254c5
AK
8034else
8035 MIRRORS="internal"
7a197a62
AK
8036fi
8037
66e941e8
JM
8038{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
8039$as_echo "$MIRRORS" >&6; }
ad6254c5
AK
8040
8041if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
66e941e8 8042 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
ad6254c5 8043" >&5
66e941e8 8044$as_echo "$as_me: error: --with-mirrors parameter invalid
ad6254c5
AK
8045" >&2;}
8046 { (exit 1); exit 1; }; }
8047fi;
8048
8049if test x$MIRRORS = xinternal; then
72b2cb61
AK
8050
8051cat >>confdefs.h <<\_ACEOF
8052#define MIRRORED_INTERNAL 1
8053_ACEOF
8054
ad6254c5
AK
8055fi
8056
8057################################################################################
66e941e8
JM
8058{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8059$as_echo_n "checking whether to use static linking... " >&6; }
7a197a62 8060# Check whether --enable-static_link was given.
ad6254c5 8061if test "${enable_static_link+set}" = set; then
7a197a62 8062 enableval=$enable_static_link; STATIC_LINK=$enableval
ad6254c5
AK
8063else
8064 STATIC_LINK=no
7a197a62
AK
8065fi
8066
66e941e8
JM
8067{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8068$as_echo "$STATIC_LINK" >&6; }
ad6254c5
AK
8069
8070################################################################################
66e941e8
JM
8071{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
8072$as_echo_n "checking whether to enable readline... " >&6; }
7a197a62 8073# Check whether --enable-readline was given.
ad6254c5 8074if test "${enable_readline+set}" = set; then
7a197a62 8075 enableval=$enable_readline; READLINE=$enableval
ad6254c5
AK
8076else
8077 READLINE=no
7a197a62
AK
8078fi
8079
66e941e8
JM
8080{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
8081$as_echo "$READLINE" >&6; }
ad6254c5
AK
8082
8083if test x$READLINE = xyes; then
72b2cb61
AK
8084
8085cat >>confdefs.h <<\_ACEOF
8086#define READLINE_SUPPORT 1
8087_ACEOF
8088
ad6254c5
AK
8089fi
8090
8091################################################################################
66e941e8
JM
8092{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
8093$as_echo_n "checking whether to enable selinux support... " >&6; }
7a197a62 8094# Check whether --enable-selinux was given.
ad6254c5 8095if test "${enable_selinux+set}" = set; then
7a197a62
AK
8096 enableval=$enable_selinux; SELINUX=$enableval
8097fi
8098
66e941e8
JM
8099{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
8100$as_echo "$SELINUX" >&6; }
ad6254c5 8101
8b1a3214 8102################################################################################
66e941e8
JM
8103{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8104$as_echo_n "checking whether to enable realtime support... " >&6; }
7a197a62 8105# Check whether --enable-realtime was given.
8b1a3214 8106if test "${enable_realtime+set}" = set; then
7a197a62
AK
8107 enableval=$enable_realtime; REALTIME=$enableval
8108fi
8109
66e941e8
JM
8110{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
8111$as_echo "$REALTIME" >&6; }
8b1a3214 8112
ad6254c5 8113################################################################################
66e941e8
JM
8114{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8115$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
ad6254c5 8116
7a197a62 8117# Check whether --with-clvmd was given.
ad6254c5 8118if test "${with_clvmd+set}" = set; then
7a197a62 8119 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8120else
a266258f 8121 CLVMD="none"
7a197a62
AK
8122fi
8123
a266258f 8124if test x$CLVMD = xyes; then
5c7fc7c4 8125 CLVMD=all
b1098701 8126fi
66e941e8
JM
8127{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
8128$as_echo "$CLVMD" >&6; }
ad6254c5 8129
a266258f 8130if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
8131 CLUSTER=internal
8132fi
8133
8134################################################################################
66e941e8
JM
8135{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8136$as_echo_n "checking whether to enable debugging... " >&6; }
7a197a62 8137# Check whether --enable-debug was given.
ad6254c5 8138if test "${enable_debug+set}" = set; then
7a197a62 8139 enableval=$enable_debug; DEBUG=$enableval
ad6254c5
AK
8140else
8141 DEBUG=no
7a197a62
AK
8142fi
8143
66e941e8
JM
8144{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
8145$as_echo "$DEBUG" >&6; }
ad6254c5
AK
8146
8147if test x$DEBUG = xyes; then
8148 COPTIMISE_FLAG=
8a2fc586
AK
8149else
8150 CSCOPE_CMD=
ad6254c5
AK
8151fi
8152
8153################################################################################
66e941e8
JM
8154{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8155$as_echo_n "checking for C optimisation flag... " >&6; }
ad6254c5 8156
7a197a62 8157# Check whether --with-optimisation was given.
ad6254c5 8158if test "${with_optimisation+set}" = set; then
7a197a62
AK
8159 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8160fi
8161
66e941e8
JM
8162{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8163$as_echo "$COPTIMISE_FLAG" >&6; }
ad6254c5
AK
8164
8165################################################################################
66e941e8
JM
8166{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8167$as_echo_n "checking whether to use device-mapper... " >&6; }
7a197a62 8168# Check whether --enable-devmapper was given.
ad6254c5 8169if test "${enable_devmapper+set}" = set; then
7a197a62
AK
8170 enableval=$enable_devmapper; DEVMAPPER=$enableval
8171fi
8172
66e941e8
JM
8173{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8174$as_echo "$DEVMAPPER" >&6; }
ad6254c5
AK
8175
8176if test x$DEVMAPPER = xyes; then
72b2cb61
AK
8177
8178cat >>confdefs.h <<\_ACEOF
8179#define DEVMAPPER_SUPPORT 1
8180_ACEOF
8181
ad6254c5
AK
8182fi
8183
8184################################################################################
66e941e8
JM
8185{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8186$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
7a197a62 8187# Check whether --enable-o_direct was given.
ad6254c5 8188if test "${enable_o_direct+set}" = set; then
7a197a62
AK
8189 enableval=$enable_o_direct; ODIRECT=$enableval
8190fi
8191
66e941e8
JM
8192{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
8193$as_echo "$ODIRECT" >&6; }
ad6254c5
AK
8194
8195if test x$ODIRECT = xyes; then
72b2cb61
AK
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define O_DIRECT_SUPPORT 1
8199_ACEOF
8200
ad6254c5
AK
8201fi
8202
8203################################################################################
66e941e8
JM
8204{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8205$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
7a197a62 8206# Check whether --enable-cmdlib was given.
ad6254c5 8207if test "${enable_cmdlib+set}" = set; then
7a197a62 8208 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5
AK
8209else
8210 CMDLIB=no
7a197a62
AK
8211fi
8212
66e941e8
JM
8213{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
8214$as_echo "$CMDLIB" >&6; }
ad6254c5 8215
ad6254c5 8216################################################################################
66e941e8
JM
8217{ $as_echo "$as_me:$LINENO: checking whether to build fsadm" >&5
8218$as_echo_n "checking whether to build fsadm... " >&6; }
7a197a62 8219# Check whether --enable-fsadm was given.
ad6254c5 8220if test "${enable_fsadm+set}" = set; then
7a197a62
AK
8221 enableval=$enable_fsadm; FSADM=$enableval
8222fi
8223
66e941e8
JM
8224{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
8225$as_echo "$FSADM" >&6; }
ad6254c5 8226
06f62ad1 8227################################################################################
66e941e8
JM
8228{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8229$as_echo_n "checking whether to use dmeventd... " >&6; }
7a197a62 8230# Check whether --enable-dmeventd was given.
06f62ad1 8231if test "${enable_dmeventd+set}" = set; then
7a197a62
AK
8232 enableval=$enable_dmeventd; DMEVENTD=$enableval
8233fi
8234
66e941e8
JM
8235{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8236$as_echo "$DMEVENTD" >&6; }
06f62ad1
AK
8237
8238if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
66e941e8 8239{ { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
06f62ad1 8240" >&5
66e941e8 8241$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
06f62ad1
AK
8242" >&2;}
8243 { (exit 1); exit 1; }; }
8244fi
8245
15d91f5a 8246if test x$DMEVENTD = xyes; then
72b2cb61
AK
8247
8248cat >>confdefs.h <<\_ACEOF
8249#define DMEVENTD 1
8250_ACEOF
8251
15d91f5a 8252fi
ad6254c5
AK
8253################################################################################
8254if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8255 then exec_prefix="";
8256fi;
8257
8258################################################################################
8259if test $ac_cv_c_compiler_gnu = yes; then
66e941e8
JM
8260 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8261$as_echo_n "checking whether $CC needs -traditional... " >&6; }
ad6254c5 8262if test "${ac_cv_prog_gcc_traditional+set}" = set; then
66e941e8 8263 $as_echo_n "(cached) " >&6
ad6254c5
AK
8264else
8265 ac_pattern="Autoconf.*'x'"
8266 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
8272#include <sgtty.h>
8273Autoconf TIOCGETP
8274_ACEOF
8275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8276 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8277 ac_cv_prog_gcc_traditional=yes
8278else
8279 ac_cv_prog_gcc_traditional=no
8280fi
8281rm -f conftest*
8282
8283
8284 if test $ac_cv_prog_gcc_traditional = no; then
8285 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291#include <termio.h>
8292Autoconf TCGETA
8293_ACEOF
8294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8295 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8296 ac_cv_prog_gcc_traditional=yes
8297fi
8298rm -f conftest*
8299
8300 fi
8301fi
66e941e8
JM
8302{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8303$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
ad6254c5
AK
8304 if test $ac_cv_prog_gcc_traditional = yes; then
8305 CC="$CC -traditional"
8306 fi
8307fi
8308
66e941e8
JM
8309{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8310$as_echo_n "checking return type of signal handlers... " >&6; }
ad6254c5 8311if test "${ac_cv_type_signal+set}" = set; then
66e941e8 8312 $as_echo_n "(cached) " >&6
ad6254c5
AK
8313else
8314 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8320#include <sys/types.h>
8321#include <signal.h>
ad6254c5
AK
8322
8323int
8324main ()
8325{
7a197a62 8326return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
8327 ;
8328 return 0;
8329}
8330_ACEOF
8331rm -f conftest.$ac_objext
7a197a62
AK
8332if { (ac_try="$ac_compile"
8333case "(($ac_try" in
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8336esac
66e941e8
JM
8337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8338$as_echo "$ac_try_echo") >&5
7a197a62 8339 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8340 ac_status=$?
8a2fc586
AK
8341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
66e941e8 8344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.$ac_objext; then
8349 ac_cv_type_signal=int
ad6254c5 8350else
66e941e8 8351 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
7a197a62 8354 ac_cv_type_signal=void
ad6254c5 8355fi
7a197a62
AK
8356
8357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 8358fi
66e941e8
JM
8359{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8360$as_echo "$ac_cv_type_signal" >&6; }
ad6254c5
AK
8361
8362cat >>confdefs.h <<_ACEOF
8363#define RETSIGTYPE $ac_cv_type_signal
8364_ACEOF
8365
8366
8367
8368for ac_func in vprintf
8369do
66e941e8
JM
8370as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8371{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8372$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8373if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 8374 $as_echo_n "(cached) " >&6
ad6254c5
AK
8375else
8376 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8a2fc586
AK
8382/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384#define $ac_func innocuous_$ac_func
8385
ad6254c5
AK
8386/* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char $ac_func (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8a2fc586 8390
ad6254c5
AK
8391#ifdef __STDC__
8392# include <limits.h>
8393#else
8394# include <assert.h>
8395#endif
8a2fc586
AK
8396
8397#undef $ac_func
8398
7a197a62
AK
8399/* Override any GCC internal prototype to avoid an error.
8400 Use char because int might match the return type of a GCC
8401 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8402#ifdef __cplusplus
8403extern "C"
ad6254c5 8404#endif
ad6254c5
AK
8405char $ac_func ();
8406/* The GNU C library defines this for functions which it implements
8407 to always fail with ENOSYS. Some functions are actually named
8408 something starting with __ and the normal name is an alias. */
7a197a62 8409#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8410choke me
ad6254c5
AK
8411#endif
8412
8413int
8414main ()
8415{
7a197a62 8416return $ac_func ();
ad6254c5
AK
8417 ;
8418 return 0;
8419}
8420_ACEOF
8421rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8422if { (ac_try="$ac_link"
8423case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426esac
66e941e8
JM
8427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8428$as_echo "$ac_try_echo") >&5
7a197a62 8429 (eval "$ac_link") 2>conftest.er1
ad6254c5 8430 ac_status=$?
8a2fc586
AK
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
66e941e8 8434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest$ac_exeext &&
8439 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8440 eval "$as_ac_var=yes"
8441else
66e941e8 8442 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8443sed 's/^/| /' conftest.$ac_ext >&5
8444
7a197a62 8445 eval "$as_ac_var=no"
ad6254c5 8446fi
7a197a62
AK
8447
8448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8449 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8450fi
66e941e8
JM
8451ac_res=`eval 'as_val=${'$as_ac_var'}
8452 $as_echo "$as_val"'`
8453 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8454$as_echo "$ac_res" >&6; }
8455if test `eval 'as_val=${'$as_ac_var'}
8456 $as_echo "$as_val"'` = yes; then
ad6254c5 8457 cat >>confdefs.h <<_ACEOF
66e941e8 8458#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8459_ACEOF
8460
66e941e8
JM
8461{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8462$as_echo_n "checking for _doprnt... " >&6; }
ad6254c5 8463if test "${ac_cv_func__doprnt+set}" = set; then
66e941e8 8464 $as_echo_n "(cached) " >&6
ad6254c5
AK
8465else
8466 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8467/* confdefs.h. */
8468_ACEOF
8469cat confdefs.h >>conftest.$ac_ext
8470cat >>conftest.$ac_ext <<_ACEOF
8471/* end confdefs.h. */
8a2fc586
AK
8472/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8474#define _doprnt innocuous__doprnt
8475
ad6254c5
AK
8476/* System header to define __stub macros and hopefully few prototypes,
8477 which can conflict with char _doprnt (); below.
8478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8479 <limits.h> exists even on freestanding compilers. */
8a2fc586 8480
ad6254c5
AK
8481#ifdef __STDC__
8482# include <limits.h>
8483#else
8484# include <assert.h>
8485#endif
8a2fc586
AK
8486
8487#undef _doprnt
8488
7a197a62
AK
8489/* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8492#ifdef __cplusplus
8493extern "C"
ad6254c5 8494#endif
ad6254c5
AK
8495char _doprnt ();
8496/* The GNU C library defines this for functions which it implements
8497 to always fail with ENOSYS. Some functions are actually named
8498 something starting with __ and the normal name is an alias. */
7a197a62 8499#if defined __stub__doprnt || defined __stub____doprnt
ad6254c5 8500choke me
ad6254c5
AK
8501#endif
8502
8503int
8504main ()
8505{
7a197a62 8506return _doprnt ();
ad6254c5
AK
8507 ;
8508 return 0;
8509}
8510_ACEOF
8511rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8512if { (ac_try="$ac_link"
8513case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
66e941e8
JM
8517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518$as_echo "$ac_try_echo") >&5
7a197a62 8519 (eval "$ac_link") 2>conftest.er1
ad6254c5 8520 ac_status=$?
8a2fc586
AK
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
66e941e8 8524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest$ac_exeext &&
8529 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8530 ac_cv_func__doprnt=yes
8531else
66e941e8 8532 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8533sed 's/^/| /' conftest.$ac_ext >&5
8534
7a197a62 8535 ac_cv_func__doprnt=no
ad6254c5 8536fi
7a197a62
AK
8537
8538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8539 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8540fi
66e941e8
JM
8541{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8542$as_echo "$ac_cv_func__doprnt" >&6; }
ad6254c5
AK
8543if test $ac_cv_func__doprnt = yes; then
8544
8545cat >>confdefs.h <<\_ACEOF
8546#define HAVE_DOPRNT 1
8547_ACEOF
8548
8549fi
8550
8551fi
8552done
8553
8554
8555
8556
8557
8558for ac_func in mkdir rmdir uname
8559do
66e941e8
JM
8560as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8561{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8562$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 8564 $as_echo_n "(cached) " >&6
ad6254c5
AK
8565else
8566 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
8a2fc586
AK
8572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8574#define $ac_func innocuous_$ac_func
8575
ad6254c5
AK
8576/* System header to define __stub macros and hopefully few prototypes,
8577 which can conflict with char $ac_func (); below.
8578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8579 <limits.h> exists even on freestanding compilers. */
8a2fc586 8580
ad6254c5
AK
8581#ifdef __STDC__
8582# include <limits.h>
8583#else
8584# include <assert.h>
8585#endif
8a2fc586
AK
8586
8587#undef $ac_func
8588
7a197a62
AK
8589/* Override any GCC internal prototype to avoid an error.
8590 Use char because int might match the return type of a GCC
8591 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8592#ifdef __cplusplus
8593extern "C"
ad6254c5 8594#endif
ad6254c5
AK
8595char $ac_func ();
8596/* The GNU C library defines this for functions which it implements
8597 to always fail with ENOSYS. Some functions are actually named
8598 something starting with __ and the normal name is an alias. */
7a197a62 8599#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8600choke me
ad6254c5
AK
8601#endif
8602
8603int
8604main ()
8605{
7a197a62 8606return $ac_func ();
ad6254c5
AK
8607 ;
8608 return 0;
8609}
8610_ACEOF
8611rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8612if { (ac_try="$ac_link"
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
66e941e8
JM
8617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618$as_echo "$ac_try_echo") >&5
7a197a62 8619 (eval "$ac_link") 2>conftest.er1
ad6254c5 8620 ac_status=$?
8a2fc586
AK
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
66e941e8 8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest$ac_exeext &&
8629 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8630 eval "$as_ac_var=yes"
8631else
66e941e8 8632 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
7a197a62 8635 eval "$as_ac_var=no"
ad6254c5 8636fi
7a197a62
AK
8637
8638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8639 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8640fi
66e941e8
JM
8641ac_res=`eval 'as_val=${'$as_ac_var'}
8642 $as_echo "$as_val"'`
8643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8644$as_echo "$ac_res" >&6; }
8645if test `eval 'as_val=${'$as_ac_var'}
8646 $as_echo "$as_val"'` = yes; then
ad6254c5 8647 cat >>confdefs.h <<_ACEOF
66e941e8 8648#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8649_ACEOF
8650
8651else
66e941e8
JM
8652 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8653$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8654 { (exit 1); exit 1; }; }
8655fi
8656done
8657
8658
8659################################################################################
8660if test x$READLINE = xyes; then
66e941e8
JM
8661 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8662$as_echo_n "checking for library containing tgetent... " >&6; }
ad6254c5 8663if test "${ac_cv_search_tgetent+set}" = set; then
66e941e8 8664 $as_echo_n "(cached) " >&6
ad6254c5
AK
8665else
8666 ac_func_search_save_LIBS=$LIBS
ad6254c5 8667cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673
7a197a62
AK
8674/* Override any GCC internal prototype to avoid an error.
8675 Use char because int might match the return type of a GCC
8676 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8677#ifdef __cplusplus
8678extern "C"
8679#endif
ad6254c5
AK
8680char tgetent ();
8681int
8682main ()
8683{
7a197a62 8684return tgetent ();
ad6254c5
AK
8685 ;
8686 return 0;
8687}
8688_ACEOF
7a197a62
AK
8689for ac_lib in '' ncurses curses termcap termlib; do
8690 if test -z "$ac_lib"; then
8691 ac_res="none required"
8692 else
8693 ac_res=-l$ac_lib
8694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8695 fi
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697if { (ac_try="$ac_link"
8698case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701esac
66e941e8
JM
8702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8703$as_echo "$ac_try_echo") >&5
7a197a62 8704 (eval "$ac_link") 2>conftest.er1
ad6254c5 8705 ac_status=$?
8a2fc586
AK
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
66e941e8 8709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest$ac_exeext &&
8714 $as_test_x conftest$ac_exeext; then
8715 ac_cv_search_tgetent=$ac_res
ad6254c5 8716else
66e941e8 8717 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
ad6254c5 8720
7a197a62 8721fi
ad6254c5 8722
7a197a62
AK
8723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8724 conftest$ac_exeext
8725 if test "${ac_cv_search_tgetent+set}" = set; then
8726 break
ad6254c5 8727fi
7a197a62
AK
8728done
8729if test "${ac_cv_search_tgetent+set}" = set; then
8730 :
8731else
8732 ac_cv_search_tgetent=no
ad6254c5 8733fi
7a197a62 8734rm conftest.$ac_ext
ad6254c5
AK
8735LIBS=$ac_func_search_save_LIBS
8736fi
66e941e8
JM
8737{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8738$as_echo "$ac_cv_search_tgetent" >&6; }
7a197a62
AK
8739ac_res=$ac_cv_search_tgetent
8740if test "$ac_res" != no; then
8741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
8742
8743else
66e941e8 8744 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
8745--enable-readline option (which is enabled by default). Either disable readline
8746support with --disable-readline or download and install termcap from:
8747 ftp.gnu.org/gnu/termcap
8748Note: if you are using precompiled packages you will also need the development
8749 package as well (which may be called termcap-devel or something similar).
8750Note: (n)curses also seems to work as a substitute for termcap. This was
8751 not found either - but you could try installing that as well.
8752" >&5
66e941e8 8753$as_echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
8754--enable-readline option (which is enabled by default). Either disable readline
8755support with --disable-readline or download and install termcap from:
8756 ftp.gnu.org/gnu/termcap
8757Note: if you are using precompiled packages you will also need the development
8758 package as well (which may be called termcap-devel or something similar).
8759Note: (n)curses also seems to work as a substitute for termcap. This was
8760 not found either - but you could try installing that as well.
8761" >&2;}
8762 { (exit 1); exit 1; }; }
8763
8764fi
8765
8766fi
8767
8768################################################################################
66e941e8
JM
8769{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8770$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 8771if test "${ac_cv_lib_dl_dlopen+set}" = set; then
66e941e8 8772 $as_echo_n "(cached) " >&6
ad6254c5
AK
8773else
8774 ac_check_lib_save_LIBS=$LIBS
8775LIBS="-ldl $LIBS"
8776cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782
7a197a62
AK
8783/* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8786#ifdef __cplusplus
8787extern "C"
8788#endif
ad6254c5
AK
8789char dlopen ();
8790int
8791main ()
8792{
7a197a62 8793return dlopen ();
ad6254c5
AK
8794 ;
8795 return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8799if { (ac_try="$ac_link"
8800case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803esac
66e941e8
JM
8804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8805$as_echo "$ac_try_echo") >&5
7a197a62 8806 (eval "$ac_link") 2>conftest.er1
ad6254c5 8807 ac_status=$?
8a2fc586
AK
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
66e941e8 8811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest$ac_exeext &&
8816 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8817 ac_cv_lib_dl_dlopen=yes
8818else
66e941e8 8819 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
7a197a62 8822 ac_cv_lib_dl_dlopen=no
ad6254c5 8823fi
7a197a62
AK
8824
8825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8826 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8827LIBS=$ac_check_lib_save_LIBS
8828fi
66e941e8
JM
8829{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8830$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
8831if test $ac_cv_lib_dl_dlopen = yes; then
8832 HAVE_LIBDL=yes
8833else
8834 HAVE_LIBDL=no
8835fi
8836
8837
7e9e9502 8838if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8839
8840cat >>confdefs.h <<\_ACEOF
8841#define HAVE_LIBDL 1
8842_ACEOF
8843
ad6254c5
AK
8844 LIBS="-ldl $LIBS"
8845else
8846 HAVE_LIBDL=no
8847fi
8848
8849################################################################################
8850if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8851 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8852 \) -a "x$STATIC_LINK" = xyes ];
66e941e8 8853 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 8854" >&5
66e941e8 8855$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
8856" >&2;}
8857 { (exit 1); exit 1; }; }
8858fi
8859
8860################################################################################
8861if test x$SELINUX = xyes; then
66e941e8
JM
8862 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8863$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 8864if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
66e941e8 8865 $as_echo_n "(cached) " >&6
8a2fc586
AK
8866else
8867 ac_check_lib_save_LIBS=$LIBS
8868LIBS="-lsepol $LIBS"
8869cat >conftest.$ac_ext <<_ACEOF
8870/* confdefs.h. */
8871_ACEOF
8872cat confdefs.h >>conftest.$ac_ext
8873cat >>conftest.$ac_ext <<_ACEOF
8874/* end confdefs.h. */
8875
7a197a62
AK
8876/* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8a2fc586
AK
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8a2fc586
AK
8882char sepol_check_context ();
8883int
8884main ()
8885{
7a197a62 8886return sepol_check_context ();
8a2fc586
AK
8887 ;
8888 return 0;
8889}
8890_ACEOF
8891rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8892if { (ac_try="$ac_link"
8893case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896esac
66e941e8
JM
8897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898$as_echo "$ac_try_echo") >&5
7a197a62 8899 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
66e941e8 8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest$ac_exeext &&
8909 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
8910 ac_cv_lib_sepol_sepol_check_context=yes
8911else
66e941e8 8912 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
8913sed 's/^/| /' conftest.$ac_ext >&5
8914
7a197a62 8915 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 8916fi
7a197a62
AK
8917
8918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
8919 conftest$ac_exeext conftest.$ac_ext
8920LIBS=$ac_check_lib_save_LIBS
8921fi
66e941e8
JM
8922{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8923$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
8924if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8925 HAVE_SEPOL=yes
8926else
8927 HAVE_SEPOL=no
8928fi
8929
8a2fc586
AK
8930
8931 if test x$HAVE_SEPOL = xyes; then
8932 LIBS="-lsepol $LIBS"
8933 fi
8934
66e941e8
JM
8935 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8936$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 8937if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
66e941e8 8938 $as_echo_n "(cached) " >&6
ad6254c5
AK
8939else
8940 ac_check_lib_save_LIBS=$LIBS
8941LIBS="-lselinux $LIBS"
8942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h. */
8948
7a197a62
AK
8949/* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8952#ifdef __cplusplus
8953extern "C"
8954#endif
ad6254c5
AK
8955char is_selinux_enabled ();
8956int
8957main ()
8958{
7a197a62 8959return is_selinux_enabled ();
ad6254c5
AK
8960 ;
8961 return 0;
8962}
8963_ACEOF
8964rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8965if { (ac_try="$ac_link"
8966case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969esac
66e941e8
JM
8970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971$as_echo "$ac_try_echo") >&5
7a197a62 8972 (eval "$ac_link") 2>conftest.er1
ad6254c5 8973 ac_status=$?
8a2fc586
AK
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
66e941e8 8977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest$ac_exeext &&
8982 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8983 ac_cv_lib_selinux_is_selinux_enabled=yes
8984else
66e941e8 8985 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
7a197a62 8988 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 8989fi
7a197a62
AK
8990
8991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8992 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8993LIBS=$ac_check_lib_save_LIBS
8994fi
66e941e8
JM
8995{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8996$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
8997if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8998 HAVE_SELINUX=yes
8999else
9000 HAVE_SELINUX=no
9001fi
9002
ad6254c5
AK
9003
9004 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9005
9006cat >>confdefs.h <<\_ACEOF
9007#define HAVE_SELINUX 1
9008_ACEOF
9009
ad6254c5
AK
9010 LIBS="-lselinux $LIBS"
9011 else
66e941e8
JM
9012 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9013$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9014 fi
9015
9016 # With --enable-static_link and selinux enabled, linking lvm.static
9017 # fails on at least Debian unstable due to unsatisfied references
9018 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9019 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9020 lvm_saved_libs=$LIBS
9021 LIBS="$LIBS -static"
9022 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9023$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
9024if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9025 $as_echo_n "(cached) " >&6
9026else
9027 ac_func_search_save_LIBS=$LIBS
9028cat >conftest.$ac_ext <<_ACEOF
9029/* confdefs.h. */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h. */
9034
9035/* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9038#ifdef __cplusplus
9039extern "C"
9040#endif
9041char pthread_mutex_lock ();
9042int
9043main ()
9044{
9045return pthread_mutex_lock ();
9046 ;
9047 return 0;
9048}
9049_ACEOF
9050for ac_lib in '' pthread; do
9051 if test -z "$ac_lib"; then
9052 ac_res="none required"
9053 else
9054 ac_res=-l$ac_lib
9055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9056 fi
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058if { (ac_try="$ac_link"
9059case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062esac
9063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9064$as_echo "$ac_try_echo") >&5
9065 (eval "$ac_link") 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_c_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest$ac_exeext &&
9075 $as_test_x conftest$ac_exeext; then
9076 ac_cv_search_pthread_mutex_lock=$ac_res
9077else
9078 $as_echo "$as_me: failed program was:" >&5
9079sed 's/^/| /' conftest.$ac_ext >&5
9080
9081
9082fi
9083
9084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9085 conftest$ac_exeext
9086 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9087 break
9088fi
9089done
9090if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9091 :
9092else
9093 ac_cv_search_pthread_mutex_lock=no
9094fi
9095rm conftest.$ac_ext
9096LIBS=$ac_func_search_save_LIBS
9097fi
9098{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9099$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
9100ac_res=$ac_cv_search_pthread_mutex_lock
9101if test "$ac_res" != no; then
9102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9103 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9104 LIB_PTHREAD=-lpthread
9105fi
9106
9107 LIBS=$lvm_saved_libs
ad6254c5
AK
9108 fi
9109fi
9110
8b1a3214
AK
9111################################################################################
9112if test x$REALTIME = xyes; then
66e941e8
JM
9113 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9114$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 9115if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
66e941e8 9116 $as_echo_n "(cached) " >&6
8b1a3214
AK
9117else
9118 ac_check_lib_save_LIBS=$LIBS
9119LIBS="-lrt $LIBS"
9120cat >conftest.$ac_ext <<_ACEOF
9121/* confdefs.h. */
9122_ACEOF
9123cat confdefs.h >>conftest.$ac_ext
9124cat >>conftest.$ac_ext <<_ACEOF
9125/* end confdefs.h. */
9126
7a197a62
AK
9127/* Override any GCC internal prototype to avoid an error.
9128 Use char because int might match the return type of a GCC
9129 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9130#ifdef __cplusplus
9131extern "C"
9132#endif
8b1a3214
AK
9133char clock_gettime ();
9134int
9135main ()
9136{
7a197a62 9137return clock_gettime ();
8b1a3214
AK
9138 ;
9139 return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9143if { (ac_try="$ac_link"
9144case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
66e941e8
JM
9148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9149$as_echo "$ac_try_echo") >&5
7a197a62 9150 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
66e941e8 9155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest$ac_exeext &&
9160 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9161 ac_cv_lib_rt_clock_gettime=yes
9162else
66e941e8 9163 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
7a197a62 9166 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9167fi
7a197a62
AK
9168
9169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9170 conftest$ac_exeext conftest.$ac_ext
9171LIBS=$ac_check_lib_save_LIBS
9172fi
66e941e8
JM
9173{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9174$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9175if test $ac_cv_lib_rt_clock_gettime = yes; then
9176 HAVE_REALTIME=yes
9177else
9178 HAVE_REALTIME=no
9179fi
9180
8b1a3214
AK
9181
9182 if test x$HAVE_REALTIME = xyes; then
9183
9184cat >>confdefs.h <<\_ACEOF
9185#define HAVE_REALTIME 1
9186_ACEOF
9187
9188 LIBS="-lrt $LIBS"
9189 else
66e941e8
JM
9190 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9191$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9192 fi
9193fi
9194
ad6254c5
AK
9195################################################################################
9196
9197for ac_header in getopt.h
9198do
66e941e8 9199as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
9201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9202$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9204 $as_echo_n "(cached) " >&6
ad6254c5 9205fi
66e941e8
JM
9206ac_res=`eval 'as_val=${'$as_ac_Header'}
9207 $as_echo "$as_val"'`
9208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9209$as_echo "$ac_res" >&6; }
ad6254c5
AK
9210else
9211 # Is the header compilable?
66e941e8
JM
9212{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9213$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9215/* confdefs.h. */
9216_ACEOF
9217cat confdefs.h >>conftest.$ac_ext
9218cat >>conftest.$ac_ext <<_ACEOF
9219/* end confdefs.h. */
9220$ac_includes_default
9221#include <$ac_header>
9222_ACEOF
9223rm -f conftest.$ac_objext
7a197a62
AK
9224if { (ac_try="$ac_compile"
9225case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228esac
66e941e8
JM
9229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9230$as_echo "$ac_try_echo") >&5
7a197a62 9231 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9232 ac_status=$?
8a2fc586
AK
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
66e941e8 9236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9241 ac_header_compiler=yes
9242else
66e941e8 9243 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9244sed 's/^/| /' conftest.$ac_ext >&5
9245
7a197a62 9246 ac_header_compiler=no
ad6254c5 9247fi
7a197a62
AK
9248
9249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
9250{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9252
9253# Is the header present?
66e941e8
JM
9254{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9256cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9257/* confdefs.h. */
9258_ACEOF
9259cat confdefs.h >>conftest.$ac_ext
9260cat >>conftest.$ac_ext <<_ACEOF
9261/* end confdefs.h. */
9262#include <$ac_header>
9263_ACEOF
7a197a62
AK
9264if { (ac_try="$ac_cpp conftest.$ac_ext"
9265case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268esac
66e941e8
JM
9269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9270$as_echo "$ac_try_echo") >&5
7a197a62 9271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
66e941e8 9276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9277 (exit $ac_status); } >/dev/null && {
9278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 }; then
ad6254c5
AK
9281 ac_header_preproc=yes
9282else
66e941e8 9283 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_header_preproc=no
9287fi
7a197a62 9288
ad6254c5 9289rm -f conftest.err conftest.$ac_ext
66e941e8
JM
9290{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9291$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9292
9293# So? What about this header?
8a2fc586
AK
9294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9295 yes:no: )
66e941e8
JM
9296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9297$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9299$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9300 ac_header_preproc=yes
ad6254c5 9301 ;;
8a2fc586 9302 no:yes:* )
66e941e8
JM
9303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9304$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9306$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9308$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9310$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9312$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9314$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9315
ad6254c5
AK
9316 ;;
9317esac
66e941e8
JM
9318{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9319$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9321 $as_echo_n "(cached) " >&6
ad6254c5 9322else
8a2fc586 9323 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9324fi
66e941e8
JM
9325ac_res=`eval 'as_val=${'$as_ac_Header'}
9326 $as_echo "$as_val"'`
9327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9328$as_echo "$ac_res" >&6; }
ad6254c5
AK
9329
9330fi
66e941e8
JM
9331if test `eval 'as_val=${'$as_ac_Header'}
9332 $as_echo "$as_val"'` = yes; then
ad6254c5 9333 cat >>confdefs.h <<_ACEOF
66e941e8 9334#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9335_ACEOF
72b2cb61
AK
9336
9337cat >>confdefs.h <<\_ACEOF
9338#define HAVE_GETOPTLONG 1
9339_ACEOF
9340
ad6254c5
AK
9341fi
9342
9343done
9344
9345
9346################################################################################
9347if test x$READLINE = xyes; then
9348
66e941e8
JM
9349{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9350$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 9351if test "${ac_cv_lib_readline_readline+set}" = set; then
66e941e8 9352 $as_echo_n "(cached) " >&6
ad6254c5
AK
9353else
9354 ac_check_lib_save_LIBS=$LIBS
9355LIBS="-lreadline $LIBS"
9356cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9357/* confdefs.h. */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h. */
9362
7a197a62
AK
9363/* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9366#ifdef __cplusplus
9367extern "C"
9368#endif
ad6254c5
AK
9369char readline ();
9370int
9371main ()
9372{
7a197a62 9373return readline ();
ad6254c5
AK
9374 ;
9375 return 0;
9376}
9377_ACEOF
9378rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9379if { (ac_try="$ac_link"
9380case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383esac
66e941e8
JM
9384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9385$as_echo "$ac_try_echo") >&5
7a197a62 9386 (eval "$ac_link") 2>conftest.er1
ad6254c5 9387 ac_status=$?
8a2fc586
AK
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
66e941e8 9391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest$ac_exeext &&
9396 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9397 ac_cv_lib_readline_readline=yes
9398else
66e941e8 9399 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9400sed 's/^/| /' conftest.$ac_ext >&5
9401
7a197a62 9402 ac_cv_lib_readline_readline=no
ad6254c5 9403fi
7a197a62
AK
9404
9405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9406 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9407LIBS=$ac_check_lib_save_LIBS
9408fi
66e941e8
JM
9409{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9410$as_echo "$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
9411if test $ac_cv_lib_readline_readline = yes; then
9412 cat >>confdefs.h <<_ACEOF
9413#define HAVE_LIBREADLINE 1
9414_ACEOF
9415
9416 LIBS="-lreadline $LIBS"
9417
9418else
66e941e8 9419 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9420--enable-readline option (which is enabled by default). Either disable readline
9421support with --disable-readline or download and install readline from:
9422 ftp.gnu.org/gnu/readline
9423Note: if you are using precompiled packages you will also need the development
9424package as well (which may be called readline-devel or something similar).
9425" >&5
66e941e8 9426$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9427--enable-readline option (which is enabled by default). Either disable readline
9428support with --disable-readline or download and install readline from:
9429 ftp.gnu.org/gnu/readline
9430Note: if you are using precompiled packages you will also need the development
9431package as well (which may be called readline-devel or something similar).
9432" >&2;}
9433 { (exit 1); exit 1; }; }
9434
9435fi
9436
66e941e8
JM
9437 { $as_echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
9438$as_echo_n "checking for rl_completion_matches... " >&6; }
ad6254c5 9439if test "${ac_cv_func_rl_completion_matches+set}" = set; then
66e941e8 9440 $as_echo_n "(cached) " >&6
ad6254c5
AK
9441else
9442 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9443/* confdefs.h. */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h. */
8a2fc586
AK
9448/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
9449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9450#define rl_completion_matches innocuous_rl_completion_matches
9451
ad6254c5
AK
9452/* System header to define __stub macros and hopefully few prototypes,
9453 which can conflict with char rl_completion_matches (); below.
9454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9455 <limits.h> exists even on freestanding compilers. */
8a2fc586 9456
ad6254c5
AK
9457#ifdef __STDC__
9458# include <limits.h>
9459#else
9460# include <assert.h>
9461#endif
8a2fc586
AK
9462
9463#undef rl_completion_matches
9464
7a197a62
AK
9465/* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9468#ifdef __cplusplus
9469extern "C"
ad6254c5 9470#endif
ad6254c5
AK
9471char rl_completion_matches ();
9472/* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
7a197a62 9475#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 9476choke me
ad6254c5
AK
9477#endif
9478
9479int
9480main ()
9481{
7a197a62 9482return rl_completion_matches ();
ad6254c5
AK
9483 ;
9484 return 0;
9485}
9486_ACEOF
9487rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9488if { (ac_try="$ac_link"
9489case "(($ac_try" in
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9492esac
66e941e8
JM
9493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9494$as_echo "$ac_try_echo") >&5
7a197a62 9495 (eval "$ac_link") 2>conftest.er1
ad6254c5 9496 ac_status=$?
8a2fc586
AK
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
66e941e8 9500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9506 ac_cv_func_rl_completion_matches=yes
9507else
66e941e8 9508 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9509sed 's/^/| /' conftest.$ac_ext >&5
9510
7a197a62 9511 ac_cv_func_rl_completion_matches=no
ad6254c5 9512fi
7a197a62
AK
9513
9514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9515 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9516fi
66e941e8
JM
9517{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
9518$as_echo "$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 9519if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 9520
72b2cb61
AK
9521cat >>confdefs.h <<\_ACEOF
9522#define HAVE_RL_COMPLETION_MATCHES 1
9523_ACEOF
9524
9525fi
ad6254c5
AK
9526
9527fi
9528
9529################################################################################
66e941e8
JM
9530{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9531$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 9532# Check whether --enable-nls was given.
ad6254c5 9533if test "${enable_nls+set}" = set; then
7a197a62 9534 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9535else
9536 INTL=no
7a197a62
AK
9537fi
9538
66e941e8
JM
9539{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
9540$as_echo "$INTL" >&6; }
ad6254c5
AK
9541
9542if test x$INTL = xyes; then
9543 INTL_PACKAGE="lvm2"
9544 # Extract the first word of "msgfmt", so it can be a program name with args.
9545set dummy msgfmt; ac_word=$2
66e941e8
JM
9546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9547$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 9548if test "${ac_cv_path_MSGFMT+set}" = set; then
66e941e8 9549 $as_echo_n "(cached) " >&6
ad6254c5
AK
9550else
9551 case $MSGFMT in
9552 [\\/]* | ?:[\\/]*)
9553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9554 ;;
9555 *)
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 9563 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
66e941e8 9564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
9565 break 2
9566 fi
9567done
9568done
7a197a62 9569IFS=$as_save_IFS
ad6254c5
AK
9570
9571 ;;
9572esac
9573fi
9574MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9575if test -n "$MSGFMT"; then
66e941e8
JM
9576 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
9577$as_echo "$MSGFMT" >&6; }
ad6254c5 9578else
66e941e8
JM
9579 { $as_echo "$as_me:$LINENO: result: no" >&5
9580$as_echo "no" >&6; }
ad6254c5
AK
9581fi
9582
7a197a62 9583
ad6254c5 9584 if [ "x$MSGFMT" == x ];
66e941e8 9585 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 9586 " >&5
66e941e8 9587$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
9588 " >&2;}
9589 { (exit 1); exit 1; }; }
9590 fi;
9591
9592
7a197a62 9593# Check whether --with-localedir was given.
ad6254c5 9594if test "${with_localedir+set}" = set; then
7a197a62 9595 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9596else
9597 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9598fi
9599
ad6254c5
AK
9600fi
9601
9602################################################################################
9603
7a197a62 9604# Check whether --with-confdir was given.
ad6254c5 9605if test "${with_confdir+set}" = set; then
7a197a62 9606 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9607else
9608 CONFDIR='/etc'
7a197a62
AK
9609fi
9610
ad6254c5
AK
9611
9612
7a197a62 9613# Check whether --with-staticdir was given.
ad6254c5 9614if test "${with_staticdir+set}" = set; then
7a197a62 9615 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9616else
9617 STATICDIR='${exec_prefix}/sbin'
7a197a62 9618fi
ad6254c5 9619
33f732c5 9620
7a197a62
AK
9621
9622# Check whether --with-dmdir was given.
33f732c5 9623if test "${with_dmdir+set}" = set; then
7a197a62 9624 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9625else
9626 DMDIR=
7a197a62
AK
9627fi
9628
33f732c5 9629
09339e2b
JM
9630# Convert a relative dir name to absolute.
9631case $DMDIR in
9632 /*) ;;
9633 *) DMDIR="`pwd`/$DMDIR" ;;
9634esac
9635
ad6254c5
AK
9636################################################################################
9637if test x$READLINE = xyes; then
9638
9639
9640for ac_header in readline/readline.h readline/history.h
9641do
66e941e8 9642as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
9644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9645$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9647 $as_echo_n "(cached) " >&6
ad6254c5 9648fi
66e941e8
JM
9649ac_res=`eval 'as_val=${'$as_ac_Header'}
9650 $as_echo "$as_val"'`
9651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9652$as_echo "$ac_res" >&6; }
ad6254c5
AK
9653else
9654 # Is the header compilable?
66e941e8
JM
9655{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9656$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9657cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9658/* confdefs.h. */
9659_ACEOF
9660cat confdefs.h >>conftest.$ac_ext
9661cat >>conftest.$ac_ext <<_ACEOF
9662/* end confdefs.h. */
9663$ac_includes_default
9664#include <$ac_header>
9665_ACEOF
9666rm -f conftest.$ac_objext
7a197a62
AK
9667if { (ac_try="$ac_compile"
9668case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671esac
66e941e8
JM
9672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9673$as_echo "$ac_try_echo") >&5
7a197a62 9674 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9675 ac_status=$?
8a2fc586
AK
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
66e941e8 9679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9684 ac_header_compiler=yes
9685else
66e941e8 9686 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
7a197a62 9689 ac_header_compiler=no
ad6254c5 9690fi
7a197a62
AK
9691
9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
9693{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9694$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9695
9696# Is the header present?
66e941e8
JM
9697{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9698$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9699cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9700/* confdefs.h. */
9701_ACEOF
9702cat confdefs.h >>conftest.$ac_ext
9703cat >>conftest.$ac_ext <<_ACEOF
9704/* end confdefs.h. */
9705#include <$ac_header>
9706_ACEOF
7a197a62
AK
9707if { (ac_try="$ac_cpp conftest.$ac_ext"
9708case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
66e941e8
JM
9712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9713$as_echo "$ac_try_echo") >&5
7a197a62 9714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
66e941e8 9719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9720 (exit $ac_status); } >/dev/null && {
9721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9722 test ! -s conftest.err
9723 }; then
ad6254c5
AK
9724 ac_header_preproc=yes
9725else
66e941e8 9726 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729 ac_header_preproc=no
9730fi
7a197a62 9731
ad6254c5 9732rm -f conftest.err conftest.$ac_ext
66e941e8
JM
9733{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9734$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9735
9736# So? What about this header?
8a2fc586
AK
9737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9738 yes:no: )
66e941e8
JM
9739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9740$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9742$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9743 ac_header_preproc=yes
ad6254c5 9744 ;;
8a2fc586 9745 no:yes:* )
66e941e8
JM
9746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9747$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9749$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9751$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9753$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9755$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9757$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9758
ad6254c5
AK
9759 ;;
9760esac
66e941e8
JM
9761{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9762$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9764 $as_echo_n "(cached) " >&6
ad6254c5 9765else
8a2fc586 9766 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9767fi
66e941e8
JM
9768ac_res=`eval 'as_val=${'$as_ac_Header'}
9769 $as_echo "$as_val"'`
9770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9771$as_echo "$ac_res" >&6; }
ad6254c5
AK
9772
9773fi
66e941e8
JM
9774if test `eval 'as_val=${'$as_ac_Header'}
9775 $as_echo "$as_val"'` = yes; then
ad6254c5 9776 cat >>confdefs.h <<_ACEOF
66e941e8 9777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9778_ACEOF
9779
9780else
66e941e8
JM
9781 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9782$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
9783 { (exit 1); exit 1; }; }
9784fi
9785
9786done
9787
9788fi
9789
5c7fc7c4 9790if test x$CLVMD != xnone; then
ad6254c5
AK
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801for 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
9802do
66e941e8 9803as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
9805 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9806$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9808 $as_echo_n "(cached) " >&6
ad6254c5 9809fi
66e941e8
JM
9810ac_res=`eval 'as_val=${'$as_ac_Header'}
9811 $as_echo "$as_val"'`
9812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9813$as_echo "$ac_res" >&6; }
ad6254c5
AK
9814else
9815 # Is the header compilable?
66e941e8
JM
9816{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9817$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9818cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9819/* confdefs.h. */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h. */
9824$ac_includes_default
9825#include <$ac_header>
9826_ACEOF
9827rm -f conftest.$ac_objext
7a197a62
AK
9828if { (ac_try="$ac_compile"
9829case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832esac
66e941e8
JM
9833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9834$as_echo "$ac_try_echo") >&5
7a197a62 9835 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9836 ac_status=$?
8a2fc586
AK
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
66e941e8 9840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9845 ac_header_compiler=yes
9846else
66e941e8 9847 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
7a197a62 9850 ac_header_compiler=no
ad6254c5 9851fi
7a197a62
AK
9852
9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
9854{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9856
9857# Is the header present?
66e941e8
JM
9858{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9860cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9861/* confdefs.h. */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h. */
9866#include <$ac_header>
9867_ACEOF
7a197a62
AK
9868if { (ac_try="$ac_cpp conftest.$ac_ext"
9869case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
66e941e8
JM
9873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9874$as_echo "$ac_try_echo") >&5
7a197a62 9875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
66e941e8 9880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
9881 (exit $ac_status); } >/dev/null && {
9882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9883 test ! -s conftest.err
9884 }; then
ad6254c5
AK
9885 ac_header_preproc=yes
9886else
66e941e8 9887 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9888sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_header_preproc=no
9891fi
7a197a62 9892
ad6254c5 9893rm -f conftest.err conftest.$ac_ext
66e941e8
JM
9894{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9895$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9896
9897# So? What about this header?
8a2fc586
AK
9898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9899 yes:no: )
66e941e8
JM
9900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9901$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9903$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9904 ac_header_preproc=yes
ad6254c5 9905 ;;
8a2fc586 9906 no:yes:* )
66e941e8
JM
9907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9908$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9910$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9912$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9914$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9916$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9918$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9919
ad6254c5
AK
9920 ;;
9921esac
66e941e8
JM
9922{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9923$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9925 $as_echo_n "(cached) " >&6
ad6254c5 9926else
8a2fc586 9927 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9928fi
66e941e8
JM
9929ac_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; }
ad6254c5
AK
9933
9934fi
66e941e8
JM
9935if test `eval 'as_val=${'$as_ac_Header'}
9936 $as_echo "$as_val"'` = yes; then
ad6254c5 9937 cat >>confdefs.h <<_ACEOF
66e941e8 9938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9939_ACEOF
9940
9941else
66e941e8
JM
9942 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9943$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 9944 { (exit 1); exit 1; }; }
795ca3e5
AK
9945fi
9946
ad6254c5
AK
9947done
9948
9949
795ca3e5 9950
8106cdd5 9951
ad6254c5
AK
9952
9953
9954for ac_func in dup2 getmntent memmove select socket
9955do
66e941e8
JM
9956as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9957{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9958$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 9960 $as_echo_n "(cached) " >&6
795ca3e5 9961else
ad6254c5 9962 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
8a2fc586
AK
9968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9970#define $ac_func innocuous_$ac_func
9971
795ca3e5 9972/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9973 which can conflict with char $ac_func (); below.
9974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9975 <limits.h> exists even on freestanding compilers. */
8a2fc586 9976
ad6254c5
AK
9977#ifdef __STDC__
9978# include <limits.h>
9979#else
9980# include <assert.h>
9981#endif
8a2fc586
AK
9982
9983#undef $ac_func
9984
7a197a62
AK
9985/* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9988#ifdef __cplusplus
9989extern "C"
ad6254c5 9990#endif
ad6254c5 9991char $ac_func ();
795ca3e5
AK
9992/* The GNU C library defines this for functions which it implements
9993 to always fail with ENOSYS. Some functions are actually named
9994 something starting with __ and the normal name is an alias. */
7a197a62 9995#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 9996choke me
795ca3e5
AK
9997#endif
9998
ad6254c5
AK
9999int
10000main ()
10001{
7a197a62 10002return $ac_func ();
ad6254c5
AK
10003 ;
10004 return 0;
10005}
10006_ACEOF
10007rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10008if { (ac_try="$ac_link"
10009case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012esac
66e941e8
JM
10013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014$as_echo "$ac_try_echo") >&5
7a197a62 10015 (eval "$ac_link") 2>conftest.er1
ad6254c5 10016 ac_status=$?
8a2fc586
AK
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
66e941e8 10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext &&
10025 $as_test_x conftest$ac_exeext; then
ad6254c5 10026 eval "$as_ac_var=yes"
795ca3e5 10027else
66e941e8 10028 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10029sed 's/^/| /' conftest.$ac_ext >&5
10030
7a197a62 10031 eval "$as_ac_var=no"
80992638 10032fi
7a197a62
AK
10033
10034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10035 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10036fi
66e941e8
JM
10037ac_res=`eval 'as_val=${'$as_ac_var'}
10038 $as_echo "$as_val"'`
10039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10040$as_echo "$ac_res" >&6; }
10041if test `eval 'as_val=${'$as_ac_var'}
10042 $as_echo "$as_val"'` = yes; then
ad6254c5 10043 cat >>confdefs.h <<_ACEOF
66e941e8 10044#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10045_ACEOF
80992638
AK
10046
10047else
66e941e8
JM
10048 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10049$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10050 { (exit 1); exit 1; }; }
8106cdd5 10051fi
ad6254c5 10052done
795ca3e5 10053
7a197a62
AK
10054 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10055# -lseq on Dynix/PTX, -lgen on Unixware.
66e941e8
JM
10056{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10057$as_echo_n "checking for library containing getmntent... " >&6; }
7a197a62 10058if test "${ac_cv_search_getmntent+set}" = set; then
66e941e8 10059 $as_echo_n "(cached) " >&6
ad6254c5 10060else
7a197a62 10061 ac_func_search_save_LIBS=$LIBS
ad6254c5 10062cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
80992638 10068
7a197a62
AK
10069/* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
ad6254c5 10071 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10072#ifdef __cplusplus
10073extern "C"
10074#endif
ad6254c5
AK
10075char getmntent ();
10076int
10077main ()
10078{
7a197a62 10079return getmntent ();
ad6254c5
AK
10080 ;
10081 return 0;
10082}
10083_ACEOF
7a197a62
AK
10084for ac_lib in '' sun seq gen; do
10085 if test -z "$ac_lib"; then
10086 ac_res="none required"
10087 else
10088 ac_res=-l$ac_lib
10089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10090 fi
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (ac_try="$ac_link"
10093case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
66e941e8
JM
10097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10098$as_echo "$ac_try_echo") >&5
7a197a62 10099 (eval "$ac_link") 2>conftest.er1
ad6254c5 10100 ac_status=$?
8a2fc586
AK
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
66e941e8 10104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest$ac_exeext &&
10109 $as_test_x conftest$ac_exeext; then
10110 ac_cv_search_getmntent=$ac_res
80992638 10111else
66e941e8 10112 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
795ca3e5
AK
10115
10116fi
10117
7a197a62
AK
10118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119 conftest$ac_exeext
10120 if test "${ac_cv_search_getmntent+set}" = set; then
10121 break
ad6254c5 10122fi
7a197a62
AK
10123done
10124if test "${ac_cv_search_getmntent+set}" = set; then
10125 :
795ca3e5 10126else
7a197a62 10127 ac_cv_search_getmntent=no
795ca3e5 10128fi
7a197a62
AK
10129rm conftest.$ac_ext
10130LIBS=$ac_func_search_save_LIBS
795ca3e5 10131fi
66e941e8
JM
10132{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10133$as_echo "$ac_cv_search_getmntent" >&6; }
7a197a62
AK
10134ac_res=$ac_cv_search_getmntent
10135if test "$ac_res" != no; then
10136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10137 ac_cv_func_getmntent=yes
10138
10139cat >>confdefs.h <<\_ACEOF
10140#define HAVE_GETMNTENT
ad6254c5 10141_ACEOF
795ca3e5 10142
7a197a62
AK
10143else
10144 ac_cv_func_getmntent=no
795ca3e5 10145fi
795ca3e5
AK
10146
10147
ad6254c5
AK
10148# AC_FUNC_REALLOC
10149
10150
10151for ac_header in sys/select.h sys/socket.h
10152do
66e941e8 10153as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
10155 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10156$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10158 $as_echo_n "(cached) " >&6
ad6254c5 10159fi
66e941e8
JM
10160ac_res=`eval 'as_val=${'$as_ac_Header'}
10161 $as_echo "$as_val"'`
10162 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10163$as_echo "$ac_res" >&6; }
795ca3e5 10164else
ad6254c5 10165 # Is the header compilable?
66e941e8
JM
10166{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10167$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10168cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10169/* confdefs.h. */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h. */
10174$ac_includes_default
10175#include <$ac_header>
10176_ACEOF
10177rm -f conftest.$ac_objext
7a197a62
AK
10178if { (ac_try="$ac_compile"
10179case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
66e941e8
JM
10183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10184$as_echo "$ac_try_echo") >&5
7a197a62 10185 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10186 ac_status=$?
8a2fc586
AK
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
66e941e8 10190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest.$ac_objext; then
ad6254c5 10195 ac_header_compiler=yes
80992638 10196else
66e941e8 10197 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
7a197a62 10200 ac_header_compiler=no
ad6254c5 10201fi
7a197a62
AK
10202
10203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
10204{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10205$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10206
10207# Is the header present?
66e941e8
JM
10208{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10209$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10210cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10211/* confdefs.h. */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h. */
10216#include <$ac_header>
10217_ACEOF
7a197a62
AK
10218if { (ac_try="$ac_cpp conftest.$ac_ext"
10219case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
66e941e8
JM
10223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10224$as_echo "$ac_try_echo") >&5
7a197a62 10225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
66e941e8 10230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10231 (exit $ac_status); } >/dev/null && {
10232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 }; then
ad6254c5
AK
10235 ac_header_preproc=yes
10236else
66e941e8 10237 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
10240 ac_header_preproc=no
10241fi
7a197a62 10242
ad6254c5 10243rm -f conftest.err conftest.$ac_ext
66e941e8
JM
10244{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10245$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10246
10247# So? What about this header?
8a2fc586
AK
10248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10249 yes:no: )
66e941e8
JM
10250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10251$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10253$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10254 ac_header_preproc=yes
ad6254c5 10255 ;;
8a2fc586 10256 no:yes:* )
66e941e8
JM
10257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10258$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10260$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10262$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10264$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10266$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10268$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10269
ad6254c5
AK
10270 ;;
10271esac
66e941e8
JM
10272{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10273$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10275 $as_echo_n "(cached) " >&6
ad6254c5 10276else
8a2fc586 10277 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10278fi
66e941e8
JM
10279ac_res=`eval 'as_val=${'$as_ac_Header'}
10280 $as_echo "$as_val"'`
10281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10282$as_echo "$ac_res" >&6; }
8106cdd5 10283
795ca3e5 10284fi
66e941e8
JM
10285if test `eval 'as_val=${'$as_ac_Header'}
10286 $as_echo "$as_val"'` = yes; then
ad6254c5 10287 cat >>confdefs.h <<_ACEOF
66e941e8 10288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10289_ACEOF
10290
795ca3e5
AK
10291fi
10292
ad6254c5
AK
10293done
10294
66e941e8
JM
10295{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
10296$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 10297if test "${ac_cv_func_select_args+set}" = set; then
66e941e8 10298 $as_echo_n "(cached) " >&6
26e7f2e0 10299else
ad6254c5 10300 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10301 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10302 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10303 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10304/* confdefs.h. */
10305_ACEOF
10306cat confdefs.h >>conftest.$ac_ext
10307cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h. */
10309$ac_includes_default
7a197a62 10310#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10311# include <sys/select.h>
10312#endif
7a197a62 10313#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10314# include <sys/socket.h>
10315#endif
10316
10317int
10318main ()
10319{
10320extern int select ($ac_arg1,
8a2fc586
AK
10321 $ac_arg234, $ac_arg234, $ac_arg234,
10322 $ac_arg5);
ad6254c5
AK
10323 ;
10324 return 0;
10325}
10326_ACEOF
10327rm -f conftest.$ac_objext
7a197a62
AK
10328if { (ac_try="$ac_compile"
10329case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332esac
66e941e8
JM
10333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10334$as_echo "$ac_try_echo") >&5
7a197a62 10335 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10336 ac_status=$?
8a2fc586
AK
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
66e941e8 10340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10345 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10346else
66e941e8 10347 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
7a197a62 10350
ad6254c5 10351fi
7a197a62
AK
10352
10353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10354 done
10355 done
10356done
10357# Provide a safe default value.
10358: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10359
26e7f2e0 10360fi
66e941e8
JM
10361{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10362$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10363ac_save_IFS=$IFS; IFS=','
10364set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10365IFS=$ac_save_IFS
10366shift
10367
10368cat >>confdefs.h <<_ACEOF
10369#define SELECT_TYPE_ARG1 $1
10370_ACEOF
10371
10372
10373cat >>confdefs.h <<_ACEOF
10374#define SELECT_TYPE_ARG234 ($2)
10375_ACEOF
10376
10377
10378cat >>confdefs.h <<_ACEOF
10379#define SELECT_TYPE_ARG5 ($3)
10380_ACEOF
10381
80992638 10382rm -f conftest*
80992638 10383
8106cdd5 10384fi
ad6254c5
AK
10385
10386if test x$FSADM = xyes; then
10387
10388
10389
10390for ac_header in fstab.h sys/mount.h sys/vfs.h
10391do
66e941e8 10392as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
10394 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10395$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10397 $as_echo_n "(cached) " >&6
ad6254c5 10398fi
66e941e8
JM
10399ac_res=`eval 'as_val=${'$as_ac_Header'}
10400 $as_echo "$as_val"'`
10401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10402$as_echo "$ac_res" >&6; }
ad6254c5
AK
10403else
10404 # Is the header compilable?
66e941e8
JM
10405{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10406$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10407cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
10413$ac_includes_default
10414#include <$ac_header>
10415_ACEOF
10416rm -f conftest.$ac_objext
7a197a62
AK
10417if { (ac_try="$ac_compile"
10418case "(($ac_try" in
10419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10421esac
66e941e8
JM
10422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423$as_echo "$ac_try_echo") >&5
7a197a62 10424 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10425 ac_status=$?
8a2fc586
AK
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
66e941e8 10429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10434 ac_header_compiler=yes
10435else
66e941e8 10436 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
7a197a62 10439 ac_header_compiler=no
ad6254c5 10440fi
7a197a62
AK
10441
10442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
10443{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10444$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10445
10446# Is the header present?
66e941e8
JM
10447{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10448$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10449cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455#include <$ac_header>
10456_ACEOF
7a197a62
AK
10457if { (ac_try="$ac_cpp conftest.$ac_ext"
10458case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461esac
66e941e8
JM
10462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463$as_echo "$ac_try_echo") >&5
7a197a62 10464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
66e941e8 10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10470 (exit $ac_status); } >/dev/null && {
10471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 }; then
ad6254c5
AK
10474 ac_header_preproc=yes
10475else
66e941e8 10476 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479 ac_header_preproc=no
10480fi
7a197a62 10481
ad6254c5 10482rm -f conftest.err conftest.$ac_ext
66e941e8
JM
10483{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10484$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10485
10486# So? What about this header?
8a2fc586
AK
10487case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10488 yes:no: )
66e941e8
JM
10489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10490$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10492$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10493 ac_header_preproc=yes
ad6254c5 10494 ;;
8a2fc586 10495 no:yes:* )
66e941e8
JM
10496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10497$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10499$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10501$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10503$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10505$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10507$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10508
ad6254c5
AK
10509 ;;
10510esac
66e941e8
JM
10511{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10512$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10514 $as_echo_n "(cached) " >&6
26e7f2e0 10515else
8a2fc586 10516 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 10517fi
66e941e8
JM
10518ac_res=`eval 'as_val=${'$as_ac_Header'}
10519 $as_echo "$as_val"'`
10520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10521$as_echo "$ac_res" >&6; }
26e7f2e0 10522
ad6254c5 10523fi
66e941e8
JM
10524if test `eval 'as_val=${'$as_ac_Header'}
10525 $as_echo "$as_val"'` = yes; then
ad6254c5 10526 cat >>confdefs.h <<_ACEOF
66e941e8 10527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10528_ACEOF
26e7f2e0 10529
d68a82ec 10530else
66e941e8
JM
10531 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10532$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10533 { (exit 1); exit 1; }; }
26e7f2e0
AK
10534fi
10535
ad6254c5 10536done
036f273a 10537
ad6254c5
AK
10538
10539for ac_func in memmove
10540do
66e941e8
JM
10541as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10542{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10543$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10545 $as_echo_n "(cached) " >&6
036f273a 10546else
ad6254c5 10547 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10548/* confdefs.h. */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h. */
8a2fc586
AK
10553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10555#define $ac_func innocuous_$ac_func
10556
ad6254c5
AK
10557/* System header to define __stub macros and hopefully few prototypes,
10558 which can conflict with char $ac_func (); below.
10559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10560 <limits.h> exists even on freestanding compilers. */
8a2fc586 10561
ad6254c5
AK
10562#ifdef __STDC__
10563# include <limits.h>
10564#else
10565# include <assert.h>
10566#endif
8a2fc586
AK
10567
10568#undef $ac_func
10569
7a197a62
AK
10570/* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10573#ifdef __cplusplus
10574extern "C"
ad6254c5 10575#endif
ad6254c5
AK
10576char $ac_func ();
10577/* The GNU C library defines this for functions which it implements
10578 to always fail with ENOSYS. Some functions are actually named
10579 something starting with __ and the normal name is an alias. */
7a197a62 10580#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10581choke me
ad6254c5 10582#endif
80992638 10583
ad6254c5
AK
10584int
10585main ()
10586{
7a197a62 10587return $ac_func ();
ad6254c5
AK
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10593if { (ac_try="$ac_link"
10594case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597esac
66e941e8
JM
10598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10599$as_echo "$ac_try_echo") >&5
7a197a62 10600 (eval "$ac_link") 2>conftest.er1
ad6254c5 10601 ac_status=$?
8a2fc586
AK
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
66e941e8 10605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
ad6254c5 10611 eval "$as_ac_var=yes"
036f273a 10612else
66e941e8 10613 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10614sed 's/^/| /' conftest.$ac_ext >&5
10615
7a197a62 10616 eval "$as_ac_var=no"
036f273a 10617fi
7a197a62
AK
10618
10619rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10620 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10621fi
66e941e8
JM
10622ac_res=`eval 'as_val=${'$as_ac_var'}
10623 $as_echo "$as_val"'`
10624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10625$as_echo "$ac_res" >&6; }
10626if test `eval 'as_val=${'$as_ac_var'}
10627 $as_echo "$as_val"'` = yes; then
ad6254c5 10628 cat >>confdefs.h <<_ACEOF
66e941e8 10629#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10630_ACEOF
036f273a 10631
ad6254c5 10632else
66e941e8
JM
10633 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10634$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10635 { (exit 1); exit 1; }; }
10636fi
10637done
036f273a 10638
036f273a 10639fi
d68a82ec 10640
ad6254c5
AK
10641if test x$CLUSTER != xnone; then
10642
10643
10644for ac_header in sys/socket.h sys/un.h
b896caa1 10645do
66e941e8 10646as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
10648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10649$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10651 $as_echo_n "(cached) " >&6
ad6254c5 10652fi
66e941e8
JM
10653ac_res=`eval 'as_val=${'$as_ac_Header'}
10654 $as_echo "$as_val"'`
10655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10656$as_echo "$ac_res" >&6; }
ad6254c5
AK
10657else
10658 # Is the header compilable?
66e941e8
JM
10659{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10660$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10661cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667$ac_includes_default
10668#include <$ac_header>
10669_ACEOF
10670rm -f conftest.$ac_objext
7a197a62
AK
10671if { (ac_try="$ac_compile"
10672case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
66e941e8
JM
10676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677$as_echo "$ac_try_echo") >&5
7a197a62 10678 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10679 ac_status=$?
8a2fc586
AK
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
66e941e8 10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10688 ac_header_compiler=yes
10689else
66e941e8 10690 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
7a197a62 10693 ac_header_compiler=no
ad6254c5 10694fi
7a197a62
AK
10695
10696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
10697{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10698$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10699
10700# Is the header present?
66e941e8
JM
10701{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10702$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10703cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
10709#include <$ac_header>
10710_ACEOF
7a197a62
AK
10711if { (ac_try="$ac_cpp conftest.$ac_ext"
10712case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715esac
66e941e8
JM
10716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717$as_echo "$ac_try_echo") >&5
7a197a62 10718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
66e941e8 10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10724 (exit $ac_status); } >/dev/null && {
10725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 }; then
ad6254c5
AK
10728 ac_header_preproc=yes
10729else
66e941e8 10730 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 ac_header_preproc=no
10734fi
7a197a62 10735
ad6254c5 10736rm -f conftest.err conftest.$ac_ext
66e941e8
JM
10737{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10738$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10739
10740# So? What about this header?
8a2fc586
AK
10741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10742 yes:no: )
66e941e8
JM
10743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10744$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10746$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10747 ac_header_preproc=yes
ad6254c5 10748 ;;
8a2fc586 10749 no:yes:* )
66e941e8
JM
10750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10751$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10753$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10755$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10757$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10759$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10761$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10762
ad6254c5
AK
10763 ;;
10764esac
66e941e8
JM
10765{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10766$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10768 $as_echo_n "(cached) " >&6
ad6254c5 10769else
8a2fc586 10770 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10771fi
66e941e8
JM
10772ac_res=`eval 'as_val=${'$as_ac_Header'}
10773 $as_echo "$as_val"'`
10774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10775$as_echo "$ac_res" >&6; }
ad6254c5
AK
10776
10777fi
66e941e8
JM
10778if test `eval 'as_val=${'$as_ac_Header'}
10779 $as_echo "$as_val"'` = yes; then
ad6254c5 10780 cat >>confdefs.h <<_ACEOF
66e941e8 10781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10782_ACEOF
10783
80992638 10784else
66e941e8
JM
10785 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10786$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 10787 { (exit 1); exit 1; }; }
b896caa1 10788fi
ad6254c5 10789
b896caa1
AK
10790done
10791
10792
ad6254c5
AK
10793for ac_func in socket
10794do
66e941e8
JM
10795as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10796{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10797$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10799 $as_echo_n "(cached) " >&6
795ca3e5 10800else
ad6254c5 10801 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10802/* confdefs.h. */
10803_ACEOF
10804cat confdefs.h >>conftest.$ac_ext
10805cat >>conftest.$ac_ext <<_ACEOF
10806/* end confdefs.h. */
8a2fc586
AK
10807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10809#define $ac_func innocuous_$ac_func
10810
ad6254c5
AK
10811/* System header to define __stub macros and hopefully few prototypes,
10812 which can conflict with char $ac_func (); below.
10813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10814 <limits.h> exists even on freestanding compilers. */
8a2fc586 10815
ad6254c5
AK
10816#ifdef __STDC__
10817# include <limits.h>
10818#else
10819# include <assert.h>
10820#endif
8a2fc586
AK
10821
10822#undef $ac_func
10823
7a197a62
AK
10824/* Override any GCC internal prototype to avoid an error.
10825 Use char because int might match the return type of a GCC
10826 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10827#ifdef __cplusplus
10828extern "C"
ad6254c5 10829#endif
ad6254c5
AK
10830char $ac_func ();
10831/* The GNU C library defines this for functions which it implements
10832 to always fail with ENOSYS. Some functions are actually named
10833 something starting with __ and the normal name is an alias. */
7a197a62 10834#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10835choke me
ad6254c5
AK
10836#endif
10837
10838int
10839main ()
10840{
7a197a62 10841return $ac_func ();
ad6254c5
AK
10842 ;
10843 return 0;
10844}
10845_ACEOF
10846rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10847if { (ac_try="$ac_link"
10848case "(($ac_try" in
10849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10851esac
66e941e8
JM
10852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10853$as_echo "$ac_try_echo") >&5
7a197a62 10854 (eval "$ac_link") 2>conftest.er1
ad6254c5 10855 ac_status=$?
8a2fc586
AK
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
66e941e8 10859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest$ac_exeext &&
10864 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10865 eval "$as_ac_var=yes"
10866else
66e941e8 10867 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10868sed 's/^/| /' conftest.$ac_ext >&5
10869
7a197a62 10870 eval "$as_ac_var=no"
ad6254c5 10871fi
7a197a62
AK
10872
10873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10874 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10875fi
66e941e8
JM
10876ac_res=`eval 'as_val=${'$as_ac_var'}
10877 $as_echo "$as_val"'`
10878 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10879$as_echo "$ac_res" >&6; }
10880if test `eval 'as_val=${'$as_ac_var'}
10881 $as_echo "$as_val"'` = yes; then
ad6254c5 10882 cat >>confdefs.h <<_ACEOF
66e941e8 10883#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10884_ACEOF
10885
10886else
66e941e8
JM
10887 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
10888$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10889 { (exit 1); exit 1; }; }
10890fi
10891done
10892
10893fi
10894
10895if test x$HAVE_LIBDL = xyes; then
10896
10897for ac_header in dlfcn.h
10898do
66e941e8 10899as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
10901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10902$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 10904 $as_echo_n "(cached) " >&6
ad6254c5 10905fi
66e941e8
JM
10906ac_res=`eval 'as_val=${'$as_ac_Header'}
10907 $as_echo "$as_val"'`
10908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10909$as_echo "$ac_res" >&6; }
ad6254c5
AK
10910else
10911 # Is the header compilable?
66e941e8
JM
10912{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10913$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 10914cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10915/* confdefs.h. */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */
10920$ac_includes_default
10921#include <$ac_header>
10922_ACEOF
10923rm -f conftest.$ac_objext
7a197a62
AK
10924if { (ac_try="$ac_compile"
10925case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928esac
66e941e8
JM
10929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930$as_echo "$ac_try_echo") >&5
7a197a62 10931 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10932 ac_status=$?
8a2fc586
AK
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
66e941e8 10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10941 ac_header_compiler=yes
10942else
66e941e8 10943 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
7a197a62 10946 ac_header_compiler=no
ad6254c5 10947fi
7a197a62
AK
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
10950{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10951$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
10952
10953# Is the header present?
66e941e8
JM
10954{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10955$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 10956cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10957/* confdefs.h. */
10958_ACEOF
10959cat confdefs.h >>conftest.$ac_ext
10960cat >>conftest.$ac_ext <<_ACEOF
10961/* end confdefs.h. */
10962#include <$ac_header>
10963_ACEOF
7a197a62
AK
10964if { (ac_try="$ac_cpp conftest.$ac_ext"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
66e941e8
JM
10969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970$as_echo "$ac_try_echo") >&5
7a197a62 10971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
66e941e8 10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
10977 (exit $ac_status); } >/dev/null && {
10978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 }; then
ad6254c5
AK
10981 ac_header_preproc=yes
10982else
66e941e8 10983 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10984sed 's/^/| /' conftest.$ac_ext >&5
10985
10986 ac_header_preproc=no
10987fi
7a197a62 10988
ad6254c5 10989rm -f conftest.err conftest.$ac_ext
66e941e8
JM
10990{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10991$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10992
10993# So? What about this header?
8a2fc586
AK
10994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10995 yes:no: )
66e941e8
JM
10996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10997$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10999$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11000 ac_header_preproc=yes
ad6254c5 11001 ;;
8a2fc586 11002 no:yes:* )
66e941e8
JM
11003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11004$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11006$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11008$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11010$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11012$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11014$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11015
ad6254c5
AK
11016 ;;
11017esac
66e941e8
JM
11018{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11019$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11021 $as_echo_n "(cached) " >&6
ad6254c5 11022else
8a2fc586 11023 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11024fi
66e941e8
JM
11025ac_res=`eval 'as_val=${'$as_ac_Header'}
11026 $as_echo "$as_val"'`
11027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11028$as_echo "$ac_res" >&6; }
80992638 11029
8106cdd5 11030fi
66e941e8
JM
11031if test `eval 'as_val=${'$as_ac_Header'}
11032 $as_echo "$as_val"'` = yes; then
ad6254c5 11033 cat >>confdefs.h <<_ACEOF
66e941e8 11034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11035_ACEOF
795ca3e5
AK
11036
11037else
66e941e8
JM
11038 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11039$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11040 { (exit 1); exit 1; }; }
795ca3e5
AK
11041fi
11042
ad6254c5 11043done
80992638 11044
ad6254c5 11045fi
80992638 11046
ad6254c5 11047if test x$INTL = xyes; then
83912faa 11048
ad6254c5
AK
11049for ac_header in libintl.h
11050do
66e941e8 11051as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
11053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11054$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11056 $as_echo_n "(cached) " >&6
ad6254c5 11057fi
66e941e8
JM
11058ac_res=`eval 'as_val=${'$as_ac_Header'}
11059 $as_echo "$as_val"'`
11060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11061$as_echo "$ac_res" >&6; }
83912faa 11062else
ad6254c5 11063 # Is the header compilable?
66e941e8
JM
11064{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11065$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11066cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072$ac_includes_default
11073#include <$ac_header>
11074_ACEOF
11075rm -f conftest.$ac_objext
7a197a62
AK
11076if { (ac_try="$ac_compile"
11077case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080esac
66e941e8
JM
11081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11082$as_echo "$ac_try_echo") >&5
7a197a62 11083 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11084 ac_status=$?
8a2fc586
AK
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
66e941e8 11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11089 (exit $ac_status); } && {
11090 test -z "$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11093 ac_header_compiler=yes
11094else
66e941e8 11095 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
7a197a62 11098 ac_header_compiler=no
ad6254c5 11099fi
7a197a62
AK
11100
11101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
11102{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11104
11105# Is the header present?
66e941e8
JM
11106{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11108cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114#include <$ac_header>
11115_ACEOF
7a197a62
AK
11116if { (ac_try="$ac_cpp conftest.$ac_ext"
11117case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120esac
66e941e8
JM
11121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122$as_echo "$ac_try_echo") >&5
7a197a62 11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
66e941e8 11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11129 (exit $ac_status); } >/dev/null && {
11130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 }; then
ad6254c5
AK
11133 ac_header_preproc=yes
11134else
66e941e8 11135 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_header_preproc=no
11139fi
7a197a62 11140
ad6254c5 11141rm -f conftest.err conftest.$ac_ext
66e941e8
JM
11142{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11143$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11144
11145# So? What about this header?
8a2fc586
AK
11146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11147 yes:no: )
66e941e8
JM
11148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11149$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11151$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11152 ac_header_preproc=yes
ad6254c5 11153 ;;
8a2fc586 11154 no:yes:* )
66e941e8
JM
11155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11156$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11158$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11160$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11162$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11164$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11166$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11167
ad6254c5
AK
11168 ;;
11169esac
66e941e8
JM
11170{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11171$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11173 $as_echo_n "(cached) " >&6
80992638 11174else
8a2fc586 11175 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11176fi
66e941e8
JM
11177ac_res=`eval 'as_val=${'$as_ac_Header'}
11178 $as_echo "$as_val"'`
11179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11180$as_echo "$ac_res" >&6; }
83912faa 11181
69792976 11182fi
66e941e8
JM
11183if test `eval 'as_val=${'$as_ac_Header'}
11184 $as_echo "$as_val"'` = yes; then
ad6254c5 11185 cat >>confdefs.h <<_ACEOF
66e941e8 11186#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11187_ACEOF
69792976 11188
69792976 11189else
66e941e8
JM
11190 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11191$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11192 { (exit 1); exit 1; }; }
80992638
AK
11193fi
11194
ad6254c5 11195done
69792976 11196
ad6254c5
AK
11197fi
11198
ad6254c5
AK
11199
11200for ac_header in libdevmapper.h
11201do
66e941e8 11202as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
11204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11205$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11207 $as_echo_n "(cached) " >&6
ad6254c5 11208fi
66e941e8
JM
11209ac_res=`eval 'as_val=${'$as_ac_Header'}
11210 $as_echo "$as_val"'`
11211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11212$as_echo "$ac_res" >&6; }
69792976 11213else
ad6254c5 11214 # Is the header compilable?
66e941e8
JM
11215{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11216$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11217cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
11223$ac_includes_default
11224#include <$ac_header>
11225_ACEOF
11226rm -f conftest.$ac_objext
7a197a62
AK
11227if { (ac_try="$ac_compile"
11228case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231esac
66e941e8
JM
11232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11233$as_echo "$ac_try_echo") >&5
7a197a62 11234 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11235 ac_status=$?
8a2fc586
AK
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
66e941e8 11239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11240 (exit $ac_status); } && {
11241 test -z "$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11243 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11244 ac_header_compiler=yes
11245else
66e941e8 11246 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
7a197a62 11249 ac_header_compiler=no
ad6254c5 11250fi
7a197a62
AK
11251
11252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
11253{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11254$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11255
11256# Is the header present?
66e941e8
JM
11257{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11258$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11259cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
11265#include <$ac_header>
11266_ACEOF
7a197a62
AK
11267if { (ac_try="$ac_cpp conftest.$ac_ext"
11268case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271esac
66e941e8
JM
11272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11273$as_echo "$ac_try_echo") >&5
7a197a62 11274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
66e941e8 11279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11280 (exit $ac_status); } >/dev/null && {
11281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 }; then
ad6254c5
AK
11284 ac_header_preproc=yes
11285else
66e941e8 11286 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11287sed 's/^/| /' conftest.$ac_ext >&5
11288
11289 ac_header_preproc=no
11290fi
7a197a62 11291
ad6254c5 11292rm -f conftest.err conftest.$ac_ext
66e941e8
JM
11293{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11295
11296# So? What about this header?
8a2fc586
AK
11297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11298 yes:no: )
66e941e8
JM
11299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11300$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11302$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11303 ac_header_preproc=yes
ad6254c5 11304 ;;
8a2fc586 11305 no:yes:* )
66e941e8
JM
11306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11311$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11313$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11315$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11317$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11318
ad6254c5
AK
11319 ;;
11320esac
66e941e8
JM
11321{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11322$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11324 $as_echo_n "(cached) " >&6
69792976 11325else
8a2fc586 11326 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11327fi
66e941e8
JM
11328ac_res=`eval 'as_val=${'$as_ac_Header'}
11329 $as_echo "$as_val"'`
11330 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11331$as_echo "$ac_res" >&6; }
69792976 11332
ad6254c5 11333fi
66e941e8
JM
11334if test `eval 'as_val=${'$as_ac_Header'}
11335 $as_echo "$as_val"'` = yes; then
ad6254c5 11336 cat >>confdefs.h <<_ACEOF
66e941e8 11337#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11338_ACEOF
69792976 11339
69792976 11340else
66e941e8
JM
11341 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11342$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11343 { (exit 1); exit 1; }; }
83912faa
AK
11344fi
11345
ad6254c5
AK
11346done
11347
4a7f3eb2 11348
ad6254c5
AK
11349if test x$HAVE_SELINUX = xyes; then
11350
11351for ac_header in selinux/selinux.h
11352do
66e941e8 11353as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8
JM
11355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11356$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11358 $as_echo_n "(cached) " >&6
ad6254c5 11359fi
66e941e8
JM
11360ac_res=`eval 'as_val=${'$as_ac_Header'}
11361 $as_echo "$as_val"'`
11362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11363$as_echo "$ac_res" >&6; }
4a7f3eb2 11364else
ad6254c5 11365 # Is the header compilable?
66e941e8
JM
11366{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11367$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 11368cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11369/* confdefs.h. */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h. */
11374$ac_includes_default
11375#include <$ac_header>
11376_ACEOF
11377rm -f conftest.$ac_objext
7a197a62
AK
11378if { (ac_try="$ac_compile"
11379case "(($ac_try" in
11380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11382esac
66e941e8
JM
11383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384$as_echo "$ac_try_echo") >&5
7a197a62 11385 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11386 ac_status=$?
8a2fc586
AK
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
66e941e8 11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11395 ac_header_compiler=yes
11396else
66e941e8 11397 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
7a197a62 11400 ac_header_compiler=no
ad6254c5 11401fi
7a197a62
AK
11402
11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66e941e8
JM
11404{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
11406
11407# Is the header present?
66e941e8
JM
11408{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 11410cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416#include <$ac_header>
11417_ACEOF
7a197a62
AK
11418if { (ac_try="$ac_cpp conftest.$ac_ext"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
66e941e8
JM
11423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11424$as_echo "$ac_try_echo") >&5
7a197a62 11425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
66e941e8 11430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7a197a62
AK
11431 (exit $ac_status); } >/dev/null && {
11432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 }; then
ad6254c5
AK
11435 ac_header_preproc=yes
11436else
66e941e8 11437 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_header_preproc=no
11441fi
7a197a62 11442
ad6254c5 11443rm -f conftest.err conftest.$ac_ext
66e941e8
JM
11444{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
11446
11447# So? What about this header?
8a2fc586
AK
11448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449 yes:no: )
66e941e8
JM
11450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11454 ac_header_preproc=yes
ad6254c5 11455 ;;
8a2fc586 11456 no:yes:* )
66e941e8
JM
11457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11460$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11464$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11469
ad6254c5
AK
11470 ;;
11471esac
66e941e8
JM
11472{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11473$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 11474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66e941e8 11475 $as_echo_n "(cached) " >&6
ad6254c5 11476else
8a2fc586 11477 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11478fi
66e941e8
JM
11479ac_res=`eval 'as_val=${'$as_ac_Header'}
11480 $as_echo "$as_val"'`
11481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11482$as_echo "$ac_res" >&6; }
4a7f3eb2 11483
ad6254c5 11484fi
66e941e8
JM
11485if test `eval 'as_val=${'$as_ac_Header'}
11486 $as_echo "$as_val"'` = yes; then
ad6254c5 11487 cat >>confdefs.h <<_ACEOF
66e941e8 11488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11489_ACEOF
0a62c911 11490
0a62c911 11491else
66e941e8
JM
11492 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11493$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 11494 { (exit 1); exit 1; }; }
80992638
AK
11495fi
11496
ad6254c5 11497done
0a62c911 11498
ad6254c5 11499fi
0a62c911 11500
a653923f
AK
11501################################################################################
11502# Extract the first word of "modprobe", so it can be a program name with args.
11503set dummy modprobe; ac_word=$2
66e941e8
JM
11504{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 11506if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
66e941e8 11507 $as_echo_n "(cached) " >&6
72b2cb61
AK
11508else
11509 case $MODPROBE_CMD in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11512 ;;
11513 *)
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
7a197a62 11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11521 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
66e941e8 11522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11523 break 2
11524 fi
11525done
11526done
7a197a62 11527IFS=$as_save_IFS
72b2cb61
AK
11528
11529 ;;
11530esac
11531fi
11532MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11533if test -n "$MODPROBE_CMD"; then
66e941e8
JM
11534 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11535$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 11536else
66e941e8
JM
11537 { $as_echo "$as_me:$LINENO: result: no" >&5
11538$as_echo "no" >&6; }
72b2cb61
AK
11539fi
11540
a653923f 11541
7a197a62 11542
a653923f 11543if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11544
11545cat >>confdefs.h <<_ACEOF
11546#define MODPROBE_CMD "$MODPROBE_CMD"
11547_ACEOF
11548
a653923f
AK
11549fi
11550
80992638 11551################################################################################
fae0c576
AK
11552if test "-f VERSION"; then
11553 LVM_VERSION="\"`cat VERSION`\""
11554else
11555 LVM_VERSION="Unknown"
11556fi
11557
80992638 11558################################################################################
fae0c576 11559
83912faa 11560
795ca3e5
AK
11561
11562
11563
11564
11565
11566
5a52dca9 11567
8ef2b021 11568
199e490e 11569
69792976
AK
11570
11571
11572
11573
8106cdd5
AK
11574
11575
11576
11577
11578
d68a82ec 11579
036f273a 11580
7d1552c9 11581
8106cdd5 11582
0a62c911 11583
8106cdd5 11584
4a7f3eb2 11585
4922197a
AK
11586
11587
d8ac0fbc 11588
1a9ea74d 11589
8a2fc586
AK
11590
11591
11592
8ce0cbda 11593
8b1a3214 11594
33f732c5 11595
66e941e8 11596
d3c8211f
AK
11597
11598
80992638 11599################################################################################
d3a356b4 11600ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile"
7a197a62 11601
ad6254c5 11602cat >confcache <<\_ACEOF
795ca3e5
AK
11603# This file is a shell script that caches the results of configure
11604# tests run on this system so they can be shared between configure
ad6254c5
AK
11605# scripts and configure runs, see configure's option --config-cache.
11606# It is not useful on other systems. If it contains results you don't
11607# want to keep, you may remove or edit it.
795ca3e5 11608#
ad6254c5
AK
11609# config.status only pays attention to the cache file if you give it
11610# the --recheck option to rerun configure.
795ca3e5 11611#
ad6254c5
AK
11612# `ac_cv_env_foo' variables (set or unset) will be overridden when
11613# loading this file, other *unset* `ac_cv_foo' will be assigned the
11614# following values.
11615
11616_ACEOF
11617
795ca3e5
AK
11618# The following way of writing the cache mishandles newlines in values,
11619# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11620# So, we kill variables containing newlines.
795ca3e5
AK
11621# Ultrix sh set writes to stderr and can't be redirected directly,
11622# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11623(
11624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11625 eval ac_val=\$$ac_var
11626 case $ac_val in #(
11627 *${as_nl}*)
11628 case $ac_var in #(
66e941e8
JM
11629 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11630$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11631 esac
11632 case $ac_var in #(
11633 _ | IFS | as_nl) ;; #(
66e941e8 11634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
11635 *) $as_unset $ac_var ;;
11636 esac ;;
11637 esac
11638 done
11639
ad6254c5 11640 (set) 2>&1 |
7a197a62
AK
11641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11642 *${as_nl}ac_space=\ *)
ad6254c5
AK
11643 # `set' does not quote correctly, so add quotes (double-quote
11644 # substitution turns \\\\ into \\, and sed turns \\ into \).
11645 sed -n \
8a2fc586
AK
11646 "s/'/'\\\\''/g;
11647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11648 ;; #(
ad6254c5
AK
11649 *)
11650 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11652 ;;
7a197a62
AK
11653 esac |
11654 sort
11655) |
ad6254c5 11656 sed '
7a197a62 11657 /^ac_cv_env_/b end
ad6254c5 11658 t clear
7a197a62 11659 :clear
ad6254c5
AK
11660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11661 t end
7a197a62
AK
11662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11663 :end' >>confcache
11664if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11665 if test -w "$cache_file"; then
11666 test "x$cache_file" != "x/dev/null" &&
66e941e8
JM
11667 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11668$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11669 cat confcache >$cache_file
795ca3e5 11670 else
66e941e8
JM
11671 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11672$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11673 fi
11674fi
11675rm -f confcache
11676
795ca3e5
AK
11677test "x$prefix" = xNONE && prefix=$ac_default_prefix
11678# Let make expand exec_prefix.
11679test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11680
72b2cb61 11681DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11682
11683ac_libobjs=
11684ac_ltlibobjs=
11685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11686 # 1. Remove the extension, and $U if already installed.
7a197a62 11687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
66e941e8 11688 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11690 # will be set to the directory where LIBOBJS objects are built.
11691 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11692 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11693done
11694LIBOBJS=$ac_libobjs
80992638 11695
ad6254c5
AK
11696LTLIBOBJS=$ac_ltlibobjs
11697
11698
11699
11700: ${CONFIG_STATUS=./config.status}
11701ac_clean_files_save=$ac_clean_files
11702ac_clean_files="$ac_clean_files $CONFIG_STATUS"
66e941e8
JM
11703{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11704$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
ad6254c5
AK
11705cat >$CONFIG_STATUS <<_ACEOF
11706#! $SHELL
11707# Generated by $as_me.
795ca3e5 11708# Run this file to recreate the current configuration.
795ca3e5 11709# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11710# configure, is in config.log if it exists.
11711
11712debug=false
11713ac_cs_recheck=false
11714ac_cs_silent=false
11715SHELL=\${CONFIG_SHELL-$SHELL}
11716_ACEOF
11717
11718cat >>$CONFIG_STATUS <<\_ACEOF
11719## --------------------- ##
11720## M4sh Initialization. ##
11721## --------------------- ##
11722
7a197a62
AK
11723# Be more Bourne compatible
11724DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11726 emulate sh
11727 NULLCMD=:
11728 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11729 # is contrary to our usage. Disable this feature.
11730 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11731 setopt NO_GLOB_SUBST
11732else
11733 case `(set -o) 2>/dev/null` in
11734 *posix*) set -o posix ;;
11735esac
11736
11737fi
11738
11739
11740
11741
11742# PATH needs CR
11743# Avoid depending upon Character Ranges.
11744as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11745as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11746as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11747as_cr_digits='0123456789'
11748as_cr_alnum=$as_cr_Letters$as_cr_digits
11749
66e941e8
JM
11750as_nl='
11751'
11752export as_nl
11753# Printing a long string crashes Solaris 7 /usr/bin/printf.
11754as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11755as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11756as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11757if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11758 as_echo='printf %s\n'
11759 as_echo_n='printf %s'
11760else
11761 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11762 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11763 as_echo_n='/usr/ucb/echo -n'
11764 else
11765 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11766 as_echo_n_body='eval
11767 arg=$1;
11768 case $arg in
11769 *"$as_nl"*)
11770 expr "X$arg" : "X\\(.*\\)$as_nl";
11771 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11772 esac;
11773 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11774 '
11775 export as_echo_n_body
11776 as_echo_n='sh -c $as_echo_n_body as_echo'
11777 fi
11778 export as_echo_body
11779 as_echo='sh -c $as_echo_body as_echo'
11780fi
11781
7a197a62
AK
11782# The user is always right.
11783if test "${PATH_SEPARATOR+set}" != set; then
11784 echo "#! /bin/sh" >conf$$.sh
11785 echo "exit 0" >>conf$$.sh
11786 chmod +x conf$$.sh
11787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11788 PATH_SEPARATOR=';'
11789 else
11790 PATH_SEPARATOR=:
11791 fi
11792 rm -f conf$$.sh
ad6254c5
AK
11793fi
11794
11795# Support unset when possible.
8a2fc586 11796if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11797 as_unset=unset
11798else
11799 as_unset=false
11800fi
8106cdd5 11801
ad6254c5 11802
7a197a62
AK
11803# IFS
11804# We need space, tab and new line, in precisely that order. Quoting is
11805# there to prevent editors from complaining about space-tab.
11806# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11807# splitting by setting IFS to empty value.)
7a197a62
AK
11808IFS=" "" $as_nl"
11809
11810# Find who we are. Look in the path if we contain no directory separator.
11811case $0 in
11812 *[\\/]* ) as_myself=$0 ;;
11813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814for as_dir in $PATH
11815do
11816 IFS=$as_save_IFS
11817 test -z "$as_dir" && as_dir=.
11818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11819done
11820IFS=$as_save_IFS
11821
11822 ;;
11823esac
11824# We did not find ourselves, most probably we were run as `sh COMMAND'
11825# in which case we are not to be found in the path.
11826if test "x$as_myself" = x; then
11827 as_myself=$0
11828fi
11829if test ! -f "$as_myself"; then
66e941e8 11830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11831 { (exit 1); exit 1; }
11832fi
11833
ad6254c5 11834# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11835for as_var in ENV MAIL MAILPATH
11836do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11837done
ad6254c5
AK
11838PS1='$ '
11839PS2='> '
11840PS4='+ '
11841
11842# NLS nuisances.
11843for as_var in \
11844 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11845 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11846 LC_TELEPHONE LC_TIME
8106cdd5 11847do
8a2fc586 11848 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11849 eval $as_var=C; export $as_var
11850 else
7a197a62 11851 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5 11852 fi
8106cdd5
AK
11853done
11854
ad6254c5 11855# Required to use basename.
7a197a62
AK
11856if expr a : '\(a\)' >/dev/null 2>&1 &&
11857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11858 as_expr=expr
11859else
11860 as_expr=false
11861fi
8106cdd5 11862
7a197a62 11863if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11864 as_basename=basename
11865else
11866 as_basename=false
11867fi
11868
11869
11870# Name of the executable.
7a197a62 11871as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11872$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11873 X"$0" : 'X\(//\)$' \| \
7a197a62 11874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66e941e8 11875$as_echo X/"$0" |
7a197a62
AK
11876 sed '/^.*\/\([^/][^/]*\)\/*$/{
11877 s//\1/
11878 q
11879 }
11880 /^X\/\(\/\/\)$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\/\(\/\).*/{
11885 s//\1/
11886 q
11887 }
11888 s/.*/./; q'`
ad6254c5 11889
7a197a62
AK
11890# CDPATH.
11891$as_unset CDPATH
ad6254c5
AK
11892
11893
ad6254c5 11894
ad6254c5
AK
11895 as_lineno_1=$LINENO
11896 as_lineno_2=$LINENO
ad6254c5 11897 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11898 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11899
ad6254c5
AK
11900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11901 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11902 # line-number line after each line using $LINENO; the second 'sed'
11903 # does the real work. The second script uses 'N' to pair each
11904 # line-number line with the line containing $LINENO, and appends
11905 # trailing '-' during substitution so that $LINENO is not a special
11906 # case at line end.
ad6254c5 11907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11908 # scripts with optimization help from Paolo Bonzini. Blame Lee
11909 # E. McMahon (1931-1989) for sed's syntax. :-)
11910 sed -n '
11911 p
11912 /[$]LINENO/=
11913 ' <$as_myself |
ad6254c5 11914 sed '
7a197a62
AK
11915 s/[$]LINENO.*/&-/
11916 t lineno
11917 b
11918 :lineno
ad6254c5 11919 N
7a197a62
AK
11920 :loop
11921 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11922 t loop
7a197a62 11923 s/-\n.*//
ad6254c5 11924 ' >$as_me.lineno &&
7a197a62 11925 chmod +x "$as_me.lineno" ||
66e941e8 11926 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11927 { (exit 1); exit 1; }; }
11928
11929 # Don't try to exec as it changes $[0], causing all sort of problems
11930 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11931 # original and so on. Autoconf is especially sensitive to this).
11932 . "./$as_me.lineno"
ad6254c5
AK
11933 # Exit status is that of the last command.
11934 exit
11935}
11936
11937
7a197a62
AK
11938if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11939 as_dirname=dirname
11940else
11941 as_dirname=false
11942fi
11943
11944ECHO_C= ECHO_N= ECHO_T=
11945case `echo -n x` in
11946-n*)
11947 case `echo 'x\c'` in
11948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11949 *) ECHO_C='\c';;
11950 esac;;
11951*)
11952 ECHO_N='-n';;
ad6254c5 11953esac
7a197a62
AK
11954if expr a : '\(a\)' >/dev/null 2>&1 &&
11955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11956 as_expr=expr
11957else
11958 as_expr=false
11959fi
80992638 11960
ad6254c5 11961rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11962if test -d conf$$.dir; then
11963 rm -f conf$$.dir/conf$$.file
11964else
11965 rm -f conf$$.dir
11966 mkdir conf$$.dir
11967fi
ad6254c5
AK
11968echo >conf$$.file
11969if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
11970 as_ln_s='ln -s'
11971 # ... but there are two gotchas:
11972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11974 # In both cases, we have to default to `cp -p'.
11975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11976 as_ln_s='cp -p'
ad6254c5
AK
11977elif ln conf$$.file conf$$ 2>/dev/null; then
11978 as_ln_s=ln
11979else
11980 as_ln_s='cp -p'
11981fi
7a197a62
AK
11982rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983rmdir conf$$.dir 2>/dev/null
8106cdd5 11984
ad6254c5
AK
11985if mkdir -p . 2>/dev/null; then
11986 as_mkdir_p=:
11987else
8a2fc586 11988 test -d ./-p && rmdir ./-p
ad6254c5
AK
11989 as_mkdir_p=false
11990fi
11991
7a197a62
AK
11992if test -x / >/dev/null 2>&1; then
11993 as_test_x='test -x'
11994else
11995 if ls -dL / >/dev/null 2>&1; then
11996 as_ls_L_option=L
11997 else
11998 as_ls_L_option=
11999 fi
12000 as_test_x='
12001 eval sh -c '\''
12002 if test -d "$1"; then
12003 test -d "$1/.";
12004 else
12005 case $1 in
12006 -*)set "./$1";;
12007 esac;
12008 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12009 ???[sx]*):;;*)false;;esac;fi
12010 '\'' sh
12011 '
12012fi
12013as_executable_p=$as_test_x
ad6254c5
AK
12014
12015# Sed expression to map a string onto a valid CPP name.
8a2fc586 12016as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12017
12018# Sed expression to map a string onto a valid variable name.
8a2fc586 12019as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12020
12021
ad6254c5
AK
12022exec 6>&1
12023
7a197a62 12024# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12025# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12026# values after options handling.
12027ac_log="
ad6254c5 12028This file was extended by $as_me, which was
66e941e8 12029generated by GNU Autoconf 2.61a. Invocation command line was
ad6254c5
AK
12030
12031 CONFIG_FILES = $CONFIG_FILES
12032 CONFIG_HEADERS = $CONFIG_HEADERS
12033 CONFIG_LINKS = $CONFIG_LINKS
12034 CONFIG_COMMANDS = $CONFIG_COMMANDS
12035 $ $0 $@
12036
7a197a62
AK
12037on `(hostname || uname -n) 2>/dev/null | sed 1q`
12038"
12039
ad6254c5
AK
12040_ACEOF
12041
7a197a62 12042cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12043# Files that config.status was made for.
7a197a62
AK
12044config_files="$ac_config_files"
12045config_headers="$ac_config_headers"
ad6254c5 12046
7a197a62 12047_ACEOF
ad6254c5
AK
12048
12049cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12050ac_cs_usage="\
12051\`$as_me' instantiates files from templates according to the
12052current configuration.
12053
12054Usage: $0 [OPTIONS] [FILE]...
12055
12056 -h, --help print this help, then exit
7a197a62 12057 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12058 -q, --quiet do not print progress messages
12059 -d, --debug don't remove temporary files
12060 --recheck update $as_me by reconfiguring in the same conditions
12061 --file=FILE[:TEMPLATE]
8a2fc586 12062 instantiate the configuration file FILE
72b2cb61
AK
12063 --header=FILE[:TEMPLATE]
12064 instantiate the configuration header FILE
ad6254c5
AK
12065
12066Configuration files:
12067$config_files
12068
72b2cb61
AK
12069Configuration headers:
12070$config_headers
12071
ad6254c5 12072Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12073
7a197a62 12074_ACEOF
ad6254c5
AK
12075cat >>$CONFIG_STATUS <<_ACEOF
12076ac_cs_version="\\
12077config.status
66e941e8
JM
12078configured by $0, generated by GNU Autoconf 2.61a,
12079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12080
7a197a62 12081Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12082This config.status script is free software; the Free Software Foundation
12083gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12084
12085ac_pwd='$ac_pwd'
12086srcdir='$srcdir'
12087INSTALL='$INSTALL'
66e941e8
JM
12088AWK='$AWK'
12089test -n "\$AWK" || AWK=awk
ad6254c5
AK
12090_ACEOF
12091
12092cat >>$CONFIG_STATUS <<\_ACEOF
12093# If no file are specified by the user, then we need to provide default
12094# value. By we need to know if files were specified by the user.
12095ac_need_defaults=:
12096while test $# != 0
12097do
12098 case $1 in
12099 --*=*)
7a197a62
AK
12100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12102 ac_shift=:
12103 ;;
7a197a62 12104 *)
ad6254c5
AK
12105 ac_option=$1
12106 ac_optarg=$2
12107 ac_shift=shift
12108 ;;
ad6254c5
AK
12109 esac
12110
12111 case $ac_option in
12112 # Handling of the options.
ad6254c5
AK
12113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12114 ac_cs_recheck=: ;;
7a197a62 12115 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
66e941e8 12116 $as_echo "$ac_cs_version"; exit ;;
7a197a62 12117 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12118 debug=: ;;
12119 --file | --fil | --fi | --f )
12120 $ac_shift
12121 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12122 ac_need_defaults=false;;
12123 --header | --heade | --head | --hea )
12124 $ac_shift
12125 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12126 ac_need_defaults=false;;
7a197a62
AK
12127 --he | --h)
12128 # Conflict between --help and --header
66e941e8 12129 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12130Try \`$0 --help' for more information." >&2
12131 { (exit 1); exit 1; }; };;
12132 --help | --hel | -h )
66e941e8 12133 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12135 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12136 ac_cs_silent=: ;;
12137
12138 # This is an error.
66e941e8 12139 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 12140Try \`$0 --help' for more information." >&2
ad6254c5
AK
12141 { (exit 1); exit 1; }; } ;;
12142
7a197a62
AK
12143 *) ac_config_targets="$ac_config_targets $1"
12144 ac_need_defaults=false ;;
ad6254c5
AK
12145
12146 esac
12147 shift
12148done
12149
12150ac_configure_extra_args=
12151
12152if $ac_cs_silent; then
12153 exec 6>/dev/null
12154 ac_configure_extra_args="$ac_configure_extra_args --silent"
12155fi
12156
12157_ACEOF
12158cat >>$CONFIG_STATUS <<_ACEOF
12159if \$ac_cs_recheck; then
66e941e8
JM
12160 set X '$SHELL' '$0'$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12161 shift
12162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12163 CONFIG_SHELL='$SHELL'
7a197a62 12164 export CONFIG_SHELL
66e941e8 12165 exec "\$@"
ad6254c5
AK
12166fi
12167
12168_ACEOF
7a197a62
AK
12169cat >>$CONFIG_STATUS <<\_ACEOF
12170exec 5>>config.log
12171{
12172 echo
12173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12174## Running $as_me. ##
12175_ASBOX
66e941e8 12176 $as_echo "$ac_log"
7a197a62 12177} >&5
ad6254c5 12178
7a197a62
AK
12179_ACEOF
12180cat >>$CONFIG_STATUS <<_ACEOF
12181_ACEOF
ad6254c5
AK
12182
12183cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12184
12185# Handling of arguments.
ad6254c5
AK
12186for ac_config_target in $ac_config_targets
12187do
7a197a62
AK
12188 case $ac_config_target in
12189 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12191 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12192 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12193 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12194 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
12195 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
12196 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12197 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12198 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12199 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12200 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12201 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12202 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12203 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12204 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12205 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12206 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12207 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12208 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12209 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
12210 "tools/fsadm/Makefile") CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
7a197a62 12211
66e941e8
JM
12212 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12213$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12214 { (exit 1); exit 1; }; };;
80992638 12215 esac
ad6254c5
AK
12216done
12217
7a197a62 12218
ad6254c5
AK
12219# If the user did not use the arguments to specify the items to instantiate,
12220# then the envvar interface is used. Set only those that are not.
12221# We use the long form for the default assignment because of an extremely
12222# bizarre bug on SunOS 4.1.3.
12223if $ac_need_defaults; then
12224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12226fi
12227
12228# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12229# simply because there is no reason against having it here, and in addition,
ad6254c5 12230# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12231# Hook for its removal unless debugging.
12232# Note that there is a small window in which the directory will not be cleaned:
12233# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12234$debug ||
12235{
7a197a62
AK
12236 tmp=
12237 trap 'exit_status=$?
12238 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12239' 0
ad6254c5
AK
12240 trap '{ (exit 1); exit 1; }' 1 2 13 15
12241}
ad6254c5
AK
12242# Create a (secure) tmp directory for tmp files.
12243
12244{
7a197a62 12245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12246 test -n "$tmp" && test -d "$tmp"
12247} ||
12248{
7a197a62
AK
12249 tmp=./conf$$-$RANDOM
12250 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12251} ||
12252{
66e941e8 12253 $as_echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12254 { (exit 1); exit 1; }
12255}
12256
66e941e8
JM
12257# Set up the scripts for CONFIG_FILES section.
12258# No need to generate them if there are no CONFIG_FILES.
12259# This happens for instance with `./config.status config.h'.
7a197a62
AK
12260if test -n "$CONFIG_FILES"; then
12261
7a197a62 12262
66e941e8
JM
12263echo 'BEGIN {' >"$tmp/subs.awk"
12264_ACEOF
7a197a62
AK
12265
12266
66e941e8
JM
12267{
12268 echo "cat >conf$$subs.awk <<_ACEOF"
12269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/'
12270 echo "_ACEOF"
12271} >conf$$subs.sh
12272ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7a197a62
AK
12273ac_delim='%!_!# '
12274for ac_last_try in false false false false false :; do
66e941e8
JM
12275 . ./conf$$subs.sh
12276
12277 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
7a197a62
AK
12278 break
12279 elif $ac_last_try; then
66e941e8
JM
12280 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12281$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7a197a62
AK
12282 { (exit 1); exit 1; }; }
12283 else
12284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ad6254c5 12285 fi
7a197a62 12286done
66e941e8 12287rm -f conf$$subs.sh
7a197a62
AK
12288
12289cat >>$CONFIG_STATUS <<_ACEOF
66e941e8
JM
12290cat >>"\$tmp/subs.awk" <<\CEOF
12291_ACEOF
12292sed -n '
12293h
12294s/^/S["/; s/!.*/"]=/
12295p
12296g
12297s/^[^!]*!//
12298:repl
12299t repl
12300s/'"$ac_delim"'$//
12301t delim
12302:nl
12303h
12304s/\(.\{148\}\).*/\1/
12305t more1
12306s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12307p
12308n
12309b repl
12310:more1
12311s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12312p
12313g
12314s/.\{148\}//
12315t nl
12316:delim
12317h
12318s/\(.\{148\}\).*/\1/
12319t more2
12320s/["\\]/\\&/g; s/^/"/; s/$/"/
12321p
12322b
12323:more2
12324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12325p
12326g
12327s/.\{148\}//
12328t delim
12329' <conf$$subs.awk | sed '
12330/^[^"]/{
12331 N
12332 s/\n//
12333}
12334' >>$CONFIG_STATUS
12335rm -f conf$$subs.awk
7a197a62 12336cat >>$CONFIG_STATUS <<_ACEOF
66e941e8
JM
12337CEOF
12338cat >>"\$tmp/subs.awk" <<CEOF
12339 for (key in S) S_is_set[key] = 1
12340 FS = "\a"
7a197a62 12341
66e941e8
JM
12342}
12343{
12344 line = $ 0
12345 nfields = split(line, field, "@")
12346 substed = 0
12347 len = length(field[1])
12348 for (i = 2; i < nfields; i++) {
12349 key = field[i]
12350 keylen = length(key)
12351 if (S_is_set[key]) {
12352 value = S[key]
12353 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12354 len += length(value) + length(field[++i])
12355 substed = 1
12356 } else
12357 len += 1 + keylen
12358 }
8106cdd5 12359
66e941e8
JM
12360 print line
12361}
7a197a62 12362
66e941e8 12363CEOF
7a197a62
AK
12364_ACEOF
12365
7a197a62
AK
12366# VPATH may cause trouble with some makes, so we remove $(srcdir),
12367# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12368# trailing colons and then remove the whole line if VPATH becomes empty
12369# (actually we leave an empty line to preserve line numbers).
12370if test "x$srcdir" = x.; then
12371 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12372s/:*\$(srcdir):*/:/
12373s/:*\${srcdir}:*/:/
12374s/:*@srcdir@:*/:/
12375s/^\([^=]*=[ ]*\):*/\1/
12376s/:*$//
12377s/^[^=]*=[ ]*$//
12378}'
12379fi
12380
ad6254c5 12381cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12382fi # test -n "$CONFIG_FILES"
12383
12384
12385for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
12386do
12387 case $ac_tag in
12388 :[FHLC]) ac_mode=$ac_tag; continue;;
12389 esac
12390 case $ac_mode$ac_tag in
12391 :[FHL]*:*);;
66e941e8
JM
12392 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12393$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12394 { (exit 1); exit 1; }; };;
12395 :[FH]-) ac_tag=-:-;;
12396 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12397 esac
12398 ac_save_IFS=$IFS
12399 IFS=:
12400 set x $ac_tag
12401 IFS=$ac_save_IFS
12402 shift
12403 ac_file=$1
12404 shift
12405
12406 case $ac_mode in
12407 :L) ac_source=$1;;
12408 :[FH])
12409 ac_file_inputs=
12410 for ac_f
12411 do
12412 case $ac_f in
12413 -) ac_f="$tmp/stdin";;
12414 *) # Look for the file first in the build tree, then in the source tree
12415 # (if the path is not absolute). The absolute path cannot be DOS-style,
12416 # because $ac_f cannot contain `:'.
12417 test -f "$ac_f" ||
12418 case $ac_f in
12419 [\\/$]*) false;;
12420 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12421 esac ||
66e941e8
JM
12422 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12423$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12424 { (exit 1); exit 1; }; };;
12425 esac
12426 ac_file_inputs="$ac_file_inputs $ac_f"
12427 done
12428
12429 # Let's still pretend it is `configure' which instantiates (i.e., don't
12430 # use $as_me), people would be surprised to read:
12431 # /* config.h. Generated by config.status. */
66e941e8
JM
12432 configure_input='Generated from '`
12433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12434 `' by configure.'
7a197a62
AK
12435 if test x"$ac_file" != x-; then
12436 configure_input="$ac_file. $configure_input"
66e941e8
JM
12437 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12438$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12439 fi
12440
12441 case $ac_tag in
12442 *:-:* | *:-) cat >"$tmp/stdin";;
12443 esac
12444 ;;
80992638 12445 esac
8106cdd5 12446
7a197a62 12447 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12448$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12449 X"$ac_file" : 'X\(//\)[^/]' \| \
12450 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12451 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
66e941e8 12452$as_echo X"$ac_file" |
7a197a62
AK
12453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12454 s//\1/
12455 q
12456 }
12457 /^X\(\/\/\)[^/].*/{
12458 s//\1/
12459 q
12460 }
12461 /^X\(\/\/\)$/{
12462 s//\1/
12463 q
12464 }
12465 /^X\(\/\).*/{
12466 s//\1/
12467 q
12468 }
12469 s/.*/./; q'`
12470 { as_dir="$ac_dir"
12471 case $as_dir in #(
12472 -*) as_dir=./$as_dir;;
12473 esac
12474 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12475 as_dirs=
7a197a62
AK
12476 while :; do
12477 case $as_dir in #(
66e941e8 12478 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12479 *) as_qdir=$as_dir;;
12480 esac
12481 as_dirs="'$as_qdir' $as_dirs"
12482 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12483$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12484 X"$as_dir" : 'X\(//\)[^/]' \| \
12485 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12486 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
66e941e8 12487$as_echo X"$as_dir" |
7a197a62
AK
12488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12489 s//\1/
12490 q
12491 }
12492 /^X\(\/\/\)[^/].*/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)$/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\).*/{
12501 s//\1/
12502 q
12503 }
12504 s/.*/./; q'`
12505 test -d "$as_dir" && break
ad6254c5 12506 done
7a197a62 12507 test -z "$as_dirs" || eval "mkdir $as_dirs"
66e941e8
JM
12508 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12509$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12510 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12511 ac_builddir=.
12512
7a197a62
AK
12513case "$ac_dir" in
12514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12515*)
66e941e8 12516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12517 # A ".." for each directory in $ac_dir_suffix.
66e941e8 12518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12519 case $ac_top_builddir_sub in
12520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12522 esac ;;
12523esac
12524ac_abs_top_builddir=$ac_pwd
12525ac_abs_builddir=$ac_pwd$ac_dir_suffix
12526# for backward compatibility:
12527ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12528
12529case $srcdir in
7a197a62 12530 .) # We are building in place.
ad6254c5 12531 ac_srcdir=.
7a197a62
AK
12532 ac_top_srcdir=$ac_top_builddir_sub
12533 ac_abs_top_srcdir=$ac_pwd ;;
12534 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12535 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12536 ac_top_srcdir=$srcdir
12537 ac_abs_top_srcdir=$srcdir ;;
12538 *) # Relative name.
12539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12540 ac_top_srcdir=$ac_top_build_prefix$srcdir
12541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12542esac
7a197a62 12543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12544
ad6254c5 12545
7a197a62
AK
12546 case $ac_mode in
12547 :F)
12548 #
12549 # CONFIG_FILE
12550 #
ad6254c5
AK
12551
12552 case $INSTALL in
12553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12555 esac
7a197a62 12556_ACEOF
795ca3e5 12557
7a197a62
AK
12558cat >>$CONFIG_STATUS <<\_ACEOF
12559# If the template does not know about datarootdir, expand it.
12560# FIXME: This hack should be removed a few years after 2.60.
12561ac_datarootdir_hack=; ac_datarootdir_seen=
12562
12563case `sed -n '/datarootdir/ {
12564 p
12565 q
12566}
12567/@datadir@/p
12568/@docdir@/p
12569/@infodir@/p
12570/@localedir@/p
12571/@mandir@/p
12572' $ac_file_inputs` in
12573*datarootdir*) ac_datarootdir_seen=yes;;
12574*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
66e941e8
JM
12575 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12576$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12577_ACEOF
7a197a62
AK
12578cat >>$CONFIG_STATUS <<_ACEOF
12579 ac_datarootdir_hack='
12580 s&@datadir@&$datadir&g
12581 s&@docdir@&$docdir&g
12582 s&@infodir@&$infodir&g
12583 s&@localedir@&$localedir&g
12584 s&@mandir@&$mandir&g
12585 s&\\\${datarootdir}&$datarootdir&g' ;;
12586esac
12587_ACEOF
12588
12589# Neutralize VPATH when `$srcdir' = `.'.
12590# Shell code in configure.ac might set extrasub.
12591# FIXME: do we really want to maintain this feature?
ad6254c5
AK
12592cat >>$CONFIG_STATUS <<_ACEOF
12593 sed "$ac_vpsub
12594$extrasub
12595_ACEOF
12596cat >>$CONFIG_STATUS <<\_ACEOF
12597:t
12598/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7a197a62
AK
12599s&@configure_input@&$configure_input&;t t
12600s&@top_builddir@&$ac_top_builddir_sub&;t t
12601s&@srcdir@&$ac_srcdir&;t t
12602s&@abs_srcdir@&$ac_abs_srcdir&;t t
12603s&@top_srcdir@&$ac_top_srcdir&;t t
12604s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12605s&@builddir@&$ac_builddir&;t t
12606s&@abs_builddir@&$ac_abs_builddir&;t t
12607s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12608s&@INSTALL@&$ac_INSTALL&;t t
12609$ac_datarootdir_hack
66e941e8 12610" $ac_file_inputs | $AWK -f "$tmp/subs.awk" >$tmp/out
7a197a62
AK
12611
12612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12613 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
66e941e8 12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12616which seems to be undefined. Please make sure it is defined." >&5
66e941e8 12617$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12618which seems to be undefined. Please make sure it is defined." >&2;}
12619
12620 rm -f "$tmp/stdin"
72b2cb61 12621 case $ac_file in
7a197a62
AK
12622 -) cat "$tmp/out"; rm -f "$tmp/out";;
12623 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
72b2cb61 12624 esac
7a197a62
AK
12625 ;;
12626 :H)
12627 #
12628 # CONFIG_HEADER
12629 #
12630_ACEOF
12631
12632# Transform confdefs.h into a sed script `conftest.defines', that
12633# substitutes the proper values into config.h.in to produce config.h.
12634rm -f conftest.defines conftest.tail
12635# First, append a space to every undef/define line, to ease matching.
12636echo 's/$/ /' >conftest.defines
12637# Then, protect against being on the right side of a sed subst, or in
12638# an unquoted here document, in config.status. If some macros were
12639# called several times there might be several #defines for the same
12640# symbol, which is useless. But do not sort them, since the last
12641# AC_DEFINE must be honored.
12642ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12643# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12644# NAME is the cpp macro being defined, VALUE is the value it is being given.
12645# PARAMS is the parameter list in the macro definition--in most cases, it's
12646# just an empty string.
12647ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12648ac_dB='\\)[ (].*,\\1define\\2'
12649ac_dC=' '
12650ac_dD=' ,'
12651
12652uniq confdefs.h |
12653 sed -n '
12654 t rset
12655 :rset
12656 s/^[ ]*#[ ]*define[ ][ ]*//
12657 t ok
12658 d
12659 :ok
12660 s/[\\&,]/\\&/g
12661 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12662 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12663 ' >>conftest.defines
12664
12665# Remove the space that was appended to ease matching.
12666# Then replace #undef with comments. This is necessary, for
72b2cb61
AK
12667# example, in the case of _POSIX_SOURCE, which is predefined and required
12668# on some systems where configure will not decide to define it.
7a197a62
AK
12669# (The regexp can be short, since the line contains either #define or #undef.)
12670echo 's/ $//
12671s,^[ #]*u.*,/* & */,' >>conftest.defines
12672
12673# Break up conftest.defines:
12674ac_max_sed_lines=50
12675
12676# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12677# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12678# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12679# et cetera.
12680ac_in='$ac_file_inputs'
12681ac_out='"$tmp/out1"'
12682ac_nxt='"$tmp/out2"'
12683
12684while :
72b2cb61 12685do
7a197a62
AK
12686 # Write a here document:
12687 cat >>$CONFIG_STATUS <<_ACEOF
12688 # First, check the format of the line:
12689 cat >"\$tmp/defines.sed" <<\\CEOF
12690/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12691/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12692b
12693:def
12694_ACEOF
12695 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
72b2cb61 12696 echo 'CEOF
7a197a62
AK
12697 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12698 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12699 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12700 grep . conftest.tail >/dev/null || break
72b2cb61
AK
12701 rm -f conftest.defines
12702 mv conftest.tail conftest.defines
12703done
7a197a62 12704rm -f conftest.defines conftest.tail
72b2cb61 12705
7a197a62 12706echo "ac_result=$ac_in" >>$CONFIG_STATUS
72b2cb61 12707cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12708 if test x"$ac_file" != x-; then
66e941e8 12709 $as_echo "/* $configure_input */" >"$tmp/config.h"
7a197a62
AK
12710 cat "$ac_result" >>"$tmp/config.h"
12711 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
66e941e8
JM
12712 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12713$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12714 else
72b2cb61 12715 rm -f $ac_file
7a197a62 12716 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12717 fi
12718 else
66e941e8 12719 $as_echo "/* $configure_input */"
7a197a62 12720 cat "$ac_result"
72b2cb61 12721 fi
7a197a62
AK
12722 rm -f "$tmp/out12"
12723 ;;
12724
12725
12726 esac
12727
12728done # for ac_tag
795ca3e5 12729
795ca3e5 12730
ad6254c5
AK
12731{ (exit 0); exit 0; }
12732_ACEOF
795ca3e5 12733chmod +x $CONFIG_STATUS
ad6254c5
AK
12734ac_clean_files=$ac_clean_files_save
12735
12736
12737# configure is writing to config.log, and then calls config.status.
12738# config.status does its own redirection, appending to config.log.
12739# Unfortunately, on DOS this fails, as config.log is still kept open
12740# by configure, so config.status won't be able to write to it; its
12741# output is simply discarded. So we exec the FD to /dev/null,
12742# effectively closing config.log, so it can be properly (re)opened and
12743# appended to by config.status. When coming back to configure, we
12744# need to make the FD available again.
12745if test "$no_create" != yes; then
12746 ac_cs_success=:
12747 ac_config_status_args=
12748 test "$silent" = yes &&
12749 ac_config_status_args="$ac_config_status_args --quiet"
12750 exec 5>/dev/null
12751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12752 exec 5>>config.log
12753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12754 # would make configure fail if this is the last instruction.
12755 $ac_cs_success || { (exit 1); exit 1; }
12756fi
795ca3e5 12757
2dc95e1c
AK
12758
12759if test x$ODIRECT != xyes; then
66e941e8
JM
12760 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12761$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12762fi
809fae91
AK
12763
12764if test x$FSADM == xyes; then
66e941e8
JM
12765 { $as_echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12766$as_echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12767fi
06f62ad1
AK
12768
12769if test x$DMEVENTD == xyes; then
66e941e8
JM
12770 { $as_echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12771$as_echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 12772fi
This page took 1.596518 seconds and 5 git commands to generate.