]> sourceware.org Git - lvm2.git/blame - configure
Refactor some vginfo manipulation code.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
fc54be10 3# Generated by GNU Autoconf 2.60.
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
fc54be10 13# Be Bourne compatible
ad6254c5
AK
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
20 setopt NO_GLOB_SUBST
21else
fc54be10 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
7a197a62 23fi
fc54be10
AK
24BIN_SH=xpg4; export BIN_SH # for Tru64
25DUALCASE=1; export DUALCASE # for MKS sh
7a197a62
AK
26
27
28# PATH needs CR
29# Avoid depending upon Character Ranges.
30as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33as_cr_digits='0123456789'
34as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36# The user is always right.
37if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
ad6254c5
AK
47fi
48
49# Support unset when possible.
8a2fc586 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
51 as_unset=unset
52else
53 as_unset=false
54fi
55
56
7a197a62
AK
57# IFS
58# We need space, tab and new line, in precisely that order. Quoting is
59# there to prevent editors from complaining about space-tab.
60# (If _AS_PATH_WALK were called with IFS unset, it would disable word
61# splitting by setting IFS to empty value.)
1995c9ff
AK
62as_nl='
63'
7a197a62
AK
64IFS=" "" $as_nl"
65
66# Find who we are. Look in the path if we contain no directory separator.
67case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70for as_dir in $PATH
71do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75done
76IFS=$as_save_IFS
77
78 ;;
79esac
80# We did not find ourselves, most probably we were run as `sh COMMAND'
81# in which case we are not to be found in the path.
82if test "x$as_myself" = x; then
83 as_myself=$0
84fi
85if test ! -f "$as_myself"; then
1995c9ff 86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
87 { (exit 1); exit 1; }
88fi
89
ad6254c5 90# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
91for as_var in ENV MAIL MAILPATH
92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93done
ad6254c5
AK
94PS1='$ '
95PS2='> '
96PS4='+ '
97
98# NLS nuisances.
99for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103do
8a2fc586 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
105 eval $as_var=C; export $as_var
106 else
7a197a62 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5
AK
108 fi
109done
110
111# Required to use basename.
7a197a62
AK
112if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
114 as_expr=expr
115else
116 as_expr=false
117fi
118
7a197a62 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
120 as_basename=basename
121else
122 as_basename=false
123fi
124
125
126# Name of the executable.
7a197a62 127as_me=`$as_basename -- "$0" ||
ad6254c5
AK
128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
7a197a62 130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 131echo X/"$0" |
7a197a62
AK
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
ad6254c5 145
7a197a62
AK
146# CDPATH.
147$as_unset CDPATH
ad6254c5 148
ad6254c5 149
7a197a62
AK
150if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153else
154 as_have_required=no
ad6254c5
AK
155fi
156
7a197a62
AK
157 if test $as_have_required = yes && (eval ":
158(as_func_return () {
159 (exit \$1)
160}
161as_func_success () {
162 as_func_return 0
163}
164as_func_failure () {
165 as_func_return 1
166}
167as_func_ret_success () {
168 return 0
169}
170as_func_ret_failure () {
171 return 1
172}
ad6254c5 173
7a197a62
AK
174exitcode=0
175if as_func_success; then
176 :
177else
178 exitcode=1
179 echo as_func_success failed.
180fi
ad6254c5 181
7a197a62
AK
182if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185fi
186
187if as_func_ret_success; then
188 :
189else
190 exitcode=1
191 echo as_func_ret_success failed.
192fi
193
194if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197fi
198
199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201else
202 exitcode=1
203 echo positional parameters were not saved.
204fi
205
206test \$exitcode = 0) || { (exit 1); exit 1; }
207
208(
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213") 2> /dev/null; then
214 :
215else
216 as_candidate_shells=
ad6254c5 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
fc54be10 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
7a197a62 222 case $as_dir in
ad6254c5 223 /*)
7a197a62
AK
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228done
229IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
fc54be10 236# Be Bourne compatible
7a197a62
AK
237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244else
fc54be10 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
7a197a62 246fi
fc54be10
AK
247BIN_SH=xpg4; export BIN_SH # for Tru64
248DUALCASE=1; export DUALCASE # for MKS sh
7a197a62
AK
249
250:
251_ASEOF
252}; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
fc54be10 256# Be Bourne compatible
7a197a62
AK
257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264else
fc54be10 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
7a197a62 266fi
fc54be10
AK
267BIN_SH=xpg4; export BIN_SH # for Tru64
268DUALCASE=1; export DUALCASE # for MKS sh
7a197a62
AK
269
270:
271(as_func_return () {
272 (exit $1)
273}
274as_func_success () {
275 as_func_return 0
276}
277as_func_failure () {
278 as_func_return 1
279}
280as_func_ret_success () {
281 return 0
282}
283as_func_ret_failure () {
284 return 1
285}
286
287exitcode=0
288if as_func_success; then
289 :
290else
291 exitcode=1
292 echo as_func_success failed.
293fi
294
295if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298fi
299
300if as_func_ret_success; then
301 :
302else
303 exitcode=1
304 echo as_func_ret_success failed.
305fi
306
307if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310fi
311
312if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314else
315 exitcode=1
316 echo positional parameters were not saved.
317fi
318
319test $exitcode = 0) || { (exit 1); exit 1; }
320
321(
ad6254c5
AK
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
ad6254c5 324 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327_ASEOF
328}; then
329 break
330fi
331
332fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351fi
352
353
354fi
355
356fi
357
358
359
360(eval "as_func_return () {
361 (exit \$1)
362}
363as_func_success () {
364 as_func_return 0
365}
366as_func_failure () {
367 as_func_return 1
368}
369as_func_ret_success () {
370 return 0
371}
372as_func_ret_failure () {
373 return 1
374}
375
376exitcode=0
377if as_func_success; then
378 :
379else
380 exitcode=1
381 echo as_func_success failed.
382fi
383
384if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387fi
388
389if as_func_ret_success; then
390 :
391else
392 exitcode=1
393 echo as_func_ret_success failed.
394fi
395
396if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399fi
400
401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403else
404 exitcode=1
405 echo positional parameters were not saved.
406fi
407
408test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413}
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
ad6254c5 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
ad6254c5 436 sed '
7a197a62
AK
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
ad6254c5 441 N
7a197a62
AK
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 444 t loop
7a197a62 445 s/-\n.*//
ad6254c5 446 ' >$as_me.lineno &&
7a197a62 447 chmod +x "$as_me.lineno" ||
1995c9ff 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
ad6254c5
AK
455 # Exit status is that of the last command.
456 exit
457}
795ca3e5 458
ad6254c5 459
7a197a62
AK
460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462else
463 as_dirname=false
464fi
465
466ECHO_C= ECHO_N= ECHO_T=
467case `echo -n x` in
468-n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473*)
474 ECHO_N='-n';;
ad6254c5 475esac
1995c9ff 476
7a197a62
AK
477if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
479 as_expr=expr
480else
481 as_expr=false
482fi
483
484rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490fi
ad6254c5
AK
491echo >conf$$.file
492if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 499 as_ln_s='cp -p'
ad6254c5
AK
500elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502else
503 as_ln_s='cp -p'
504fi
7a197a62
AK
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510else
8a2fc586 511 test -d ./-p && rmdir ./-p
ad6254c5
AK
512 as_mkdir_p=false
513fi
514
fc54be10
AK
515# Find out whether ``test -x'' works. Don't use a zero-byte file, as
516# systems may use methods other than mode bits to determine executability.
517cat >conf$$.file <<_ASEOF
518#! /bin/sh
519exit 0
520_ASEOF
521chmod +x conf$$.file
522if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
7a197a62 524else
fc54be10 525 as_executable_p=:
7a197a62 526fi
fc54be10 527rm -f conf$$.file
ad6254c5
AK
528
529# Sed expression to map a string onto a valid CPP name.
8a2fc586 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
531
532# Sed expression to map a string onto a valid variable name.
8a2fc586 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
534
535
ad6254c5 536
7a197a62 537exec 7<&0 </dev/null 6>&1
ad6254c5
AK
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
ad6254c5
AK
544#
545# Initializations.
546#
795ca3e5 547ac_default_prefix=/usr/local
7a197a62 548ac_clean_files=
ad6254c5 549ac_config_libobj_dir=.
7a197a62 550LIBOBJS=
ad6254c5
AK
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555SHELL=${CONFIG_SHELL-/bin/sh}
556
ad6254c5
AK
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563
564ac_unique_file="lib/device/dev-cache.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
fc54be10 568#if HAVE_SYS_TYPES_H
ad6254c5
AK
569# include <sys/types.h>
570#endif
fc54be10 571#if HAVE_SYS_STAT_H
ad6254c5
AK
572# include <sys/stat.h>
573#endif
fc54be10 574#if STDC_HEADERS
ad6254c5
AK
575# include <stdlib.h>
576# include <stddef.h>
577#else
fc54be10 578# if HAVE_STDLIB_H
ad6254c5
AK
579# include <stdlib.h>
580# endif
581#endif
fc54be10
AK
582#if HAVE_STRING_H
583# if !STDC_HEADERS && HAVE_MEMORY_H
ad6254c5
AK
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
fc54be10 588#if HAVE_STRINGS_H
ad6254c5
AK
589# include <strings.h>
590#endif
fc54be10 591#if HAVE_INTTYPES_H
ad6254c5 592# include <inttypes.h>
ad6254c5 593#endif
fc54be10 594#if HAVE_STDINT_H
7a197a62
AK
595# include <stdint.h>
596#endif
fc54be10 597#if HAVE_UNISTD_H
ad6254c5
AK
598# include <unistd.h>
599#endif"
600
795ca3e5 601ac_default_prefix=/usr
7a197a62
AK
602ac_subst_vars='SHELL
603PATH_SEPARATOR
604PACKAGE_NAME
605PACKAGE_TARNAME
606PACKAGE_VERSION
607PACKAGE_STRING
608PACKAGE_BUGREPORT
609exec_prefix
610prefix
611program_transform_name
612bindir
613sbindir
614libexecdir
615datarootdir
616datadir
617sysconfdir
618sharedstatedir
619localstatedir
620includedir
621oldincludedir
622docdir
623infodir
624htmldir
625dvidir
626pdfdir
627psdir
628libdir
629localedir
630mandir
631DEFS
632ECHO_C
633ECHO_N
634ECHO_T
635LIBS
636build_alias
637host_alias
638target_alias
639build
640build_cpu
641build_vendor
642build_os
643host
644host_cpu
645host_vendor
646host_os
647target
648target_cpu
649target_vendor
650target_os
651AWK
652CC
653CFLAGS
654LDFLAGS
655CPPFLAGS
656ac_ct_CC
657EXEEXT
658OBJEXT
659INSTALL_PROGRAM
660INSTALL_SCRIPT
661INSTALL_DATA
662LN_S
663SET_MAKE
664RANLIB
665CFLOW_CMD
666CSCOPE_CMD
667CPP
668GREP
669EGREP
670ALLOCA
671LIBOBJS
672POW_LIB
673MSGFMT
674MODPROBE_CMD
675JOBS
676STATIC_LINK
677LVM1
678POOL
679SNAPSHOTS
680MIRRORS
681OWNER
682GROUP
683COPTIMISE_FLAG
684CLDFLAGS
685CLDWHOLEARCHIVE
686CLDNOWHOLEARCHIVE
687LDDEPS
688LIB_SUFFIX
689LVM_VERSION
690LVM1_FALLBACK
691DEBUG
692DEVMAPPER
693HAVE_LIBDL
694HAVE_SELINUX
695HAVE_REALTIME
696CMDLIB
697LOCALEDIR
698CONFDIR
699STATICDIR
700DMDIR
701INTL_PACKAGE
702INTL
703CLVMD
704CLUSTER
705FSADM
706DMEVENTD
66e941e8 707LIB_PTHREAD
7a197a62 708LTLIBOBJS'
ad6254c5 709ac_subst_files=''
7a197a62
AK
710 ac_precious_vars='build_alias
711host_alias
712target_alias
713CC
714CFLAGS
715LDFLAGS
7a197a62
AK
716CPPFLAGS
717CPP'
718
795ca3e5
AK
719
720# Initialize some variables set by options.
ad6254c5
AK
721ac_init_help=
722ac_init_version=false
795ca3e5
AK
723# The variables have the same names as the options, with
724# dashes changed to underlines.
ad6254c5 725cache_file=/dev/null
795ca3e5 726exec_prefix=NONE
795ca3e5 727no_create=
795ca3e5
AK
728no_recursion=
729prefix=NONE
730program_prefix=NONE
731program_suffix=NONE
732program_transform_name=s,x,x,
733silent=
734site=
735srcdir=
795ca3e5
AK
736verbose=
737x_includes=NONE
738x_libraries=NONE
ad6254c5
AK
739
740# Installation directory options.
741# These are left unexpanded so users can "make install exec_prefix=/foo"
742# and all the variables that are supposed to be based on exec_prefix
743# by default will actually change.
744# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 745# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
746bindir='${exec_prefix}/bin'
747sbindir='${exec_prefix}/sbin'
748libexecdir='${exec_prefix}/libexec'
7a197a62
AK
749datarootdir='${prefix}/share'
750datadir='${datarootdir}'
795ca3e5
AK
751sysconfdir='${prefix}/etc'
752sharedstatedir='${prefix}/com'
753localstatedir='${prefix}/var'
795ca3e5
AK
754includedir='${prefix}/include'
755oldincludedir='/usr/include'
7a197a62
AK
756docdir='${datarootdir}/doc/${PACKAGE}'
757infodir='${datarootdir}/info'
758htmldir='${docdir}'
759dvidir='${docdir}'
760pdfdir='${docdir}'
761psdir='${docdir}'
762libdir='${exec_prefix}/lib'
763localedir='${datarootdir}/locale'
764mandir='${datarootdir}/man'
795ca3e5 765
795ca3e5 766ac_prev=
7a197a62 767ac_dashdash=
795ca3e5
AK
768for ac_option
769do
795ca3e5
AK
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
7a197a62 772 eval $ac_prev=\$ac_option
795ca3e5
AK
773 ac_prev=
774 continue
775 fi
776
7a197a62
AK
777 case $ac_option in
778 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *) ac_optarg=yes ;;
780 esac
795ca3e5
AK
781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
7a197a62
AK
784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
795ca3e5
AK
787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 791 bindir=$ac_optarg ;;
795ca3e5
AK
792
793 -build | --build | --buil | --bui | --bu)
ad6254c5 794 ac_prev=build_alias ;;
795ca3e5 795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 796 build_alias=$ac_optarg ;;
795ca3e5
AK
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
795ca3e5 807
7a197a62 808 -datadir | --datadir | --datadi | --datad)
795ca3e5 809 ac_prev=datadir ;;
7a197a62 810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 811 datadir=$ac_optarg ;;
795ca3e5 812
7a197a62
AK
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
795ca3e5 820 -disable-* | --disable-*)
1995c9ff 821 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 822 # Reject names that are not valid shell variable names.
fc54be10 823 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1995c9ff 824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 825 { (exit 1); exit 1; }; }
fc54be10 826 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1995c9ff 827 eval enable_$ac_feature=no ;;
7a197a62
AK
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
795ca3e5
AK
838
839 -enable-* | --enable-*)
1995c9ff 840 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 841 # Reject names that are not valid shell variable names.
fc54be10 842 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1995c9ff 843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 844 { (exit 1); exit 1; }; }
fc54be10 845 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1995c9ff 846 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
847
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
ad6254c5 855 exec_prefix=$ac_optarg ;;
795ca3e5
AK
856
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
860
ad6254c5
AK
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
795ca3e5
AK
867
868 -host | --host | --hos | --ho)
ad6254c5 869 ac_prev=host_alias ;;
795ca3e5 870 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 871 host_alias=$ac_optarg ;;
795ca3e5 872
7a197a62
AK
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
878
795ca3e5
AK
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 884 includedir=$ac_optarg ;;
795ca3e5
AK
885
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 889 infodir=$ac_optarg ;;
795ca3e5
AK
890
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 894 libdir=$ac_optarg ;;
795ca3e5
AK
895
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
ad6254c5 901 libexecdir=$ac_optarg ;;
795ca3e5 902
7a197a62
AK
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
907
795ca3e5 908 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 909 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 913 localstatedir=$ac_optarg ;;
795ca3e5
AK
914
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 918 mandir=$ac_optarg ;;
795ca3e5
AK
919
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
923
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 925 | --no-cr | --no-c | -n)
795ca3e5
AK
926 no_create=yes ;;
927
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
931
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 939 oldincludedir=$ac_optarg ;;
795ca3e5
AK
940
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 944 prefix=$ac_optarg ;;
795ca3e5
AK
945
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 951 program_prefix=$ac_optarg ;;
795ca3e5
AK
952
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 958 program_suffix=$ac_optarg ;;
795ca3e5
AK
959
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 975 program_transform_name=$ac_optarg ;;
795ca3e5 976
7a197a62
AK
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
981
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
986
795ca3e5
AK
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
990
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
ad6254c5 995 sbindir=$ac_optarg ;;
795ca3e5
AK
996
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
ad6254c5 1006 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1007
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
ad6254c5 1011 site=$ac_optarg ;;
795ca3e5
AK
1012
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1016 srcdir=$ac_optarg ;;
795ca3e5
AK
1017
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1023 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1024
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1026 ac_prev=target_alias ;;
795ca3e5 1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1028 target_alias=$ac_optarg ;;
795ca3e5
AK
1029
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1032
ad6254c5
AK
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
795ca3e5
AK
1035
1036 -with-* | --with-*)
1995c9ff 1037 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1038 # Reject names that are not valid shell variable names.
fc54be10 1039 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1995c9ff 1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1041 { (exit 1); exit 1; }; }
fc54be10 1042 ac_package=`echo $ac_package| sed 's/-/_/g'`
1995c9ff 1043 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1044
1045 -without-* | --without-*)
1995c9ff 1046 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1047 # Reject names that are not valid shell variable names.
fc54be10 1048 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1995c9ff 1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1050 { (exit 1); exit 1; }; }
fc54be10 1051 ac_package=`echo $ac_package | sed 's/-/_/g'`
1995c9ff 1052 eval with_$ac_package=no ;;
795ca3e5
AK
1053
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1057
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1063 x_includes=$ac_optarg ;;
795ca3e5
AK
1064
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1070 x_libraries=$ac_optarg ;;
795ca3e5 1071
1995c9ff 1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1073Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
795ca3e5
AK
1075 ;;
1076
ad6254c5
AK
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1995c9ff 1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1082 { (exit 1); exit 1; }; }
7a197a62 1083 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1084 export $ac_envvar ;;
1085
795ca3e5 1086 *)
ad6254c5 1087 # FIXME: should be removed in autoconf 3.0.
1995c9ff 1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1995c9ff 1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1092 ;;
1093
1094 esac
1095done
1096
1097if test -n "$ac_prev"; then
ad6254c5 1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1995c9ff 1099 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1100 { (exit 1); exit 1; }; }
795ca3e5 1101fi
795ca3e5 1102
7a197a62
AK
1103# Be sure to have absolute directory names.
1104for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
795ca3e5 1108do
7a197a62 1109 eval ac_val=\$$ac_var
ad6254c5 1110 case $ac_val in
7a197a62
AK
1111 [\\/$]* | ?:[\\/]* ) continue;;
1112 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1113 esac
1995c9ff 1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1115 { (exit 1); exit 1; }; }
795ca3e5
AK
1116done
1117
ad6254c5
AK
1118# There might be people who depend on the old broken behavior: `$host'
1119# used to hold the argument of --host etc.
1120# FIXME: To remove some day.
1121build=$build_alias
1122host=$host_alias
1123target=$target_alias
1124
1125# FIXME: To remove some day.
1126if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1995c9ff 1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1133 fi
1134fi
8106cdd5 1135
ad6254c5
AK
1136ac_tool_prefix=
1137test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138
1139test "$silent" = yes && exec 6>/dev/null
795ca3e5 1140
795ca3e5 1141
7a197a62
AK
1142ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143ac_ls_di=`ls -di .` &&
1144ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1995c9ff 1145 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1146 { (exit 1); exit 1; }; }
1147test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1995c9ff 1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1149 { (exit 1); exit 1; }; }
1150
1151
795ca3e5
AK
1152# Find the source files, if location was not specified.
1153if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
7a197a62
AK
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$0" ||
ad6254c5 1157$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
7a197a62 1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 1161echo X"$0" |
7a197a62
AK
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\).*/{
1175 s//\1/
1176 q
1177 }
1178 s/.*/./; q'`
795ca3e5 1179 srcdir=$ac_confdir
7a197a62 1180 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1181 srcdir=..
1182 fi
1183else
1184 ac_srcdir_defaulted=no
1185fi
7a197a62
AK
1186if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1995c9ff 1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1189 { (exit 1); exit 1; }; }
795ca3e5 1190fi
7a197a62
AK
1191ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192ac_abs_confdir=`(
1995c9ff 1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1194 { (exit 1); exit 1; }; }
7a197a62
AK
1195 pwd)`
1196# When building in place, set srcdir=.
1197if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1199fi
1200# Remove unnecessary trailing slashes from srcdir.
1201# Double slashes in file names in object file debugging info
1202# mess up M-x gdb in Emacs.
1203case $srcdir in
1204*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205esac
1206for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211done
ad6254c5
AK
1212
1213#
1214# Report the --help message.
1215#
1216if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220\`configure' configures this package to adapt to many kinds of systems.
1221
1222Usage: $0 [OPTION]... [VAR=VALUE]...
1223
1224To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225VAR=VALUE. See below for descriptions of some of the useful variables.
1226
1227Defaults for the options are specified in brackets.
1228
1229Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239
ad6254c5
AK
1240Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
8a2fc586 1242 [$ac_default_prefix]
ad6254c5 1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 1244 [PREFIX]
ad6254c5
AK
1245
1246By default, \`make install' will install all the files in
1247\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249for instance \`--prefix=\$HOME'.
1250
1251For better control, use the options below.
1252
1253Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
ad6254c5
AK
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7a197a62
AK
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1273_ACEOF
1274
1275 cat <<\_ACEOF
1276
1277System types:
1278 --build=BUILD configure for building on BUILD [guessed]
1279 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1280 --target=TARGET configure for building compilers for TARGET [HOST]
1281_ACEOF
1282fi
1283
1284if test -n "$ac_init_help"; then
1285
1286 cat <<\_ACEOF
1287
1288Optional Features:
1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291 --enable-jobs=NUM Number of jobs to run simultaneously
1292 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1293 device-mapper is missing from the kernel
1294 --enable-static_link Use this to link the tools to their libraries
1295 statically. Default is dynamic linking
1296 --enable-readline Enable readline support
1297 --disable-selinux Disable selinux support
3d978351 1298 --disable-realtime Disable realtime clock support
ad6254c5
AK
1299 --enable-debug Enable debugging
1300 --disable-devmapper Disable device-mapper interaction
1301 --disable-o_direct Disable O_DIRECT
1302 --enable-cmdlib Build shared command library
1303 --enable-fsadm Enable fsadm
15d91f5a 1304 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
1305 --enable-nls Enable Native Language Support
1306
1307Optional Packages:
1308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1310 --with-user=USER Set the owner of installed files
1311 --with-group=GROUP Set the group owner of installed files
1312 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1313 TYPE=internal
1314 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1315 TYPE=internal
1316 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1317 TYPE=internal
1318 --with-snapshots=TYPE Snapshot support: internal/shared/none
1319 TYPE=internal
1320 --with-mirrors=TYPE Mirror support: internal/shared/none
1321 TYPE=internal
5c7fc7c4 1322 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1323 TYPE=none
ad6254c5
AK
1324 --with-optimisation=OPT C optimisation flag OPT=-O2
1325 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
1326 --with-confdir=DIR Configuration files in DIR /etc
1327 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1328 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1329
1330Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
7a197a62
AK
1335 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1336 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1337 CPP C preprocessor
1338
1339Use these variables to override the choices made by `configure' or to help
1340it to find libraries and programs with nonstandard names/locations.
1341
1342_ACEOF
7a197a62 1343ac_status=$?
ad6254c5
AK
1344fi
1345
1346if test "$ac_init_help" = "recursive"; then
1347 # If there are subdirs, report their specific --help.
ad6254c5 1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7a197a62 1349 test -d "$ac_dir" || continue
ad6254c5
AK
1350 ac_builddir=.
1351
7a197a62
AK
1352case "$ac_dir" in
1353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1354*)
1995c9ff 1355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1356 # A ".." for each directory in $ac_dir_suffix.
1995c9ff 1357 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1358 case $ac_top_builddir_sub in
1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 esac ;;
1362esac
1363ac_abs_top_builddir=$ac_pwd
1364ac_abs_builddir=$ac_pwd$ac_dir_suffix
1365# for backward compatibility:
1366ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1367
1368case $srcdir in
7a197a62 1369 .) # We are building in place.
ad6254c5 1370 ac_srcdir=.
7a197a62
AK
1371 ac_top_srcdir=$ac_top_builddir_sub
1372 ac_abs_top_srcdir=$ac_pwd ;;
1373 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1374 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1375 ac_top_srcdir=$srcdir
1376 ac_abs_top_srcdir=$srcdir ;;
1377 *) # Relative name.
1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1379 ac_top_srcdir=$ac_top_build_prefix$srcdir
1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1381esac
7a197a62
AK
1382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1383
1384 cd "$ac_dir" || { ac_status=$?; continue; }
1385 # Check for guested configure.
1386 if test -f "$ac_srcdir/configure.gnu"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1389 elif test -f "$ac_srcdir/configure"; then
1390 echo &&
1391 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1392 else
1995c9ff 1393 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1394 fi || ac_status=$?
1395 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1396 done
1397fi
1398
7a197a62 1399test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1400if $ac_init_version; then
1401 cat <<\_ACEOF
7a197a62 1402configure
fc54be10 1403generated by GNU Autoconf 2.60
ad6254c5 1404
7a197a62
AK
1405Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14062002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1407This configure script is free software; the Free Software Foundation
1408gives unlimited permission to copy, distribute and modify it.
1409_ACEOF
7a197a62 1410 exit
ad6254c5 1411fi
7a197a62 1412cat >config.log <<_ACEOF
ad6254c5
AK
1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
1416It was created by $as_me, which was
fc54be10 1417generated by GNU Autoconf 2.60. Invocation command line was
ad6254c5
AK
1418
1419 $ $0 $@
1420
1421_ACEOF
7a197a62 1422exec 5>>config.log
ad6254c5
AK
1423{
1424cat <<_ASUNAME
1425## --------- ##
1426## Platform. ##
1427## --------- ##
1428
1429hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433uname -v = `(uname -v) 2>/dev/null || echo unknown`
1434
1435/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1436/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1437
1438/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1439/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1440/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1441/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1442/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1443/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1444/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1445
1446_ASUNAME
1447
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1995c9ff 1453 echo "PATH: $as_dir"
ad6254c5 1454done
7a197a62 1455IFS=$as_save_IFS
ad6254c5
AK
1456
1457} >&5
1458
1459cat >&5 <<_ACEOF
1460
1461
1462## ----------- ##
1463## Core tests. ##
1464## ----------- ##
1465
1466_ACEOF
1467
1468
1469# Keep a trace of the command line.
1470# Strip out --no-create and --no-recursion so they do not pile up.
1471# Strip out --silent because we don't want to record it for future runs.
1472# Also quote any args containing shell meta-characters.
1473# Make two passes to allow for proper duplicate-argument suppression.
1474ac_configure_args=
1475ac_configure_args0=
1476ac_configure_args1=
ad6254c5
AK
1477ac_must_keep_next=false
1478for ac_pass in 1 2
1479do
1480 for ac_arg
1481 do
1482 case $ac_arg in
1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485 | -silent | --silent | --silen | --sile | --sil)
1486 continue ;;
7a197a62 1487 *\'*)
1995c9ff 1488 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1489 esac
1490 case $ac_pass in
1491 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1492 2)
1493 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1494 if test $ac_must_keep_next = true; then
8a2fc586 1495 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1496 else
8a2fc586
AK
1497 case $ac_arg in
1498 *=* | --config-cache | -C | -disable-* | --disable-* \
1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1501 | -with-* | --with-* | -without-* | --without-* | --x)
1502 case "$ac_configure_args0 " in
1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1504 esac
1505 ;;
1506 -* ) ac_must_keep_next=true ;;
1507 esac
ad6254c5 1508 fi
7a197a62 1509 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1510 ;;
1511 esac
1512 done
1513done
1514$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1515$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1516
1517# When interrupted or exit'd, cleanup temporary files, and complete
1518# config.log. We remove comments because anyway the quotes in there
1519# would cause problems or look ugly.
7a197a62
AK
1520# WARNING: Use '\'' to represent an apostrophe within the trap.
1521# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1522trap 'exit_status=$?
1523 # Save into config.log some information that might help in debugging.
1524 {
1525 echo
1526
1527 cat <<\_ASBOX
1528## ---------------- ##
1529## Cache variables. ##
1530## ---------------- ##
1531_ASBOX
1532 echo
1533 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1534(
1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1536 eval ac_val=\$$ac_var
1537 case $ac_val in #(
1538 *${as_nl}*)
1539 case $ac_var in #(
1995c9ff
AK
1540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1541echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1542 esac
1543 case $ac_var in #(
1544 _ | IFS | as_nl) ;; #(
1545 *) $as_unset $ac_var ;;
1546 esac ;;
1547 esac
1548 done
ad6254c5 1549 (set) 2>&1 |
7a197a62
AK
1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
ad6254c5 1552 sed -n \
7a197a62
AK
1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1555 ;; #(
ad6254c5 1556 *)
7a197a62 1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1558 ;;
7a197a62
AK
1559 esac |
1560 sort
1561)
ad6254c5
AK
1562 echo
1563
1564 cat <<\_ASBOX
1565## ----------------- ##
1566## Output variables. ##
1567## ----------------- ##
1568_ASBOX
1569 echo
1570 for ac_var in $ac_subst_vars
1571 do
7a197a62
AK
1572 eval ac_val=\$$ac_var
1573 case $ac_val in
1995c9ff 1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1575 esac
1995c9ff 1576 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1577 done | sort
1578 echo
1579
1580 if test -n "$ac_subst_files"; then
1581 cat <<\_ASBOX
7a197a62
AK
1582## ------------------- ##
1583## File substitutions. ##
1584## ------------------- ##
ad6254c5
AK
1585_ASBOX
1586 echo
1587 for ac_var in $ac_subst_files
1588 do
7a197a62
AK
1589 eval ac_val=\$$ac_var
1590 case $ac_val in
1995c9ff 1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1592 esac
1995c9ff 1593 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1594 done | sort
1595 echo
1596 fi
1597
1598 if test -s confdefs.h; then
1599 cat <<\_ASBOX
1600## ----------- ##
1601## confdefs.h. ##
1602## ----------- ##
1603_ASBOX
1604 echo
7a197a62 1605 cat confdefs.h
ad6254c5
AK
1606 echo
1607 fi
1608 test "$ac_signal" != 0 &&
1995c9ff
AK
1609 echo "$as_me: caught signal $ac_signal"
1610 echo "$as_me: exit $exit_status"
ad6254c5 1611 } >&5
7a197a62
AK
1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1614 exit $exit_status
7a197a62 1615' 0
ad6254c5
AK
1616for ac_signal in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618done
1619ac_signal=0
1620
1621# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1622rm -f -r conftest* confdefs.h
ad6254c5
AK
1623
1624# Predefined preprocessor variables.
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_NAME "$PACKAGE_NAME"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_VERSION "$PACKAGE_VERSION"
1638_ACEOF
8106cdd5 1639
ad6254c5
AK
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_STRING "$PACKAGE_STRING"
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648_ACEOF
1649
1650
1651# Let the site file select an alternate cache file if it wants to.
795ca3e5 1652# Prefer explicitly selected file to automatically selected ones.
7a197a62
AK
1653if test -n "$CONFIG_SITE"; then
1654 set x "$CONFIG_SITE"
1655elif test "x$prefix" != xNONE; then
1656 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1657else
1658 set x "$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
795ca3e5 1660fi
7a197a62
AK
1661shift
1662for ac_site_file
1663do
795ca3e5 1664 if test -r "$ac_site_file"; then
1995c9ff
AK
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1667 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1668 . "$ac_site_file"
1669 fi
1670done
1671
1672if test -r "$cache_file"; then
ad6254c5
AK
1673 # Some versions of bash will fail to source /dev/null (special
1674 # files actually), so we avoid doing that.
1675 if test -f "$cache_file"; then
1995c9ff
AK
1676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1677echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1678 case $cache_file in
7a197a62
AK
1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
ad6254c5
AK
1681 esac
1682 fi
795ca3e5 1683else
1995c9ff
AK
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1686 >$cache_file
1687fi
1688
1689# Check that the precious variables saved in the cache have kept the same
1690# value.
1691ac_cache_corrupted=false
7a197a62 1692for ac_var in $ac_precious_vars; do
ad6254c5
AK
1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1694 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1696 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1697 case $ac_old_set,$ac_new_set in
1698 set,)
1995c9ff
AK
1699 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1700echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1701 ac_cache_corrupted=: ;;
1702 ,set)
1995c9ff
AK
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1704echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1705 ac_cache_corrupted=: ;;
1706 ,);;
1707 *)
1708 if test "x$ac_old_val" != "x$ac_new_val"; then
1995c9ff
AK
1709 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1710echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1715 ac_cache_corrupted=:
ad6254c5
AK
1716 fi;;
1717 esac
1718 # Pass precious variables to config.status.
1719 if test "$ac_new_set" = set; then
1720 case $ac_new_val in
1995c9ff 1721 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1722 *) ac_arg=$ac_var=$ac_new_val ;;
1723 esac
1724 case " $ac_configure_args " in
1725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1726 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 esac
1728 fi
1729done
1730if $ac_cache_corrupted; then
1995c9ff
AK
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1734echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1735 { (exit 1); exit 1; }; }
795ca3e5
AK
1736fi
1737
ad6254c5
AK
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
7a197a62
AK
1754ac_ext=c
1755ac_cpp='$CPP $CPPFLAGS'
1756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1759
795ca3e5
AK
1760
1761
1762
72b2cb61 1763################################################################################
7a197a62 1764ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1765
1766
80992638 1767################################################################################
795ca3e5 1768ac_aux_dir=
7a197a62
AK
1769for ac_dir in autoconf "$srcdir"/autoconf; do
1770 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1771 ac_aux_dir=$ac_dir
1772 ac_install_sh="$ac_aux_dir/install-sh -c"
1773 break
7a197a62 1774 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1775 ac_aux_dir=$ac_dir
1776 ac_install_sh="$ac_aux_dir/install.sh -c"
1777 break
7a197a62 1778 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1779 ac_aux_dir=$ac_dir
1780 ac_install_sh="$ac_aux_dir/shtool install -c"
1781 break
795ca3e5
AK
1782 fi
1783done
1784if test -z "$ac_aux_dir"; then
1995c9ff
AK
1785 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1786echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1787 { (exit 1); exit 1; }; }
795ca3e5 1788fi
7a197a62
AK
1789
1790# These three variables are undocumented and unsupported,
1791# and are intended to be withdrawn in a future Autoconf release.
1792# They can cause serious problems if a builder's source tree is in a directory
1793# whose full name contains unusual characters.
1794ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1795ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1796ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1797
8ce0cbda
AK
1798
1799
ad6254c5 1800################################################################################
8ce0cbda 1801# Make sure we can run config.sub.
7a197a62 1802$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1995c9ff
AK
1803 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1804echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1805 { (exit 1); exit 1; }; }
1806
1995c9ff
AK
1807{ echo "$as_me:$LINENO: checking build system type" >&5
1808echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1809if test "${ac_cv_build+set}" = set; then
1995c9ff 1810 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1811else
7a197a62
AK
1812 ac_build_alias=$build_alias
1813test "x$ac_build_alias" = x &&
1814 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1815test "x$ac_build_alias" = x &&
1995c9ff
AK
1816 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1817echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1818 { (exit 1); exit 1; }; }
7a197a62 1819ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1995c9ff
AK
1820 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1821echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1822 { (exit 1); exit 1; }; }
1823
1824fi
1995c9ff
AK
1825{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1826echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1827case $ac_cv_build in
1828*-*-*) ;;
1995c9ff
AK
1829*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1830echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1831 { (exit 1); exit 1; }; };;
1832esac
ad6254c5 1833build=$ac_cv_build
7a197a62
AK
1834ac_save_IFS=$IFS; IFS='-'
1835set x $ac_cv_build
1836shift
1837build_cpu=$1
1838build_vendor=$2
1839shift; shift
1840# Remember, the first character of IFS is used to create $*,
1841# except with old shells:
1842build_os=$*
1843IFS=$ac_save_IFS
1844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1845
1846
1995c9ff
AK
1847{ echo "$as_me:$LINENO: checking host system type" >&5
1848echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1849if test "${ac_cv_host+set}" = set; then
1995c9ff 1850 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1851else
7a197a62
AK
1852 if test "x$host_alias" = x; then
1853 ac_cv_host=$ac_cv_build
1854else
1855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1995c9ff
AK
1856 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1857echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1858 { (exit 1); exit 1; }; }
7a197a62 1859fi
ad6254c5
AK
1860
1861fi
1995c9ff
AK
1862{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1863echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1864case $ac_cv_host in
1865*-*-*) ;;
1995c9ff
AK
1866*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1867echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1868 { (exit 1); exit 1; }; };;
1869esac
ad6254c5 1870host=$ac_cv_host
7a197a62
AK
1871ac_save_IFS=$IFS; IFS='-'
1872set x $ac_cv_host
1873shift
1874host_cpu=$1
1875host_vendor=$2
1876shift; shift
1877# Remember, the first character of IFS is used to create $*,
1878# except with old shells:
1879host_os=$*
1880IFS=$ac_save_IFS
1881case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1882
1883
1995c9ff
AK
1884{ echo "$as_me:$LINENO: checking target system type" >&5
1885echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1886if test "${ac_cv_target+set}" = set; then
1995c9ff 1887 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1888else
7a197a62
AK
1889 if test "x$target_alias" = x; then
1890 ac_cv_target=$ac_cv_host
1891else
1892 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1995c9ff
AK
1893 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1894echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1895 { (exit 1); exit 1; }; }
7a197a62 1896fi
8ce0cbda 1897
ad6254c5 1898fi
1995c9ff
AK
1899{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1900echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1901case $ac_cv_target in
1902*-*-*) ;;
1995c9ff
AK
1903*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1904echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1905 { (exit 1); exit 1; }; };;
1906esac
ad6254c5 1907target=$ac_cv_target
7a197a62
AK
1908ac_save_IFS=$IFS; IFS='-'
1909set x $ac_cv_target
1910shift
1911target_cpu=$1
1912target_vendor=$2
1913shift; shift
1914# Remember, the first character of IFS is used to create $*,
1915# except with old shells:
1916target_os=$*
1917IFS=$ac_save_IFS
1918case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1919
8ce0cbda 1920
ad6254c5
AK
1921# The aliases save the names the user supplied, while $host etc.
1922# will get canonicalized.
1923test -n "$target_alias" &&
8ce0cbda
AK
1924 test "$program_prefix$program_suffix$program_transform_name" = \
1925 NONENONEs,x,x, &&
1926 program_prefix=${target_alias}-
1927
8ce0cbda
AK
1928case "$host_os" in
1929 linux*)
1930 CFLAGS="$CFLAGS"
1931 COPTIMISE_FLAG="-O2"
1932 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1933 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1934 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1935 LDDEPS="$LDDEPS .export.sym"
1936 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1937 LIB_SUFFIX="so"
8ce0cbda
AK
1938 DEVMAPPER=yes
1939 ODIRECT=yes
1940 SELINUX=yes
8b1a3214 1941 REALTIME=yes
8ce0cbda
AK
1942 CLUSTER=internal
1943 FSADM=no ;;
1944 darwin*)
1945 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1946 COPTIMISE_FLAG="-O2"
1947 CLDFLAGS="$CLDFLAGS"
1948 CLDWHOLEARCHIVE="-all_load"
1949 CLDNOWHOLEARCHIVE=
1950 LDDEPS="$LDDEPS"
1951 LDFLAGS="$LDFLAGS"
e4c11ad1 1952 LIB_SUFFIX="dylib"
a653923f 1953 DEVMAPPER=yes
8ce0cbda
AK
1954 ODIRECT=no
1955 SELINUX=no
8b1a3214 1956 REALTIME=no
8ce0cbda
AK
1957 CLUSTER=none
1958 FSADM=no ;;
1959esac
1960
80992638 1961################################################################################
ad6254c5 1962for ac_prog in gawk mawk nawk awk
795ca3e5 1963do
ad6254c5 1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1965set dummy $ac_prog; ac_word=$2
1995c9ff
AK
1966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 1968if test "${ac_cv_prog_AWK+set}" = set; then
1995c9ff 1969 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1970else
1971 if test -n "$AWK"; then
1972 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1973else
ad6254c5
AK
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 1980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 1981 ac_cv_prog_AWK="$ac_prog"
1995c9ff 1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
1983 break 2
1984 fi
1985done
1986done
7a197a62 1987IFS=$as_save_IFS
ad6254c5 1988
795ca3e5
AK
1989fi
1990fi
ad6254c5 1991AWK=$ac_cv_prog_AWK
795ca3e5 1992if test -n "$AWK"; then
1995c9ff
AK
1993 { echo "$as_me:$LINENO: result: $AWK" >&5
1994echo "${ECHO_T}$AWK" >&6; }
795ca3e5 1995else
1995c9ff
AK
1996 { echo "$as_me:$LINENO: result: no" >&5
1997echo "${ECHO_T}no" >&6; }
795ca3e5
AK
1998fi
1999
7a197a62 2000
ad6254c5
AK
2001 test -n "$AWK" && break
2002done
2003
2004ac_ext=c
2005ac_cpp='$CPP $CPPFLAGS'
2006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2011set dummy ${ac_tool_prefix}gcc; ac_word=$2
1995c9ff
AK
2012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2014if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2015 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2016else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019else
2020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021for as_dir in $PATH
2022do
2023 IFS=$as_save_IFS
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1995c9ff 2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2029 break 2
2030 fi
2031done
8106cdd5 2032done
7a197a62 2033IFS=$as_save_IFS
8106cdd5 2034
ad6254c5
AK
2035fi
2036fi
2037CC=$ac_cv_prog_CC
2038if test -n "$CC"; then
1995c9ff
AK
2039 { echo "$as_me:$LINENO: result: $CC" >&5
2040echo "${ECHO_T}$CC" >&6; }
ad6254c5 2041else
1995c9ff
AK
2042 { echo "$as_me:$LINENO: result: no" >&5
2043echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2044fi
2045
7a197a62 2046
ad6254c5
AK
2047fi
2048if test -z "$ac_cv_prog_CC"; then
2049 ac_ct_CC=$CC
2050 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2051set dummy gcc; ac_word=$2
1995c9ff
AK
2052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995c9ff 2055 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2056else
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059else
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2067 ac_cv_prog_ac_ct_CC="gcc"
1995c9ff 2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2069 break 2
2070 fi
2071done
2072done
7a197a62 2073IFS=$as_save_IFS
ad6254c5
AK
2074
2075fi
2076fi
2077ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078if test -n "$ac_ct_CC"; then
1995c9ff
AK
2079 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2081else
1995c9ff
AK
2082 { echo "$as_me:$LINENO: result: no" >&5
2083echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2084fi
2085
7a197a62
AK
2086 if test "x$ac_ct_CC" = x; then
2087 CC=""
2088 else
2089 case $cross_compiling:$ac_tool_warned in
2090yes:)
1995c9ff 2091{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2092whose name does not start with the host triplet. If you think this
2093configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 2094echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2095whose name does not start with the host triplet. If you think this
2096configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2097ac_tool_warned=yes ;;
2098esac
2099 CC=$ac_ct_CC
2100 fi
ad6254c5
AK
2101else
2102 CC="$ac_cv_prog_CC"
2103fi
2104
2105if test -z "$CC"; then
7a197a62
AK
2106 if test -n "$ac_tool_prefix"; then
2107 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2108set dummy ${ac_tool_prefix}cc; ac_word=$2
1995c9ff
AK
2109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2111if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2112 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2113else
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116else
ad6254c5
AK
2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118for as_dir in $PATH
2119do
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2124 ac_cv_prog_CC="${ac_tool_prefix}cc"
1995c9ff 2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2126 break 2
2127 fi
2128done
2129done
7a197a62 2130IFS=$as_save_IFS
ad6254c5 2131
8106cdd5
AK
2132fi
2133fi
ad6254c5 2134CC=$ac_cv_prog_CC
8106cdd5 2135if test -n "$CC"; then
1995c9ff
AK
2136 { echo "$as_me:$LINENO: result: $CC" >&5
2137echo "${ECHO_T}$CC" >&6; }
ad6254c5 2138else
1995c9ff
AK
2139 { echo "$as_me:$LINENO: result: no" >&5
2140echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2141fi
2142
8106cdd5 2143
7a197a62 2144 fi
ad6254c5 2145fi
795ca3e5
AK
2146if test -z "$CC"; then
2147 # Extract the first word of "cc", so it can be a program name with args.
2148set dummy cc; ac_word=$2
1995c9ff
AK
2149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2151if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2152 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2153else
2154 if test -n "$CC"; then
2155 ac_cv_prog_CC="$CC" # Let the user override the test.
2156else
795ca3e5 2157 ac_prog_rejected=no
ad6254c5
AK
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2165 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2166 ac_prog_rejected=yes
2167 continue
2168 fi
2169 ac_cv_prog_CC="cc"
1995c9ff 2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2171 break 2
2172 fi
2173done
2174done
7a197a62 2175IFS=$as_save_IFS
ad6254c5 2176
795ca3e5
AK
2177if test $ac_prog_rejected = yes; then
2178 # We found a bogon in the path, so make sure we never use it.
2179 set dummy $ac_cv_prog_CC
2180 shift
ad6254c5 2181 if test $# != 0; then
795ca3e5
AK
2182 # We chose a different compiler from the bogus one.
2183 # However, it has the same basename, so the bogon will be chosen
2184 # first if we set CC to just the basename; use the full file name.
2185 shift
ad6254c5 2186 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2187 fi
2188fi
2189fi
2190fi
ad6254c5 2191CC=$ac_cv_prog_CC
795ca3e5 2192if test -n "$CC"; then
1995c9ff
AK
2193 { echo "$as_me:$LINENO: result: $CC" >&5
2194echo "${ECHO_T}$CC" >&6; }
795ca3e5 2195else
1995c9ff
AK
2196 { echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2198fi
2199
7a197a62 2200
ad6254c5
AK
2201fi
2202if test -z "$CC"; then
2203 if test -n "$ac_tool_prefix"; then
7a197a62 2204 for ac_prog in cl.exe
ad6254c5
AK
2205 do
2206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1995c9ff
AK
2208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2210if test "${ac_cv_prog_CC+set}" = set; then
1995c9ff 2211 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2212else
2213 if test -n "$CC"; then
2214 ac_cv_prog_CC="$CC" # Let the user override the test.
2215else
ad6254c5
AK
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995c9ff 2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2225 break 2
2226 fi
2227done
2228done
7a197a62 2229IFS=$as_save_IFS
ad6254c5 2230
795ca3e5
AK
2231fi
2232fi
ad6254c5 2233CC=$ac_cv_prog_CC
795ca3e5 2234if test -n "$CC"; then
1995c9ff
AK
2235 { echo "$as_me:$LINENO: result: $CC" >&5
2236echo "${ECHO_T}$CC" >&6; }
795ca3e5 2237else
1995c9ff
AK
2238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
795ca3e5 2240fi
ad6254c5 2241
7a197a62 2242
ad6254c5
AK
2243 test -n "$CC" && break
2244 done
2245fi
2246if test -z "$CC"; then
2247 ac_ct_CC=$CC
7a197a62 2248 for ac_prog in cl.exe
ad6254c5
AK
2249do
2250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2251set dummy $ac_prog; ac_word=$2
1995c9ff
AK
2252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995c9ff 2255 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2256else
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259else
2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261for as_dir in $PATH
2262do
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2267 ac_cv_prog_ac_ct_CC="$ac_prog"
1995c9ff 2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2269 break 2
795ca3e5 2270 fi
ad6254c5
AK
2271done
2272done
7a197a62 2273IFS=$as_save_IFS
ad6254c5
AK
2274
2275fi
2276fi
2277ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278if test -n "$ac_ct_CC"; then
1995c9ff
AK
2279 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2281else
1995c9ff
AK
2282 { echo "$as_me:$LINENO: result: no" >&5
2283echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2284fi
2285
7a197a62 2286
ad6254c5
AK
2287 test -n "$ac_ct_CC" && break
2288done
795ca3e5 2289
7a197a62
AK
2290 if test "x$ac_ct_CC" = x; then
2291 CC=""
2292 else
2293 case $cross_compiling:$ac_tool_warned in
2294yes:)
1995c9ff 2295{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2296whose name does not start with the host triplet. If you think this
2297configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 2298echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2299whose name does not start with the host triplet. If you think this
2300configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2301ac_tool_warned=yes ;;
2302esac
2303 CC=$ac_ct_CC
2304 fi
ad6254c5
AK
2305fi
2306
2307fi
2308
2309
1995c9ff 2310test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2311See \`config.log' for more details." >&5
1995c9ff 2312echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2313See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2315
2316# Provide some information about the compiler.
1995c9ff
AK
2317echo "$as_me:$LINENO: checking for C compiler version" >&5
2318ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2319{ (ac_try="$ac_compiler --version >&5"
2320case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
1995c9ff 2324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2325 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2326 ac_status=$?
1995c9ff 2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2328 (exit $ac_status); }
7a197a62
AK
2329{ (ac_try="$ac_compiler -v >&5"
2330case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333esac
1995c9ff 2334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2335 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2336 ac_status=$?
1995c9ff 2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2338 (exit $ac_status); }
7a197a62
AK
2339{ (ac_try="$ac_compiler -V >&5"
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
1995c9ff 2344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2345 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2346 ac_status=$?
1995c9ff 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2348 (exit $ac_status); }
2349
2350cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2351/* confdefs.h. */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h. */
2356
2357int
2358main ()
2359{
2360
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365ac_clean_files_save=$ac_clean_files
2366ac_clean_files="$ac_clean_files a.out a.exe b.out"
2367# Try to create an executable without -o first, disregard a.out.
2368# It will help us diagnose broken compilers, and finding out an intuition
2369# of exeext.
1995c9ff
AK
2370{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2372ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7a197a62
AK
2373#
2374# List of possible output files, starting from the most likely.
2375# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2376# only as a last resort. b.out is created by i960 compilers.
2377ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2378#
2379# The IRIX 6 linker writes into existing files which may not be
2380# executable, retaining their permissions. Remove them first so a
2381# subsequent execution test works.
2382ac_rmfiles=
2383for ac_file in $ac_files
2384do
2385 case $ac_file in
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2387 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2388 esac
2389done
2390rm -f $ac_rmfiles
2391
2392if { (ac_try="$ac_link_default"
2393case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2396esac
1995c9ff 2397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2398 (eval "$ac_link_default") 2>&5
ad6254c5 2399 ac_status=$?
1995c9ff 2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2401 (exit $ac_status); }; then
7a197a62
AK
2402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2404# in a Makefile. We should not override ac_cv_exeext if it was cached,
2405# so that the user can short-circuit this test for compilers unknown to
2406# Autoconf.
fc54be10 2407for ac_file in $ac_files
ad6254c5
AK
2408do
2409 test -f "$ac_file" || continue
2410 case $ac_file in
7a197a62 2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2412 ;;
ad6254c5 2413 [ab].out )
8a2fc586
AK
2414 # We found the default executable, but exeext='' is most
2415 # certainly right.
2416 break;;
ad6254c5 2417 *.* )
7a197a62
AK
2418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2419 then :; else
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 fi
2422 # We set ac_cv_exeext here because the later test for it is not
2423 # safe: cross compilers may not add the suffix if given an `-o'
2424 # argument, so we may need to know it at that point already.
2425 # Even if this section looks crufty: it has the advantage of
2426 # actually working.
8a2fc586 2427 break;;
ad6254c5 2428 * )
8a2fc586 2429 break;;
ad6254c5
AK
2430 esac
2431done
7a197a62
AK
2432test "$ac_cv_exeext" = no && ac_cv_exeext=
2433
ad6254c5 2434else
1995c9ff 2435 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
1995c9ff 2438{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2439See \`config.log' for more details." >&5
1995c9ff 2440echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2441See \`config.log' for more details." >&2;}
2442 { (exit 77); exit 77; }; }
2443fi
2444
2445ac_exeext=$ac_cv_exeext
fc54be10
AK
2446{ echo "$as_me:$LINENO: result: $ac_file" >&5
2447echo "${ECHO_T}$ac_file" >&6; }
ad6254c5 2448
7a197a62 2449# Check that the compiler produces executables we can run. If not, either
ad6254c5 2450# the compiler is broken, or we cross compile.
1995c9ff
AK
2451{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2453# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454# If not cross compiling, check that we can run a simple program.
2455if test "$cross_compiling" != yes; then
2456 if { ac_try='./$ac_file'
7a197a62
AK
2457 { (case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460esac
1995c9ff 2461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2462 (eval "$ac_try") 2>&5
ad6254c5 2463 ac_status=$?
1995c9ff 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2465 (exit $ac_status); }; }; then
2466 cross_compiling=no
795ca3e5 2467 else
ad6254c5
AK
2468 if test "$cross_compiling" = maybe; then
2469 cross_compiling=yes
2470 else
1995c9ff 2471 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2472If you meant to cross compile, use \`--host'.
2473See \`config.log' for more details." >&5
1995c9ff 2474echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2475If you meant to cross compile, use \`--host'.
2476See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }
2478 fi
795ca3e5 2479 fi
80992638 2480fi
1995c9ff
AK
2481{ echo "$as_me:$LINENO: result: yes" >&5
2482echo "${ECHO_T}yes" >&6; }
ad6254c5
AK
2483
2484rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485ac_clean_files=$ac_clean_files_save
7a197a62 2486# Check that the compiler produces executables we can run. If not, either
ad6254c5 2487# the compiler is broken, or we cross compile.
1995c9ff
AK
2488{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2490{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2492
1995c9ff
AK
2493{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2495if { (ac_try="$ac_link"
2496case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
1995c9ff 2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2501 (eval "$ac_link") 2>&5
ad6254c5 2502 ac_status=$?
1995c9ff 2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2504 (exit $ac_status); }; then
2505 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2506# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2507# work properly (i.e., refer to `conftest.exe'), while it won't with
2508# `rm'.
2509for ac_file in conftest.exe conftest conftest.*; do
2510 test -f "$ac_file" || continue
2511 case $ac_file in
7a197a62 2512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2514 break;;
ad6254c5
AK
2515 * ) break;;
2516 esac
2517done
80992638 2518else
1995c9ff 2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2520See \`config.log' for more details." >&5
1995c9ff 2521echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2522See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2524fi
2525
2526rm -f conftest$ac_cv_exeext
1995c9ff
AK
2527{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2528echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2529
2530rm -f conftest.$ac_ext
2531EXEEXT=$ac_cv_exeext
2532ac_exeext=$EXEEXT
1995c9ff
AK
2533{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2534echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2535if test "${ac_cv_objext+set}" = set; then
1995c9ff 2536 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2537else
ad6254c5 2538 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2539/* confdefs.h. */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h. */
2544
2545int
2546main ()
2547{
2548
2549 ;
2550 return 0;
2551}
2552_ACEOF
2553rm -f conftest.o conftest.obj
7a197a62
AK
2554if { (ac_try="$ac_compile"
2555case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558esac
1995c9ff 2559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2560 (eval "$ac_compile") 2>&5
ad6254c5 2561 ac_status=$?
1995c9ff 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2563 (exit $ac_status); }; then
7a197a62
AK
2564 for ac_file in conftest.o conftest.obj conftest.*; do
2565 test -f "$ac_file" || continue;
ad6254c5 2566 case $ac_file in
7a197a62 2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2569 break;;
2570 esac
2571done
2572else
1995c9ff 2573 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
1995c9ff 2576{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2577See \`config.log' for more details." >&5
1995c9ff 2578echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2579See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }
2581fi
2582
2583rm -f conftest.$ac_cv_objext conftest.$ac_ext
2584fi
1995c9ff
AK
2585{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2586echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2587OBJEXT=$ac_cv_objext
2588ac_objext=$OBJEXT
1995c9ff
AK
2589{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2590echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2591if test "${ac_cv_c_compiler_gnu+set}" = set; then
1995c9ff 2592 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2595/* confdefs.h. */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h. */
2600
2601int
2602main ()
2603{
2604#ifndef __GNUC__
2605 choke me
2606#endif
80992638 2607
ad6254c5
AK
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612rm -f conftest.$ac_objext
7a197a62
AK
2613if { (ac_try="$ac_compile"
2614case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617esac
1995c9ff 2618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2619 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2620 ac_status=$?
8a2fc586
AK
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
1995c9ff 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2627 { (case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630esac
2631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_try") 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; } &&
2636 { ac_try='test -s conftest.$ac_objext'
2637 { (case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
2641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_try") 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
ad6254c5 2646 ac_compiler_gnu=yes
80992638 2647else
1995c9ff 2648 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
7a197a62 2651 ac_compiler_gnu=no
8106cdd5 2652fi
7a197a62
AK
2653
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2655ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2656
ad6254c5 2657fi
1995c9ff
AK
2658{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2659echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2660GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2661ac_test_CFLAGS=${CFLAGS+set}
2662ac_save_CFLAGS=$CFLAGS
1995c9ff
AK
2663{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2665if test "${ac_cv_prog_cc_g+set}" = set; then
1995c9ff 2666 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2667else
7a197a62
AK
2668 ac_save_c_werror_flag=$ac_c_werror_flag
2669 ac_c_werror_flag=yes
2670 ac_cv_prog_cc_g=no
2671 CFLAGS="-g"
2672 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2673/* confdefs.h. */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h. */
2678
2679int
2680main ()
2681{
2682
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687rm -f conftest.$ac_objext
7a197a62
AK
2688if { (ac_try="$ac_compile"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
1995c9ff 2693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2694 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2695 ac_status=$?
8a2fc586
AK
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
1995c9ff 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_try") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try='test -s conftest.$ac_objext'
2712 { (case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_try") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
7a197a62
AK
2721 ac_cv_prog_cc_g=yes
2722else
1995c9ff 2723 echo "$as_me: failed program was:" >&5
7a197a62
AK
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726 CFLAGS=""
2727 cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733
2734int
2735main ()
2736{
2737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742rm -f conftest.$ac_objext
2743if { (ac_try="$ac_compile"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
1995c9ff 2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2749 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2750 ac_status=$?
7a197a62
AK
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
1995c9ff 2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2757 { (case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_try") 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
2771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_try") 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
7a197a62
AK
2776 :
2777else
1995c9ff 2778 echo "$as_me: failed program was:" >&5
7a197a62
AK
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 ac_c_werror_flag=$ac_save_c_werror_flag
2782 CFLAGS="-g"
2783 cat >conftest.$ac_ext <<_ACEOF
2784/* confdefs.h. */
2785_ACEOF
2786cat confdefs.h >>conftest.$ac_ext
2787cat >>conftest.$ac_ext <<_ACEOF
2788/* end confdefs.h. */
2789
2790int
2791main ()
2792{
2793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798rm -f conftest.$ac_objext
2799if { (ac_try="$ac_compile"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
1995c9ff 2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2805 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2806 ac_status=$?
7a197a62
AK
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
1995c9ff 2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2813 { (case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816esac
2817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_try") 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_try") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
795ca3e5
AK
2832 ac_cv_prog_cc_g=yes
2833else
1995c9ff 2834 echo "$as_me: failed program was:" >&5
ad6254c5 2835sed 's/^/| /' conftest.$ac_ext >&5
80992638 2836
7a197a62
AK
2837
2838fi
2839
2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841fi
2842
2843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2844fi
7a197a62
AK
2845
2846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2848fi
1995c9ff
AK
2849{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2850echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2851if test "$ac_test_CFLAGS" = set; then
ad6254c5 2852 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2853elif test $ac_cv_prog_cc_g = yes; then
2854 if test "$GCC" = yes; then
2855 CFLAGS="-g -O2"
2856 else
2857 CFLAGS="-g"
2858 fi
2859else
2860 if test "$GCC" = yes; then
2861 CFLAGS="-O2"
2862 else
2863 CFLAGS=
2864 fi
2865fi
1995c9ff
AK
2866{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2867echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2868if test "${ac_cv_prog_cc_c89+set}" = set; then
1995c9ff 2869 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2870else
7a197a62 2871 ac_cv_prog_cc_c89=no
ad6254c5
AK
2872ac_save_CC=$CC
2873cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2874/* confdefs.h. */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h. */
2879#include <stdarg.h>
2880#include <stdio.h>
2881#include <sys/types.h>
2882#include <sys/stat.h>
2883/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2884struct buf { int x; };
2885FILE * (*rcsopen) (struct buf *, struct stat *, int);
2886static char *e (p, i)
2887 char **p;
2888 int i;
2889{
2890 return p[i];
2891}
2892static char *f (char * (*g) (char **, int), char **p, ...)
2893{
2894 char *s;
2895 va_list v;
2896 va_start (v,p);
2897 s = g (p, va_arg (v,int));
2898 va_end (v);
2899 return s;
2900}
8a2fc586
AK
2901
2902/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2903 function prototypes and stuff, but not '\xHH' hex character constants.
2904 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2905 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2907 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2908 that's true only with -std. */
8a2fc586
AK
2909int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2910
7a197a62
AK
2911/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2912 inside strings and character constants. */
2913#define FOO(x) 'x'
2914int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2915
ad6254c5
AK
2916int test (int i, double x);
2917struct s1 {int (*f) (int a);};
2918struct s2 {int (*f) (double a);};
2919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920int argc;
2921char **argv;
2922int
2923main ()
2924{
2925return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2926 ;
2927 return 0;
2928}
2929_ACEOF
7a197a62
AK
2930for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2932do
2933 CC="$ac_save_CC $ac_arg"
2934 rm -f conftest.$ac_objext
7a197a62
AK
2935if { (ac_try="$ac_compile"
2936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
1995c9ff 2940eval "echo \"\$as_me:$LINENO: $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
1995c9ff 2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2949 { (case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_try") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_try") 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
7a197a62 2968 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 2969else
1995c9ff 2970 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
7a197a62 2973
ad6254c5 2974fi
7a197a62
AK
2975
2976rm -f core conftest.err conftest.$ac_objext
2977 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 2978done
7a197a62 2979rm -f conftest.$ac_ext
ad6254c5
AK
2980CC=$ac_save_CC
2981
2982fi
7a197a62
AK
2983# AC_CACHE_VAL
2984case "x$ac_cv_prog_cc_c89" in
2985 x)
1995c9ff
AK
2986 { echo "$as_me:$LINENO: result: none needed" >&5
2987echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 2988 xno)
1995c9ff
AK
2989 { echo "$as_me:$LINENO: result: unsupported" >&5
2990echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 2991 *)
7a197a62 2992 CC="$CC $ac_cv_prog_cc_c89"
1995c9ff
AK
2993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2994echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
2995esac
2996
ad6254c5 2997
ad6254c5
AK
2998ac_ext=c
2999ac_cpp='$CPP $CPPFLAGS'
3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
3003
3004# Find a good install program. We prefer a C program (faster),
3005# so one script is as good as another. But avoid the broken or
3006# incompatible versions:
3007# SysV /etc/install, /usr/sbin/install
3008# SunOS /usr/etc/install
3009# IRIX /sbin/install
3010# AIX /bin/install
ad6254c5 3011# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
3012# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 3015# OS/2's system install, which has a completely different semantic
795ca3e5 3016# ./install, which can be erroneously created by make from ./install.sh.
1995c9ff
AK
3017{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3018echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
795ca3e5 3019if test -z "$INSTALL"; then
ad6254c5 3020if test "${ac_cv_path_install+set}" = set; then
1995c9ff 3021 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
3022else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 # Account for people who put trailing slashes in PATH elements.
3029case $as_dir/ in
3030 ./ | .// | /cC/* | \
3031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 3032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
3033 /usr/ucb/* ) ;;
3034 *)
3035 # OSF1 and SCO ODT 3.0 have their own names for install.
3036 # Don't use installbsd from OSF since it installs stuff as root
3037 # by default.
3038 for ac_prog in ginstall scoinst install; do
3039 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 3040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8a2fc586
AK
3041 if test $ac_prog = install &&
3042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3043 # AIX install. It has an incompatible calling convention.
3044 :
3045 elif test $ac_prog = install &&
3046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3047 # program-specific install script used by HP pwplus--don't use.
3048 :
3049 else
3050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3051 break 3
3052 fi
3053 fi
795ca3e5 3054 done
ad6254c5
AK
3055 done
3056 ;;
3057esac
3058done
7a197a62 3059IFS=$as_save_IFS
ad6254c5 3060
795ca3e5
AK
3061
3062fi
3063 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 3064 INSTALL=$ac_cv_path_install
795ca3e5 3065 else
7a197a62
AK
3066 # As a last resort, use the slow shell script. Don't cache a
3067 # value for INSTALL within a source directory, because that will
795ca3e5 3068 # break other packages using the cache if that directory is
7a197a62 3069 # removed, or if the value is a relative name.
ad6254c5 3070 INSTALL=$ac_install_sh
795ca3e5
AK
3071 fi
3072fi
1995c9ff
AK
3073{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3074echo "${ECHO_T}$INSTALL" >&6; }
795ca3e5
AK
3075
3076# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077# It thinks the first close brace ends the variable substitution.
3078test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3079
ad6254c5 3080test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
3081
3082test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3083
1995c9ff
AK
3084{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3085echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
ad6254c5
AK
3086LN_S=$as_ln_s
3087if test "$LN_S" = "ln -s"; then
1995c9ff
AK
3088 { echo "$as_me:$LINENO: result: yes" >&5
3089echo "${ECHO_T}yes" >&6; }
80992638 3090else
1995c9ff
AK
3091 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3092echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5
AK
3093fi
3094
1995c9ff
AK
3095{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3097set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7a197a62 3098if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 3099 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3100else
ad6254c5 3101 cat >conftest.make <<\_ACEOF
7a197a62 3102SHELL = /bin/sh
795ca3e5 3103all:
7a197a62 3104 @echo '@@@%%%=$(MAKE)=@@@%%%'
ad6254c5 3105_ACEOF
795ca3e5 3106# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7a197a62
AK
3107case `${MAKE-make} -f conftest.make 2>/dev/null` in
3108 *@@@%%%=?*=@@@%%%*)
3109 eval ac_cv_prog_make_${ac_make}_set=yes;;
3110 *)
3111 eval ac_cv_prog_make_${ac_make}_set=no;;
3112esac
ad6254c5 3113rm -f conftest.make
795ca3e5 3114fi
7a197a62 3115if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1995c9ff
AK
3116 { echo "$as_me:$LINENO: result: yes" >&5
3117echo "${ECHO_T}yes" >&6; }
795ca3e5
AK
3118 SET_MAKE=
3119else
1995c9ff
AK
3120 { echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6; }
795ca3e5
AK
3122 SET_MAKE="MAKE=${MAKE-make}"
3123fi
3124
ad6254c5
AK
3125if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3127set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1995c9ff
AK
3128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 3130if test "${ac_cv_prog_RANLIB+set}" = set; then
1995c9ff 3131 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
3132else
3133 if test -n "$RANLIB"; then
3134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3135else
ad6254c5
AK
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 3143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1995c9ff 3144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
3145 break 2
3146 fi
3147done
3148done
7a197a62 3149IFS=$as_save_IFS
ad6254c5 3150
795ca3e5
AK
3151fi
3152fi
ad6254c5 3153RANLIB=$ac_cv_prog_RANLIB
795ca3e5 3154if test -n "$RANLIB"; then
1995c9ff
AK
3155 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3156echo "${ECHO_T}$RANLIB" >&6; }
8106cdd5 3157else
1995c9ff
AK
3158 { echo "$as_me:$LINENO: result: no" >&5
3159echo "${ECHO_T}no" >&6; }
8106cdd5
AK
3160fi
3161
7a197a62 3162
795ca3e5 3163fi
ad6254c5
AK
3164if test -z "$ac_cv_prog_RANLIB"; then
3165 ac_ct_RANLIB=$RANLIB
3166 # Extract the first word of "ranlib", so it can be a program name with args.
3167set dummy ranlib; ac_word=$2
1995c9ff
AK
3168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 3170if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1995c9ff 3171 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 3172else
ad6254c5
AK
3173 if test -n "$ac_ct_RANLIB"; then
3174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 3183 ac_cv_prog_ac_ct_RANLIB="ranlib"
1995c9ff 3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
3185 break 2
3186 fi
3187done
795ca3e5 3188done
7a197a62 3189IFS=$as_save_IFS
8106cdd5 3190
795ca3e5 3191fi
80992638 3192fi
ad6254c5
AK
3193ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3194if test -n "$ac_ct_RANLIB"; then
1995c9ff
AK
3195 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3196echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
80992638 3197else
1995c9ff
AK
3198 { echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6; }
8106cdd5 3200fi
8106cdd5 3201
7a197a62
AK
3202 if test "x$ac_ct_RANLIB" = x; then
3203 RANLIB=":"
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206yes:)
1995c9ff 3207{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
3208whose name does not start with the host triplet. If you think this
3209configuration is useful to you, please write to autoconf@gnu.org." >&5
1995c9ff 3210echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
3211whose name does not start with the host triplet. If you think this
3212configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3213ac_tool_warned=yes ;;
3214esac
3215 RANLIB=$ac_ct_RANLIB
3216 fi
80992638 3217else
ad6254c5 3218 RANLIB="$ac_cv_prog_RANLIB"
80992638 3219fi
795ca3e5 3220
8a2fc586
AK
3221# Extract the first word of "cflow", so it can be a program name with args.
3222set dummy cflow; ac_word=$2
1995c9ff
AK
3223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8a2fc586 3225if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
1995c9ff 3226 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
3227else
3228 case $CFLOW_CMD in
3229 [\\/]* | ?:[\\/]*)
3230 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3231 ;;
3232 *)
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586 3240 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8a2fc586
AK
3242 break 2
3243 fi
3244done
3245done
7a197a62 3246IFS=$as_save_IFS
8a2fc586
AK
3247
3248 ;;
3249esac
3250fi
3251CFLOW_CMD=$ac_cv_path_CFLOW_CMD
8a2fc586 3252if test -n "$CFLOW_CMD"; then
1995c9ff
AK
3253 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3254echo "${ECHO_T}$CFLOW_CMD" >&6; }
8a2fc586 3255else
1995c9ff
AK
3256 { echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6; }
8a2fc586
AK
3258fi
3259
7a197a62 3260
8a2fc586
AK
3261# Extract the first word of "cscope", so it can be a program name with args.
3262set dummy cscope; ac_word=$2
1995c9ff
AK
3263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8a2fc586 3265if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
1995c9ff 3266 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
3267else
3268 case $CSCOPE_CMD in
3269 [\\/]* | ?:[\\/]*)
3270 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3271 ;;
3272 *)
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8a2fc586 3280 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 3281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8a2fc586
AK
3282 break 2
3283 fi
3284done
3285done
7a197a62 3286IFS=$as_save_IFS
8a2fc586
AK
3287
3288 ;;
3289esac
3290fi
3291CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
8a2fc586 3292if test -n "$CSCOPE_CMD"; then
1995c9ff
AK
3293 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3294echo "${ECHO_T}$CSCOPE_CMD" >&6; }
8a2fc586 3295else
1995c9ff
AK
3296 { echo "$as_me:$LINENO: result: no" >&5
3297echo "${ECHO_T}no" >&6; }
8a2fc586
AK
3298fi
3299
795ca3e5 3300
7a197a62 3301
ad6254c5
AK
3302################################################################################
3303
3304
3305
3306
3307
3308
3309ac_header_dirent=no
3310for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
1995c9ff
AK
3311 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3312{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3313echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7a197a62 3314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 3315 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3316else
ad6254c5 3317 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323#include <sys/types.h>
3324#include <$ac_hdr>
3325
3326int
3327main ()
3328{
3329if ((DIR *) 0)
3330return 0;
3331 ;
3332 return 0;
3333}
3334_ACEOF
3335rm -f conftest.$ac_objext
7a197a62
AK
3336if { (ac_try="$ac_compile"
3337case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
1995c9ff 3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3342 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3343 ac_status=$?
8a2fc586
AK
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
1995c9ff 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_try") 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
ad6254c5 3369 eval "$as_ac_Header=yes"
8106cdd5 3370else
1995c9ff 3371 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
7a197a62 3374 eval "$as_ac_Header=no"
795ca3e5 3375fi
7a197a62
AK
3376
3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 3378fi
1995c9ff
AK
3379ac_res=`eval echo '${'$as_ac_Header'}'`
3380 { echo "$as_me:$LINENO: result: $ac_res" >&5
3381echo "${ECHO_T}$ac_res" >&6; }
3382if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 3383 cat >>confdefs.h <<_ACEOF
1995c9ff 3384#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
ad6254c5
AK
3385_ACEOF
3386
3387ac_header_dirent=$ac_hdr; break
795ca3e5 3388fi
8106cdd5 3389
ad6254c5
AK
3390done
3391# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3392if test $ac_header_dirent = dirent.h; then
1995c9ff
AK
3393 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3394echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
ad6254c5 3395if test "${ac_cv_search_opendir+set}" = set; then
1995c9ff 3396 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3397else
ad6254c5 3398 ac_func_search_save_LIBS=$LIBS
ad6254c5 3399cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
3405
7a197a62
AK
3406/* Override any GCC internal prototype to avoid an error.
3407 Use char because int might match the return type of a GCC
3408 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3409#ifdef __cplusplus
3410extern "C"
3411#endif
ad6254c5
AK
3412char opendir ();
3413int
3414main ()
3415{
7a197a62 3416return opendir ();
ad6254c5
AK
3417 ;
3418 return 0;
3419}
3420_ACEOF
7a197a62
AK
3421for ac_lib in '' dir; do
3422 if test -z "$ac_lib"; then
3423 ac_res="none required"
3424 else
3425 ac_res=-l$ac_lib
3426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3427 fi
3428 rm -f conftest.$ac_objext conftest$ac_exeext
3429if { (ac_try="$ac_link"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
1995c9ff 3434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3435 (eval "$ac_link") 2>conftest.er1
ad6254c5 3436 ac_status=$?
8a2fc586
AK
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
1995c9ff 3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3443 { (case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
3447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_try") 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; } &&
3452 { ac_try='test -s conftest$ac_exeext'
3453 { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
3457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
7a197a62 3462 ac_cv_search_opendir=$ac_res
795ca3e5 3463else
1995c9ff 3464 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
795ca3e5 3467
7a197a62 3468fi
795ca3e5 3469
fc54be10 3470rm -f core conftest.err conftest.$ac_objext \
7a197a62
AK
3471 conftest$ac_exeext
3472 if test "${ac_cv_search_opendir+set}" = set; then
3473 break
795ca3e5 3474fi
7a197a62
AK
3475done
3476if test "${ac_cv_search_opendir+set}" = set; then
3477 :
3478else
3479 ac_cv_search_opendir=no
795ca3e5 3480fi
7a197a62 3481rm conftest.$ac_ext
ad6254c5
AK
3482LIBS=$ac_func_search_save_LIBS
3483fi
1995c9ff
AK
3484{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3485echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7a197a62
AK
3486ac_res=$ac_cv_search_opendir
3487if test "$ac_res" != no; then
3488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
795ca3e5
AK
3489
3490fi
3491
795ca3e5 3492else
1995c9ff
AK
3493 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3494echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
ad6254c5 3495if test "${ac_cv_search_opendir+set}" = set; then
1995c9ff 3496 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
3497else
3498 ac_func_search_save_LIBS=$LIBS
ad6254c5 3499cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3500/* confdefs.h. */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h. */
80992638 3505
7a197a62
AK
3506/* Override any GCC internal prototype to avoid an error.
3507 Use char because int might match the return type of a GCC
3508 builtin and then its argument prototype would still apply. */
ad6254c5
AK
3509#ifdef __cplusplus
3510extern "C"
3511#endif
ad6254c5
AK
3512char opendir ();
3513int
3514main ()
3515{
7a197a62 3516return opendir ();
ad6254c5
AK
3517 ;
3518 return 0;
3519}
3520_ACEOF
7a197a62
AK
3521for ac_lib in '' x; do
3522 if test -z "$ac_lib"; then
3523 ac_res="none required"
3524 else
3525 ac_res=-l$ac_lib
3526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3527 fi
3528 rm -f conftest.$ac_objext conftest$ac_exeext
3529if { (ac_try="$ac_link"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
1995c9ff 3534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3535 (eval "$ac_link") 2>conftest.er1
ad6254c5 3536 ac_status=$?
8a2fc586
AK
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
1995c9ff 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3541 (exit $ac_status); } &&
3542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3543 { (case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546esac
3547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_try") 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest$ac_exeext'
3553 { (case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_try") 2>&5
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
7a197a62 3562 ac_cv_search_opendir=$ac_res
795ca3e5 3563else
1995c9ff 3564 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3565sed 's/^/| /' conftest.$ac_ext >&5
3566
ad6254c5 3567
7a197a62 3568fi
80992638 3569
fc54be10 3570rm -f core conftest.err conftest.$ac_objext \
7a197a62
AK
3571 conftest$ac_exeext
3572 if test "${ac_cv_search_opendir+set}" = set; then
3573 break
795ca3e5 3574fi
7a197a62
AK
3575done
3576if test "${ac_cv_search_opendir+set}" = set; then
3577 :
3578else
3579 ac_cv_search_opendir=no
ad6254c5 3580fi
7a197a62 3581rm conftest.$ac_ext
ad6254c5 3582LIBS=$ac_func_search_save_LIBS
795ca3e5 3583fi
1995c9ff
AK
3584{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3585echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7a197a62
AK
3586ac_res=$ac_cv_search_opendir
3587if test "$ac_res" != no; then
3588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8106cdd5 3589
ad6254c5 3590fi
8106cdd5 3591
795ca3e5 3592fi
8106cdd5 3593
ad6254c5
AK
3594ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995c9ff
AK
3599{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3600echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
ad6254c5
AK
3601# On Suns, sometimes $CPP names a directory.
3602if test -n "$CPP" && test -d "$CPP"; then
3603 CPP=
3604fi
3605if test -z "$CPP"; then
3606 if test "${ac_cv_prog_CPP+set}" = set; then
1995c9ff 3607 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
3608else
3609 # Double quotes because CPP needs to be expanded
3610 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3611 do
3612 ac_preproc_ok=false
3613for ac_c_preproc_warn_flag in '' yes
8106cdd5 3614do
ad6254c5
AK
3615 # Use a header file that comes with gcc, so configuring glibc
3616 # with a fresh cross-compiler works.
3617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3618 # <limits.h> exists even on freestanding compilers.
3619 # On the NeXT, cc -E runs the code through the compiler's parser,
3620 # not just through cpp. "Syntax error" is here to catch this case.
3621 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
3627#ifdef __STDC__
3628# include <limits.h>
3629#else
3630# include <assert.h>
3631#endif
8a2fc586 3632 Syntax error
ad6254c5 3633_ACEOF
7a197a62
AK
3634if { (ac_try="$ac_cpp conftest.$ac_ext"
3635case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638esac
1995c9ff 3639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
1995c9ff 3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3650 else
3651 ac_cpp_err=
3652 fi
3653else
3654 ac_cpp_err=yes
3655fi
3656if test -z "$ac_cpp_err"; then
ad6254c5
AK
3657 :
3658else
1995c9ff 3659 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 # Broken: fails on valid input.
3663continue
3664fi
7a197a62 3665
ad6254c5
AK
3666rm -f conftest.err conftest.$ac_ext
3667
7a197a62 3668 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3669 # can be detected and how.
3670 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3671/* confdefs.h. */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h. */
3676#include <ac_nonexistent.h>
3677_ACEOF
7a197a62
AK
3678if { (ac_try="$ac_cpp conftest.$ac_ext"
3679case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
1995c9ff 3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3685 ac_status=$?
3686 grep -v '^ *+' conftest.er1 >conftest.err
3687 rm -f conftest.er1
3688 cat conftest.err >&5
1995c9ff 3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3690 (exit $ac_status); } >/dev/null; then
3691 if test -s conftest.err; then
3692 ac_cpp_err=$ac_c_preproc_warn_flag
3693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3694 else
3695 ac_cpp_err=
3696 fi
3697else
3698 ac_cpp_err=yes
3699fi
3700if test -z "$ac_cpp_err"; then
ad6254c5
AK
3701 # Broken: success on invalid input.
3702continue
80992638 3703else
1995c9ff 3704 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 # Passes both tests.
3708ac_preproc_ok=:
3709break
795ca3e5 3710fi
7a197a62 3711
ad6254c5
AK
3712rm -f conftest.err conftest.$ac_ext
3713
795ca3e5 3714done
ad6254c5
AK
3715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716rm -f conftest.err conftest.$ac_ext
3717if $ac_preproc_ok; then
3718 break
3719fi
795ca3e5 3720
ad6254c5
AK
3721 done
3722 ac_cv_prog_CPP=$CPP
795ca3e5 3723
ad6254c5
AK
3724fi
3725 CPP=$ac_cv_prog_CPP
795ca3e5 3726else
ad6254c5 3727 ac_cv_prog_CPP=$CPP
795ca3e5 3728fi
1995c9ff
AK
3729{ echo "$as_me:$LINENO: result: $CPP" >&5
3730echo "${ECHO_T}$CPP" >&6; }
ad6254c5
AK
3731ac_preproc_ok=false
3732for ac_c_preproc_warn_flag in '' yes
3733do
3734 # Use a header file that comes with gcc, so configuring glibc
3735 # with a fresh cross-compiler works.
3736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3737 # <limits.h> exists even on freestanding compilers.
3738 # On the NeXT, cc -E runs the code through the compiler's parser,
3739 # not just through cpp. "Syntax error" is here to catch this case.
3740 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
3746#ifdef __STDC__
3747# include <limits.h>
3748#else
3749# include <assert.h>
3750#endif
8a2fc586 3751 Syntax error
ad6254c5 3752_ACEOF
7a197a62
AK
3753if { (ac_try="$ac_cpp conftest.$ac_ext"
3754case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757esac
1995c9ff 3758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
1995c9ff 3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3765 (exit $ac_status); } >/dev/null; then
3766 if test -s conftest.err; then
3767 ac_cpp_err=$ac_c_preproc_warn_flag
3768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3769 else
3770 ac_cpp_err=
3771 fi
3772else
3773 ac_cpp_err=yes
3774fi
3775if test -z "$ac_cpp_err"; then
ad6254c5
AK
3776 :
3777else
1995c9ff 3778 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 # Broken: fails on valid input.
3782continue
3783fi
7a197a62 3784
ad6254c5
AK
3785rm -f conftest.err conftest.$ac_ext
3786
7a197a62 3787 # OK, works on sane cases. Now check whether nonexistent headers
ad6254c5
AK
3788 # can be detected and how.
3789 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
3795#include <ac_nonexistent.h>
3796_ACEOF
7a197a62
AK
3797if { (ac_try="$ac_cpp conftest.$ac_ext"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
1995c9ff 3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 3803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
1995c9ff 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
3809 (exit $ac_status); } >/dev/null; then
3810 if test -s conftest.err; then
3811 ac_cpp_err=$ac_c_preproc_warn_flag
3812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3813 else
3814 ac_cpp_err=
3815 fi
3816else
3817 ac_cpp_err=yes
3818fi
3819if test -z "$ac_cpp_err"; then
ad6254c5
AK
3820 # Broken: success on invalid input.
3821continue
3822else
1995c9ff 3823 echo "$as_me: failed program was:" >&5
ad6254c5 3824sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3825
ad6254c5
AK
3826 # Passes both tests.
3827ac_preproc_ok=:
3828break
795ca3e5 3829fi
7a197a62 3830
ad6254c5 3831rm -f conftest.err conftest.$ac_ext
795ca3e5 3832
ad6254c5
AK
3833done
3834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835rm -f conftest.err conftest.$ac_ext
3836if $ac_preproc_ok; then
3837 :
795ca3e5 3838else
1995c9ff 3839 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
ad6254c5 3840See \`config.log' for more details." >&5
1995c9ff 3841echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
ad6254c5
AK
3842See \`config.log' for more details." >&2;}
3843 { (exit 1); exit 1; }; }
795ca3e5 3844fi
795ca3e5 3845
ad6254c5
AK
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852
1995c9ff
AK
3853{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3854echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7a197a62 3855if test "${ac_cv_path_GREP+set}" = set; then
1995c9ff 3856 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3857else
3858 # Extract the first word of "grep ggrep" to use in msg output
3859if test -z "$GREP"; then
3860set dummy grep ggrep; ac_prog_name=$2
3861if test "${ac_cv_path_GREP+set}" = set; then
1995c9ff 3862 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3863else
7a197a62
AK
3864 ac_path_GREP_found=false
3865# Loop through the user's path and test for each of PROGNAME-LIST
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_prog in grep ggrep; do
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
fc54be10 3874 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7a197a62
AK
3875 # Check for GNU ac_path_GREP and select it if it is found.
3876 # Check for GNU $ac_path_GREP
3877case `"$ac_path_GREP" --version 2>&1` in
3878*GNU*)
3879 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3880*)
3881 ac_count=0
1995c9ff 3882 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7a197a62
AK
3883 while :
3884 do
3885 cat "conftest.in" "conftest.in" >"conftest.tmp"
3886 mv "conftest.tmp" "conftest.in"
3887 cp "conftest.in" "conftest.nl"
1995c9ff 3888 echo 'GREP' >> "conftest.nl"
7a197a62
AK
3889 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3891 ac_count=`expr $ac_count + 1`
3892 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3893 # Best one so far, save it but keep looking for a better one
3894 ac_cv_path_GREP="$ac_path_GREP"
3895 ac_path_GREP_max=$ac_count
ad6254c5 3896 fi
7a197a62
AK
3897 # 10*(2^10) chars as input seems more than enough
3898 test $ac_count -gt 10 && break
3899 done
3900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901esac
80992638 3902
795ca3e5 3903
7a197a62
AK
3904 $ac_path_GREP_found && break 3
3905 done
3906done
ad6254c5 3907
7a197a62
AK
3908done
3909IFS=$as_save_IFS
ad6254c5 3910
ad6254c5 3911
795ca3e5 3912fi
ad6254c5 3913
7a197a62
AK
3914GREP="$ac_cv_path_GREP"
3915if test -z "$GREP"; then
1995c9ff
AK
3916 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3917echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7a197a62
AK
3918 { (exit 1); exit 1; }; }
3919fi
3920
3921else
3922 ac_cv_path_GREP=$GREP
3923fi
3924
3925
3926fi
1995c9ff
AK
3927{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3928echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7a197a62
AK
3929 GREP="$ac_cv_path_GREP"
3930
3931
1995c9ff
AK
3932{ echo "$as_me:$LINENO: checking for egrep" >&5
3933echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7a197a62 3934if test "${ac_cv_path_EGREP+set}" = set; then
1995c9ff 3935 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3936else
3937 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3938 then ac_cv_path_EGREP="$GREP -E"
3939 else
3940 # Extract the first word of "egrep" to use in msg output
3941if test -z "$EGREP"; then
3942set dummy egrep; ac_prog_name=$2
3943if test "${ac_cv_path_EGREP+set}" = set; then
1995c9ff 3944 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3945else
3946 ac_path_EGREP_found=false
3947# Loop through the user's path and test for each of PROGNAME-LIST
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in egrep; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
fc54be10 3956 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7a197a62
AK
3957 # Check for GNU ac_path_EGREP and select it if it is found.
3958 # Check for GNU $ac_path_EGREP
3959case `"$ac_path_EGREP" --version 2>&1` in
3960*GNU*)
3961 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3962*)
3963 ac_count=0
1995c9ff 3964 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7a197a62
AK
3965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
1995c9ff 3970 echo 'EGREP' >> "conftest.nl"
7a197a62
AK
3971 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 ac_count=`expr $ac_count + 1`
3974 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_EGREP="$ac_path_EGREP"
3977 ac_path_EGREP_max=$ac_count
3978 fi
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983esac
3984
3985
3986 $ac_path_EGREP_found && break 3
3987 done
3988done
3989
3990done
3991IFS=$as_save_IFS
3992
3993
3994fi
3995
3996EGREP="$ac_cv_path_EGREP"
3997if test -z "$EGREP"; then
1995c9ff
AK
3998 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3999echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7a197a62
AK
4000 { (exit 1); exit 1; }; }
4001fi
4002
4003else
4004 ac_cv_path_EGREP=$EGREP
4005fi
4006
4007
4008 fi
4009fi
1995c9ff
AK
4010{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4011echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7a197a62
AK
4012 EGREP="$ac_cv_path_EGREP"
4013
4014
1995c9ff
AK
4015{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4016echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 4017if test "${ac_cv_header_stdc+set}" = set; then
1995c9ff 4018 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
4019else
4020 cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h. */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h. */
4026#include <stdlib.h>
4027#include <stdarg.h>
4028#include <string.h>
4029#include <float.h>
4030
4031int
4032main ()
4033{
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (ac_try="$ac_compile"
4041case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
1995c9ff 4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
1995c9ff 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
7a197a62
AK
4073 ac_cv_header_stdc=yes
4074else
1995c9ff 4075 echo "$as_me: failed program was:" >&5
7a197a62
AK
4076sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 ac_cv_header_stdc=no
4079fi
4080
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082
4083if test $ac_cv_header_stdc = yes; then
4084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4085 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
4091#include <string.h>
8106cdd5 4092
ad6254c5
AK
4093_ACEOF
4094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "memchr" >/dev/null 2>&1; then
4096 :
4097else
4098 ac_cv_header_stdc=no
80992638 4099fi
ad6254c5 4100rm -f conftest*
795ca3e5
AK
4101
4102fi
4103
ad6254c5
AK
4104if test $ac_cv_header_stdc = yes; then
4105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4106 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
80992638 4112#include <stdlib.h>
ad6254c5
AK
4113
4114_ACEOF
80992638 4115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4116 $EGREP "free" >/dev/null 2>&1; then
4117 :
795ca3e5 4118else
ad6254c5 4119 ac_cv_header_stdc=no
795ca3e5 4120fi
80992638 4121rm -f conftest*
8106cdd5 4122
795ca3e5
AK
4123fi
4124
ad6254c5
AK
4125if test $ac_cv_header_stdc = yes; then
4126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4127 if test "$cross_compiling" = yes; then
4128 :
795ca3e5 4129else
ad6254c5 4130 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4131/* confdefs.h. */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h. */
4136#include <ctype.h>
7a197a62 4137#include <stdlib.h>
ad6254c5
AK
4138#if ((' ' & 0x0FF) == 0x020)
4139# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141#else
4142# define ISLOWER(c) \
8a2fc586
AK
4143 (('a' <= (c) && (c) <= 'i') \
4144 || ('j' <= (c) && (c) <= 'r') \
4145 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4146# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4147#endif
ad6254c5
AK
4148
4149#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4150int
4151main ()
4152{
4153 int i;
4154 for (i = 0; i < 256; i++)
4155 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4156 || toupper (i) != TOUPPER (i))
7a197a62
AK
4157 return 2;
4158 return 0;
ad6254c5
AK
4159}
4160_ACEOF
4161rm -f conftest$ac_exeext
7a197a62
AK
4162if { (ac_try="$ac_link"
4163case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
1995c9ff 4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4168 (eval "$ac_link") 2>&5
ad6254c5 4169 ac_status=$?
1995c9ff 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4172 { (case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
1995c9ff 4176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4177 (eval "$ac_try") 2>&5
ad6254c5 4178 ac_status=$?
1995c9ff 4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4180 (exit $ac_status); }; }; then
4181 :
795ca3e5 4182else
1995c9ff
AK
4183 echo "$as_me: program exited with status $ac_status" >&5
4184echo "$as_me: failed program was:" >&5
ad6254c5 4185sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4186
ad6254c5
AK
4187( exit $ac_status )
4188ac_cv_header_stdc=no
80992638 4189fi
7a197a62 4190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4191fi
7a197a62
AK
4192
4193
ad6254c5
AK
4194fi
4195fi
1995c9ff
AK
4196{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4197echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4198if test $ac_cv_header_stdc = yes; then
4199
4200cat >>confdefs.h <<\_ACEOF
4201#define STDC_HEADERS 1
4202_ACEOF
795ca3e5
AK
4203
4204fi
4205
1995c9ff
AK
4206{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4207echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4208if test "${ac_cv_header_sys_wait_h+set}" = set; then
1995c9ff 4209 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4210else
ad6254c5 4211 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4212/* confdefs.h. */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h. */
80992638 4217#include <sys/types.h>
ad6254c5
AK
4218#include <sys/wait.h>
4219#ifndef WEXITSTATUS
7a197a62 4220# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4221#endif
4222#ifndef WIFEXITED
4223# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4224#endif
4225
4226int
4227main ()
4228{
4229 int s;
4230 wait (&s);
4231 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4232 ;
4233 return 0;
4234}
4235_ACEOF
4236rm -f conftest.$ac_objext
7a197a62
AK
4237if { (ac_try="$ac_compile"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
1995c9ff 4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4243 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4244 ac_status=$?
8a2fc586
AK
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
1995c9ff 4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
ad6254c5
AK
4270 ac_cv_header_sys_wait_h=yes
4271else
1995c9ff 4272 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4273sed 's/^/| /' conftest.$ac_ext >&5
4274
7a197a62 4275 ac_cv_header_sys_wait_h=no
8106cdd5 4276fi
7a197a62
AK
4277
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4279fi
1995c9ff
AK
4280{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4281echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4282if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4283
ad6254c5
AK
4284cat >>confdefs.h <<\_ACEOF
4285#define HAVE_SYS_WAIT_H 1
4286_ACEOF
795ca3e5
AK
4287
4288fi
4289
1995c9ff
AK
4290{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4291echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4292if test "${ac_cv_header_time+set}" = set; then
1995c9ff 4293 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4294else
ad6254c5 4295 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4296/* confdefs.h. */
4297_ACEOF
4298cat confdefs.h >>conftest.$ac_ext
4299cat >>conftest.$ac_ext <<_ACEOF
4300/* end confdefs.h. */
795ca3e5
AK
4301#include <sys/types.h>
4302#include <sys/time.h>
4303#include <time.h>
ad6254c5
AK
4304
4305int
4306main ()
4307{
4308if ((struct tm *) 0)
4309return 0;
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext
7a197a62
AK
4315if { (ac_try="$ac_compile"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
1995c9ff 4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4321 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4322 ac_status=$?
8a2fc586
AK
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
1995c9ff 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4327 (exit $ac_status); } &&
4328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; } &&
4338 { ac_try='test -s conftest.$ac_objext'
4339 { (case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
795ca3e5
AK
4348 ac_cv_header_time=yes
4349else
1995c9ff 4350 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
7a197a62 4353 ac_cv_header_time=no
795ca3e5 4354fi
7a197a62
AK
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4357fi
1995c9ff
AK
4358{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4359echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4360if test $ac_cv_header_time = yes; then
ad6254c5
AK
4361
4362cat >>confdefs.h <<\_ACEOF
795ca3e5 4363#define TIME_WITH_SYS_TIME 1
ad6254c5 4364_ACEOF
b896caa1 4365
8106cdd5 4366fi
b896caa1 4367
b896caa1 4368
ad6254c5 4369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 4370
b896caa1
AK
4371
4372
795ca3e5 4373
8106cdd5 4374
80992638 4375
795ca3e5 4376
a38df97f 4377
80992638 4378
ad6254c5 4379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 4380 inttypes.h stdint.h unistd.h
ad6254c5 4381do
1995c9ff
AK
4382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4386 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
4387else
4388 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394$ac_includes_default
4395
4396#include <$ac_header>
4397_ACEOF
4398rm -f conftest.$ac_objext
7a197a62
AK
4399if { (ac_try="$ac_compile"
4400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
1995c9ff 4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4405 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4406 ac_status=$?
8a2fc586
AK
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
1995c9ff 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4413 { (case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4418 (eval "$ac_try") 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426esac
4427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4428 (eval "$ac_try") 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
ad6254c5
AK
4432 eval "$as_ac_Header=yes"
4433else
1995c9ff 4434 echo "$as_me: failed program was:" >&5
ad6254c5 4435sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4436
7a197a62 4437 eval "$as_ac_Header=no"
ad6254c5 4438fi
7a197a62
AK
4439
4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 4441fi
1995c9ff
AK
4442ac_res=`eval echo '${'$as_ac_Header'}'`
4443 { echo "$as_me:$LINENO: result: $ac_res" >&5
4444echo "${ECHO_T}$ac_res" >&6; }
4445if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4446 cat >>confdefs.h <<_ACEOF
1995c9ff 4447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4448_ACEOF
a38df97f 4449
80992638
AK
4450fi
4451
ad6254c5
AK
4452done
4453
7d1552c9 4454
7d1552c9 4455
80992638 4456
5a52dca9 4457
5a52dca9 4458
ad6254c5
AK
4459
4460
4461
4462
4463
4464for 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
4465do
1995c9ff 4466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4471 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4472fi
1995c9ff
AK
4473ac_res=`eval echo '${'$as_ac_Header'}'`
4474 { echo "$as_me:$LINENO: result: $ac_res" >&5
4475echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4476else
4477 # Is the header compilable?
1995c9ff
AK
4478{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4480cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486$ac_includes_default
4487#include <$ac_header>
4488_ACEOF
4489rm -f conftest.$ac_objext
7a197a62
AK
4490if { (ac_try="$ac_compile"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
1995c9ff 4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4496 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4497 ac_status=$?
8a2fc586
AK
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
1995c9ff 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4502 (exit $ac_status); } &&
4503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4504 { (case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_try") 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 ac_header_compiler=yes
4524else
4525 echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 ac_header_compiler=no
4529fi
4530
4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4532{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4533echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4534
4535# Is the header present?
1995c9ff
AK
4536{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4538cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4539/* confdefs.h. */
4540_ACEOF
4541cat confdefs.h >>conftest.$ac_ext
4542cat >>conftest.$ac_ext <<_ACEOF
4543/* end confdefs.h. */
4544#include <$ac_header>
4545_ACEOF
7a197a62
AK
4546if { (ac_try="$ac_cpp conftest.$ac_ext"
4547case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550esac
1995c9ff 4551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
1995c9ff 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4558 (exit $ac_status); } >/dev/null; then
4559 if test -s conftest.err; then
4560 ac_cpp_err=$ac_c_preproc_warn_flag
4561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4562 else
4563 ac_cpp_err=
4564 fi
4565else
4566 ac_cpp_err=yes
4567fi
4568if test -z "$ac_cpp_err"; then
ad6254c5
AK
4569 ac_header_preproc=yes
4570else
1995c9ff 4571 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4572sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 ac_header_preproc=no
4575fi
7a197a62 4576
ad6254c5 4577rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4578{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4579echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4580
4581# So? What about this header?
8a2fc586
AK
4582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4583 yes:no: )
1995c9ff
AK
4584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4588 ac_header_preproc=yes
ad6254c5 4589 ;;
8a2fc586 4590 no:yes:* )
1995c9ff
AK
4591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4603
ad6254c5
AK
4604 ;;
4605esac
1995c9ff
AK
4606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4609 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4610else
8a2fc586 4611 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4612fi
1995c9ff
AK
4613ac_res=`eval echo '${'$as_ac_Header'}'`
4614 { echo "$as_me:$LINENO: result: $ac_res" >&5
4615echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4616
4617fi
1995c9ff 4618if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4619 cat >>confdefs.h <<_ACEOF
1995c9ff 4620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4621_ACEOF
b896caa1 4622
d8ac0fbc 4623else
1995c9ff
AK
4624 { { echo "$as_me:$LINENO: error: bailing out" >&5
4625echo "$as_me: error: bailing out" >&2;}
ad6254c5 4626 { (exit 1); exit 1; }; }
80992638
AK
4627fi
4628
ad6254c5 4629done
d8ac0fbc 4630
d8ac0fbc 4631
d8ac0fbc 4632
80992638 4633
d3c8211f 4634
d3c8211f 4635
d3c8211f 4636
80992638 4637
4922197a 4638
4922197a 4639
ad6254c5
AK
4640
4641
4642
4643for 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
4644do
1995c9ff 4645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4650 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4651fi
1995c9ff
AK
4652ac_res=`eval echo '${'$as_ac_Header'}'`
4653 { echo "$as_me:$LINENO: result: $ac_res" >&5
4654echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4655else
4656 # Is the header compilable?
1995c9ff
AK
4657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4659cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4660/* confdefs.h. */
4661_ACEOF
4662cat confdefs.h >>conftest.$ac_ext
4663cat >>conftest.$ac_ext <<_ACEOF
4664/* end confdefs.h. */
4665$ac_includes_default
4666#include <$ac_header>
4667_ACEOF
4668rm -f conftest.$ac_objext
7a197a62
AK
4669if { (ac_try="$ac_compile"
4670case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
1995c9ff 4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4675 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4676 ac_status=$?
8a2fc586
AK
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
1995c9ff 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4681 (exit $ac_status); } &&
4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4686esac
4687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest.$ac_objext'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696esac
4697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
ad6254c5
AK
4702 ac_header_compiler=yes
4703else
1995c9ff 4704 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
7a197a62 4707 ac_header_compiler=no
ad6254c5 4708fi
7a197a62
AK
4709
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4712echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4713
4714# Is the header present?
1995c9ff
AK
4715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4717cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4718/* confdefs.h. */
4719_ACEOF
4720cat confdefs.h >>conftest.$ac_ext
4721cat >>conftest.$ac_ext <<_ACEOF
4722/* end confdefs.h. */
4723#include <$ac_header>
4724_ACEOF
7a197a62
AK
4725if { (ac_try="$ac_cpp conftest.$ac_ext"
4726case "(($ac_try" in
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4728 *) ac_try_echo=$ac_try;;
4729esac
1995c9ff 4730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
1995c9ff 4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4737 (exit $ac_status); } >/dev/null; then
4738 if test -s conftest.err; then
4739 ac_cpp_err=$ac_c_preproc_warn_flag
4740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4741 else
4742 ac_cpp_err=
4743 fi
4744else
4745 ac_cpp_err=yes
4746fi
4747if test -z "$ac_cpp_err"; then
ad6254c5
AK
4748 ac_header_preproc=yes
4749else
1995c9ff 4750 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4751sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 ac_header_preproc=no
4754fi
7a197a62 4755
ad6254c5 4756rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4758echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4759
4760# So? What about this header?
8a2fc586
AK
4761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4762 yes:no: )
1995c9ff
AK
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4767 ac_header_preproc=yes
ad6254c5 4768 ;;
8a2fc586 4769 no:yes:* )
1995c9ff
AK
4770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4782
ad6254c5
AK
4783 ;;
4784esac
1995c9ff
AK
4785{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4788 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4789else
8a2fc586 4790 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4791fi
1995c9ff
AK
4792ac_res=`eval echo '${'$as_ac_Header'}'`
4793 { echo "$as_me:$LINENO: result: $ac_res" >&5
4794echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4795
4796fi
1995c9ff 4797if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4798 cat >>confdefs.h <<_ACEOF
1995c9ff 4799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4800_ACEOF
4922197a 4801
4922197a 4802else
1995c9ff
AK
4803 { { echo "$as_me:$LINENO: error: bailing out" >&5
4804echo "$as_me: error: bailing out" >&2;}
ad6254c5 4805 { (exit 1); exit 1; }; }
80992638
AK
4806fi
4807
ad6254c5 4808done
4922197a 4809
4922197a 4810
ad6254c5
AK
4811case "$host_os" in
4812 linux*)
4922197a 4813
ad6254c5
AK
4814
4815
4816for ac_header in asm/byteorder.h linux/fs.h malloc.h
4817do
1995c9ff 4818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4823 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4824fi
1995c9ff
AK
4825ac_res=`eval echo '${'$as_ac_Header'}'`
4826 { echo "$as_me:$LINENO: result: $ac_res" >&5
4827echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4828else
ad6254c5 4829 # Is the header compilable?
1995c9ff
AK
4830{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4832cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4833/* confdefs.h. */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h. */
4838$ac_includes_default
4839#include <$ac_header>
4840_ACEOF
4841rm -f conftest.$ac_objext
7a197a62
AK
4842if { (ac_try="$ac_compile"
4843case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846esac
1995c9ff 4847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4848 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4849 ac_status=$?
8a2fc586
AK
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
1995c9ff 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4856 { (case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
4860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_try") 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try='test -s conftest.$ac_objext'
4866 { (case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_try") 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
ad6254c5
AK
4875 ac_header_compiler=yes
4876else
1995c9ff 4877 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4878sed 's/^/| /' conftest.$ac_ext >&5
4879
7a197a62 4880 ac_header_compiler=no
ad6254c5 4881fi
7a197a62
AK
4882
4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
4884{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4885echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4886
4887# Is the header present?
1995c9ff
AK
4888{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4890cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include <$ac_header>
4897_ACEOF
7a197a62
AK
4898if { (ac_try="$ac_cpp conftest.$ac_ext"
4899case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902esac
1995c9ff 4903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
1995c9ff 4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
4910 (exit $ac_status); } >/dev/null; then
4911 if test -s conftest.err; then
4912 ac_cpp_err=$ac_c_preproc_warn_flag
4913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4914 else
4915 ac_cpp_err=
4916 fi
4917else
4918 ac_cpp_err=yes
4919fi
4920if test -z "$ac_cpp_err"; then
ad6254c5
AK
4921 ac_header_preproc=yes
4922else
1995c9ff 4923 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
4926 ac_header_preproc=no
4927fi
7a197a62 4928
ad6254c5 4929rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
4930{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4931echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4932
4933# So? What about this header?
8a2fc586
AK
4934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4935 yes:no: )
1995c9ff
AK
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4940 ac_header_preproc=yes
ad6254c5 4941 ;;
8a2fc586 4942 no:yes:* )
1995c9ff
AK
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4955
ad6254c5
AK
4956 ;;
4957esac
1995c9ff
AK
4958{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4961 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4962else
8a2fc586 4963 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4964fi
1995c9ff
AK
4965ac_res=`eval echo '${'$as_ac_Header'}'`
4966 { echo "$as_me:$LINENO: result: $ac_res" >&5
4967echo "${ECHO_T}$ac_res" >&6; }
80992638 4968
ad6254c5 4969fi
1995c9ff 4970if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4971 cat >>confdefs.h <<_ACEOF
1995c9ff 4972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4973_ACEOF
795ca3e5 4974
795ca3e5 4975else
1995c9ff
AK
4976 { { echo "$as_me:$LINENO: error: bailing out" >&5
4977echo "$as_me: error: bailing out" >&2;}
ad6254c5 4978 { (exit 1); exit 1; }; }
80992638
AK
4979fi
4980
ad6254c5
AK
4981done
4982 ;;
4983 darwin*)
4984
795ca3e5 4985
ad6254c5
AK
4986for ac_header in machine/endian.h sys/disk.h
4987do
1995c9ff 4988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
4990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 4993 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4994fi
1995c9ff
AK
4995ac_res=`eval echo '${'$as_ac_Header'}'`
4996 { echo "$as_me:$LINENO: result: $ac_res" >&5
4997echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4998else
4999 # Is the header compilable?
1995c9ff
AK
5000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 5002cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
5008$ac_includes_default
5009#include <$ac_header>
5010_ACEOF
5011rm -f conftest.$ac_objext
7a197a62
AK
5012if { (ac_try="$ac_compile"
5013case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016esac
1995c9ff 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5018 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5019 ac_status=$?
8a2fc586
AK
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
1995c9ff 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026 { (case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_try") 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_try") 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
ad6254c5
AK
5045 ac_header_compiler=yes
5046else
1995c9ff 5047 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
7a197a62 5050 ac_header_compiler=no
ad6254c5 5051fi
7a197a62
AK
5052
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
5054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5055echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5056
5057# Is the header present?
1995c9ff
AK
5058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5060cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5061/* confdefs.h. */
5062_ACEOF
5063cat confdefs.h >>conftest.$ac_ext
5064cat >>conftest.$ac_ext <<_ACEOF
5065/* end confdefs.h. */
5066#include <$ac_header>
5067_ACEOF
7a197a62
AK
5068if { (ac_try="$ac_cpp conftest.$ac_ext"
5069case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072esac
1995c9ff 5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
1995c9ff 5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_c_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5084 else
5085 ac_cpp_err=
5086 fi
5087else
5088 ac_cpp_err=yes
5089fi
5090if test -z "$ac_cpp_err"; then
ad6254c5
AK
5091 ac_header_preproc=yes
5092else
1995c9ff 5093 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5094sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 ac_header_preproc=no
5097fi
7a197a62 5098
ad6254c5 5099rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
5100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5101echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5102
5103# So? What about this header?
8a2fc586
AK
5104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5105 yes:no: )
1995c9ff
AK
5106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5110 ac_header_preproc=yes
ad6254c5 5111 ;;
8a2fc586 5112 no:yes:* )
1995c9ff
AK
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5125
ad6254c5
AK
5126 ;;
5127esac
1995c9ff
AK
5128{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5131 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5132else
8a2fc586 5133 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5134fi
1995c9ff
AK
5135ac_res=`eval echo '${'$as_ac_Header'}'`
5136 { echo "$as_me:$LINENO: result: $ac_res" >&5
5137echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5138
ad6254c5 5139fi
1995c9ff 5140if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5141 cat >>confdefs.h <<_ACEOF
1995c9ff 5142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5143_ACEOF
5144
5145else
1995c9ff
AK
5146 { { echo "$as_me:$LINENO: error: bailing out" >&5
5147echo "$as_me: error: bailing out" >&2;}
ad6254c5 5148 { (exit 1); exit 1; }; }
80992638
AK
5149fi
5150
ad6254c5
AK
5151done
5152 ;;
5153esac
d3c8211f 5154
80992638 5155################################################################################
1995c9ff
AK
5156{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5157echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5158if test "${ac_cv_c_const+set}" = set; then
1995c9ff 5159 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5160else
ad6254c5 5161 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h. */
5167
5168int
5169main ()
5170{
5171/* FIXME: Include the comments suggested by Paul. */
5172#ifndef __cplusplus
5173 /* Ultrix mips cc rejects this. */
5174 typedef int charset[2];
fc54be10 5175 const charset x;
ad6254c5 5176 /* SunOS 4.1.1 cc rejects this. */
fc54be10
AK
5177 char const *const *ccp;
5178 char **p;
ad6254c5
AK
5179 /* NEC SVR4.0.2 mips cc rejects this. */
5180 struct point {int x, y;};
5181 static struct point const zero = {0,0};
5182 /* AIX XL C 1.02.0.0 rejects this.
5183 It does not let you subtract one const X* pointer from another in
5184 an arm of an if-expression whose if-part is not a constant
5185 expression */
5186 const char *g = "string";
fc54be10 5187 ccp = &g + (g ? g-g : 0);
ad6254c5 5188 /* HPUX 7.0 cc rejects these. */
fc54be10
AK
5189 ++ccp;
5190 p = (char**) ccp;
5191 ccp = (char const *const *) p;
ad6254c5
AK
5192 { /* SCO 3.2v4 cc rejects this. */
5193 char *t;
5194 char const *s = 0 ? (char *) 0 : (char const *) 0;
5195
5196 *t++ = 0;
7a197a62 5197 if (s) return 0;
ad6254c5
AK
5198 }
5199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5200 int x[] = {25, 17};
5201 const int *foo = &x[0];
5202 ++foo;
5203 }
5204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5205 typedef const int *iptr;
5206 iptr p = 0;
5207 ++p;
5208 }
5209 { /* AIX XL C 1.02.0.0 rejects this saying
5210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5211 struct s { int j; const int *ap[3]; };
5212 struct s *b; b->j = 5;
5213 }
5214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5215 const int foo = 10;
7a197a62 5216 if (!foo) return 0;
ad6254c5 5217 }
fc54be10 5218 return !x[0] && !zero.x;
ad6254c5
AK
5219#endif
5220
5221 ;
5222 return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext
7a197a62
AK
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230esac
1995c9ff 5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5232 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5233 ac_status=$?
8a2fc586
AK
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
1995c9ff 5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_try") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253esac
5254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_try") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
ad6254c5
AK
5259 ac_cv_c_const=yes
5260else
1995c9ff 5261 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
7a197a62 5264 ac_cv_c_const=no
ad6254c5 5265fi
7a197a62
AK
5266
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5268fi
1995c9ff
AK
5269{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5270echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5271if test $ac_cv_c_const = no; then
80992638 5272
ad6254c5
AK
5273cat >>confdefs.h <<\_ACEOF
5274#define const
5275_ACEOF
80992638 5276
d3c8211f 5277fi
d3c8211f 5278
1995c9ff
AK
5279{ echo "$as_me:$LINENO: checking for inline" >&5
5280echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5281if test "${ac_cv_c_inline+set}" = set; then
1995c9ff 5282 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5283else
ad6254c5
AK
5284 ac_cv_c_inline=no
5285for ac_kw in inline __inline__ __inline; do
5286 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292#ifndef __cplusplus
5293typedef int foo_t;
5294static $ac_kw foo_t static_foo () {return 0; }
5295$ac_kw foo_t foo () {return 0; }
5296#endif
80992638 5297
ad6254c5
AK
5298_ACEOF
5299rm -f conftest.$ac_objext
7a197a62
AK
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
1995c9ff 5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5306 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5307 ac_status=$?
8a2fc586
AK
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
1995c9ff 5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5314 { (case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_try") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327esac
5328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_try") 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
7a197a62 5333 ac_cv_c_inline=$ac_kw
ad6254c5 5334else
1995c9ff 5335 echo "$as_me: failed program was:" >&5
ad6254c5 5336sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5337
7a197a62 5338
8ce0cbda 5339fi
7a197a62
AK
5340
5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342 test "$ac_cv_c_inline" != no && break
ad6254c5 5343done
8ce0cbda 5344
8ce0cbda 5345fi
1995c9ff
AK
5346{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5347echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5348
5349
ad6254c5
AK
5350case $ac_cv_c_inline in
5351 inline | yes) ;;
8a2fc586
AK
5352 *)
5353 case $ac_cv_c_inline in
5354 no) ac_val=;;
5355 *) ac_val=$ac_cv_c_inline;;
5356 esac
5357 cat >>confdefs.h <<_ACEOF
5358#ifndef __cplusplus
5359#define inline $ac_val
5360#endif
c1c065a3 5361_ACEOF
8a2fc586 5362 ;;
ad6254c5 5363esac
8ce0cbda 5364
1995c9ff
AK
5365{ echo "$as_me:$LINENO: checking for off_t" >&5
5366echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5367if test "${ac_cv_type_off_t+set}" = set; then
1995c9ff 5368 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5369else
5370 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5371/* confdefs.h. */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h. */
5376$ac_includes_default
7a197a62 5377typedef off_t ac__type_new_;
ad6254c5
AK
5378int
5379main ()
5380{
7a197a62 5381if ((ac__type_new_ *) 0)
ad6254c5 5382 return 0;
7a197a62 5383if (sizeof (ac__type_new_))
ad6254c5
AK
5384 return 0;
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext
7a197a62
AK
5390if { (ac_try="$ac_compile"
5391case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394esac
1995c9ff 5395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5396 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5397 ac_status=$?
8a2fc586
AK
5398 grep -v '^ *+' conftest.er1 >conftest.err
5399 rm -f conftest.er1
5400 cat conftest.err >&5
1995c9ff 5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5402 (exit $ac_status); } &&
5403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5404 { (case "(($ac_try" in
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5407esac
5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_try") 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (case "(($ac_try" in
5415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5416 *) ac_try_echo=$ac_try;;
5417esac
5418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5419 (eval "$ac_try") 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
ad6254c5
AK
5423 ac_cv_type_off_t=yes
5424else
1995c9ff 5425 echo "$as_me: failed program was:" >&5
ad6254c5 5426sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5427
7a197a62 5428 ac_cv_type_off_t=no
80992638 5429fi
7a197a62
AK
5430
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5432fi
1995c9ff
AK
5433{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5434echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5435if test $ac_cv_type_off_t = yes; then
5436 :
5437else
80992638 5438
ad6254c5 5439cat >>confdefs.h <<_ACEOF
7a197a62 5440#define off_t long int
ad6254c5 5441_ACEOF
199e490e 5442
b896caa1
AK
5443fi
5444
1995c9ff
AK
5445{ echo "$as_me:$LINENO: checking for pid_t" >&5
5446echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5447if test "${ac_cv_type_pid_t+set}" = set; then
1995c9ff 5448 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5449else
5450 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5451/* confdefs.h. */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h. */
5456$ac_includes_default
7a197a62 5457typedef pid_t ac__type_new_;
ad6254c5
AK
5458int
5459main ()
5460{
7a197a62 5461if ((ac__type_new_ *) 0)
ad6254c5 5462 return 0;
7a197a62 5463if (sizeof (ac__type_new_))
ad6254c5
AK
5464 return 0;
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
7a197a62
AK
5470if { (ac_try="$ac_compile"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
1995c9ff 5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5476 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5477 ac_status=$?
8a2fc586
AK
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
1995c9ff 5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_try") 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
ad6254c5
AK
5503 ac_cv_type_pid_t=yes
5504else
1995c9ff 5505 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
7a197a62 5508 ac_cv_type_pid_t=no
ad6254c5 5509fi
7a197a62
AK
5510
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5512fi
1995c9ff
AK
5513{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5514echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5515if test $ac_cv_type_pid_t = yes; then
5516 :
5517else
80992638 5518
ad6254c5
AK
5519cat >>confdefs.h <<_ACEOF
5520#define pid_t int
5521_ACEOF
2dc95e1c 5522
2dc95e1c
AK
5523fi
5524
1995c9ff
AK
5525{ echo "$as_me:$LINENO: checking for size_t" >&5
5526echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5527if test "${ac_cv_type_size_t+set}" = set; then
1995c9ff 5528 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5529else
ad6254c5 5530 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h. */
5536$ac_includes_default
7a197a62 5537typedef size_t ac__type_new_;
ad6254c5
AK
5538int
5539main ()
5540{
7a197a62 5541if ((ac__type_new_ *) 0)
ad6254c5 5542 return 0;
7a197a62 5543if (sizeof (ac__type_new_))
ad6254c5
AK
5544 return 0;
5545 ;
5546 return 0;
5547}
5548_ACEOF
5549rm -f conftest.$ac_objext
7a197a62
AK
5550if { (ac_try="$ac_compile"
5551case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
1995c9ff 5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5556 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5557 ac_status=$?
8a2fc586
AK
5558 grep -v '^ *+' conftest.er1 >conftest.err
5559 rm -f conftest.er1
5560 cat conftest.err >&5
1995c9ff 5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5562 (exit $ac_status); } &&
5563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5564 { (case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567esac
5568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_try") 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_try") 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
ad6254c5
AK
5583 ac_cv_type_size_t=yes
5584else
1995c9ff 5585 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
7a197a62 5588 ac_cv_type_size_t=no
80992638 5589fi
7a197a62
AK
5590
5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5592fi
1995c9ff
AK
5593{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5594echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5595if test $ac_cv_type_size_t = yes; then
5596 :
5597else
80992638 5598
ad6254c5 5599cat >>confdefs.h <<_ACEOF
7a197a62 5600#define size_t unsigned int
ad6254c5 5601_ACEOF
8106cdd5 5602
8106cdd5
AK
5603fi
5604
1995c9ff
AK
5605{ echo "$as_me:$LINENO: checking for mode_t" >&5
5606echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5607if test "${ac_cv_type_mode_t+set}" = set; then
1995c9ff 5608 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5609else
5610 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
5616$ac_includes_default
7a197a62 5617typedef mode_t ac__type_new_;
ad6254c5
AK
5618int
5619main ()
5620{
7a197a62 5621if ((ac__type_new_ *) 0)
ad6254c5 5622 return 0;
7a197a62 5623if (sizeof (ac__type_new_))
ad6254c5
AK
5624 return 0;
5625 ;
5626 return 0;
5627}
5628_ACEOF
5629rm -f conftest.$ac_objext
7a197a62
AK
5630if { (ac_try="$ac_compile"
5631case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
1995c9ff 5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5636 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5637 ac_status=$?
8a2fc586
AK
5638 grep -v '^ *+' conftest.er1 >conftest.err
5639 rm -f conftest.er1
5640 cat conftest.err >&5
1995c9ff 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5642 (exit $ac_status); } &&
5643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5644 { (case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647esac
5648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_try") 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; } &&
5653 { ac_try='test -s conftest.$ac_objext'
5654 { (case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657esac
5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_try") 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
ad6254c5
AK
5663 ac_cv_type_mode_t=yes
5664else
1995c9ff 5665 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
7a197a62 5668 ac_cv_type_mode_t=no
80992638 5669fi
7a197a62
AK
5670
5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5672fi
1995c9ff
AK
5673{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5674echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5675if test $ac_cv_type_mode_t = yes; then
5676 :
5677else
80992638 5678
ad6254c5
AK
5679cat >>confdefs.h <<_ACEOF
5680#define mode_t int
5681_ACEOF
5682
5683fi
5684
1995c9ff
AK
5685{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5686echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5687if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
1995c9ff 5688 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5689else
5690 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5691/* confdefs.h. */
5692_ACEOF
5693cat confdefs.h >>conftest.$ac_ext
5694cat >>conftest.$ac_ext <<_ACEOF
5695/* end confdefs.h. */
5696$ac_includes_default
5697int
5698main ()
5699{
5700static struct stat ac_aggr;
5701if (ac_aggr.st_rdev)
5702return 0;
5703 ;
5704 return 0;
5705}
5706_ACEOF
5707rm -f conftest.$ac_objext
7a197a62
AK
5708if { (ac_try="$ac_compile"
5709case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712esac
1995c9ff 5713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5714 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5715 ac_status=$?
8a2fc586
AK
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
1995c9ff 5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5722 { (case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725esac
5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_try") 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try='test -s conftest.$ac_objext'
5732 { (case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_try") 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
ad6254c5
AK
5741 ac_cv_member_struct_stat_st_rdev=yes
5742else
1995c9ff 5743 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5744sed 's/^/| /' conftest.$ac_ext >&5
5745
7a197a62 5746 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h. */
5752$ac_includes_default
5753int
5754main ()
5755{
5756static struct stat ac_aggr;
5757if (sizeof ac_aggr.st_rdev)
5758return 0;
5759 ;
5760 return 0;
5761}
5762_ACEOF
5763rm -f conftest.$ac_objext
7a197a62
AK
5764if { (ac_try="$ac_compile"
5765case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768esac
1995c9ff 5769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5770 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5771 ac_status=$?
8a2fc586
AK
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
1995c9ff 5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5776 (exit $ac_status); } &&
5777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5778 { (case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_try") 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_try") 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
ad6254c5
AK
5797 ac_cv_member_struct_stat_st_rdev=yes
5798else
1995c9ff 5799 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5800sed 's/^/| /' conftest.$ac_ext >&5
5801
7a197a62 5802 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5803fi
7a197a62
AK
5804
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5806fi
7a197a62
AK
5807
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5809fi
1995c9ff
AK
5810{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5811echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5812if test $ac_cv_member_struct_stat_st_rdev = yes; then
5813
5814cat >>confdefs.h <<_ACEOF
5815#define HAVE_STRUCT_STAT_ST_RDEV 1
5816_ACEOF
5817
5818
ad6254c5
AK
5819fi
5820
1995c9ff
AK
5821{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5822echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5823if test "${ac_cv_struct_tm+set}" = set; then
1995c9ff 5824 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5825else
5826 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832#include <sys/types.h>
5833#include <time.h>
5834
5835int
5836main ()
5837{
fc54be10 5838struct tm *tp; tp->tm_sec;
ad6254c5
AK
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext
7a197a62
AK
5844if { (ac_try="$ac_compile"
5845case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
1995c9ff 5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5850 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5851 ac_status=$?
8a2fc586
AK
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
1995c9ff 5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5856 (exit $ac_status); } &&
5857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5858 { (case "(($ac_try" in
5859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5861esac
5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863 (eval "$ac_try") 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
ad6254c5
AK
5877 ac_cv_struct_tm=time.h
5878else
1995c9ff 5879 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
7a197a62 5882 ac_cv_struct_tm=sys/time.h
ad6254c5 5883fi
7a197a62
AK
5884
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5886fi
1995c9ff
AK
5887{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5888echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5889if test $ac_cv_struct_tm = sys/time.h; then
5890
5891cat >>confdefs.h <<\_ACEOF
5892#define TM_IN_SYS_TIME 1
5893_ACEOF
5894
5895fi
809fae91 5896
795ca3e5 5897
80992638 5898################################################################################
ad6254c5
AK
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
5914do
1995c9ff
AK
5915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 5919 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5920else
ad6254c5 5921 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
8a2fc586
AK
5927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5929#define $ac_func innocuous_$ac_func
5930
ad6254c5
AK
5931/* System header to define __stub macros and hopefully few prototypes,
5932 which can conflict with char $ac_func (); below.
5933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5934 <limits.h> exists even on freestanding compilers. */
8a2fc586 5935
ad6254c5
AK
5936#ifdef __STDC__
5937# include <limits.h>
5938#else
5939# include <assert.h>
5940#endif
8a2fc586
AK
5941
5942#undef $ac_func
5943
7a197a62
AK
5944/* Override any GCC internal prototype to avoid an error.
5945 Use char because int might match the return type of a GCC
5946 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5947#ifdef __cplusplus
5948extern "C"
ad6254c5 5949#endif
ad6254c5
AK
5950char $ac_func ();
5951/* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
7a197a62 5954#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5955choke me
ad6254c5
AK
5956#endif
5957
5958int
5959main ()
5960{
7a197a62 5961return $ac_func ();
ad6254c5
AK
5962 ;
5963 return 0;
5964}
5965_ACEOF
5966rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5967if { (ac_try="$ac_link"
5968case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
1995c9ff 5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5973 (eval "$ac_link") 2>conftest.er1
ad6254c5 5974 ac_status=$?
8a2fc586
AK
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
1995c9ff 5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5981 { (case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_try") 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest$ac_exeext'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994esac
5995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 eval "$as_ac_var=yes"
6001else
6002 echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 eval "$as_ac_var=no"
6006fi
6007
6008rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010fi
1995c9ff
AK
6011ac_res=`eval echo '${'$as_ac_var'}'`
6012 { echo "$as_me:$LINENO: result: $ac_res" >&5
6013echo "${ECHO_T}$ac_res" >&6; }
6014if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6015 cat >>confdefs.h <<_ACEOF
1995c9ff 6016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6017_ACEOF
6018
6019else
1995c9ff
AK
6020 { { echo "$as_me:$LINENO: error: bailing out" >&5
6021echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6022 { (exit 1); exit 1; }; }
6023fi
6024done
795ca3e5 6025
ad6254c5
AK
6026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027# for constant arguments. Useless!
1995c9ff
AK
6028{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 6030if test "${ac_cv_working_alloca_h+set}" = set; then
1995c9ff 6031 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6032else
6033 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
6039#include <alloca.h>
6040int
6041main ()
6042{
6043char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6044 if (p) return 0;
ad6254c5
AK
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6050if { (ac_try="$ac_link"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
1995c9ff 6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6056 (eval "$ac_link") 2>conftest.er1
ad6254c5 6057 ac_status=$?
8a2fc586
AK
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
1995c9ff 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
6062 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6064 { (case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6067esac
6068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_try") 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest$ac_exeext'
6074 { (case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077esac
6078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_try") 2>&5
6080 ac_status=$?
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
ad6254c5
AK
6083 ac_cv_working_alloca_h=yes
6084else
1995c9ff 6085 echo "$as_me: failed program was:" >&5
ad6254c5 6086sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6087
7a197a62 6088 ac_cv_working_alloca_h=no
ad6254c5 6089fi
7a197a62 6090
fc54be10 6091rm -f core conftest.err conftest.$ac_objext \
8a2fc586 6092 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6093fi
1995c9ff
AK
6094{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6095echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6096if test $ac_cv_working_alloca_h = yes; then
6097
6098cat >>confdefs.h <<\_ACEOF
6099#define HAVE_ALLOCA_H 1
6100_ACEOF
6101
6102fi
6103
1995c9ff
AK
6104{ echo "$as_me:$LINENO: checking for alloca" >&5
6105echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6106if test "${ac_cv_func_alloca_works+set}" = set; then
1995c9ff 6107 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6108else
6109 cat >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#ifdef __GNUC__
6116# define alloca __builtin_alloca
6117#else
6118# ifdef _MSC_VER
6119# include <malloc.h>
6120# define alloca _alloca
6121# else
fc54be10 6122# if HAVE_ALLOCA_H
ad6254c5
AK
6123# include <alloca.h>
6124# else
6125# ifdef _AIX
6126 #pragma alloca
6127# else
6128# ifndef alloca /* predefined by HP cc +Olibcalls */
6129char *alloca ();
6130# endif
6131# endif
6132# endif
6133# endif
6134#endif
6135
6136int
6137main ()
6138{
6139char *p = (char *) alloca (1);
7a197a62 6140 if (p) return 0;
ad6254c5
AK
6141 ;
6142 return 0;
6143}
6144_ACEOF
6145rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6146if { (ac_try="$ac_link"
6147case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150esac
1995c9ff 6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6152 (eval "$ac_link") 2>conftest.er1
ad6254c5 6153 ac_status=$?
8a2fc586
AK
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
1995c9ff 6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest$ac_exeext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
ad6254c5
AK
6179 ac_cv_func_alloca_works=yes
6180else
1995c9ff 6181 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
7a197a62 6184 ac_cv_func_alloca_works=no
ad6254c5 6185fi
7a197a62 6186
fc54be10 6187rm -f core conftest.err conftest.$ac_objext \
8a2fc586 6188 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6189fi
1995c9ff
AK
6190{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6191echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6192
6193if test $ac_cv_func_alloca_works = yes; then
6194
6195cat >>confdefs.h <<\_ACEOF
6196#define HAVE_ALLOCA 1
6197_ACEOF
6198
6199else
6200 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6201# that cause trouble. Some versions do not even contain alloca or
6202# contain a buggy version. If you still want to use their alloca,
6203# use ar to extract alloca.o from them instead of compiling alloca.c.
6204
7a197a62 6205ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6206
6207cat >>confdefs.h <<\_ACEOF
6208#define C_ALLOCA 1
6209_ACEOF
6210
6211
1995c9ff
AK
6212{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6213echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6214if test "${ac_cv_os_cray+set}" = set; then
1995c9ff 6215 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6216else
6217 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
7a197a62 6223#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6224webecray
6225#else
6226wenotbecray
6227#endif
6228
6229_ACEOF
795ca3e5 6230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6231 $EGREP "webecray" >/dev/null 2>&1; then
6232 ac_cv_os_cray=yes
6233else
6234 ac_cv_os_cray=no
795ca3e5
AK
6235fi
6236rm -f conftest*
6237
795ca3e5 6238fi
1995c9ff
AK
6239{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6240echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6241if test $ac_cv_os_cray = yes; then
6242 for ac_func in _getb67 GETB67 getb67; do
1995c9ff
AK
6243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6244{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6246if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6247 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6248else
6249 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
8a2fc586
AK
6255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6257#define $ac_func innocuous_$ac_func
6258
ad6254c5
AK
6259/* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char $ac_func (); below.
6261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6262 <limits.h> exists even on freestanding compilers. */
8a2fc586 6263
ad6254c5
AK
6264#ifdef __STDC__
6265# include <limits.h>
6266#else
6267# include <assert.h>
6268#endif
8a2fc586
AK
6269
6270#undef $ac_func
6271
7a197a62
AK
6272/* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6275#ifdef __cplusplus
6276extern "C"
ad6254c5 6277#endif
ad6254c5
AK
6278char $ac_func ();
6279/* The GNU C library defines this for functions which it implements
6280 to always fail with ENOSYS. Some functions are actually named
6281 something starting with __ and the normal name is an alias. */
7a197a62 6282#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6283choke me
ad6254c5
AK
6284#endif
6285
6286int
6287main ()
6288{
7a197a62 6289return $ac_func ();
ad6254c5
AK
6290 ;
6291 return 0;
6292}
6293_ACEOF
6294rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6295if { (ac_try="$ac_link"
6296case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
1995c9ff 6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6301 (eval "$ac_link") 2>conftest.er1
ad6254c5 6302 ac_status=$?
8a2fc586
AK
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
1995c9ff 6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6309 { (case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6314 (eval "$ac_try") 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest$ac_exeext'
6319 { (case "(($ac_try" in
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6322esac
6323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_try") 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
ad6254c5
AK
6328 eval "$as_ac_var=yes"
6329else
1995c9ff 6330 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
7a197a62 6333 eval "$as_ac_var=no"
ad6254c5 6334fi
7a197a62 6335
fc54be10 6336rm -f core conftest.err conftest.$ac_objext \
8a2fc586 6337 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6338fi
1995c9ff
AK
6339ac_res=`eval echo '${'$as_ac_var'}'`
6340 { echo "$as_me:$LINENO: result: $ac_res" >&5
6341echo "${ECHO_T}$ac_res" >&6; }
6342if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6343
ad6254c5
AK
6344cat >>confdefs.h <<_ACEOF
6345#define CRAY_STACKSEG_END $ac_func
6346_ACEOF
6347
6348 break
6349fi
6350
6351 done
6352fi
6353
1995c9ff
AK
6354{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6355echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6356if test "${ac_cv_c_stack_direction+set}" = set; then
1995c9ff 6357 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6358else
6359 if test "$cross_compiling" = yes; then
6360 ac_cv_c_stack_direction=0
6361else
6362 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h. */
7a197a62 6368$ac_includes_default
ad6254c5
AK
6369int
6370find_stack_direction ()
6371{
6372 static char *addr = 0;
6373 auto char dummy;
6374 if (addr == 0)
6375 {
6376 addr = &dummy;
6377 return find_stack_direction ();
6378 }
6379 else
6380 return (&dummy > addr) ? 1 : -1;
6381}
6382
6383int
6384main ()
6385{
7a197a62 6386 return find_stack_direction () < 0;
ad6254c5
AK
6387}
6388_ACEOF
6389rm -f conftest$ac_exeext
7a197a62
AK
6390if { (ac_try="$ac_link"
6391case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
1995c9ff 6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6396 (eval "$ac_link") 2>&5
ad6254c5 6397 ac_status=$?
1995c9ff 6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6400 { (case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403esac
1995c9ff 6404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6405 (eval "$ac_try") 2>&5
ad6254c5 6406 ac_status=$?
1995c9ff 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6408 (exit $ac_status); }; }; then
6409 ac_cv_c_stack_direction=1
6410else
1995c9ff
AK
6411 echo "$as_me: program exited with status $ac_status" >&5
6412echo "$as_me: failed program was:" >&5
ad6254c5
AK
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415( exit $ac_status )
6416ac_cv_c_stack_direction=-1
6417fi
7a197a62 6418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6419fi
7a197a62
AK
6420
6421
ad6254c5 6422fi
1995c9ff
AK
6423{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6424echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6425
6426cat >>confdefs.h <<_ACEOF
6427#define STACK_DIRECTION $ac_cv_c_stack_direction
6428_ACEOF
6429
6430
6431fi
6432
1995c9ff
AK
6433{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6434echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6435if test "${ac_cv_func_closedir_void+set}" = set; then
1995c9ff 6436 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6437else
6438 if test "$cross_compiling" = yes; then
6439 ac_cv_func_closedir_void=yes
6440else
6441 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447$ac_includes_default
6448#include <$ac_header_dirent>
6449#ifndef __cplusplus
6450int closedir ();
6451#endif
6452
6453int
6454main ()
6455{
7a197a62 6456return closedir (opendir (".")) != 0;
ad6254c5
AK
6457 ;
6458 return 0;
6459}
6460_ACEOF
6461rm -f conftest$ac_exeext
7a197a62
AK
6462if { (ac_try="$ac_link"
6463case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
1995c9ff 6467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6468 (eval "$ac_link") 2>&5
ad6254c5 6469 ac_status=$?
1995c9ff 6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6472 { (case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
1995c9ff 6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6477 (eval "$ac_try") 2>&5
ad6254c5 6478 ac_status=$?
1995c9ff 6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6480 (exit $ac_status); }; }; then
6481 ac_cv_func_closedir_void=no
6482else
1995c9ff
AK
6483 echo "$as_me: program exited with status $ac_status" >&5
6484echo "$as_me: failed program was:" >&5
ad6254c5
AK
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487( exit $ac_status )
6488ac_cv_func_closedir_void=yes
6489fi
7a197a62 6490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6491fi
7a197a62
AK
6492
6493
ad6254c5 6494fi
1995c9ff
AK
6495{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6496echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6497if test $ac_cv_func_closedir_void = yes; then
6498
6499cat >>confdefs.h <<\_ACEOF
6500#define CLOSEDIR_VOID 1
6501_ACEOF
6502
6503fi
6504
6505
7a197a62 6506for ac_header in vfork.h
ad6254c5 6507do
1995c9ff 6508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
6510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6513 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6514fi
1995c9ff
AK
6515ac_res=`eval echo '${'$as_ac_Header'}'`
6516 { echo "$as_me:$LINENO: result: $ac_res" >&5
6517echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6518else
6519 # Is the header compilable?
1995c9ff
AK
6520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6522cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6523/* confdefs.h. */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h. */
6528$ac_includes_default
6529#include <$ac_header>
6530_ACEOF
6531rm -f conftest.$ac_objext
7a197a62
AK
6532if { (ac_try="$ac_compile"
6533case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
1995c9ff 6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6538 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6539 ac_status=$?
8a2fc586
AK
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
1995c9ff 6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
6544 (exit $ac_status); } &&
6545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6546 { (case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549esac
6550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_try") 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest.$ac_objext'
6556 { (case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559esac
6560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_try") 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
ad6254c5
AK
6565 ac_header_compiler=yes
6566else
1995c9ff 6567 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
7a197a62 6570 ac_header_compiler=no
ad6254c5 6571fi
7a197a62
AK
6572
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
6574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6575echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6576
6577# Is the header present?
1995c9ff
AK
6578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6580cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
6586#include <$ac_header>
6587_ACEOF
7a197a62
AK
6588if { (ac_try="$ac_cpp conftest.$ac_ext"
6589case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
1995c9ff 6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
1995c9ff 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
6600 (exit $ac_status); } >/dev/null; then
6601 if test -s conftest.err; then
6602 ac_cpp_err=$ac_c_preproc_warn_flag
6603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6604 else
6605 ac_cpp_err=
6606 fi
6607else
6608 ac_cpp_err=yes
6609fi
6610if test -z "$ac_cpp_err"; then
ad6254c5
AK
6611 ac_header_preproc=yes
6612else
1995c9ff 6613 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6614sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 ac_header_preproc=no
6617fi
7a197a62 6618
ad6254c5 6619rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
6620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6621echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6622
6623# So? What about this header?
8a2fc586
AK
6624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6625 yes:no: )
1995c9ff
AK
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6630 ac_header_preproc=yes
ad6254c5 6631 ;;
8a2fc586 6632 no:yes:* )
1995c9ff
AK
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6645
ad6254c5
AK
6646 ;;
6647esac
1995c9ff
AK
6648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6651 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6652else
8a2fc586 6653 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6654fi
1995c9ff
AK
6655ac_res=`eval echo '${'$as_ac_Header'}'`
6656 { echo "$as_me:$LINENO: result: $ac_res" >&5
6657echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6658
795ca3e5 6659fi
1995c9ff 6660if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6661 cat >>confdefs.h <<_ACEOF
1995c9ff 6662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6663_ACEOF
6664
6665fi
6666
6667done
795ca3e5 6668
ad6254c5
AK
6669
6670
6671for ac_func in fork vfork
6672do
1995c9ff
AK
6673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 6677 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6678else
ad6254c5 6679 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h. */
8a2fc586
AK
6685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6687#define $ac_func innocuous_$ac_func
6688
ad6254c5
AK
6689/* System header to define __stub macros and hopefully few prototypes,
6690 which can conflict with char $ac_func (); below.
6691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6692 <limits.h> exists even on freestanding compilers. */
8a2fc586 6693
ad6254c5
AK
6694#ifdef __STDC__
6695# include <limits.h>
6696#else
6697# include <assert.h>
795ca3e5 6698#endif
8a2fc586
AK
6699
6700#undef $ac_func
6701
7a197a62
AK
6702/* Override any GCC internal prototype to avoid an error.
6703 Use char because int might match the return type of a GCC
6704 builtin and then its argument prototype would still apply. */
795ca3e5 6705#ifdef __cplusplus
ad6254c5 6706extern "C"
ad6254c5 6707#endif
ad6254c5
AK
6708char $ac_func ();
6709/* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
7a197a62 6712#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6713choke me
795ca3e5
AK
6714#endif
6715
ad6254c5
AK
6716int
6717main ()
6718{
7a197a62 6719return $ac_func ();
ad6254c5
AK
6720 ;
6721 return 0;
6722}
6723_ACEOF
6724rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6725if { (ac_try="$ac_link"
6726case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729esac
1995c9ff 6730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6731 (eval "$ac_link") 2>conftest.er1
ad6254c5 6732 ac_status=$?
8a2fc586
AK
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
1995c9ff 6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6739 { (case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742esac
6743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_try") 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; } &&
6748 { ac_try='test -s conftest$ac_exeext'
6749 { (case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752esac
6753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6754 (eval "$ac_try") 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
ad6254c5 6758 eval "$as_ac_var=yes"
795ca3e5 6759else
1995c9ff 6760 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
7a197a62 6763 eval "$as_ac_var=no"
795ca3e5 6764fi
7a197a62 6765
fc54be10 6766rm -f core conftest.err conftest.$ac_objext \
8a2fc586 6767 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6768fi
1995c9ff
AK
6769ac_res=`eval echo '${'$as_ac_var'}'`
6770 { echo "$as_me:$LINENO: result: $ac_res" >&5
6771echo "${ECHO_T}$ac_res" >&6; }
6772if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6773 cat >>confdefs.h <<_ACEOF
1995c9ff 6774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6775_ACEOF
6776
6777fi
6778done
6779
6780if test "x$ac_cv_func_fork" = xyes; then
1995c9ff
AK
6781 { echo "$as_me:$LINENO: checking for working fork" >&5
6782echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6783if test "${ac_cv_func_fork_works+set}" = set; then
1995c9ff 6784 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6785else
6786 if test "$cross_compiling" = yes; then
6787 ac_cv_func_fork_works=cross
6788else
6789 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795$ac_includes_default
6796int
6797main ()
6798{
6799
6800 /* By Ruediger Kuhlmann. */
6801 return fork () < 0;
6802
6803 ;
6804 return 0;
6805}
ad6254c5
AK
6806_ACEOF
6807rm -f conftest$ac_exeext
7a197a62
AK
6808if { (ac_try="$ac_link"
6809case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6812esac
1995c9ff 6813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6814 (eval "$ac_link") 2>&5
ad6254c5 6815 ac_status=$?
1995c9ff 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6818 { (case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
1995c9ff 6822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6823 (eval "$ac_try") 2>&5
ad6254c5 6824 ac_status=$?
1995c9ff 6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6826 (exit $ac_status); }; }; then
6827 ac_cv_func_fork_works=yes
6828else
1995c9ff
AK
6829 echo "$as_me: program exited with status $ac_status" >&5
6830echo "$as_me: failed program was:" >&5
ad6254c5
AK
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833( exit $ac_status )
6834ac_cv_func_fork_works=no
6835fi
7a197a62 6836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6837fi
7a197a62
AK
6838
6839
ad6254c5 6840fi
1995c9ff
AK
6841{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6842echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6843
6844else
6845 ac_cv_func_fork_works=$ac_cv_func_fork
6846fi
6847if test "x$ac_cv_func_fork_works" = xcross; then
6848 case $host in
6849 *-*-amigaos* | *-*-msdosdjgpp*)
6850 # Override, as these systems have only a dummy fork() stub
6851 ac_cv_func_fork_works=no
6852 ;;
6853 *)
6854 ac_cv_func_fork_works=yes
6855 ;;
6856 esac
1995c9ff
AK
6857 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6858echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6859fi
6860ac_cv_func_vfork_works=$ac_cv_func_vfork
6861if test "x$ac_cv_func_vfork" = xyes; then
1995c9ff
AK
6862 { echo "$as_me:$LINENO: checking for working vfork" >&5
6863echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6864if test "${ac_cv_func_vfork_works+set}" = set; then
1995c9ff 6865 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6866else
6867 if test "$cross_compiling" = yes; then
6868 ac_cv_func_vfork_works=cross
6869else
6870 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6871/* confdefs.h. */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h. */
6876/* Thanks to Paul Eggert for this test. */
7a197a62 6877$ac_includes_default
ad6254c5 6878#include <sys/wait.h>
fc54be10 6879#if HAVE_VFORK_H
ad6254c5
AK
6880# include <vfork.h>
6881#endif
6882/* On some sparc systems, changes by the child to local and incoming
6883 argument registers are propagated back to the parent. The compiler
6884 is told about this with #include <vfork.h>, but some compilers
6885 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6886 static variable whose address is put into a register that is
6887 clobbered by the vfork. */
6888static void
6889#ifdef __cplusplus
6890sparc_address_test (int arg)
6891# else
6892sparc_address_test (arg) int arg;
6893#endif
6894{
6895 static pid_t child;
6896 if (!child) {
6897 child = vfork ();
6898 if (child < 0) {
6899 perror ("vfork");
6900 _exit(2);
6901 }
6902 if (!child) {
6903 arg = getpid();
6904 write(-1, "", 0);
6905 _exit (arg);
6906 }
6907 }
6908}
6909
6910int
6911main ()
6912{
6913 pid_t parent = getpid ();
6914 pid_t child;
6915
6916 sparc_address_test (0);
6917
6918 child = vfork ();
6919
6920 if (child == 0) {
6921 /* Here is another test for sparc vfork register problems. This
6922 test uses lots of local variables, at least as many local
6923 variables as main has allocated so far including compiler
6924 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6925 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6926 reuse the register of parent for one of the local variables,
6927 since it will think that parent can't possibly be used any more
6928 in this routine. Assigning to the local variable will thus
6929 munge parent in the parent process. */
6930 pid_t
6931 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6932 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6933 /* Convince the compiler that p..p7 are live; otherwise, it might
6934 use the same hardware register for all 8 local variables. */
6935 if (p != p1 || p != p2 || p != p3 || p != p4
6936 || p != p5 || p != p6 || p != p7)
6937 _exit(1);
6938
6939 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6940 from child file descriptors. If the child closes a descriptor
6941 before it execs or exits, this munges the parent's descriptor
6942 as well. Test for this by closing stdout in the child. */
6943 _exit(close(fileno(stdout)) != 0);
6944 } else {
6945 int status;
6946 struct stat st;
6947
6948 while (wait(&status) != child)
6949 ;
7a197a62 6950 return (
ad6254c5
AK
6951 /* Was there some problem with vforking? */
6952 child < 0
6953
6954 /* Did the child fail? (This shouldn't happen.) */
6955 || status
6956
6957 /* Did the vfork/compiler bug occur? */
6958 || parent != getpid()
6959
6960 /* Did the file descriptor bug occur? */
6961 || fstat(fileno(stdout), &st) != 0
6962 );
6963 }
6964}
6965_ACEOF
6966rm -f conftest$ac_exeext
7a197a62
AK
6967if { (ac_try="$ac_link"
6968case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971esac
1995c9ff 6972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6973 (eval "$ac_link") 2>&5
ad6254c5 6974 ac_status=$?
1995c9ff 6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6977 { (case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980esac
1995c9ff 6981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6982 (eval "$ac_try") 2>&5
ad6254c5 6983 ac_status=$?
1995c9ff 6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6985 (exit $ac_status); }; }; then
6986 ac_cv_func_vfork_works=yes
6987else
1995c9ff
AK
6988 echo "$as_me: program exited with status $ac_status" >&5
6989echo "$as_me: failed program was:" >&5
ad6254c5
AK
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992( exit $ac_status )
6993ac_cv_func_vfork_works=no
6994fi
7a197a62 6995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6996fi
7a197a62
AK
6997
6998
ad6254c5 6999fi
1995c9ff
AK
7000{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7001echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
7002
7003fi;
7004if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 7005 ac_cv_func_vfork_works=$ac_cv_func_vfork
1995c9ff
AK
7006 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7007echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
7008fi
7009
7010if test "x$ac_cv_func_vfork_works" = xyes; then
7011
7012cat >>confdefs.h <<\_ACEOF
7013#define HAVE_WORKING_VFORK 1
7014_ACEOF
7015
7016else
7017
7018cat >>confdefs.h <<\_ACEOF
7019#define vfork fork
7020_ACEOF
7021
7022fi
7023if test "x$ac_cv_func_fork_works" = xyes; then
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define HAVE_WORKING_FORK 1
7027_ACEOF
7028
7029fi
7030
1995c9ff
AK
7031{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7032echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 7033if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
1995c9ff 7034 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7035else
7036 rm -f conftest.sym conftest.file
7037echo >conftest.file
7038if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7039 if test "$cross_compiling" = yes; then
7040 ac_cv_func_lstat_dereferences_slashed_symlink=no
7041else
7042 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
7048$ac_includes_default
7049int
7050main ()
7051{
7052struct stat sbuf;
7053 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7054 That is better in the sense that it means we will not
7055 have to compile and use the lstat wrapper. */
7a197a62 7056 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7057 ;
7058 return 0;
7059}
7060_ACEOF
7061rm -f conftest$ac_exeext
7a197a62
AK
7062if { (ac_try="$ac_link"
7063case "(($ac_try" in
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7066esac
1995c9ff 7067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7068 (eval "$ac_link") 2>&5
ad6254c5 7069 ac_status=$?
1995c9ff 7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7072 { (case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075esac
1995c9ff 7076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7077 (eval "$ac_try") 2>&5
ad6254c5 7078 ac_status=$?
1995c9ff 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7080 (exit $ac_status); }; }; then
7081 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7082else
1995c9ff
AK
7083 echo "$as_me: program exited with status $ac_status" >&5
7084echo "$as_me: failed program was:" >&5
ad6254c5
AK
7085sed 's/^/| /' conftest.$ac_ext >&5
7086
7087( exit $ac_status )
7088ac_cv_func_lstat_dereferences_slashed_symlink=no
7089fi
7a197a62 7090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7091fi
7a197a62
AK
7092
7093
ad6254c5
AK
7094else
7095 # If the `ln -s' command failed, then we probably don't even
7096 # have an lstat function.
7097 ac_cv_func_lstat_dereferences_slashed_symlink=no
7098fi
7099rm -f conftest.sym conftest.file
7100
7101fi
1995c9ff
AK
7102{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7103echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7104
7105test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7106
7107cat >>confdefs.h <<_ACEOF
7108#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7109_ACEOF
7110
7111
7112if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7113 case " $LIBOBJS " in
8a2fc586 7114 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7115 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7116 ;;
8a2fc586
AK
7117esac
7118
ad6254c5
AK
7119fi
7120
1995c9ff
AK
7121{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7122echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7123if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
1995c9ff 7124 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7125else
7126 if test "$cross_compiling" = yes; then
7127 ac_cv_func_lstat_empty_string_bug=yes
7128else
7129 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7130/* confdefs.h. */
7131_ACEOF
7132cat confdefs.h >>conftest.$ac_ext
7133cat >>conftest.$ac_ext <<_ACEOF
7134/* end confdefs.h. */
7135$ac_includes_default
7136int
7137main ()
7138{
7139struct stat sbuf;
7a197a62 7140 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7141 ;
7142 return 0;
7143}
7144_ACEOF
7145rm -f conftest$ac_exeext
7a197a62
AK
7146if { (ac_try="$ac_link"
7147case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150esac
1995c9ff 7151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7152 (eval "$ac_link") 2>&5
ad6254c5 7153 ac_status=$?
1995c9ff 7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7156 { (case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159esac
1995c9ff 7160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7161 (eval "$ac_try") 2>&5
ad6254c5 7162 ac_status=$?
1995c9ff 7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7164 (exit $ac_status); }; }; then
7a197a62 7165 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7166else
1995c9ff
AK
7167 echo "$as_me: program exited with status $ac_status" >&5
7168echo "$as_me: failed program was:" >&5
ad6254c5
AK
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
7171( exit $ac_status )
7a197a62 7172ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7173fi
7a197a62 7174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7175fi
7a197a62
AK
7176
7177
ad6254c5 7178fi
1995c9ff
AK
7179{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7180echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7181if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7182 case " $LIBOBJS " in
8a2fc586 7183 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7184 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7185 ;;
8a2fc586
AK
7186esac
7187
ad6254c5
AK
7188
7189cat >>confdefs.h <<_ACEOF
7190#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7191_ACEOF
7192
7193fi
7194
7195
7196for ac_header in stdlib.h
7197do
1995c9ff 7198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
7200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7203 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7204fi
1995c9ff
AK
7205ac_res=`eval echo '${'$as_ac_Header'}'`
7206 { echo "$as_me:$LINENO: result: $ac_res" >&5
7207echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7208else
7209 # Is the header compilable?
1995c9ff
AK
7210{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7212cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218$ac_includes_default
7219#include <$ac_header>
7220_ACEOF
7221rm -f conftest.$ac_objext
7a197a62
AK
7222if { (ac_try="$ac_compile"
7223case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226esac
1995c9ff 7227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7228 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7229 ac_status=$?
8a2fc586
AK
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
1995c9ff 7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
7234 (exit $ac_status); } &&
7235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7236 { (case "(($ac_try" in
7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7238 *) ac_try_echo=$ac_try;;
7239esac
7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7241 (eval "$ac_try") 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249esac
7250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_try") 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
ad6254c5
AK
7255 ac_header_compiler=yes
7256else
1995c9ff 7257 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7258sed 's/^/| /' conftest.$ac_ext >&5
7259
7a197a62 7260 ac_header_compiler=no
ad6254c5 7261fi
7a197a62
AK
7262
7263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
7264{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7265echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7266
7267# Is the header present?
1995c9ff
AK
7268{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7269echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7270cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7271/* confdefs.h. */
7272_ACEOF
7273cat confdefs.h >>conftest.$ac_ext
7274cat >>conftest.$ac_ext <<_ACEOF
7275/* end confdefs.h. */
7276#include <$ac_header>
7277_ACEOF
7a197a62
AK
7278if { (ac_try="$ac_cpp conftest.$ac_ext"
7279case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282esac
1995c9ff 7283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
1995c9ff 7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
7290 (exit $ac_status); } >/dev/null; then
7291 if test -s conftest.err; then
7292 ac_cpp_err=$ac_c_preproc_warn_flag
7293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7294 else
7295 ac_cpp_err=
7296 fi
7297else
7298 ac_cpp_err=yes
7299fi
7300if test -z "$ac_cpp_err"; then
ad6254c5
AK
7301 ac_header_preproc=yes
7302else
1995c9ff 7303 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7304sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 ac_header_preproc=no
7307fi
7a197a62 7308
ad6254c5 7309rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
7310{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7311echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7312
7313# So? What about this header?
8a2fc586
AK
7314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7315 yes:no: )
1995c9ff
AK
7316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7320 ac_header_preproc=yes
ad6254c5 7321 ;;
8a2fc586 7322 no:yes:* )
1995c9ff
AK
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7335
ad6254c5
AK
7336 ;;
7337esac
1995c9ff
AK
7338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7341 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7342else
8a2fc586 7343 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7344fi
1995c9ff
AK
7345ac_res=`eval echo '${'$as_ac_Header'}'`
7346 { echo "$as_me:$LINENO: result: $ac_res" >&5
7347echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7348
7349fi
1995c9ff 7350if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7351 cat >>confdefs.h <<_ACEOF
1995c9ff 7352#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7353_ACEOF
7354
7355fi
7356
7357done
7358
1995c9ff
AK
7359{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7360echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7361if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
1995c9ff 7362 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7363else
7364 if test "$cross_compiling" = yes; then
7365 ac_cv_func_malloc_0_nonnull=no
7366else
7367 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7368/* confdefs.h. */
7369_ACEOF
7370cat confdefs.h >>conftest.$ac_ext
7371cat >>conftest.$ac_ext <<_ACEOF
7372/* end confdefs.h. */
fc54be10 7373#if STDC_HEADERS || HAVE_STDLIB_H
ad6254c5
AK
7374# include <stdlib.h>
7375#else
7376char *malloc ();
7377#endif
7378
7379int
7380main ()
7381{
7a197a62 7382return ! malloc (0);
ad6254c5
AK
7383 ;
7384 return 0;
7385}
7386_ACEOF
7387rm -f conftest$ac_exeext
7a197a62
AK
7388if { (ac_try="$ac_link"
7389case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392esac
1995c9ff 7393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7394 (eval "$ac_link") 2>&5
ad6254c5 7395 ac_status=$?
1995c9ff 7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7398 { (case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401esac
1995c9ff 7402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7403 (eval "$ac_try") 2>&5
ad6254c5 7404 ac_status=$?
1995c9ff 7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7406 (exit $ac_status); }; }; then
7407 ac_cv_func_malloc_0_nonnull=yes
7408else
1995c9ff
AK
7409 echo "$as_me: program exited with status $ac_status" >&5
7410echo "$as_me: failed program was:" >&5
ad6254c5
AK
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413( exit $ac_status )
7414ac_cv_func_malloc_0_nonnull=no
7415fi
7a197a62 7416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7417fi
7a197a62
AK
7418
7419
ad6254c5 7420fi
1995c9ff
AK
7421{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7422echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7423if test $ac_cv_func_malloc_0_nonnull = yes; then
7424
7425cat >>confdefs.h <<\_ACEOF
7426#define HAVE_MALLOC 1
7427_ACEOF
7428
7429else
7430 cat >>confdefs.h <<\_ACEOF
7431#define HAVE_MALLOC 0
7432_ACEOF
7433
7a197a62 7434 case " $LIBOBJS " in
8a2fc586 7435 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7436 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7437 ;;
8a2fc586
AK
7438esac
7439
ad6254c5
AK
7440
7441cat >>confdefs.h <<\_ACEOF
7442#define malloc rpl_malloc
7443_ACEOF
7444
7445fi
7446
7447
7448
1995c9ff
AK
7449{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7450echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7451if test "${ac_cv_func_memcmp_working+set}" = set; then
1995c9ff 7452 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7453else
7454 if test "$cross_compiling" = yes; then
7455 ac_cv_func_memcmp_working=no
7456else
7457 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7458/* confdefs.h. */
7459_ACEOF
7460cat confdefs.h >>conftest.$ac_ext
7461cat >>conftest.$ac_ext <<_ACEOF
7462/* end confdefs.h. */
8a2fc586 7463$ac_includes_default
ad6254c5
AK
7464int
7465main ()
7466{
7467
7468 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7469 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7470 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7471 return 1;
ad6254c5
AK
7472
7473 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7474 or more and with at least one buffer not starting on a 4-byte boundary.
7475 William Lewis provided this test program. */
7476 {
7477 char foo[21];
7478 char bar[21];
7479 int i;
7480 for (i = 0; i < 4; i++)
7481 {
8a2fc586
AK
7482 char *a = foo + i;
7483 char *b = bar + i;
7484 strcpy (a, "--------01111111");
7485 strcpy (b, "--------10000000");
7486 if (memcmp (a, b, 16) >= 0)
7a197a62 7487 return 1;
ad6254c5 7488 }
7a197a62 7489 return 0;
ad6254c5
AK
7490 }
7491
7492 ;
7493 return 0;
7494}
7495_ACEOF
7496rm -f conftest$ac_exeext
7a197a62
AK
7497if { (ac_try="$ac_link"
7498case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
1995c9ff 7502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7503 (eval "$ac_link") 2>&5
ad6254c5 7504 ac_status=$?
1995c9ff 7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7507 { (case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510esac
1995c9ff 7511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7512 (eval "$ac_try") 2>&5
ad6254c5 7513 ac_status=$?
1995c9ff 7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7515 (exit $ac_status); }; }; then
7516 ac_cv_func_memcmp_working=yes
7517else
1995c9ff
AK
7518 echo "$as_me: program exited with status $ac_status" >&5
7519echo "$as_me: failed program was:" >&5
ad6254c5
AK
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522( exit $ac_status )
7523ac_cv_func_memcmp_working=no
7524fi
7a197a62 7525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7526fi
7a197a62
AK
7527
7528
ad6254c5 7529fi
1995c9ff
AK
7530{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7531echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7532test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7533 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7534 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7535 ;;
8a2fc586
AK
7536esac
7537
ad6254c5
AK
7538
7539
7540
7541for ac_header in stdlib.h unistd.h
7542do
1995c9ff 7543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
7545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7548 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7549fi
1995c9ff
AK
7550ac_res=`eval echo '${'$as_ac_Header'}'`
7551 { echo "$as_me:$LINENO: result: $ac_res" >&5
7552echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7553else
7554 # Is the header compilable?
1995c9ff
AK
7555{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7557cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
7563$ac_includes_default
7564#include <$ac_header>
7565_ACEOF
7566rm -f conftest.$ac_objext
7a197a62
AK
7567if { (ac_try="$ac_compile"
7568case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571esac
1995c9ff 7572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7573 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7574 ac_status=$?
8a2fc586
AK
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
1995c9ff 7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
7579 (exit $ac_status); } &&
7580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7581 { (case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584esac
7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_try") 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
7591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594esac
7595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
ad6254c5
AK
7600 ac_header_compiler=yes
7601else
1995c9ff 7602 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7a197a62 7605 ac_header_compiler=no
ad6254c5 7606fi
7a197a62
AK
7607
7608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
7609{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7610echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7611
7612# Is the header present?
1995c9ff
AK
7613{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7615cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7616/* confdefs.h. */
7617_ACEOF
7618cat confdefs.h >>conftest.$ac_ext
7619cat >>conftest.$ac_ext <<_ACEOF
7620/* end confdefs.h. */
7621#include <$ac_header>
7622_ACEOF
7a197a62
AK
7623if { (ac_try="$ac_cpp conftest.$ac_ext"
7624case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627esac
1995c9ff 7628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
1995c9ff 7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
7635 (exit $ac_status); } >/dev/null; then
7636 if test -s conftest.err; then
7637 ac_cpp_err=$ac_c_preproc_warn_flag
7638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7639 else
7640 ac_cpp_err=
7641 fi
7642else
7643 ac_cpp_err=yes
7644fi
7645if test -z "$ac_cpp_err"; then
ad6254c5
AK
7646 ac_header_preproc=yes
7647else
1995c9ff 7648 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ac_header_preproc=no
7652fi
7a197a62 7653
ad6254c5 7654rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
7655{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7656echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7657
7658# So? What about this header?
8a2fc586
AK
7659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7660 yes:no: )
1995c9ff
AK
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7665 ac_header_preproc=yes
ad6254c5 7666 ;;
8a2fc586 7667 no:yes:* )
1995c9ff
AK
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7671echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7675echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7680
ad6254c5
AK
7681 ;;
7682esac
1995c9ff
AK
7683{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7686 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7687else
8a2fc586 7688 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7689fi
1995c9ff
AK
7690ac_res=`eval echo '${'$as_ac_Header'}'`
7691 { echo "$as_me:$LINENO: result: $ac_res" >&5
7692echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7693
7694fi
1995c9ff 7695if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7696 cat >>confdefs.h <<_ACEOF
1995c9ff 7697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7698_ACEOF
7699
7700fi
7701
7702done
7703
7704
7705for ac_func in getpagesize
7706do
1995c9ff
AK
7707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7708{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7710if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 7711 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7712else
7713 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7714/* confdefs.h. */
7715_ACEOF
7716cat confdefs.h >>conftest.$ac_ext
7717cat >>conftest.$ac_ext <<_ACEOF
7718/* end confdefs.h. */
8a2fc586
AK
7719/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7721#define $ac_func innocuous_$ac_func
7722
ad6254c5
AK
7723/* System header to define __stub macros and hopefully few prototypes,
7724 which can conflict with char $ac_func (); below.
7725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7726 <limits.h> exists even on freestanding compilers. */
8a2fc586 7727
ad6254c5
AK
7728#ifdef __STDC__
7729# include <limits.h>
7730#else
7731# include <assert.h>
7732#endif
8a2fc586
AK
7733
7734#undef $ac_func
7735
7a197a62
AK
7736/* Override any GCC internal prototype to avoid an error.
7737 Use char because int might match the return type of a GCC
7738 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7739#ifdef __cplusplus
7740extern "C"
ad6254c5 7741#endif
ad6254c5
AK
7742char $ac_func ();
7743/* The GNU C library defines this for functions which it implements
7744 to always fail with ENOSYS. Some functions are actually named
7745 something starting with __ and the normal name is an alias. */
7a197a62 7746#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7747choke me
ad6254c5
AK
7748#endif
7749
7750int
7751main ()
7752{
7a197a62 7753return $ac_func ();
ad6254c5
AK
7754 ;
7755 return 0;
7756}
7757_ACEOF
7758rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7759if { (ac_try="$ac_link"
7760case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763esac
1995c9ff 7764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7765 (eval "$ac_link") 2>conftest.er1
ad6254c5 7766 ac_status=$?
8a2fc586
AK
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
1995c9ff 7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776esac
7777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_try") 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786esac
7787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_try") 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
ad6254c5
AK
7792 eval "$as_ac_var=yes"
7793else
1995c9ff 7794 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
7a197a62 7797 eval "$as_ac_var=no"
ad6254c5 7798fi
7a197a62 7799
fc54be10 7800rm -f core conftest.err conftest.$ac_objext \
8a2fc586 7801 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7802fi
1995c9ff
AK
7803ac_res=`eval echo '${'$as_ac_var'}'`
7804 { echo "$as_me:$LINENO: result: $ac_res" >&5
7805echo "${ECHO_T}$ac_res" >&6; }
7806if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7807 cat >>confdefs.h <<_ACEOF
1995c9ff 7808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7809_ACEOF
7810
7811fi
7812done
7813
1995c9ff
AK
7814{ echo "$as_me:$LINENO: checking for working mmap" >&5
7815echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7816if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
1995c9ff 7817 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7818else
7819 if test "$cross_compiling" = yes; then
7820 ac_cv_func_mmap_fixed_mapped=no
7821else
7822 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7823/* confdefs.h. */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */
7828$ac_includes_default
7829/* malloc might have been renamed as rpl_malloc. */
7830#undef malloc
7831
7832/* Thanks to Mike Haertel and Jim Avera for this test.
7833 Here is a matrix of mmap possibilities:
7834 mmap private not fixed
7835 mmap private fixed at somewhere currently unmapped
7836 mmap private fixed at somewhere already mapped
7837 mmap shared not fixed
7838 mmap shared fixed at somewhere currently unmapped
7839 mmap shared fixed at somewhere already mapped
7840 For private mappings, we should verify that changes cannot be read()
7841 back from the file, nor mmap's back from the file at a different
7842 address. (There have been systems where private was not correctly
7843 implemented like the infamous i386 svr4.0, and systems where the
7844 VM page cache was not coherent with the file system buffer cache
7845 like early versions of FreeBSD and possibly contemporary NetBSD.)
7846 For shared mappings, we should conversely verify that changes get
7847 propagated back to all the places they're supposed to be.
7848
7849 Grep wants private fixed already mapped.
7850 The main things grep needs to know about mmap are:
7851 * does it exist and is it safe to write into the mmap'd area
7852 * how to use it (BSD variants) */
7853
7854#include <fcntl.h>
7855#include <sys/mman.h>
7856
fc54be10 7857#if !STDC_HEADERS && !HAVE_STDLIB_H
ad6254c5
AK
7858char *malloc ();
7859#endif
7860
7861/* This mess was copied from the GNU getpagesize.h. */
fc54be10 7862#if !HAVE_GETPAGESIZE
ad6254c5 7863/* Assume that all systems that can run configure have sys/param.h. */
fc54be10 7864# if !HAVE_SYS_PARAM_H
ad6254c5
AK
7865# define HAVE_SYS_PARAM_H 1
7866# endif
7867
7868# ifdef _SC_PAGESIZE
7869# define getpagesize() sysconf(_SC_PAGESIZE)
7870# else /* no _SC_PAGESIZE */
fc54be10 7871# if HAVE_SYS_PARAM_H
ad6254c5
AK
7872# include <sys/param.h>
7873# ifdef EXEC_PAGESIZE
7874# define getpagesize() EXEC_PAGESIZE
7875# else /* no EXEC_PAGESIZE */
7876# ifdef NBPG
7877# define getpagesize() NBPG * CLSIZE
7878# ifndef CLSIZE
7879# define CLSIZE 1
7880# endif /* no CLSIZE */
7881# else /* no NBPG */
7882# ifdef NBPC
7883# define getpagesize() NBPC
7884# else /* no NBPC */
7885# ifdef PAGESIZE
7886# define getpagesize() PAGESIZE
7887# endif /* PAGESIZE */
7888# endif /* no NBPC */
7889# endif /* no NBPG */
7890# endif /* no EXEC_PAGESIZE */
7891# else /* no HAVE_SYS_PARAM_H */
7892# define getpagesize() 8192 /* punt totally */
7893# endif /* no HAVE_SYS_PARAM_H */
7894# endif /* no _SC_PAGESIZE */
7895
7896#endif /* no HAVE_GETPAGESIZE */
7897
7898int
7899main ()
7900{
7901 char *data, *data2, *data3;
7902 int i, pagesize;
7903 int fd;
7904
7905 pagesize = getpagesize ();
7906
7907 /* First, make a file with some known garbage in it. */
7908 data = (char *) malloc (pagesize);
7909 if (!data)
7a197a62 7910 return 1;
ad6254c5
AK
7911 for (i = 0; i < pagesize; ++i)
7912 *(data + i) = rand ();
7913 umask (0);
7914 fd = creat ("conftest.mmap", 0600);
7915 if (fd < 0)
7a197a62 7916 return 1;
ad6254c5 7917 if (write (fd, data, pagesize) != pagesize)
7a197a62 7918 return 1;
ad6254c5
AK
7919 close (fd);
7920
7921 /* Next, try to mmap the file at a fixed address which already has
7922 something else allocated at it. If we can, also make sure that
7923 we see the same garbage. */
7924 fd = open ("conftest.mmap", O_RDWR);
7925 if (fd < 0)
7a197a62 7926 return 1;
ad6254c5
AK
7927 data2 = (char *) malloc (2 * pagesize);
7928 if (!data2)
7a197a62
AK
7929 return 1;
7930 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7931 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7932 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7933 return 1;
ad6254c5
AK
7934 for (i = 0; i < pagesize; ++i)
7935 if (*(data + i) != *(data2 + i))
7a197a62 7936 return 1;
ad6254c5
AK
7937
7938 /* Finally, make sure that changes to the mapped area do not
7939 percolate back to the file as seen by read(). (This is a bug on
7940 some variants of i386 svr4.0.) */
7941 for (i = 0; i < pagesize; ++i)
7942 *(data2 + i) = *(data2 + i) + 1;
7943 data3 = (char *) malloc (pagesize);
7944 if (!data3)
7a197a62 7945 return 1;
ad6254c5 7946 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7947 return 1;
ad6254c5
AK
7948 for (i = 0; i < pagesize; ++i)
7949 if (*(data + i) != *(data3 + i))
7a197a62 7950 return 1;
ad6254c5 7951 close (fd);
7a197a62 7952 return 0;
ad6254c5
AK
7953}
7954_ACEOF
7955rm -f conftest$ac_exeext
7a197a62
AK
7956if { (ac_try="$ac_link"
7957case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960esac
1995c9ff 7961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7962 (eval "$ac_link") 2>&5
ad6254c5 7963 ac_status=$?
1995c9ff 7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969esac
1995c9ff 7970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7971 (eval "$ac_try") 2>&5
ad6254c5 7972 ac_status=$?
1995c9ff 7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7974 (exit $ac_status); }; }; then
7975 ac_cv_func_mmap_fixed_mapped=yes
7976else
1995c9ff
AK
7977 echo "$as_me: program exited with status $ac_status" >&5
7978echo "$as_me: failed program was:" >&5
ad6254c5
AK
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981( exit $ac_status )
7982ac_cv_func_mmap_fixed_mapped=no
7983fi
7a197a62 7984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7985fi
7a197a62
AK
7986
7987
ad6254c5 7988fi
1995c9ff
AK
7989{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7990echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7991if test $ac_cv_func_mmap_fixed_mapped = yes; then
7992
7993cat >>confdefs.h <<\_ACEOF
7994#define HAVE_MMAP 1
7995_ACEOF
7996
7997fi
7998rm -f conftest.mmap
7999
1995c9ff
AK
8000{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8001echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 8002if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
1995c9ff 8003 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8004else
8005 if test "$cross_compiling" = yes; then
8006 ac_cv_func_stat_empty_string_bug=yes
8007else
8008 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8009/* confdefs.h. */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h. */
8014$ac_includes_default
8015int
8016main ()
8017{
8018struct stat sbuf;
7a197a62 8019 return stat ("", &sbuf) == 0;
ad6254c5
AK
8020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest$ac_exeext
7a197a62
AK
8025if { (ac_try="$ac_link"
8026case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029esac
1995c9ff 8030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8031 (eval "$ac_link") 2>&5
ad6254c5 8032 ac_status=$?
1995c9ff 8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038esac
1995c9ff 8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8040 (eval "$ac_try") 2>&5
ad6254c5 8041 ac_status=$?
1995c9ff 8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8043 (exit $ac_status); }; }; then
7a197a62 8044 ac_cv_func_stat_empty_string_bug=no
ad6254c5 8045else
1995c9ff
AK
8046 echo "$as_me: program exited with status $ac_status" >&5
8047echo "$as_me: failed program was:" >&5
ad6254c5
AK
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
8050( exit $ac_status )
7a197a62 8051ac_cv_func_stat_empty_string_bug=yes
ad6254c5 8052fi
7a197a62 8053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8054fi
7a197a62
AK
8055
8056
ad6254c5 8057fi
1995c9ff
AK
8058{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8059echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 8060if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 8061 case " $LIBOBJS " in
8a2fc586 8062 *" stat.$ac_objext "* ) ;;
7a197a62
AK
8063 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8064 ;;
8a2fc586
AK
8065esac
8066
ad6254c5
AK
8067
8068cat >>confdefs.h <<_ACEOF
8069#define HAVE_STAT_EMPTY_STRING_BUG 1
8070_ACEOF
8071
8072fi
8073
1995c9ff
AK
8074{ echo "$as_me:$LINENO: checking for working strtod" >&5
8075echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 8076if test "${ac_cv_func_strtod+set}" = set; then
1995c9ff 8077 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8078else
8079 if test "$cross_compiling" = yes; then
8080 ac_cv_func_strtod=no
8081else
8082 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088
7a197a62
AK
8089$ac_includes_default
8090#ifndef strtod
ad6254c5 8091double strtod ();
7a197a62 8092#endif
ad6254c5
AK
8093int
8094main()
8095{
8096 {
8097 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8098 char *string = " +69";
8099 char *term;
8100 double value;
8101 value = strtod (string, &term);
8102 if (value != 69 || term != (string + 4))
7a197a62 8103 return 1;
ad6254c5
AK
8104 }
8105
8106 {
8107 /* Under Solaris 2.4, strtod returns the wrong value for the
8108 terminating character under some conditions. */
8109 char *string = "NaN";
8110 char *term;
8111 strtod (string, &term);
8112 if (term != string && *(term - 1) == 0)
7a197a62 8113 return 1;
ad6254c5 8114 }
7a197a62 8115 return 0;
ad6254c5
AK
8116}
8117
8118_ACEOF
8119rm -f conftest$ac_exeext
7a197a62
AK
8120if { (ac_try="$ac_link"
8121case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
1995c9ff 8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8126 (eval "$ac_link") 2>&5
ad6254c5 8127 ac_status=$?
1995c9ff 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
1995c9ff 8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8135 (eval "$ac_try") 2>&5
ad6254c5 8136 ac_status=$?
1995c9ff 8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8138 (exit $ac_status); }; }; then
8139 ac_cv_func_strtod=yes
8140else
1995c9ff
AK
8141 echo "$as_me: program exited with status $ac_status" >&5
8142echo "$as_me: failed program was:" >&5
ad6254c5
AK
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145( exit $ac_status )
8146ac_cv_func_strtod=no
8147fi
7a197a62 8148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8149fi
7a197a62
AK
8150
8151
ad6254c5 8152fi
1995c9ff
AK
8153{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8154echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 8155if test $ac_cv_func_strtod = no; then
7a197a62 8156 case " $LIBOBJS " in
8a2fc586 8157 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8158 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8159 ;;
8a2fc586
AK
8160esac
8161
1995c9ff
AK
8162{ echo "$as_me:$LINENO: checking for pow" >&5
8163echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 8164if test "${ac_cv_func_pow+set}" = set; then
1995c9ff 8165 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8166else
8167 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
8a2fc586
AK
8173/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8175#define pow innocuous_pow
8176
ad6254c5
AK
8177/* System header to define __stub macros and hopefully few prototypes,
8178 which can conflict with char pow (); below.
8179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8180 <limits.h> exists even on freestanding compilers. */
8a2fc586 8181
ad6254c5
AK
8182#ifdef __STDC__
8183# include <limits.h>
8184#else
8185# include <assert.h>
8186#endif
8a2fc586
AK
8187
8188#undef pow
8189
7a197a62
AK
8190/* Override any GCC internal prototype to avoid an error.
8191 Use char because int might match the return type of a GCC
8192 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8193#ifdef __cplusplus
8194extern "C"
ad6254c5 8195#endif
ad6254c5
AK
8196char pow ();
8197/* The GNU C library defines this for functions which it implements
8198 to always fail with ENOSYS. Some functions are actually named
8199 something starting with __ and the normal name is an alias. */
7a197a62 8200#if defined __stub_pow || defined __stub___pow
ad6254c5 8201choke me
ad6254c5
AK
8202#endif
8203
8204int
8205main ()
8206{
7a197a62 8207return pow ();
ad6254c5
AK
8208 ;
8209 return 0;
8210}
8211_ACEOF
8212rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8213if { (ac_try="$ac_link"
8214case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217esac
1995c9ff 8218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8219 (eval "$ac_link") 2>conftest.er1
ad6254c5 8220 ac_status=$?
8a2fc586
AK
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
1995c9ff 8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest$ac_exeext'
8237 { (case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8240esac
8241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_try") 2>&5
8243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
ad6254c5
AK
8246 ac_cv_func_pow=yes
8247else
1995c9ff 8248 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8249sed 's/^/| /' conftest.$ac_ext >&5
8250
7a197a62 8251 ac_cv_func_pow=no
ad6254c5 8252fi
7a197a62 8253
fc54be10 8254rm -f core conftest.err conftest.$ac_objext \
8a2fc586 8255 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8256fi
1995c9ff
AK
8257{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8258echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8259
8260if test $ac_cv_func_pow = no; then
1995c9ff
AK
8261 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8262echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8263if test "${ac_cv_lib_m_pow+set}" = set; then
1995c9ff 8264 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8265else
8266 ac_check_lib_save_LIBS=$LIBS
8267LIBS="-lm $LIBS"
8268cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
8274
7a197a62
AK
8275/* Override any GCC internal prototype to avoid an error.
8276 Use char because int might match the return type of a GCC
8277 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8278#ifdef __cplusplus
8279extern "C"
8280#endif
ad6254c5
AK
8281char pow ();
8282int
8283main ()
8284{
7a197a62 8285return pow ();
ad6254c5
AK
8286 ;
8287 return 0;
8288}
8289_ACEOF
8290rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8291if { (ac_try="$ac_link"
8292case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
1995c9ff 8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8297 (eval "$ac_link") 2>conftest.er1
ad6254c5 8298 ac_status=$?
8a2fc586
AK
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
1995c9ff 8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; } &&
8314 { ac_try='test -s conftest$ac_exeext'
8315 { (case "(($ac_try" in
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8318esac
8319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_try") 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
ad6254c5
AK
8324 ac_cv_lib_m_pow=yes
8325else
1995c9ff 8326 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
7a197a62 8329 ac_cv_lib_m_pow=no
ad6254c5 8330fi
7a197a62 8331
fc54be10 8332rm -f core conftest.err conftest.$ac_objext \
8a2fc586 8333 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8334LIBS=$ac_check_lib_save_LIBS
8335fi
1995c9ff
AK
8336{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8337echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
ad6254c5
AK
8338if test $ac_cv_lib_m_pow = yes; then
8339 POW_LIB=-lm
8340else
1995c9ff
AK
8341 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8342echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
ad6254c5
AK
8343fi
8344
8345fi
8346
8347fi
8348
8349
8350################################################################################
8351
8352
8353################################################################################
7a197a62 8354# Check whether --enable-jobs was given.
ad6254c5 8355if test "${enable_jobs+set}" = set; then
7a197a62 8356 enableval=$enable_jobs; JOBS=-j$enableval
ad6254c5
AK
8357else
8358 JOBS=-j2
7a197a62
AK
8359fi
8360
ad6254c5
AK
8361
8362################################################################################
1995c9ff
AK
8363{ echo "$as_me:$LINENO: checking file owner" >&5
8364echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
ad6254c5
AK
8365OWNER="root"
8366
8367
7a197a62 8368# Check whether --with-user was given.
ad6254c5 8369if test "${with_user+set}" = set; then
7a197a62
AK
8370 withval=$with_user; OWNER="$withval"
8371fi
8372
1995c9ff
AK
8373{ echo "$as_me:$LINENO: result: $OWNER" >&5
8374echo "${ECHO_T}$OWNER" >&6; }
ad6254c5
AK
8375
8376if test x$OWNER != x; then
8377 OWNER="-o $OWNER"
8378fi
8379
8380################################################################################
1995c9ff
AK
8381{ echo "$as_me:$LINENO: checking group owner" >&5
8382echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
ad6254c5
AK
8383GROUP="root"
8384
7a197a62 8385# Check whether --with-group was given.
ad6254c5 8386if test "${with_group+set}" = set; then
7a197a62
AK
8387 withval=$with_group; GROUP="$withval"
8388fi
8389
1995c9ff
AK
8390{ echo "$as_me:$LINENO: result: $GROUP" >&5
8391echo "${ECHO_T}$GROUP" >&6; }
ad6254c5
AK
8392
8393if test x$GROUP != x; then
8394 GROUP="-g $GROUP"
8395fi
8396
8397################################################################################
1995c9ff
AK
8398{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8399echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
7a197a62 8400# Check whether --enable-lvm1_fallback was given.
ad6254c5 8401if test "${enable_lvm1_fallback+set}" = set; then
7a197a62 8402 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
ad6254c5
AK
8403else
8404 LVM1_FALLBACK=no
7a197a62
AK
8405fi
8406
1995c9ff
AK
8407{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8408echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5
AK
8409
8410if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8411
8412cat >>confdefs.h <<\_ACEOF
8413#define LVM1_FALLBACK 1
8414_ACEOF
8415
ad6254c5
AK
8416fi
8417
8418################################################################################
1995c9ff
AK
8419{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8420echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
ad6254c5 8421
7a197a62 8422# Check whether --with-lvm1 was given.
ad6254c5 8423if test "${with_lvm1+set}" = set; then
7a197a62 8424 withval=$with_lvm1; LVM1="$withval"
ad6254c5
AK
8425else
8426 LVM1="internal"
7a197a62
AK
8427fi
8428
1995c9ff
AK
8429{ echo "$as_me:$LINENO: result: $LVM1" >&5
8430echo "${ECHO_T}$LVM1" >&6; }
ad6254c5
AK
8431
8432if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
1995c9ff 8433 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
ad6254c5 8434" >&5
1995c9ff 8435echo "$as_me: error: --with-lvm1 parameter invalid
ad6254c5
AK
8436" >&2;}
8437 { (exit 1); exit 1; }; }
8438fi;
8439
8440if test x$LVM1 = xinternal; then
72b2cb61
AK
8441
8442cat >>confdefs.h <<\_ACEOF
8443#define LVM1_INTERNAL 1
8444_ACEOF
8445
ad6254c5
AK
8446fi
8447
8448################################################################################
1995c9ff
AK
8449{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8450echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
ad6254c5 8451
7a197a62 8452# Check whether --with-pool was given.
ad6254c5 8453if test "${with_pool+set}" = set; then
7a197a62 8454 withval=$with_pool; POOL="$withval"
ad6254c5
AK
8455else
8456 POOL="internal"
7a197a62
AK
8457fi
8458
1995c9ff
AK
8459{ echo "$as_me:$LINENO: result: $POOL" >&5
8460echo "${ECHO_T}$POOL" >&6; }
ad6254c5
AK
8461
8462if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
1995c9ff 8463 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
ad6254c5 8464" >&5
1995c9ff 8465echo "$as_me: error: --with-pool parameter invalid
ad6254c5
AK
8466" >&2;}
8467 { (exit 1); exit 1; }; }
8468fi;
8469
8470if test x$POOL = xinternal; then
72b2cb61
AK
8471
8472cat >>confdefs.h <<\_ACEOF
8473#define POOL_INTERNAL 1
8474_ACEOF
8475
ad6254c5
AK
8476fi
8477
8478################################################################################
1995c9ff
AK
8479{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8480echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
ad6254c5 8481
7a197a62 8482# Check whether --with-cluster was given.
ad6254c5 8483if test "${with_cluster+set}" = set; then
7a197a62
AK
8484 withval=$with_cluster; CLUSTER="$withval"
8485fi
8486
1995c9ff
AK
8487{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8488echo "${ECHO_T}$CLUSTER" >&6; }
ad6254c5
AK
8489
8490if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
1995c9ff 8491 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
ad6254c5 8492" >&5
1995c9ff 8493echo "$as_me: error: --with-cluster parameter invalid
ad6254c5
AK
8494" >&2;}
8495 { (exit 1); exit 1; }; }
8496fi;
8497
8498if test x$CLUSTER = xinternal; then
72b2cb61
AK
8499
8500cat >>confdefs.h <<\_ACEOF
8501#define CLUSTER_LOCKING_INTERNAL 1
8502_ACEOF
8503
ad6254c5
AK
8504fi
8505
8506################################################################################
1995c9ff
AK
8507{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8508echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8509
7a197a62 8510# Check whether --with-snapshots was given.
ad6254c5 8511if test "${with_snapshots+set}" = set; then
7a197a62 8512 withval=$with_snapshots; SNAPSHOTS="$withval"
ad6254c5
AK
8513else
8514 SNAPSHOTS="internal"
7a197a62
AK
8515fi
8516
1995c9ff
AK
8517{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8518echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5
AK
8519
8520if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
1995c9ff 8521 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
ad6254c5 8522" >&5
1995c9ff 8523echo "$as_me: error: --with-snapshots parameter invalid
ad6254c5
AK
8524" >&2;}
8525 { (exit 1); exit 1; }; }
8526fi;
8527
8528if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
8529
8530cat >>confdefs.h <<\_ACEOF
8531#define SNAPSHOT_INTERNAL 1
8532_ACEOF
8533
ad6254c5
AK
8534fi
8535
8536################################################################################
1995c9ff
AK
8537{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8538echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
ad6254c5 8539
7a197a62 8540# Check whether --with-mirrors was given.
ad6254c5 8541if test "${with_mirrors+set}" = set; then
7a197a62 8542 withval=$with_mirrors; MIRRORS="$withval"
ad6254c5
AK
8543else
8544 MIRRORS="internal"
7a197a62
AK
8545fi
8546
1995c9ff
AK
8547{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8548echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5
AK
8549
8550if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
1995c9ff 8551 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
ad6254c5 8552" >&5
1995c9ff 8553echo "$as_me: error: --with-mirrors parameter invalid
ad6254c5
AK
8554" >&2;}
8555 { (exit 1); exit 1; }; }
8556fi;
8557
8558if test x$MIRRORS = xinternal; then
72b2cb61
AK
8559
8560cat >>confdefs.h <<\_ACEOF
8561#define MIRRORED_INTERNAL 1
8562_ACEOF
8563
ad6254c5
AK
8564fi
8565
8566################################################################################
1995c9ff
AK
8567{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
8568echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
7a197a62 8569# Check whether --enable-static_link was given.
ad6254c5 8570if test "${enable_static_link+set}" = set; then
7a197a62 8571 enableval=$enable_static_link; STATIC_LINK=$enableval
ad6254c5
AK
8572else
8573 STATIC_LINK=no
7a197a62
AK
8574fi
8575
1995c9ff
AK
8576{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8577echo "${ECHO_T}$STATIC_LINK" >&6; }
ad6254c5
AK
8578
8579################################################################################
1995c9ff
AK
8580{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8581echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
7a197a62 8582# Check whether --enable-readline was given.
ad6254c5 8583if test "${enable_readline+set}" = set; then
7a197a62 8584 enableval=$enable_readline; READLINE=$enableval
ad6254c5
AK
8585else
8586 READLINE=no
7a197a62
AK
8587fi
8588
1995c9ff
AK
8589{ echo "$as_me:$LINENO: result: $READLINE" >&5
8590echo "${ECHO_T}$READLINE" >&6; }
ad6254c5
AK
8591
8592if test x$READLINE = xyes; then
72b2cb61
AK
8593
8594cat >>confdefs.h <<\_ACEOF
8595#define READLINE_SUPPORT 1
8596_ACEOF
8597
ad6254c5
AK
8598fi
8599
8600################################################################################
1995c9ff
AK
8601{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
8602echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
7a197a62 8603# Check whether --enable-selinux was given.
ad6254c5 8604if test "${enable_selinux+set}" = set; then
7a197a62
AK
8605 enableval=$enable_selinux; SELINUX=$enableval
8606fi
8607
1995c9ff
AK
8608{ echo "$as_me:$LINENO: result: $SELINUX" >&5
8609echo "${ECHO_T}$SELINUX" >&6; }
ad6254c5 8610
8b1a3214 8611################################################################################
1995c9ff
AK
8612{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8613echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
7a197a62 8614# Check whether --enable-realtime was given.
8b1a3214 8615if test "${enable_realtime+set}" = set; then
7a197a62
AK
8616 enableval=$enable_realtime; REALTIME=$enableval
8617fi
8618
1995c9ff
AK
8619{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8620echo "${ECHO_T}$REALTIME" >&6; }
8b1a3214 8621
ad6254c5 8622################################################################################
1995c9ff
AK
8623{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8624echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
ad6254c5 8625
7a197a62 8626# Check whether --with-clvmd was given.
ad6254c5 8627if test "${with_clvmd+set}" = set; then
7a197a62 8628 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8629else
a266258f 8630 CLVMD="none"
7a197a62
AK
8631fi
8632
a266258f 8633if test x$CLVMD = xyes; then
5c7fc7c4 8634 CLVMD=all
b1098701 8635fi
1995c9ff
AK
8636{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8637echo "${ECHO_T}$CLVMD" >&6; }
ad6254c5 8638
a266258f 8639if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
8640 CLUSTER=internal
8641fi
8642
8643################################################################################
1995c9ff
AK
8644{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8645echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
7a197a62 8646# Check whether --enable-debug was given.
ad6254c5 8647if test "${enable_debug+set}" = set; then
7a197a62 8648 enableval=$enable_debug; DEBUG=$enableval
ad6254c5
AK
8649else
8650 DEBUG=no
7a197a62
AK
8651fi
8652
1995c9ff
AK
8653{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8654echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5
AK
8655
8656if test x$DEBUG = xyes; then
8657 COPTIMISE_FLAG=
8a2fc586
AK
8658else
8659 CSCOPE_CMD=
ad6254c5
AK
8660fi
8661
8662################################################################################
1995c9ff
AK
8663{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8664echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
ad6254c5 8665
7a197a62 8666# Check whether --with-optimisation was given.
ad6254c5 8667if test "${with_optimisation+set}" = set; then
7a197a62
AK
8668 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8669fi
8670
1995c9ff
AK
8671{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8672echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
ad6254c5
AK
8673
8674################################################################################
1995c9ff
AK
8675{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8676echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
7a197a62 8677# Check whether --enable-devmapper was given.
ad6254c5 8678if test "${enable_devmapper+set}" = set; then
7a197a62
AK
8679 enableval=$enable_devmapper; DEVMAPPER=$enableval
8680fi
8681
1995c9ff
AK
8682{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8683echo "${ECHO_T}$DEVMAPPER" >&6; }
ad6254c5
AK
8684
8685if test x$DEVMAPPER = xyes; then
72b2cb61
AK
8686
8687cat >>confdefs.h <<\_ACEOF
8688#define DEVMAPPER_SUPPORT 1
8689_ACEOF
8690
ad6254c5
AK
8691fi
8692
8693################################################################################
1995c9ff
AK
8694{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8695echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
7a197a62 8696# Check whether --enable-o_direct was given.
ad6254c5 8697if test "${enable_o_direct+set}" = set; then
7a197a62
AK
8698 enableval=$enable_o_direct; ODIRECT=$enableval
8699fi
8700
1995c9ff
AK
8701{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8702echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5
AK
8703
8704if test x$ODIRECT = xyes; then
72b2cb61
AK
8705
8706cat >>confdefs.h <<\_ACEOF
8707#define O_DIRECT_SUPPORT 1
8708_ACEOF
8709
ad6254c5
AK
8710fi
8711
8712################################################################################
1995c9ff
AK
8713{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8714echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
7a197a62 8715# Check whether --enable-cmdlib was given.
ad6254c5 8716if test "${enable_cmdlib+set}" = set; then
7a197a62 8717 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5
AK
8718else
8719 CMDLIB=no
7a197a62
AK
8720fi
8721
1995c9ff
AK
8722{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8723echo "${ECHO_T}$CMDLIB" >&6; }
ad6254c5 8724
ad6254c5 8725################################################################################
1995c9ff
AK
8726{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8727echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
7a197a62 8728# Check whether --enable-fsadm was given.
ad6254c5 8729if test "${enable_fsadm+set}" = set; then
7a197a62
AK
8730 enableval=$enable_fsadm; FSADM=$enableval
8731fi
8732
1995c9ff
AK
8733{ echo "$as_me:$LINENO: result: $FSADM" >&5
8734echo "${ECHO_T}$FSADM" >&6; }
ad6254c5 8735
06f62ad1 8736################################################################################
1995c9ff
AK
8737{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8738echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
7a197a62 8739# Check whether --enable-dmeventd was given.
06f62ad1 8740if test "${enable_dmeventd+set}" = set; then
7a197a62
AK
8741 enableval=$enable_dmeventd; DMEVENTD=$enableval
8742fi
8743
1995c9ff
AK
8744{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8745echo "${ECHO_T}$DMEVENTD" >&6; }
06f62ad1
AK
8746
8747if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
1995c9ff 8748{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
06f62ad1 8749" >&5
1995c9ff 8750echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
06f62ad1
AK
8751" >&2;}
8752 { (exit 1); exit 1; }; }
8753fi
8754
15d91f5a 8755if test x$DMEVENTD = xyes; then
72b2cb61
AK
8756
8757cat >>confdefs.h <<\_ACEOF
8758#define DMEVENTD 1
8759_ACEOF
8760
15d91f5a 8761fi
ad6254c5
AK
8762################################################################################
8763if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8764 then exec_prefix="";
8765fi;
8766
8767################################################################################
8768if test $ac_cv_c_compiler_gnu = yes; then
1995c9ff
AK
8769 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8770echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
ad6254c5 8771if test "${ac_cv_prog_gcc_traditional+set}" = set; then
1995c9ff 8772 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8773else
8774 ac_pattern="Autoconf.*'x'"
8775 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8776/* confdefs.h. */
8777_ACEOF
8778cat confdefs.h >>conftest.$ac_ext
8779cat >>conftest.$ac_ext <<_ACEOF
8780/* end confdefs.h. */
8781#include <sgtty.h>
8782Autoconf TIOCGETP
8783_ACEOF
8784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8785 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8786 ac_cv_prog_gcc_traditional=yes
8787else
8788 ac_cv_prog_gcc_traditional=no
8789fi
8790rm -f conftest*
8791
8792
8793 if test $ac_cv_prog_gcc_traditional = no; then
8794 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8795/* confdefs.h. */
8796_ACEOF
8797cat confdefs.h >>conftest.$ac_ext
8798cat >>conftest.$ac_ext <<_ACEOF
8799/* end confdefs.h. */
8800#include <termio.h>
8801Autoconf TCGETA
8802_ACEOF
8803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8804 $EGREP "$ac_pattern" >/dev/null 2>&1; then
8805 ac_cv_prog_gcc_traditional=yes
8806fi
8807rm -f conftest*
8808
8809 fi
8810fi
1995c9ff
AK
8811{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8812echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
ad6254c5
AK
8813 if test $ac_cv_prog_gcc_traditional = yes; then
8814 CC="$CC -traditional"
8815 fi
8816fi
8817
1995c9ff
AK
8818{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8819echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
ad6254c5 8820if test "${ac_cv_type_signal+set}" = set; then
1995c9ff 8821 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8822else
8823 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8824/* confdefs.h. */
8825_ACEOF
8826cat confdefs.h >>conftest.$ac_ext
8827cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h. */
8829#include <sys/types.h>
8830#include <signal.h>
ad6254c5
AK
8831
8832int
8833main ()
8834{
7a197a62 8835return *(signal (0, 0)) (0) == 1;
ad6254c5
AK
8836 ;
8837 return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext
7a197a62
AK
8841if { (ac_try="$ac_compile"
8842case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845esac
1995c9ff 8846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8847 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8848 ac_status=$?
8a2fc586
AK
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
1995c9ff 8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855 { (case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858esac
8859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_try") 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest.$ac_objext'
8865 { (case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868esac
8869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_try") 2>&5
8871 ac_status=$?
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
7a197a62 8874 ac_cv_type_signal=int
ad6254c5 8875else
1995c9ff 8876 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
7a197a62 8879 ac_cv_type_signal=void
ad6254c5 8880fi
7a197a62
AK
8881
8882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 8883fi
1995c9ff
AK
8884{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8885echo "${ECHO_T}$ac_cv_type_signal" >&6; }
ad6254c5
AK
8886
8887cat >>confdefs.h <<_ACEOF
8888#define RETSIGTYPE $ac_cv_type_signal
8889_ACEOF
8890
8891
8892
8893for ac_func in vprintf
8894do
1995c9ff
AK
8895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8896{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 8898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 8899 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8900else
8901 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8902/* confdefs.h. */
8903_ACEOF
8904cat confdefs.h >>conftest.$ac_ext
8905cat >>conftest.$ac_ext <<_ACEOF
8906/* end confdefs.h. */
8a2fc586
AK
8907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8909#define $ac_func innocuous_$ac_func
8910
ad6254c5
AK
8911/* System header to define __stub macros and hopefully few prototypes,
8912 which can conflict with char $ac_func (); below.
8913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8914 <limits.h> exists even on freestanding compilers. */
8a2fc586 8915
ad6254c5
AK
8916#ifdef __STDC__
8917# include <limits.h>
8918#else
8919# include <assert.h>
8920#endif
8a2fc586
AK
8921
8922#undef $ac_func
8923
7a197a62
AK
8924/* Override any GCC internal prototype to avoid an error.
8925 Use char because int might match the return type of a GCC
8926 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8927#ifdef __cplusplus
8928extern "C"
ad6254c5 8929#endif
ad6254c5
AK
8930char $ac_func ();
8931/* The GNU C library defines this for functions which it implements
8932 to always fail with ENOSYS. Some functions are actually named
8933 something starting with __ and the normal name is an alias. */
7a197a62 8934#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8935choke me
ad6254c5
AK
8936#endif
8937
8938int
8939main ()
8940{
7a197a62 8941return $ac_func ();
ad6254c5
AK
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8947if { (ac_try="$ac_link"
8948case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951esac
1995c9ff 8952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8953 (eval "$ac_link") 2>conftest.er1
ad6254c5 8954 ac_status=$?
8a2fc586
AK
8955 grep -v '^ *+' conftest.er1 >conftest.err
8956 rm -f conftest.er1
8957 cat conftest.err >&5
1995c9ff 8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
8959 (exit $ac_status); } &&
8960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest$ac_exeext'
8971 { (case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
8975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_try") 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
ad6254c5
AK
8980 eval "$as_ac_var=yes"
8981else
1995c9ff 8982 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
7a197a62 8985 eval "$as_ac_var=no"
ad6254c5 8986fi
7a197a62 8987
fc54be10 8988rm -f core conftest.err conftest.$ac_objext \
8a2fc586 8989 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8990fi
1995c9ff
AK
8991ac_res=`eval echo '${'$as_ac_var'}'`
8992 { echo "$as_me:$LINENO: result: $ac_res" >&5
8993echo "${ECHO_T}$ac_res" >&6; }
8994if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 8995 cat >>confdefs.h <<_ACEOF
1995c9ff 8996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8997_ACEOF
8998
1995c9ff
AK
8999{ echo "$as_me:$LINENO: checking for _doprnt" >&5
9000echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
ad6254c5 9001if test "${ac_cv_func__doprnt+set}" = set; then
1995c9ff 9002 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9003else
9004 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9005/* confdefs.h. */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h. */
8a2fc586
AK
9010/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9012#define _doprnt innocuous__doprnt
9013
ad6254c5
AK
9014/* System header to define __stub macros and hopefully few prototypes,
9015 which can conflict with char _doprnt (); below.
9016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9017 <limits.h> exists even on freestanding compilers. */
8a2fc586 9018
ad6254c5
AK
9019#ifdef __STDC__
9020# include <limits.h>
9021#else
9022# include <assert.h>
9023#endif
8a2fc586
AK
9024
9025#undef _doprnt
9026
7a197a62
AK
9027/* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9030#ifdef __cplusplus
9031extern "C"
ad6254c5 9032#endif
ad6254c5
AK
9033char _doprnt ();
9034/* The GNU C library defines this for functions which it implements
9035 to always fail with ENOSYS. Some functions are actually named
9036 something starting with __ and the normal name is an alias. */
7a197a62 9037#if defined __stub__doprnt || defined __stub____doprnt
ad6254c5 9038choke me
ad6254c5
AK
9039#endif
9040
9041int
9042main ()
9043{
7a197a62 9044return _doprnt ();
ad6254c5
AK
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9050if { (ac_try="$ac_link"
9051case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054esac
1995c9ff 9055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9056 (eval "$ac_link") 2>conftest.er1
ad6254c5 9057 ac_status=$?
8a2fc586
AK
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
1995c9ff 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9064 { (case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067esac
9068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_try") 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest$ac_exeext'
9074 { (case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077esac
9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_try") 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_func__doprnt=yes
9084else
9085 echo "$as_me: failed program was:" >&5
9086sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_cv_func__doprnt=no
9089fi
9090
9091rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093fi
9094{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9095echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
9096if test $ac_cv_func__doprnt = yes; then
ad6254c5
AK
9097
9098cat >>confdefs.h <<\_ACEOF
9099#define HAVE_DOPRNT 1
9100_ACEOF
9101
9102fi
9103
9104fi
9105done
9106
9107
9108
9109
9110
9111for ac_func in mkdir rmdir uname
9112do
1995c9ff
AK
9113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 9116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9117 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9118else
9119 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9120/* confdefs.h. */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h. */
8a2fc586
AK
9125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9127#define $ac_func innocuous_$ac_func
9128
ad6254c5
AK
9129/* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char $ac_func (); below.
9131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 <limits.h> exists even on freestanding compilers. */
8a2fc586 9133
ad6254c5
AK
9134#ifdef __STDC__
9135# include <limits.h>
9136#else
9137# include <assert.h>
9138#endif
8a2fc586
AK
9139
9140#undef $ac_func
9141
7a197a62
AK
9142/* Override any GCC internal prototype to avoid an error.
9143 Use char because int might match the return type of a GCC
9144 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9145#ifdef __cplusplus
9146extern "C"
ad6254c5 9147#endif
ad6254c5
AK
9148char $ac_func ();
9149/* The GNU C library defines this for functions which it implements
9150 to always fail with ENOSYS. Some functions are actually named
9151 something starting with __ and the normal name is an alias. */
7a197a62 9152#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9153choke me
ad6254c5
AK
9154#endif
9155
9156int
9157main ()
9158{
7a197a62 9159return $ac_func ();
ad6254c5
AK
9160 ;
9161 return 0;
9162}
9163_ACEOF
9164rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9165if { (ac_try="$ac_link"
9166case "(($ac_try" in
9167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9168 *) ac_try_echo=$ac_try;;
9169esac
1995c9ff 9170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9171 (eval "$ac_link") 2>conftest.er1
ad6254c5 9172 ac_status=$?
8a2fc586
AK
9173 grep -v '^ *+' conftest.er1 >conftest.err
9174 rm -f conftest.er1
9175 cat conftest.err >&5
1995c9ff 9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9177 (exit $ac_status); } &&
9178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9179 { (case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182esac
9183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_try") 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192esac
9193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_try") 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; }; then
ad6254c5
AK
9198 eval "$as_ac_var=yes"
9199else
1995c9ff 9200 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9201sed 's/^/| /' conftest.$ac_ext >&5
9202
7a197a62 9203 eval "$as_ac_var=no"
ad6254c5 9204fi
7a197a62 9205
fc54be10 9206rm -f core conftest.err conftest.$ac_objext \
8a2fc586 9207 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9208fi
1995c9ff
AK
9209ac_res=`eval echo '${'$as_ac_var'}'`
9210 { echo "$as_me:$LINENO: result: $ac_res" >&5
9211echo "${ECHO_T}$ac_res" >&6; }
9212if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 9213 cat >>confdefs.h <<_ACEOF
1995c9ff 9214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9215_ACEOF
9216
9217else
1995c9ff
AK
9218 { { echo "$as_me:$LINENO: error: bailing out" >&5
9219echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
9220 { (exit 1); exit 1; }; }
9221fi
9222done
9223
9224
9225################################################################################
9226if test x$READLINE = xyes; then
1995c9ff
AK
9227 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9228echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 9229if test "${ac_cv_search_tgetent+set}" = set; then
1995c9ff 9230 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9231else
9232 ac_func_search_save_LIBS=$LIBS
ad6254c5 9233cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
9239
7a197a62
AK
9240/* Override any GCC internal prototype to avoid an error.
9241 Use char because int might match the return type of a GCC
9242 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9243#ifdef __cplusplus
9244extern "C"
9245#endif
ad6254c5
AK
9246char tgetent ();
9247int
9248main ()
9249{
7a197a62 9250return tgetent ();
ad6254c5
AK
9251 ;
9252 return 0;
9253}
9254_ACEOF
7a197a62
AK
9255for ac_lib in '' ncurses curses termcap termlib; do
9256 if test -z "$ac_lib"; then
9257 ac_res="none required"
9258 else
9259 ac_res=-l$ac_lib
9260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9261 fi
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263if { (ac_try="$ac_link"
9264case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267esac
1995c9ff 9268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9269 (eval "$ac_link") 2>conftest.er1
ad6254c5 9270 ac_status=$?
8a2fc586
AK
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
1995c9ff 9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277 { (case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9280esac
9281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_try") 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; } &&
9286 { ac_try='test -s conftest$ac_exeext'
9287 { (case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
7a197a62 9296 ac_cv_search_tgetent=$ac_res
ad6254c5 9297else
1995c9ff 9298 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9299sed 's/^/| /' conftest.$ac_ext >&5
9300
ad6254c5 9301
7a197a62 9302fi
ad6254c5 9303
fc54be10 9304rm -f core conftest.err conftest.$ac_objext \
7a197a62
AK
9305 conftest$ac_exeext
9306 if test "${ac_cv_search_tgetent+set}" = set; then
9307 break
ad6254c5 9308fi
7a197a62
AK
9309done
9310if test "${ac_cv_search_tgetent+set}" = set; then
9311 :
9312else
9313 ac_cv_search_tgetent=no
ad6254c5 9314fi
7a197a62 9315rm conftest.$ac_ext
ad6254c5
AK
9316LIBS=$ac_func_search_save_LIBS
9317fi
1995c9ff
AK
9318{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
9319echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
9320ac_res=$ac_cv_search_tgetent
9321if test "$ac_res" != no; then
9322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
9323
9324else
1995c9ff 9325 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
9326--enable-readline option (which is enabled by default). Either disable readline
9327support with --disable-readline or download and install termcap from:
9328 ftp.gnu.org/gnu/termcap
9329Note: if you are using precompiled packages you will also need the development
9330 package as well (which may be called termcap-devel or something similar).
9331Note: (n)curses also seems to work as a substitute for termcap. This was
9332 not found either - but you could try installing that as well.
9333" >&5
1995c9ff 9334echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
9335--enable-readline option (which is enabled by default). Either disable readline
9336support with --disable-readline or download and install termcap from:
9337 ftp.gnu.org/gnu/termcap
9338Note: if you are using precompiled packages you will also need the development
9339 package as well (which may be called termcap-devel or something similar).
9340Note: (n)curses also seems to work as a substitute for termcap. This was
9341 not found either - but you could try installing that as well.
9342" >&2;}
9343 { (exit 1); exit 1; }; }
9344
9345fi
9346
9347fi
9348
9349################################################################################
1995c9ff
AK
9350{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9351echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 9352if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1995c9ff 9353 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9354else
9355 ac_check_lib_save_LIBS=$LIBS
9356LIBS="-ldl $LIBS"
9357cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9358/* confdefs.h. */
9359_ACEOF
9360cat confdefs.h >>conftest.$ac_ext
9361cat >>conftest.$ac_ext <<_ACEOF
9362/* end confdefs.h. */
9363
7a197a62
AK
9364/* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9367#ifdef __cplusplus
9368extern "C"
9369#endif
ad6254c5
AK
9370char dlopen ();
9371int
9372main ()
9373{
7a197a62 9374return dlopen ();
ad6254c5
AK
9375 ;
9376 return 0;
9377}
9378_ACEOF
9379rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9380if { (ac_try="$ac_link"
9381case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384esac
1995c9ff 9385eval "echo \"\$as_me:$LINENO: $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
1995c9ff 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9394 { (case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397esac
9398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_try") 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407esac
9408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_try") 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
ad6254c5
AK
9413 ac_cv_lib_dl_dlopen=yes
9414else
1995c9ff 9415 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
7a197a62 9418 ac_cv_lib_dl_dlopen=no
ad6254c5 9419fi
7a197a62 9420
fc54be10 9421rm -f core conftest.err conftest.$ac_objext \
8a2fc586 9422 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9423LIBS=$ac_check_lib_save_LIBS
9424fi
1995c9ff
AK
9425{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9426echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9427if test $ac_cv_lib_dl_dlopen = yes; then
9428 HAVE_LIBDL=yes
9429else
9430 HAVE_LIBDL=no
9431fi
9432
9433
7e9e9502 9434if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9435
9436cat >>confdefs.h <<\_ACEOF
9437#define HAVE_LIBDL 1
9438_ACEOF
9439
ad6254c5
AK
9440 LIBS="-ldl $LIBS"
9441else
9442 HAVE_LIBDL=no
9443fi
9444
9445################################################################################
9446if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9447 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9448 \) -a "x$STATIC_LINK" = xyes ];
1995c9ff 9449 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9450" >&5
1995c9ff 9451echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9452" >&2;}
9453 { (exit 1); exit 1; }; }
9454fi
9455
9456################################################################################
9457if test x$SELINUX = xyes; then
1995c9ff
AK
9458 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9459echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9460if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
1995c9ff 9461 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9462else
9463 ac_check_lib_save_LIBS=$LIBS
9464LIBS="-lsepol $LIBS"
9465cat >conftest.$ac_ext <<_ACEOF
9466/* confdefs.h. */
9467_ACEOF
9468cat confdefs.h >>conftest.$ac_ext
9469cat >>conftest.$ac_ext <<_ACEOF
9470/* end confdefs.h. */
9471
7a197a62
AK
9472/* Override any GCC internal prototype to avoid an error.
9473 Use char because int might match the return type of a GCC
9474 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9475#ifdef __cplusplus
9476extern "C"
9477#endif
8a2fc586
AK
9478char sepol_check_context ();
9479int
9480main ()
9481{
7a197a62 9482return sepol_check_context ();
8a2fc586
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
1995c9ff 9493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9494 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
1995c9ff 9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9502 { (case "(($ac_try" in
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9505esac
9506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_try") 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515esac
9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_try") 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
8a2fc586
AK
9521 ac_cv_lib_sepol_sepol_check_context=yes
9522else
1995c9ff 9523 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
7a197a62 9526 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9527fi
7a197a62 9528
fc54be10 9529rm -f core conftest.err conftest.$ac_objext \
8a2fc586
AK
9530 conftest$ac_exeext conftest.$ac_ext
9531LIBS=$ac_check_lib_save_LIBS
9532fi
1995c9ff
AK
9533{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9534echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9535if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9536 HAVE_SEPOL=yes
9537else
9538 HAVE_SEPOL=no
9539fi
9540
8a2fc586
AK
9541
9542 if test x$HAVE_SEPOL = xyes; then
9543 LIBS="-lsepol $LIBS"
9544 fi
9545
1995c9ff
AK
9546 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9547echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9548if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
1995c9ff 9549 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9550else
9551 ac_check_lib_save_LIBS=$LIBS
9552LIBS="-lselinux $LIBS"
9553cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
9559
7a197a62
AK
9560/* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9563#ifdef __cplusplus
9564extern "C"
9565#endif
ad6254c5
AK
9566char is_selinux_enabled ();
9567int
9568main ()
9569{
7a197a62 9570return is_selinux_enabled ();
ad6254c5
AK
9571 ;
9572 return 0;
9573}
9574_ACEOF
9575rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9576if { (ac_try="$ac_link"
9577case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580esac
1995c9ff 9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9582 (eval "$ac_link") 2>conftest.er1
ad6254c5 9583 ac_status=$?
8a2fc586
AK
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
1995c9ff 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593esac
9594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
ad6254c5
AK
9609 ac_cv_lib_selinux_is_selinux_enabled=yes
9610else
1995c9ff 9611 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
7a197a62 9614 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9615fi
7a197a62 9616
fc54be10 9617rm -f core conftest.err conftest.$ac_objext \
8a2fc586 9618 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9619LIBS=$ac_check_lib_save_LIBS
9620fi
1995c9ff
AK
9621{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9622echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9623if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9624 HAVE_SELINUX=yes
9625else
9626 HAVE_SELINUX=no
9627fi
9628
ad6254c5
AK
9629
9630 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9631
9632cat >>confdefs.h <<\_ACEOF
9633#define HAVE_SELINUX 1
9634_ACEOF
9635
ad6254c5
AK
9636 LIBS="-lselinux $LIBS"
9637 else
1995c9ff
AK
9638 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9639echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9640 fi
9641
9642 # With --enable-static_link and selinux enabled, linking lvm.static
9643 # fails on at least Debian unstable due to unsatisfied references
9644 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9645 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9646 lvm_saved_libs=$LIBS
9647 LIBS="$LIBS -static"
1995c9ff
AK
9648 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9649echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9650if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
1995c9ff 9651 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9652else
9653 ac_func_search_save_LIBS=$LIBS
9654cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660
9661/* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9664#ifdef __cplusplus
9665extern "C"
9666#endif
9667char pthread_mutex_lock ();
9668int
9669main ()
9670{
9671return pthread_mutex_lock ();
9672 ;
9673 return 0;
9674}
9675_ACEOF
9676for ac_lib in '' pthread; do
9677 if test -z "$ac_lib"; then
9678 ac_res="none required"
9679 else
9680 ac_res=-l$ac_lib
9681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9682 fi
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684if { (ac_try="$ac_link"
9685case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688esac
1995c9ff 9689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9690 (eval "$ac_link") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
1995c9ff 9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_try") 2>&5
9704 ac_status=$?
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); }; } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
66e941e8
JM
9717 ac_cv_search_pthread_mutex_lock=$ac_res
9718else
1995c9ff 9719 echo "$as_me: failed program was:" >&5
66e941e8
JM
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722
9723fi
9724
fc54be10 9725rm -f core conftest.err conftest.$ac_objext \
66e941e8
JM
9726 conftest$ac_exeext
9727 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9728 break
9729fi
9730done
9731if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9732 :
9733else
9734 ac_cv_search_pthread_mutex_lock=no
9735fi
9736rm conftest.$ac_ext
9737LIBS=$ac_func_search_save_LIBS
9738fi
1995c9ff
AK
9739{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9740echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9741ac_res=$ac_cv_search_pthread_mutex_lock
9742if test "$ac_res" != no; then
9743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9744 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9745 LIB_PTHREAD=-lpthread
9746fi
9747
9748 LIBS=$lvm_saved_libs
ad6254c5
AK
9749 fi
9750fi
9751
8b1a3214
AK
9752################################################################################
9753if test x$REALTIME = xyes; then
1995c9ff
AK
9754 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9755echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9756if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
1995c9ff 9757 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9758else
9759 ac_check_lib_save_LIBS=$LIBS
9760LIBS="-lrt $LIBS"
9761cat >conftest.$ac_ext <<_ACEOF
9762/* confdefs.h. */
9763_ACEOF
9764cat confdefs.h >>conftest.$ac_ext
9765cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h. */
9767
7a197a62
AK
9768/* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9771#ifdef __cplusplus
9772extern "C"
9773#endif
8b1a3214
AK
9774char clock_gettime ();
9775int
9776main ()
9777{
7a197a62 9778return clock_gettime ();
8b1a3214
AK
9779 ;
9780 return 0;
9781}
9782_ACEOF
9783rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9784if { (ac_try="$ac_link"
9785case "(($ac_try" in
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9788esac
1995c9ff 9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9790 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
1995c9ff 9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801esac
9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest$ac_exeext'
9808 { (case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_try") 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
8b1a3214
AK
9817 ac_cv_lib_rt_clock_gettime=yes
9818else
1995c9ff 9819 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9820sed 's/^/| /' conftest.$ac_ext >&5
9821
7a197a62 9822 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9823fi
7a197a62 9824
fc54be10 9825rm -f core conftest.err conftest.$ac_objext \
8b1a3214
AK
9826 conftest$ac_exeext conftest.$ac_ext
9827LIBS=$ac_check_lib_save_LIBS
9828fi
1995c9ff
AK
9829{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9830echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9831if test $ac_cv_lib_rt_clock_gettime = yes; then
9832 HAVE_REALTIME=yes
9833else
9834 HAVE_REALTIME=no
9835fi
9836
8b1a3214
AK
9837
9838 if test x$HAVE_REALTIME = xyes; then
9839
9840cat >>confdefs.h <<\_ACEOF
9841#define HAVE_REALTIME 1
9842_ACEOF
9843
9844 LIBS="-lrt $LIBS"
9845 else
1995c9ff
AK
9846 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9847echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9848 fi
9849fi
9850
ad6254c5
AK
9851################################################################################
9852
9853for ac_header in getopt.h
9854do
1995c9ff 9855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
9857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9860 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9861fi
1995c9ff
AK
9862ac_res=`eval echo '${'$as_ac_Header'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9865else
9866 # Is the header compilable?
1995c9ff
AK
9867{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9869cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9870/* confdefs.h. */
9871_ACEOF
9872cat confdefs.h >>conftest.$ac_ext
9873cat >>conftest.$ac_ext <<_ACEOF
9874/* end confdefs.h. */
9875$ac_includes_default
9876#include <$ac_header>
9877_ACEOF
9878rm -f conftest.$ac_objext
7a197a62
AK
9879if { (ac_try="$ac_compile"
9880case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
1995c9ff 9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9885 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9886 ac_status=$?
8a2fc586
AK
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
1995c9ff 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9891 (exit $ac_status); } &&
9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest.$ac_objext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
ad6254c5
AK
9912 ac_header_compiler=yes
9913else
1995c9ff 9914 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
7a197a62 9917 ac_header_compiler=no
ad6254c5 9918fi
7a197a62
AK
9919
9920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
9921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9922echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9923
9924# Is the header present?
1995c9ff
AK
9925{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9927cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9928/* confdefs.h. */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
9932/* end confdefs.h. */
9933#include <$ac_header>
9934_ACEOF
7a197a62
AK
9935if { (ac_try="$ac_cpp conftest.$ac_ext"
9936case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939esac
1995c9ff 9940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
1995c9ff 9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
9947 (exit $ac_status); } >/dev/null; then
9948 if test -s conftest.err; then
9949 ac_cpp_err=$ac_c_preproc_warn_flag
9950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9951 else
9952 ac_cpp_err=
9953 fi
9954else
9955 ac_cpp_err=yes
9956fi
9957if test -z "$ac_cpp_err"; then
ad6254c5
AK
9958 ac_header_preproc=yes
9959else
1995c9ff 9960 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9961sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 ac_header_preproc=no
9964fi
7a197a62 9965
ad6254c5 9966rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
9967{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9968echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9969
9970# So? What about this header?
8a2fc586
AK
9971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972 yes:no: )
1995c9ff
AK
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9977 ac_header_preproc=yes
ad6254c5 9978 ;;
8a2fc586 9979 no:yes:* )
1995c9ff
AK
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9992
ad6254c5
AK
9993 ;;
9994esac
1995c9ff
AK
9995{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 9998 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9999else
8a2fc586 10000 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10001fi
1995c9ff
AK
10002ac_res=`eval echo '${'$as_ac_Header'}'`
10003 { echo "$as_me:$LINENO: result: $ac_res" >&5
10004echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10005
10006fi
1995c9ff 10007if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10008 cat >>confdefs.h <<_ACEOF
1995c9ff 10009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10010_ACEOF
72b2cb61
AK
10011
10012cat >>confdefs.h <<\_ACEOF
10013#define HAVE_GETOPTLONG 1
10014_ACEOF
10015
ad6254c5
AK
10016fi
10017
10018done
10019
10020
10021################################################################################
10022if test x$READLINE = xyes; then
10023
1995c9ff
AK
10024{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10025echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 10026if test "${ac_cv_lib_readline_readline+set}" = set; then
1995c9ff 10027 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10028else
10029 ac_check_lib_save_LIBS=$LIBS
10030LIBS="-lreadline $LIBS"
10031cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
10037
7a197a62
AK
10038/* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10041#ifdef __cplusplus
10042extern "C"
10043#endif
ad6254c5
AK
10044char readline ();
10045int
10046main ()
10047{
7a197a62 10048return readline ();
ad6254c5
AK
10049 ;
10050 return 0;
10051}
10052_ACEOF
10053rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10054if { (ac_try="$ac_link"
10055case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058esac
1995c9ff 10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10060 (eval "$ac_link") 2>conftest.er1
ad6254c5 10061 ac_status=$?
8a2fc586
AK
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
1995c9ff 10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10081esac
10082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
ad6254c5
AK
10087 ac_cv_lib_readline_readline=yes
10088else
1995c9ff 10089 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
7a197a62 10092 ac_cv_lib_readline_readline=no
ad6254c5 10093fi
7a197a62 10094
fc54be10 10095rm -f core conftest.err conftest.$ac_objext \
8a2fc586 10096 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10097LIBS=$ac_check_lib_save_LIBS
10098fi
1995c9ff
AK
10099{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10100echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
10101if test $ac_cv_lib_readline_readline = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103#define HAVE_LIBREADLINE 1
10104_ACEOF
10105
10106 LIBS="-lreadline $LIBS"
10107
10108else
1995c9ff 10109 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10110--enable-readline option (which is enabled by default). Either disable readline
10111support with --disable-readline or download and install readline from:
10112 ftp.gnu.org/gnu/readline
10113Note: if you are using precompiled packages you will also need the development
10114package as well (which may be called readline-devel or something similar).
10115" >&5
1995c9ff 10116echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
10117--enable-readline option (which is enabled by default). Either disable readline
10118support with --disable-readline or download and install readline from:
10119 ftp.gnu.org/gnu/readline
10120Note: if you are using precompiled packages you will also need the development
10121package as well (which may be called readline-devel or something similar).
10122" >&2;}
10123 { (exit 1); exit 1; }; }
10124
10125fi
10126
1995c9ff
AK
10127 { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
10128echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; }
ad6254c5 10129if test "${ac_cv_func_rl_completion_matches+set}" = set; then
1995c9ff 10130 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10131else
10132 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10133/* confdefs.h. */
10134_ACEOF
10135cat confdefs.h >>conftest.$ac_ext
10136cat >>conftest.$ac_ext <<_ACEOF
10137/* end confdefs.h. */
8a2fc586
AK
10138/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140#define rl_completion_matches innocuous_rl_completion_matches
10141
ad6254c5
AK
10142/* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char rl_completion_matches (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
8a2fc586 10146
ad6254c5
AK
10147#ifdef __STDC__
10148# include <limits.h>
10149#else
10150# include <assert.h>
10151#endif
8a2fc586
AK
10152
10153#undef rl_completion_matches
10154
7a197a62
AK
10155/* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10158#ifdef __cplusplus
10159extern "C"
ad6254c5 10160#endif
ad6254c5
AK
10161char rl_completion_matches ();
10162/* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
7a197a62 10165#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 10166choke me
ad6254c5
AK
10167#endif
10168
10169int
10170main ()
10171{
7a197a62 10172return rl_completion_matches ();
ad6254c5
AK
10173 ;
10174 return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10178if { (ac_try="$ac_link"
10179case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
1995c9ff 10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10184 (eval "$ac_link") 2>conftest.er1
ad6254c5 10185 ac_status=$?
8a2fc586
AK
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
1995c9ff 10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10190 (exit $ac_status); } &&
10191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192 { (case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_try") 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
ad6254c5
AK
10211 ac_cv_func_rl_completion_matches=yes
10212else
1995c9ff 10213 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
7a197a62 10216 ac_cv_func_rl_completion_matches=no
ad6254c5 10217fi
7a197a62 10218
fc54be10 10219rm -f core conftest.err conftest.$ac_objext \
8a2fc586 10220 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10221fi
1995c9ff
AK
10222{ echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
10223echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 10224if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 10225
72b2cb61
AK
10226cat >>confdefs.h <<\_ACEOF
10227#define HAVE_RL_COMPLETION_MATCHES 1
10228_ACEOF
10229
10230fi
ad6254c5
AK
10231
10232fi
10233
10234################################################################################
1995c9ff
AK
10235{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10236echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 10237# Check whether --enable-nls was given.
ad6254c5 10238if test "${enable_nls+set}" = set; then
7a197a62 10239 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
10240else
10241 INTL=no
7a197a62
AK
10242fi
10243
1995c9ff
AK
10244{ echo "$as_me:$LINENO: result: $INTL" >&5
10245echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
10246
10247if test x$INTL = xyes; then
10248 INTL_PACKAGE="lvm2"
10249 # Extract the first word of "msgfmt", so it can be a program name with args.
10250set dummy msgfmt; ac_word=$2
1995c9ff
AK
10251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 10253if test "${ac_cv_path_MSGFMT+set}" = set; then
1995c9ff 10254 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
10255else
10256 case $MSGFMT in
10257 [\\/]* | ?:[\\/]*)
10258 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10259 ;;
10260 *)
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262for as_dir in $PATH
10263do
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 10268 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 10269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
10270 break 2
10271 fi
10272done
10273done
7a197a62 10274IFS=$as_save_IFS
ad6254c5
AK
10275
10276 ;;
10277esac
10278fi
10279MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 10280if test -n "$MSGFMT"; then
1995c9ff
AK
10281 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
10282echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 10283else
1995c9ff
AK
10284 { echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6; }
ad6254c5
AK
10286fi
10287
7a197a62 10288
ad6254c5 10289 if [ "x$MSGFMT" == x ];
1995c9ff 10290 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 10291 " >&5
1995c9ff 10292echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
10293 " >&2;}
10294 { (exit 1); exit 1; }; }
10295 fi;
10296
10297
7a197a62 10298# Check whether --with-localedir was given.
ad6254c5 10299if test "${with_localedir+set}" = set; then
7a197a62 10300 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
10301else
10302 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
10303fi
10304
ad6254c5
AK
10305fi
10306
10307################################################################################
10308
7a197a62 10309# Check whether --with-confdir was given.
ad6254c5 10310if test "${with_confdir+set}" = set; then
7a197a62 10311 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
10312else
10313 CONFDIR='/etc'
7a197a62
AK
10314fi
10315
ad6254c5
AK
10316
10317
7a197a62 10318# Check whether --with-staticdir was given.
ad6254c5 10319if test "${with_staticdir+set}" = set; then
7a197a62 10320 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
10321else
10322 STATICDIR='${exec_prefix}/sbin'
7a197a62 10323fi
ad6254c5 10324
33f732c5 10325
7a197a62
AK
10326
10327# Check whether --with-dmdir was given.
33f732c5 10328if test "${with_dmdir+set}" = set; then
7a197a62 10329 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
10330else
10331 DMDIR=
7a197a62
AK
10332fi
10333
33f732c5 10334
09339e2b 10335# Convert a relative dir name to absolute.
fc54be10
AK
10336case x$DMDIR in
10337 x/*) ;;
10338 x) ;;
10339 x*) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
10340esac
10341
ad6254c5
AK
10342################################################################################
10343if test x$READLINE = xyes; then
10344
10345
10346for ac_header in readline/readline.h readline/history.h
10347do
1995c9ff 10348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10353 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10354fi
1995c9ff
AK
10355ac_res=`eval echo '${'$as_ac_Header'}'`
10356 { echo "$as_me:$LINENO: result: $ac_res" >&5
10357echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10358else
10359 # Is the header compilable?
1995c9ff
AK
10360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10362cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
10368$ac_includes_default
10369#include <$ac_header>
10370_ACEOF
10371rm -f conftest.$ac_objext
7a197a62
AK
10372if { (ac_try="$ac_compile"
10373case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376esac
1995c9ff 10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10378 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10379 ac_status=$?
8a2fc586
AK
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
1995c9ff 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest.$ac_objext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
ad6254c5
AK
10405 ac_header_compiler=yes
10406else
1995c9ff 10407 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
7a197a62 10410 ac_header_compiler=no
ad6254c5 10411fi
7a197a62
AK
10412
10413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10415echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10416
10417# Is the header present?
1995c9ff
AK
10418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10420cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10421/* confdefs.h. */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h. */
10426#include <$ac_header>
10427_ACEOF
7a197a62
AK
10428if { (ac_try="$ac_cpp conftest.$ac_ext"
10429case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432esac
1995c9ff 10433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
1995c9ff 10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10440 (exit $ac_status); } >/dev/null; then
10441 if test -s conftest.err; then
10442 ac_cpp_err=$ac_c_preproc_warn_flag
10443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10444 else
10445 ac_cpp_err=
10446 fi
10447else
10448 ac_cpp_err=yes
10449fi
10450if test -z "$ac_cpp_err"; then
ad6254c5
AK
10451 ac_header_preproc=yes
10452else
1995c9ff 10453 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10454sed 's/^/| /' conftest.$ac_ext >&5
10455
10456 ac_header_preproc=no
10457fi
7a197a62 10458
ad6254c5 10459rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10461echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10462
10463# So? What about this header?
8a2fc586
AK
10464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10465 yes:no: )
1995c9ff
AK
10466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10470 ac_header_preproc=yes
ad6254c5 10471 ;;
8a2fc586 10472 no:yes:* )
1995c9ff
AK
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10485
ad6254c5
AK
10486 ;;
10487esac
1995c9ff
AK
10488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10491 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10492else
8a2fc586 10493 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10494fi
1995c9ff
AK
10495ac_res=`eval echo '${'$as_ac_Header'}'`
10496 { echo "$as_me:$LINENO: result: $ac_res" >&5
10497echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10498
10499fi
1995c9ff 10500if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10501 cat >>confdefs.h <<_ACEOF
1995c9ff 10502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10503_ACEOF
10504
10505else
1995c9ff
AK
10506 { { echo "$as_me:$LINENO: error: bailing out" >&5
10507echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10508 { (exit 1); exit 1; }; }
10509fi
10510
10511done
10512
10513fi
10514
5c7fc7c4 10515if test x$CLVMD != xnone; then
ad6254c5
AK
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526for 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
10527do
1995c9ff 10528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
10530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10533 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10534fi
1995c9ff
AK
10535ac_res=`eval echo '${'$as_ac_Header'}'`
10536 { echo "$as_me:$LINENO: result: $ac_res" >&5
10537echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10538else
10539 # Is the header compilable?
1995c9ff
AK
10540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10542cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
10548$ac_includes_default
10549#include <$ac_header>
10550_ACEOF
10551rm -f conftest.$ac_objext
7a197a62
AK
10552if { (ac_try="$ac_compile"
10553case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10556esac
1995c9ff 10557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10558 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10559 ac_status=$?
8a2fc586
AK
10560 grep -v '^ *+' conftest.er1 >conftest.err
10561 rm -f conftest.er1
10562 cat conftest.err >&5
1995c9ff 10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10564 (exit $ac_status); } &&
10565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10566 { (case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569esac
10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_try") 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try='test -s conftest.$ac_objext'
10576 { (case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579esac
10580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_try") 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
ad6254c5
AK
10585 ac_header_compiler=yes
10586else
1995c9ff 10587 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
7a197a62 10590 ac_header_compiler=no
ad6254c5 10591fi
7a197a62
AK
10592
10593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
10594{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10595echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10596
10597# Is the header present?
1995c9ff
AK
10598{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10600cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
10606#include <$ac_header>
10607_ACEOF
7a197a62
AK
10608if { (ac_try="$ac_cpp conftest.$ac_ext"
10609case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612esac
1995c9ff 10613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
1995c9ff 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10620 (exit $ac_status); } >/dev/null; then
10621 if test -s conftest.err; then
10622 ac_cpp_err=$ac_c_preproc_warn_flag
10623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10624 else
10625 ac_cpp_err=
10626 fi
10627else
10628 ac_cpp_err=yes
10629fi
10630if test -z "$ac_cpp_err"; then
ad6254c5
AK
10631 ac_header_preproc=yes
10632else
1995c9ff 10633 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 ac_header_preproc=no
10637fi
7a197a62 10638
ad6254c5 10639rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
10640{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10641echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10642
10643# So? What about this header?
8a2fc586
AK
10644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10645 yes:no: )
1995c9ff
AK
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10650 ac_header_preproc=yes
ad6254c5 10651 ;;
8a2fc586 10652 no:yes:* )
1995c9ff
AK
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10665
ad6254c5
AK
10666 ;;
10667esac
1995c9ff
AK
10668{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10671 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10672else
8a2fc586 10673 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10674fi
1995c9ff
AK
10675ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10678
10679fi
1995c9ff 10680if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10681 cat >>confdefs.h <<_ACEOF
1995c9ff 10682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10683_ACEOF
10684
10685else
1995c9ff
AK
10686 { { echo "$as_me:$LINENO: error: bailing out" >&5
10687echo "$as_me: error: bailing out" >&2;}
ad6254c5 10688 { (exit 1); exit 1; }; }
795ca3e5
AK
10689fi
10690
ad6254c5
AK
10691done
10692
10693
795ca3e5 10694
8106cdd5 10695
ad6254c5
AK
10696
10697
10698for ac_func in dup2 getmntent memmove select socket
10699do
1995c9ff
AK
10700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10701{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10703if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 10704 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10705else
ad6254c5 10706 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10707/* confdefs.h. */
10708_ACEOF
10709cat confdefs.h >>conftest.$ac_ext
10710cat >>conftest.$ac_ext <<_ACEOF
10711/* end confdefs.h. */
8a2fc586
AK
10712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10714#define $ac_func innocuous_$ac_func
10715
795ca3e5 10716/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10717 which can conflict with char $ac_func (); below.
10718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10719 <limits.h> exists even on freestanding compilers. */
8a2fc586 10720
ad6254c5
AK
10721#ifdef __STDC__
10722# include <limits.h>
10723#else
10724# include <assert.h>
10725#endif
8a2fc586
AK
10726
10727#undef $ac_func
10728
7a197a62
AK
10729/* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10732#ifdef __cplusplus
10733extern "C"
ad6254c5 10734#endif
ad6254c5 10735char $ac_func ();
795ca3e5
AK
10736/* The GNU C library defines this for functions which it implements
10737 to always fail with ENOSYS. Some functions are actually named
10738 something starting with __ and the normal name is an alias. */
7a197a62 10739#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10740choke me
795ca3e5
AK
10741#endif
10742
ad6254c5
AK
10743int
10744main ()
10745{
7a197a62 10746return $ac_func ();
ad6254c5
AK
10747 ;
10748 return 0;
10749}
10750_ACEOF
10751rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10752if { (ac_try="$ac_link"
10753case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756esac
1995c9ff 10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10758 (eval "$ac_link") 2>conftest.er1
ad6254c5 10759 ac_status=$?
8a2fc586
AK
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
1995c9ff 10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10766 { (case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771 (eval "$ac_try") 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest$ac_exeext'
10776 { (case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_try") 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
ad6254c5 10785 eval "$as_ac_var=yes"
795ca3e5 10786else
1995c9ff 10787 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
7a197a62 10790 eval "$as_ac_var=no"
80992638 10791fi
7a197a62 10792
fc54be10 10793rm -f core conftest.err conftest.$ac_objext \
8a2fc586 10794 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10795fi
1995c9ff
AK
10796ac_res=`eval echo '${'$as_ac_var'}'`
10797 { echo "$as_me:$LINENO: result: $ac_res" >&5
10798echo "${ECHO_T}$ac_res" >&6; }
10799if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10800 cat >>confdefs.h <<_ACEOF
1995c9ff 10801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10802_ACEOF
80992638
AK
10803
10804else
1995c9ff
AK
10805 { { echo "$as_me:$LINENO: error: bailing out" >&5
10806echo "$as_me: error: bailing out" >&2;}
ad6254c5 10807 { (exit 1); exit 1; }; }
8106cdd5 10808fi
ad6254c5 10809done
795ca3e5 10810
fc54be10
AK
10811 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10812# -lseq on Dynix/PTX, -lgen on Unixware.
10813{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10814echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
10815if test "${ac_cv_search_getmntent+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817else
10818 ac_func_search_save_LIBS=$LIBS
10819cat >conftest.$ac_ext <<_ACEOF
10820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
10825
10826/* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
10829#ifdef __cplusplus
10830extern "C"
10831#endif
10832char getmntent ();
10833int
10834main ()
10835{
10836return getmntent ();
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841for ac_lib in '' sun seq gen; do
10842 if test -z "$ac_lib"; then
10843 ac_res="none required"
10844 else
10845 ac_res=-l$ac_lib
10846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10847 fi
10848 rm -f conftest.$ac_objext conftest$ac_exeext
10849if { (ac_try="$ac_link"
10850case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10853esac
10854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_link") 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863 { (case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_try") 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_try") 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_cv_search_getmntent=$ac_res
10883else
10884 echo "$as_me: failed program was:" >&5
10885sed 's/^/| /' conftest.$ac_ext >&5
10886
10887
10888fi
10889
10890rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext
10892 if test "${ac_cv_search_getmntent+set}" = set; then
10893 break
10894fi
10895done
10896if test "${ac_cv_search_getmntent+set}" = set; then
10897 :
10898else
10899 ac_cv_search_getmntent=no
10900fi
10901rm conftest.$ac_ext
10902LIBS=$ac_func_search_save_LIBS
10903fi
10904{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10905echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
10906ac_res=$ac_cv_search_getmntent
10907if test "$ac_res" != no; then
10908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10909
10910fi
10911
10912
10913for ac_func in getmntent
10914do
10915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h. */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
10926/* end confdefs.h. */
10927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10929#define $ac_func innocuous_$ac_func
10930
10931/* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func (); below.
10933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10934 <limits.h> exists even on freestanding compilers. */
10935
10936#ifdef __STDC__
10937# include <limits.h>
10938#else
10939# include <assert.h>
10940#endif
10941
10942#undef $ac_func
80992638 10943
7a197a62
AK
10944/* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
ad6254c5 10946 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10947#ifdef __cplusplus
10948extern "C"
10949#endif
fc54be10
AK
10950char $ac_func ();
10951/* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954#if defined __stub_$ac_func || defined __stub___$ac_func
10955choke me
10956#endif
10957
ad6254c5
AK
10958int
10959main ()
10960{
fc54be10 10961return $ac_func ();
ad6254c5
AK
10962 ;
10963 return 0;
10964}
10965_ACEOF
fc54be10 10966rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10967if { (ac_try="$ac_link"
10968case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
1995c9ff 10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10973 (eval "$ac_link") 2>conftest.er1
ad6254c5 10974 ac_status=$?
8a2fc586
AK
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
1995c9ff 10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
10979 (exit $ac_status); } &&
10980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10981 { (case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984esac
10985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_try") 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; } &&
10990 { ac_try='test -s conftest$ac_exeext'
10991 { (case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994esac
10995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_try") 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 eval "$as_ac_var=yes"
80992638 11001else
1995c9ff 11002 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11003sed 's/^/| /' conftest.$ac_ext >&5
11004
fc54be10 11005 eval "$as_ac_var=no"
795ca3e5
AK
11006fi
11007
fc54be10
AK
11008rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
795ca3e5 11010fi
fc54be10
AK
11011ac_res=`eval echo '${'$as_ac_var'}'`
11012 { echo "$as_me:$LINENO: result: $ac_res" >&5
11013echo "${ECHO_T}$ac_res" >&6; }
11014if test `eval echo '${'$as_ac_var'}'` = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 11017_ACEOF
795ca3e5 11018
795ca3e5 11019fi
fc54be10 11020done
795ca3e5
AK
11021
11022
ad6254c5
AK
11023# AC_FUNC_REALLOC
11024
11025
11026for ac_header in sys/select.h sys/socket.h
11027do
1995c9ff 11028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
11030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11033 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11034fi
1995c9ff
AK
11035ac_res=`eval echo '${'$as_ac_Header'}'`
11036 { echo "$as_me:$LINENO: result: $ac_res" >&5
11037echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 11038else
ad6254c5 11039 # Is the header compilable?
1995c9ff
AK
11040{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11042cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048$ac_includes_default
11049#include <$ac_header>
11050_ACEOF
11051rm -f conftest.$ac_objext
7a197a62
AK
11052if { (ac_try="$ac_compile"
11053case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
1995c9ff 11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11058 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11059 ac_status=$?
8a2fc586
AK
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
1995c9ff 11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066 { (case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069esac
11070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_try") 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079esac
11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
ad6254c5 11085 ac_header_compiler=yes
80992638 11086else
1995c9ff 11087 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11088sed 's/^/| /' conftest.$ac_ext >&5
11089
7a197a62 11090 ac_header_compiler=no
ad6254c5 11091fi
7a197a62
AK
11092
11093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
11094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11095echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11096
11097# Is the header present?
1995c9ff
AK
11098{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11100cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106#include <$ac_header>
11107_ACEOF
7a197a62
AK
11108if { (ac_try="$ac_cpp conftest.$ac_ext"
11109case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112esac
1995c9ff 11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
1995c9ff 11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11124 else
11125 ac_cpp_err=
11126 fi
11127else
11128 ac_cpp_err=yes
11129fi
11130if test -z "$ac_cpp_err"; then
ad6254c5
AK
11131 ac_header_preproc=yes
11132else
1995c9ff 11133 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_header_preproc=no
11137fi
7a197a62 11138
ad6254c5 11139rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
11140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11141echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11142
11143# So? What about this header?
8a2fc586
AK
11144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11145 yes:no: )
1995c9ff
AK
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11150 ac_header_preproc=yes
ad6254c5 11151 ;;
8a2fc586 11152 no:yes:* )
1995c9ff
AK
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11165
ad6254c5
AK
11166 ;;
11167esac
1995c9ff
AK
11168{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11171 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11172else
8a2fc586 11173 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 11174fi
1995c9ff
AK
11175ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 11178
795ca3e5 11179fi
1995c9ff 11180if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11181 cat >>confdefs.h <<_ACEOF
1995c9ff 11182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11183_ACEOF
11184
795ca3e5
AK
11185fi
11186
ad6254c5
AK
11187done
11188
1995c9ff
AK
11189{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
11190echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 11191if test "${ac_cv_func_select_args+set}" = set; then
1995c9ff 11192 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 11193else
ad6254c5 11194 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 11195 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
11196 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11197 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11198/* confdefs.h. */
11199_ACEOF
11200cat confdefs.h >>conftest.$ac_ext
11201cat >>conftest.$ac_ext <<_ACEOF
11202/* end confdefs.h. */
11203$ac_includes_default
fc54be10 11204#if HAVE_SYS_SELECT_H
ad6254c5
AK
11205# include <sys/select.h>
11206#endif
fc54be10 11207#if HAVE_SYS_SOCKET_H
ad6254c5
AK
11208# include <sys/socket.h>
11209#endif
11210
11211int
11212main ()
11213{
11214extern int select ($ac_arg1,
8a2fc586
AK
11215 $ac_arg234, $ac_arg234, $ac_arg234,
11216 $ac_arg5);
ad6254c5
AK
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221rm -f conftest.$ac_objext
7a197a62
AK
11222if { (ac_try="$ac_compile"
11223case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226esac
1995c9ff 11227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11228 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11229 ac_status=$?
8a2fc586
AK
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
1995c9ff 11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11234 (exit $ac_status); } &&
11235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11236 { (case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11239esac
11240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_try") 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
11246 { (case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249esac
11250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_try") 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
ad6254c5
AK
11255 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11256else
1995c9ff 11257 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11258sed 's/^/| /' conftest.$ac_ext >&5
11259
7a197a62 11260
ad6254c5 11261fi
7a197a62
AK
11262
11263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11264 done
11265 done
11266done
11267# Provide a safe default value.
11268: ${ac_cv_func_select_args='int,int *,struct timeval *'}
11269
26e7f2e0 11270fi
1995c9ff
AK
11271{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11272echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
11273ac_save_IFS=$IFS; IFS=','
11274set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11275IFS=$ac_save_IFS
11276shift
11277
11278cat >>confdefs.h <<_ACEOF
11279#define SELECT_TYPE_ARG1 $1
11280_ACEOF
11281
11282
11283cat >>confdefs.h <<_ACEOF
11284#define SELECT_TYPE_ARG234 ($2)
11285_ACEOF
11286
11287
11288cat >>confdefs.h <<_ACEOF
11289#define SELECT_TYPE_ARG5 ($3)
11290_ACEOF
11291
80992638 11292rm -f conftest*
80992638 11293
8106cdd5 11294fi
ad6254c5 11295
ad6254c5
AK
11296if test x$CLUSTER != xnone; then
11297
11298
11299for ac_header in sys/socket.h sys/un.h
b896caa1 11300do
1995c9ff 11301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
11303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11306 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11307fi
1995c9ff
AK
11308ac_res=`eval echo '${'$as_ac_Header'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11311else
11312 # Is the header compilable?
1995c9ff
AK
11313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11315cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321$ac_includes_default
11322#include <$ac_header>
11323_ACEOF
11324rm -f conftest.$ac_objext
7a197a62
AK
11325if { (ac_try="$ac_compile"
11326case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329esac
1995c9ff 11330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11331 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11332 ac_status=$?
8a2fc586
AK
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
1995c9ff 11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11352esac
11353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
ad6254c5
AK
11358 ac_header_compiler=yes
11359else
1995c9ff 11360 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
7a197a62 11363 ac_header_compiler=no
ad6254c5 11364fi
7a197a62
AK
11365
11366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
11367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11368echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11369
11370# Is the header present?
1995c9ff
AK
11371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11373cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379#include <$ac_header>
11380_ACEOF
7a197a62
AK
11381if { (ac_try="$ac_cpp conftest.$ac_ext"
11382case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385esac
1995c9ff 11386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
1995c9ff 11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11393 (exit $ac_status); } >/dev/null; then
11394 if test -s conftest.err; then
11395 ac_cpp_err=$ac_c_preproc_warn_flag
11396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11397 else
11398 ac_cpp_err=
11399 fi
11400else
11401 ac_cpp_err=yes
11402fi
11403if test -z "$ac_cpp_err"; then
ad6254c5
AK
11404 ac_header_preproc=yes
11405else
1995c9ff 11406 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_header_preproc=no
11410fi
7a197a62 11411
ad6254c5 11412rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
11413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11415
11416# So? What about this header?
8a2fc586
AK
11417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418 yes:no: )
1995c9ff
AK
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11423 ac_header_preproc=yes
ad6254c5 11424 ;;
8a2fc586 11425 no:yes:* )
1995c9ff
AK
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11438
ad6254c5
AK
11439 ;;
11440esac
1995c9ff
AK
11441{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11444 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11445else
8a2fc586 11446 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 11447fi
1995c9ff
AK
11448ac_res=`eval echo '${'$as_ac_Header'}'`
11449 { echo "$as_me:$LINENO: result: $ac_res" >&5
11450echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11451
11452fi
1995c9ff 11453if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11454 cat >>confdefs.h <<_ACEOF
1995c9ff 11455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
11456_ACEOF
11457
80992638 11458else
1995c9ff
AK
11459 { { echo "$as_me:$LINENO: error: bailing out" >&5
11460echo "$as_me: error: bailing out" >&2;}
ad6254c5 11461 { (exit 1); exit 1; }; }
b896caa1 11462fi
ad6254c5 11463
b896caa1
AK
11464done
11465
11466
ad6254c5
AK
11467for ac_func in socket
11468do
1995c9ff
AK
11469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11470{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 11472if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11473 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 11474else
ad6254c5 11475 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11476/* confdefs.h. */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h. */
8a2fc586
AK
11481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11483#define $ac_func innocuous_$ac_func
11484
ad6254c5
AK
11485/* System header to define __stub macros and hopefully few prototypes,
11486 which can conflict with char $ac_func (); below.
11487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11488 <limits.h> exists even on freestanding compilers. */
8a2fc586 11489
ad6254c5
AK
11490#ifdef __STDC__
11491# include <limits.h>
11492#else
11493# include <assert.h>
11494#endif
8a2fc586
AK
11495
11496#undef $ac_func
11497
7a197a62
AK
11498/* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
ad6254c5
AK
11501#ifdef __cplusplus
11502extern "C"
ad6254c5 11503#endif
ad6254c5
AK
11504char $ac_func ();
11505/* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
7a197a62 11508#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 11509choke me
ad6254c5
AK
11510#endif
11511
11512int
11513main ()
11514{
7a197a62 11515return $ac_func ();
ad6254c5
AK
11516 ;
11517 return 0;
11518}
11519_ACEOF
11520rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
11521if { (ac_try="$ac_link"
11522case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525esac
1995c9ff 11526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11527 (eval "$ac_link") 2>conftest.er1
ad6254c5 11528 ac_status=$?
8a2fc586
AK
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
1995c9ff 11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535 { (case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_try") 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest$ac_exeext'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548esac
11549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
ad6254c5
AK
11554 eval "$as_ac_var=yes"
11555else
1995c9ff 11556 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
7a197a62 11559 eval "$as_ac_var=no"
ad6254c5 11560fi
7a197a62 11561
fc54be10 11562rm -f core conftest.err conftest.$ac_objext \
8a2fc586 11563 conftest$ac_exeext conftest.$ac_ext
ad6254c5 11564fi
1995c9ff
AK
11565ac_res=`eval echo '${'$as_ac_var'}'`
11566 { echo "$as_me:$LINENO: result: $ac_res" >&5
11567echo "${ECHO_T}$ac_res" >&6; }
11568if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 11569 cat >>confdefs.h <<_ACEOF
1995c9ff 11570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
11571_ACEOF
11572
11573else
1995c9ff
AK
11574 { { echo "$as_me:$LINENO: error: bailing out" >&5
11575echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
11576 { (exit 1); exit 1; }; }
11577fi
11578done
11579
11580fi
11581
11582if test x$HAVE_LIBDL = xyes; then
11583
11584for ac_header in dlfcn.h
11585do
1995c9ff 11586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
11588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11591 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11592fi
1995c9ff
AK
11593ac_res=`eval echo '${'$as_ac_Header'}'`
11594 { echo "$as_me:$LINENO: result: $ac_res" >&5
11595echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
11596else
11597 # Is the header compilable?
1995c9ff
AK
11598{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11600cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11601/* confdefs.h. */
11602_ACEOF
11603cat confdefs.h >>conftest.$ac_ext
11604cat >>conftest.$ac_ext <<_ACEOF
11605/* end confdefs.h. */
11606$ac_includes_default
11607#include <$ac_header>
11608_ACEOF
11609rm -f conftest.$ac_objext
7a197a62
AK
11610if { (ac_try="$ac_compile"
11611case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614esac
1995c9ff 11615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11616 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11617 ac_status=$?
8a2fc586
AK
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
1995c9ff 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11624 { (case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627esac
11628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_try") 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest.$ac_objext'
11634 { (case "(($ac_try" in
11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636 *) ac_try_echo=$ac_try;;
11637esac
11638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11639 (eval "$ac_try") 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
ad6254c5
AK
11643 ac_header_compiler=yes
11644else
1995c9ff 11645 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11646sed 's/^/| /' conftest.$ac_ext >&5
11647
7a197a62 11648 ac_header_compiler=no
ad6254c5 11649fi
7a197a62
AK
11650
11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
11652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11653echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11654
11655# Is the header present?
1995c9ff
AK
11656{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11658cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664#include <$ac_header>
11665_ACEOF
7a197a62
AK
11666if { (ac_try="$ac_cpp conftest.$ac_ext"
11667case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
1995c9ff 11671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
1995c9ff 11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11678 (exit $ac_status); } >/dev/null; then
11679 if test -s conftest.err; then
11680 ac_cpp_err=$ac_c_preproc_warn_flag
11681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11682 else
11683 ac_cpp_err=
11684 fi
11685else
11686 ac_cpp_err=yes
11687fi
11688if test -z "$ac_cpp_err"; then
ad6254c5
AK
11689 ac_header_preproc=yes
11690else
1995c9ff 11691 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11692sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_header_preproc=no
11695fi
7a197a62 11696
ad6254c5 11697rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
11698{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11700
11701# So? What about this header?
8a2fc586
AK
11702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 yes:no: )
1995c9ff
AK
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11707echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11708 ac_header_preproc=yes
ad6254c5 11709 ;;
8a2fc586 11710 no:yes:* )
1995c9ff
AK
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11712echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11714echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11716echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11718echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11720echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11722echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11723
ad6254c5
AK
11724 ;;
11725esac
1995c9ff
AK
11726{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11729 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11730else
8a2fc586 11731 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11732fi
1995c9ff
AK
11733ac_res=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735echo "${ECHO_T}$ac_res" >&6; }
80992638 11736
8106cdd5 11737fi
1995c9ff 11738if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11739 cat >>confdefs.h <<_ACEOF
1995c9ff 11740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11741_ACEOF
795ca3e5
AK
11742
11743else
1995c9ff
AK
11744 { { echo "$as_me:$LINENO: error: bailing out" >&5
11745echo "$as_me: error: bailing out" >&2;}
ad6254c5 11746 { (exit 1); exit 1; }; }
795ca3e5
AK
11747fi
11748
ad6254c5 11749done
80992638 11750
ad6254c5 11751fi
80992638 11752
ad6254c5 11753if test x$INTL = xyes; then
83912faa 11754
ad6254c5
AK
11755for ac_header in libintl.h
11756do
1995c9ff 11757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
11759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11762 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11763fi
1995c9ff
AK
11764ac_res=`eval echo '${'$as_ac_Header'}'`
11765 { echo "$as_me:$LINENO: result: $ac_res" >&5
11766echo "${ECHO_T}$ac_res" >&6; }
83912faa 11767else
ad6254c5 11768 # Is the header compilable?
1995c9ff
AK
11769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11771cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778#include <$ac_header>
11779_ACEOF
11780rm -f conftest.$ac_objext
7a197a62
AK
11781if { (ac_try="$ac_compile"
11782case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785esac
1995c9ff 11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11787 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11788 ac_status=$?
8a2fc586
AK
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
1995c9ff 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try='test -s conftest.$ac_objext'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808esac
11809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
ad6254c5
AK
11814 ac_header_compiler=yes
11815else
1995c9ff 11816 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
7a197a62 11819 ac_header_compiler=no
ad6254c5 11820fi
7a197a62
AK
11821
11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
11823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11825
11826# Is the header present?
1995c9ff
AK
11827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11829cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
11835#include <$ac_header>
11836_ACEOF
7a197a62
AK
11837if { (ac_try="$ac_cpp conftest.$ac_ext"
11838case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
1995c9ff 11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
1995c9ff 11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11849 (exit $ac_status); } >/dev/null; then
11850 if test -s conftest.err; then
11851 ac_cpp_err=$ac_c_preproc_warn_flag
11852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11853 else
11854 ac_cpp_err=
11855 fi
11856else
11857 ac_cpp_err=yes
11858fi
11859if test -z "$ac_cpp_err"; then
ad6254c5
AK
11860 ac_header_preproc=yes
11861else
1995c9ff 11862 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865 ac_header_preproc=no
11866fi
7a197a62 11867
ad6254c5 11868rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
11869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11871
11872# So? What about this header?
8a2fc586
AK
11873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11874 yes:no: )
1995c9ff
AK
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11879 ac_header_preproc=yes
ad6254c5 11880 ;;
8a2fc586 11881 no:yes:* )
1995c9ff
AK
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11894
ad6254c5
AK
11895 ;;
11896esac
1995c9ff
AK
11897{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11900 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11901else
8a2fc586 11902 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11903fi
1995c9ff
AK
11904ac_res=`eval echo '${'$as_ac_Header'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906echo "${ECHO_T}$ac_res" >&6; }
83912faa 11907
69792976 11908fi
1995c9ff 11909if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11910 cat >>confdefs.h <<_ACEOF
1995c9ff 11911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11912_ACEOF
69792976 11913
69792976 11914else
1995c9ff
AK
11915 { { echo "$as_me:$LINENO: error: bailing out" >&5
11916echo "$as_me: error: bailing out" >&2;}
ad6254c5 11917 { (exit 1); exit 1; }; }
80992638
AK
11918fi
11919
ad6254c5 11920done
69792976 11921
ad6254c5
AK
11922fi
11923
ad6254c5
AK
11924
11925for ac_header in libdevmapper.h
11926do
1995c9ff 11927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
11929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 11932 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11933fi
1995c9ff
AK
11934ac_res=`eval echo '${'$as_ac_Header'}'`
11935 { echo "$as_me:$LINENO: result: $ac_res" >&5
11936echo "${ECHO_T}$ac_res" >&6; }
69792976 11937else
ad6254c5 11938 # Is the header compilable?
1995c9ff
AK
11939{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11941cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11942/* confdefs.h. */
11943_ACEOF
11944cat confdefs.h >>conftest.$ac_ext
11945cat >>conftest.$ac_ext <<_ACEOF
11946/* end confdefs.h. */
11947$ac_includes_default
11948#include <$ac_header>
11949_ACEOF
11950rm -f conftest.$ac_objext
7a197a62
AK
11951if { (ac_try="$ac_compile"
11952case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
1995c9ff 11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11957 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11958 ac_status=$?
8a2fc586
AK
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
1995c9ff 11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11965 { (case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11968esac
11969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_try") 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; } &&
11974 { ac_try='test -s conftest.$ac_objext'
11975 { (case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11978esac
11979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_try") 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
ad6254c5
AK
11984 ac_header_compiler=yes
11985else
1995c9ff 11986 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
7a197a62 11989 ac_header_compiler=no
ad6254c5 11990fi
7a197a62
AK
11991
11992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
11993{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11994echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11995
11996# Is the header present?
1995c9ff
AK
11997{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11999cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005#include <$ac_header>
12006_ACEOF
7a197a62
AK
12007if { (ac_try="$ac_cpp conftest.$ac_ext"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
1995c9ff 12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 12013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
1995c9ff 12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
12019 (exit $ac_status); } >/dev/null; then
12020 if test -s conftest.err; then
12021 ac_cpp_err=$ac_c_preproc_warn_flag
12022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12023 else
12024 ac_cpp_err=
12025 fi
12026else
12027 ac_cpp_err=yes
12028fi
12029if test -z "$ac_cpp_err"; then
ad6254c5
AK
12030 ac_header_preproc=yes
12031else
1995c9ff 12032 echo "$as_me: failed program was:" >&5
ad6254c5
AK
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_preproc=no
12036fi
7a197a62 12037
ad6254c5 12038rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
12039{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12040echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
12041
12042# So? What about this header?
8a2fc586
AK
12043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12044 yes:no: )
1995c9ff
AK
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12049 ac_header_preproc=yes
ad6254c5 12050 ;;
8a2fc586 12051 no:yes:* )
1995c9ff
AK
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12064
ad6254c5
AK
12065 ;;
12066esac
1995c9ff
AK
12067{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 12069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 12071else
8a2fc586 12072 eval "$as_ac_Header=\$ac_header_preproc"
69792976 12073fi
1995c9ff
AK
12074ac_res=`eval echo '${'$as_ac_Header'}'`
12075 { echo "$as_me:$LINENO: result: $ac_res" >&5
12076echo "${ECHO_T}$ac_res" >&6; }
69792976 12077
ad6254c5 12078fi
1995c9ff 12079if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 12080 cat >>confdefs.h <<_ACEOF
1995c9ff 12081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12082_ACEOF
69792976 12083
69792976 12084else
1995c9ff
AK
12085 { { echo "$as_me:$LINENO: error: bailing out" >&5
12086echo "$as_me: error: bailing out" >&2;}
ad6254c5 12087 { (exit 1); exit 1; }; }
83912faa
AK
12088fi
12089
ad6254c5
AK
12090done
12091
4a7f3eb2 12092
ad6254c5
AK
12093if test x$HAVE_SELINUX = xyes; then
12094
12095for ac_header in selinux/selinux.h
12096do
1995c9ff 12097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff
AK
12099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 12101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 12102 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 12103fi
1995c9ff
AK
12104ac_res=`eval echo '${'$as_ac_Header'}'`
12105 { echo "$as_me:$LINENO: result: $ac_res" >&5
12106echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 12107else
ad6254c5 12108 # Is the header compilable?
1995c9ff
AK
12109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 12111cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117$ac_includes_default
12118#include <$ac_header>
12119_ACEOF
12120rm -f conftest.$ac_objext
7a197a62
AK
12121if { (ac_try="$ac_compile"
12122case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
1995c9ff 12126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 12127 (eval "$ac_compile") 2>conftest.er1
ad6254c5 12128 ac_status=$?
8a2fc586
AK
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
1995c9ff 12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148esac
12149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_try") 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
ad6254c5
AK
12154 ac_header_compiler=yes
12155else
1995c9ff 12156 echo "$as_me: failed program was:" >&5
ad6254c5
AK
12157sed 's/^/| /' conftest.$ac_ext >&5
12158
7a197a62 12159 ac_header_compiler=no
ad6254c5 12160fi
7a197a62
AK
12161
12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995c9ff
AK
12163{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
12165
12166# Is the header present?
1995c9ff
AK
12167{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 12169cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175#include <$ac_header>
12176_ACEOF
7a197a62
AK
12177if { (ac_try="$ac_cpp conftest.$ac_ext"
12178case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181esac
1995c9ff 12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 12183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
1995c9ff 12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
fc54be10
AK
12189 (exit $ac_status); } >/dev/null; then
12190 if test -s conftest.err; then
12191 ac_cpp_err=$ac_c_preproc_warn_flag
12192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12193 else
12194 ac_cpp_err=
12195 fi
12196else
12197 ac_cpp_err=yes
12198fi
12199if test -z "$ac_cpp_err"; then
ad6254c5
AK
12200 ac_header_preproc=yes
12201else
1995c9ff 12202 echo "$as_me: failed program was:" >&5
ad6254c5
AK
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_header_preproc=no
12206fi
7a197a62 12207
ad6254c5 12208rm -f conftest.err conftest.$ac_ext
1995c9ff
AK
12209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12210echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
12211
12212# So? What about this header?
8a2fc586
AK
12213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 yes:no: )
1995c9ff
AK
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 12219 ac_header_preproc=yes
ad6254c5 12220 ;;
8a2fc586 12221 no:yes:* )
1995c9ff
AK
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 12234
ad6254c5
AK
12235 ;;
12236esac
1995c9ff
AK
12237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 12239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1995c9ff 12240 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 12241else
8a2fc586 12242 eval "$as_ac_Header=\$ac_header_preproc"
80992638 12243fi
1995c9ff
AK
12244ac_res=`eval echo '${'$as_ac_Header'}'`
12245 { echo "$as_me:$LINENO: result: $ac_res" >&5
12246echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 12247
ad6254c5 12248fi
1995c9ff 12249if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 12250 cat >>confdefs.h <<_ACEOF
1995c9ff 12251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 12252_ACEOF
0a62c911 12253
0a62c911 12254else
1995c9ff
AK
12255 { { echo "$as_me:$LINENO: error: bailing out" >&5
12256echo "$as_me: error: bailing out" >&2;}
ad6254c5 12257 { (exit 1); exit 1; }; }
80992638
AK
12258fi
12259
ad6254c5 12260done
0a62c911 12261
ad6254c5 12262fi
0a62c911 12263
a653923f
AK
12264################################################################################
12265# Extract the first word of "modprobe", so it can be a program name with args.
12266set dummy modprobe; ac_word=$2
1995c9ff
AK
12267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 12269if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
1995c9ff 12270 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
12271else
12272 case $MODPROBE_CMD in
12273 [\\/]* | ?:[\\/]*)
12274 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12275 ;;
12276 *)
12277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278for as_dir in $PATH
12279do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
12282 for ac_exec_ext in '' $ac_executable_extensions; do
fc54be10 12283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 12284 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
1995c9ff 12285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
12286 break 2
12287 fi
12288done
12289done
7a197a62 12290IFS=$as_save_IFS
72b2cb61
AK
12291
12292 ;;
12293esac
12294fi
12295MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 12296if test -n "$MODPROBE_CMD"; then
1995c9ff
AK
12297 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12298echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 12299else
1995c9ff
AK
12300 { echo "$as_me:$LINENO: result: no" >&5
12301echo "${ECHO_T}no" >&6; }
72b2cb61
AK
12302fi
12303
a653923f 12304
7a197a62 12305
a653923f 12306if test x$MODPROBE_CMD != x; then
72b2cb61
AK
12307
12308cat >>confdefs.h <<_ACEOF
12309#define MODPROBE_CMD "$MODPROBE_CMD"
12310_ACEOF
12311
a653923f
AK
12312fi
12313
80992638 12314################################################################################
fae0c576
AK
12315if test "-f VERSION"; then
12316 LVM_VERSION="\"`cat VERSION`\""
12317else
12318 LVM_VERSION="Unknown"
12319fi
12320
80992638 12321################################################################################
fae0c576 12322
83912faa 12323
795ca3e5
AK
12324
12325
12326
12327
12328
12329
5a52dca9 12330
8ef2b021 12331
199e490e 12332
69792976
AK
12333
12334
12335
12336
8106cdd5
AK
12337
12338
12339
12340
12341
d68a82ec 12342
036f273a 12343
7d1552c9 12344
8106cdd5 12345
0a62c911 12346
8106cdd5 12347
4a7f3eb2 12348
4922197a
AK
12349
12350
d8ac0fbc 12351
1a9ea74d 12352
8a2fc586
AK
12353
12354
12355
8ce0cbda 12356
8b1a3214 12357
33f732c5 12358
66e941e8 12359
fc54be10 12360
d3c8211f
AK
12361
12362
80992638 12363################################################################################
67961c7c 12364ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/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"
7a197a62 12365
ad6254c5 12366cat >confcache <<\_ACEOF
795ca3e5
AK
12367# This file is a shell script that caches the results of configure
12368# tests run on this system so they can be shared between configure
ad6254c5
AK
12369# scripts and configure runs, see configure's option --config-cache.
12370# It is not useful on other systems. If it contains results you don't
12371# want to keep, you may remove or edit it.
795ca3e5 12372#
ad6254c5
AK
12373# config.status only pays attention to the cache file if you give it
12374# the --recheck option to rerun configure.
795ca3e5 12375#
ad6254c5
AK
12376# `ac_cv_env_foo' variables (set or unset) will be overridden when
12377# loading this file, other *unset* `ac_cv_foo' will be assigned the
12378# following values.
12379
12380_ACEOF
12381
795ca3e5
AK
12382# The following way of writing the cache mishandles newlines in values,
12383# but we know of no workaround that is simple, portable, and efficient.
7a197a62 12384# So, we kill variables containing newlines.
795ca3e5
AK
12385# Ultrix sh set writes to stderr and can't be redirected directly,
12386# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
12387(
12388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12389 eval ac_val=\$$ac_var
12390 case $ac_val in #(
12391 *${as_nl}*)
12392 case $ac_var in #(
1995c9ff
AK
12393 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12394echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
12395 esac
12396 case $ac_var in #(
12397 _ | IFS | as_nl) ;; #(
12398 *) $as_unset $ac_var ;;
12399 esac ;;
12400 esac
12401 done
12402
ad6254c5 12403 (set) 2>&1 |
7a197a62
AK
12404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12405 *${as_nl}ac_space=\ *)
ad6254c5
AK
12406 # `set' does not quote correctly, so add quotes (double-quote
12407 # substitution turns \\\\ into \\, and sed turns \\ into \).
12408 sed -n \
8a2fc586
AK
12409 "s/'/'\\\\''/g;
12410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 12411 ;; #(
ad6254c5
AK
12412 *)
12413 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 12414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 12415 ;;
7a197a62
AK
12416 esac |
12417 sort
12418) |
ad6254c5 12419 sed '
7a197a62 12420 /^ac_cv_env_/b end
ad6254c5 12421 t clear
7a197a62 12422 :clear
ad6254c5
AK
12423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12424 t end
7a197a62
AK
12425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12426 :end' >>confcache
12427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12428 if test -w "$cache_file"; then
12429 test "x$cache_file" != "x/dev/null" &&
1995c9ff
AK
12430 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12431echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 12432 cat confcache >$cache_file
795ca3e5 12433 else
1995c9ff
AK
12434 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12435echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
12436 fi
12437fi
12438rm -f confcache
12439
795ca3e5
AK
12440test "x$prefix" = xNONE && prefix=$ac_default_prefix
12441# Let make expand exec_prefix.
12442test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12443
72b2cb61 12444DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
12445
12446ac_libobjs=
12447ac_ltlibobjs=
12448for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12449 # 1. Remove the extension, and $U if already installed.
7a197a62 12450 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1995c9ff 12451 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
12452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12453 # will be set to the directory where LIBOBJS objects are built.
12454 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12455 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
12456done
12457LIBOBJS=$ac_libobjs
80992638 12458
ad6254c5
AK
12459LTLIBOBJS=$ac_ltlibobjs
12460
12461
12462
12463: ${CONFIG_STATUS=./config.status}
12464ac_clean_files_save=$ac_clean_files
12465ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1995c9ff
AK
12466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12467echo "$as_me: creating $CONFIG_STATUS" >&6;}
ad6254c5
AK
12468cat >$CONFIG_STATUS <<_ACEOF
12469#! $SHELL
12470# Generated by $as_me.
795ca3e5 12471# Run this file to recreate the current configuration.
795ca3e5 12472# Compiler output produced by configure, useful for debugging
ad6254c5
AK
12473# configure, is in config.log if it exists.
12474
12475debug=false
12476ac_cs_recheck=false
12477ac_cs_silent=false
12478SHELL=\${CONFIG_SHELL-$SHELL}
12479_ACEOF
12480
12481cat >>$CONFIG_STATUS <<\_ACEOF
12482## --------------------- ##
12483## M4sh Initialization. ##
12484## --------------------- ##
12485
fc54be10 12486# Be Bourne compatible
ad6254c5
AK
12487if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12488 emulate sh
12489 NULLCMD=:
12490 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12491 # is contrary to our usage. Disable this feature.
12492 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
12493 setopt NO_GLOB_SUBST
12494else
fc54be10 12495 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
7a197a62 12496fi
fc54be10
AK
12497BIN_SH=xpg4; export BIN_SH # for Tru64
12498DUALCASE=1; export DUALCASE # for MKS sh
7a197a62
AK
12499
12500
12501# PATH needs CR
12502# Avoid depending upon Character Ranges.
12503as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12505as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12506as_cr_digits='0123456789'
12507as_cr_alnum=$as_cr_Letters$as_cr_digits
12508
12509# The user is always right.
12510if test "${PATH_SEPARATOR+set}" != set; then
12511 echo "#! /bin/sh" >conf$$.sh
12512 echo "exit 0" >>conf$$.sh
12513 chmod +x conf$$.sh
12514 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12515 PATH_SEPARATOR=';'
12516 else
12517 PATH_SEPARATOR=:
12518 fi
12519 rm -f conf$$.sh
ad6254c5
AK
12520fi
12521
12522# Support unset when possible.
8a2fc586 12523if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
12524 as_unset=unset
12525else
12526 as_unset=false
12527fi
8106cdd5 12528
ad6254c5 12529
7a197a62
AK
12530# IFS
12531# We need space, tab and new line, in precisely that order. Quoting is
12532# there to prevent editors from complaining about space-tab.
12533# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12534# splitting by setting IFS to empty value.)
1995c9ff
AK
12535as_nl='
12536'
7a197a62
AK
12537IFS=" "" $as_nl"
12538
12539# Find who we are. Look in the path if we contain no directory separator.
12540case $0 in
12541 *[\\/]* ) as_myself=$0 ;;
12542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543for as_dir in $PATH
12544do
12545 IFS=$as_save_IFS
12546 test -z "$as_dir" && as_dir=.
12547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12548done
12549IFS=$as_save_IFS
12550
12551 ;;
12552esac
12553# We did not find ourselves, most probably we were run as `sh COMMAND'
12554# in which case we are not to be found in the path.
12555if test "x$as_myself" = x; then
12556 as_myself=$0
12557fi
12558if test ! -f "$as_myself"; then
1995c9ff 12559 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
12560 { (exit 1); exit 1; }
12561fi
12562
ad6254c5 12563# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
12564for as_var in ENV MAIL MAILPATH
12565do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12566done
ad6254c5
AK
12567PS1='$ '
12568PS2='> '
12569PS4='+ '
12570
12571# NLS nuisances.
12572for as_var in \
12573 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12574 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12575 LC_TELEPHONE LC_TIME
8106cdd5 12576do
8a2fc586 12577 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
12578 eval $as_var=C; export $as_var
12579 else
7a197a62 12580 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
ad6254c5 12581 fi
8106cdd5
AK
12582done
12583
ad6254c5 12584# Required to use basename.
7a197a62
AK
12585if expr a : '\(a\)' >/dev/null 2>&1 &&
12586 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12587 as_expr=expr
12588else
12589 as_expr=false
12590fi
8106cdd5 12591
7a197a62 12592if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
12593 as_basename=basename
12594else
12595 as_basename=false
12596fi
12597
12598
12599# Name of the executable.
7a197a62 12600as_me=`$as_basename -- "$0" ||
ad6254c5
AK
12601$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12602 X"$0" : 'X\(//\)$' \| \
7a197a62 12603 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 12604echo X/"$0" |
7a197a62
AK
12605 sed '/^.*\/\([^/][^/]*\)\/*$/{
12606 s//\1/
12607 q
12608 }
12609 /^X\/\(\/\/\)$/{
12610 s//\1/
12611 q
12612 }
12613 /^X\/\(\/\).*/{
12614 s//\1/
12615 q
12616 }
12617 s/.*/./; q'`
ad6254c5 12618
7a197a62
AK
12619# CDPATH.
12620$as_unset CDPATH
ad6254c5
AK
12621
12622
ad6254c5 12623
ad6254c5
AK
12624 as_lineno_1=$LINENO
12625 as_lineno_2=$LINENO
ad6254c5 12626 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 12627 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 12628
ad6254c5
AK
12629 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12630 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
12631 # line-number line after each line using $LINENO; the second 'sed'
12632 # does the real work. The second script uses 'N' to pair each
12633 # line-number line with the line containing $LINENO, and appends
12634 # trailing '-' during substitution so that $LINENO is not a special
12635 # case at line end.
ad6254c5 12636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
12637 # scripts with optimization help from Paolo Bonzini. Blame Lee
12638 # E. McMahon (1931-1989) for sed's syntax. :-)
12639 sed -n '
12640 p
12641 /[$]LINENO/=
12642 ' <$as_myself |
ad6254c5 12643 sed '
7a197a62
AK
12644 s/[$]LINENO.*/&-/
12645 t lineno
12646 b
12647 :lineno
ad6254c5 12648 N
7a197a62
AK
12649 :loop
12650 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 12651 t loop
7a197a62 12652 s/-\n.*//
ad6254c5 12653 ' >$as_me.lineno &&
7a197a62 12654 chmod +x "$as_me.lineno" ||
1995c9ff 12655 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
12656 { (exit 1); exit 1; }; }
12657
12658 # Don't try to exec as it changes $[0], causing all sort of problems
12659 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
12660 # original and so on. Autoconf is especially sensitive to this).
12661 . "./$as_me.lineno"
ad6254c5
AK
12662 # Exit status is that of the last command.
12663 exit
12664}
12665
12666
7a197a62
AK
12667if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12668 as_dirname=dirname
12669else
12670 as_dirname=false
12671fi
12672
12673ECHO_C= ECHO_N= ECHO_T=
12674case `echo -n x` in
12675-n*)
12676 case `echo 'x\c'` in
12677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12678 *) ECHO_C='\c';;
12679 esac;;
12680*)
12681 ECHO_N='-n';;
ad6254c5 12682esac
1995c9ff 12683
7a197a62
AK
12684if expr a : '\(a\)' >/dev/null 2>&1 &&
12685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
12686 as_expr=expr
12687else
12688 as_expr=false
12689fi
80992638 12690
ad6254c5 12691rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
12692if test -d conf$$.dir; then
12693 rm -f conf$$.dir/conf$$.file
12694else
12695 rm -f conf$$.dir
12696 mkdir conf$$.dir
12697fi
ad6254c5
AK
12698echo >conf$$.file
12699if ln -s conf$$.file conf$$ 2>/dev/null; then
7a197a62
AK
12700 as_ln_s='ln -s'
12701 # ... but there are two gotchas:
12702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12704 # In both cases, we have to default to `cp -p'.
12705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 12706 as_ln_s='cp -p'
ad6254c5
AK
12707elif ln conf$$.file conf$$ 2>/dev/null; then
12708 as_ln_s=ln
12709else
12710 as_ln_s='cp -p'
12711fi
7a197a62
AK
12712rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12713rmdir conf$$.dir 2>/dev/null
8106cdd5 12714
ad6254c5
AK
12715if mkdir -p . 2>/dev/null; then
12716 as_mkdir_p=:
12717else
8a2fc586 12718 test -d ./-p && rmdir ./-p
ad6254c5
AK
12719 as_mkdir_p=false
12720fi
12721
fc54be10
AK
12722# Find out whether ``test -x'' works. Don't use a zero-byte file, as
12723# systems may use methods other than mode bits to determine executability.
12724cat >conf$$.file <<_ASEOF
12725#! /bin/sh
12726exit 0
12727_ASEOF
12728chmod +x conf$$.file
12729if test -x conf$$.file >/dev/null 2>&1; then
12730 as_executable_p="test -x"
7a197a62 12731else
fc54be10 12732 as_executable_p=:
7a197a62 12733fi
fc54be10 12734rm -f conf$$.file
ad6254c5
AK
12735
12736# Sed expression to map a string onto a valid CPP name.
8a2fc586 12737as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12738
12739# Sed expression to map a string onto a valid variable name.
8a2fc586 12740as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
12741
12742
ad6254c5
AK
12743exec 6>&1
12744
7a197a62 12745# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 12746# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
12747# values after options handling.
12748ac_log="
ad6254c5 12749This file was extended by $as_me, which was
fc54be10 12750generated by GNU Autoconf 2.60. Invocation command line was
ad6254c5
AK
12751
12752 CONFIG_FILES = $CONFIG_FILES
12753 CONFIG_HEADERS = $CONFIG_HEADERS
12754 CONFIG_LINKS = $CONFIG_LINKS
12755 CONFIG_COMMANDS = $CONFIG_COMMANDS
12756 $ $0 $@
12757
7a197a62
AK
12758on `(hostname || uname -n) 2>/dev/null | sed 1q`
12759"
12760
ad6254c5
AK
12761_ACEOF
12762
7a197a62 12763cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12764# Files that config.status was made for.
7a197a62
AK
12765config_files="$ac_config_files"
12766config_headers="$ac_config_headers"
ad6254c5 12767
7a197a62 12768_ACEOF
ad6254c5
AK
12769
12770cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12771ac_cs_usage="\
12772\`$as_me' instantiates files from templates according to the
12773current configuration.
12774
12775Usage: $0 [OPTIONS] [FILE]...
12776
12777 -h, --help print this help, then exit
fc54be10 12778 -V, --version print version number, then exit
ad6254c5
AK
12779 -q, --quiet do not print progress messages
12780 -d, --debug don't remove temporary files
12781 --recheck update $as_me by reconfiguring in the same conditions
12782 --file=FILE[:TEMPLATE]
8a2fc586 12783 instantiate the configuration file FILE
72b2cb61
AK
12784 --header=FILE[:TEMPLATE]
12785 instantiate the configuration header FILE
ad6254c5
AK
12786
12787Configuration files:
12788$config_files
12789
72b2cb61
AK
12790Configuration headers:
12791$config_headers
12792
ad6254c5 12793Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12794
7a197a62 12795_ACEOF
ad6254c5
AK
12796cat >>$CONFIG_STATUS <<_ACEOF
12797ac_cs_version="\\
12798config.status
fc54be10 12799configured by $0, generated by GNU Autoconf 2.60,
1995c9ff 12800 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12801
7a197a62 12802Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12803This config.status script is free software; the Free Software Foundation
12804gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12805
12806ac_pwd='$ac_pwd'
12807srcdir='$srcdir'
12808INSTALL='$INSTALL'
ad6254c5
AK
12809_ACEOF
12810
12811cat >>$CONFIG_STATUS <<\_ACEOF
12812# If no file are specified by the user, then we need to provide default
12813# value. By we need to know if files were specified by the user.
12814ac_need_defaults=:
12815while test $# != 0
12816do
12817 case $1 in
12818 --*=*)
7a197a62
AK
12819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12821 ac_shift=:
12822 ;;
7a197a62 12823 *)
ad6254c5
AK
12824 ac_option=$1
12825 ac_optarg=$2
12826 ac_shift=shift
12827 ;;
ad6254c5
AK
12828 esac
12829
12830 case $ac_option in
12831 # Handling of the options.
ad6254c5
AK
12832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12833 ac_cs_recheck=: ;;
7a197a62 12834 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1995c9ff 12835 echo "$ac_cs_version"; exit ;;
7a197a62 12836 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12837 debug=: ;;
12838 --file | --fil | --fi | --f )
12839 $ac_shift
12840 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12841 ac_need_defaults=false;;
12842 --header | --heade | --head | --hea )
12843 $ac_shift
12844 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12845 ac_need_defaults=false;;
7a197a62
AK
12846 --he | --h)
12847 # Conflict between --help and --header
1995c9ff 12848 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12849Try \`$0 --help' for more information." >&2
12850 { (exit 1); exit 1; }; };;
12851 --help | --hel | -h )
1995c9ff 12852 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12854 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12855 ac_cs_silent=: ;;
12856
12857 # This is an error.
1995c9ff 12858 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 12859Try \`$0 --help' for more information." >&2
ad6254c5
AK
12860 { (exit 1); exit 1; }; } ;;
12861
7a197a62
AK
12862 *) ac_config_targets="$ac_config_targets $1"
12863 ac_need_defaults=false ;;
ad6254c5
AK
12864
12865 esac
12866 shift
12867done
12868
12869ac_configure_extra_args=
12870
12871if $ac_cs_silent; then
12872 exec 6>/dev/null
12873 ac_configure_extra_args="$ac_configure_extra_args --silent"
12874fi
12875
12876_ACEOF
12877cat >>$CONFIG_STATUS <<_ACEOF
12878if \$ac_cs_recheck; then
1995c9ff
AK
12879 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12880 CONFIG_SHELL=$SHELL
7a197a62 12881 export CONFIG_SHELL
1995c9ff 12882 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
12883fi
12884
12885_ACEOF
7a197a62
AK
12886cat >>$CONFIG_STATUS <<\_ACEOF
12887exec 5>>config.log
12888{
12889 echo
12890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12891## Running $as_me. ##
12892_ASBOX
1995c9ff 12893 echo "$ac_log"
7a197a62 12894} >&5
ad6254c5 12895
7a197a62
AK
12896_ACEOF
12897cat >>$CONFIG_STATUS <<_ACEOF
12898_ACEOF
ad6254c5
AK
12899
12900cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12901
12902# Handling of arguments.
ad6254c5
AK
12903for ac_config_target in $ac_config_targets
12904do
7a197a62
AK
12905 case $ac_config_target in
12906 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12907 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12908 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
12909 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12910 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
12911 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
12912 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
fc54be10 12913 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62
AK
12914 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12915 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12916 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12917 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12918 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12919 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12920 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12921 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12922 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12923 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12924 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12925 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12926 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12927 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12928
1995c9ff
AK
12929 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12930echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12931 { (exit 1); exit 1; }; };;
80992638 12932 esac
ad6254c5
AK
12933done
12934
7a197a62 12935
ad6254c5
AK
12936# If the user did not use the arguments to specify the items to instantiate,
12937# then the envvar interface is used. Set only those that are not.
12938# We use the long form for the default assignment because of an extremely
12939# bizarre bug on SunOS 4.1.3.
12940if $ac_need_defaults; then
12941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12943fi
12944
12945# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12946# simply because there is no reason against having it here, and in addition,
ad6254c5 12947# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12948# Hook for its removal unless debugging.
12949# Note that there is a small window in which the directory will not be cleaned:
12950# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12951$debug ||
12952{
7a197a62
AK
12953 tmp=
12954 trap 'exit_status=$?
12955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12956' 0
ad6254c5
AK
12957 trap '{ (exit 1); exit 1; }' 1 2 13 15
12958}
ad6254c5
AK
12959# Create a (secure) tmp directory for tmp files.
12960
12961{
7a197a62 12962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12963 test -n "$tmp" && test -d "$tmp"
12964} ||
12965{
7a197a62
AK
12966 tmp=./conf$$-$RANDOM
12967 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12968} ||
12969{
1995c9ff 12970 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12971 { (exit 1); exit 1; }
12972}
12973
1995c9ff
AK
12974#
12975# Set up the sed scripts for CONFIG_FILES section.
12976#
7a197a62 12977
1995c9ff
AK
12978# No need to generate the scripts if there are no CONFIG_FILES.
12979# This happens for instance when ./config.status config.h
12980if test -n "$CONFIG_FILES"; then
7a197a62 12981
66e941e8 12982_ACEOF
7a197a62
AK
12983
12984
1995c9ff 12985
7a197a62
AK
12986ac_delim='%!_!# '
12987for ac_last_try in false false false false false :; do
1995c9ff
AK
12988 cat >conf$$subs.sed <<_ACEOF
12989SHELL!$SHELL$ac_delim
12990PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12991PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12992PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12993PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12994PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12995PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12996exec_prefix!$exec_prefix$ac_delim
12997prefix!$prefix$ac_delim
12998program_transform_name!$program_transform_name$ac_delim
12999bindir!$bindir$ac_delim
13000sbindir!$sbindir$ac_delim
13001libexecdir!$libexecdir$ac_delim
13002datarootdir!$datarootdir$ac_delim
13003datadir!$datadir$ac_delim
13004sysconfdir!$sysconfdir$ac_delim
13005sharedstatedir!$sharedstatedir$ac_delim
13006localstatedir!$localstatedir$ac_delim
13007includedir!$includedir$ac_delim
13008oldincludedir!$oldincludedir$ac_delim
13009docdir!$docdir$ac_delim
13010infodir!$infodir$ac_delim
13011htmldir!$htmldir$ac_delim
13012dvidir!$dvidir$ac_delim
13013pdfdir!$pdfdir$ac_delim
13014psdir!$psdir$ac_delim
13015libdir!$libdir$ac_delim
13016localedir!$localedir$ac_delim
13017mandir!$mandir$ac_delim
13018DEFS!$DEFS$ac_delim
13019ECHO_C!$ECHO_C$ac_delim
13020ECHO_N!$ECHO_N$ac_delim
13021ECHO_T!$ECHO_T$ac_delim
13022LIBS!$LIBS$ac_delim
13023build_alias!$build_alias$ac_delim
13024host_alias!$host_alias$ac_delim
13025target_alias!$target_alias$ac_delim
13026build!$build$ac_delim
13027build_cpu!$build_cpu$ac_delim
13028build_vendor!$build_vendor$ac_delim
13029build_os!$build_os$ac_delim
13030host!$host$ac_delim
13031host_cpu!$host_cpu$ac_delim
13032host_vendor!$host_vendor$ac_delim
13033host_os!$host_os$ac_delim
13034target!$target$ac_delim
13035target_cpu!$target_cpu$ac_delim
13036target_vendor!$target_vendor$ac_delim
13037target_os!$target_os$ac_delim
13038AWK!$AWK$ac_delim
13039CC!$CC$ac_delim
13040CFLAGS!$CFLAGS$ac_delim
13041LDFLAGS!$LDFLAGS$ac_delim
13042CPPFLAGS!$CPPFLAGS$ac_delim
13043ac_ct_CC!$ac_ct_CC$ac_delim
13044EXEEXT!$EXEEXT$ac_delim
13045OBJEXT!$OBJEXT$ac_delim
13046INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13047INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13048INSTALL_DATA!$INSTALL_DATA$ac_delim
13049LN_S!$LN_S$ac_delim
13050SET_MAKE!$SET_MAKE$ac_delim
13051RANLIB!$RANLIB$ac_delim
13052CFLOW_CMD!$CFLOW_CMD$ac_delim
13053CSCOPE_CMD!$CSCOPE_CMD$ac_delim
13054CPP!$CPP$ac_delim
13055GREP!$GREP$ac_delim
13056EGREP!$EGREP$ac_delim
13057ALLOCA!$ALLOCA$ac_delim
13058LIBOBJS!$LIBOBJS$ac_delim
13059POW_LIB!$POW_LIB$ac_delim
13060MSGFMT!$MSGFMT$ac_delim
13061MODPROBE_CMD!$MODPROBE_CMD$ac_delim
13062JOBS!$JOBS$ac_delim
13063STATIC_LINK!$STATIC_LINK$ac_delim
13064LVM1!$LVM1$ac_delim
13065POOL!$POOL$ac_delim
13066SNAPSHOTS!$SNAPSHOTS$ac_delim
13067MIRRORS!$MIRRORS$ac_delim
13068OWNER!$OWNER$ac_delim
13069GROUP!$GROUP$ac_delim
13070COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
13071CLDFLAGS!$CLDFLAGS$ac_delim
13072CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
13073CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
13074LDDEPS!$LDDEPS$ac_delim
13075LIB_SUFFIX!$LIB_SUFFIX$ac_delim
13076LVM_VERSION!$LVM_VERSION$ac_delim
13077LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
13078DEBUG!$DEBUG$ac_delim
13079DEVMAPPER!$DEVMAPPER$ac_delim
13080HAVE_LIBDL!$HAVE_LIBDL$ac_delim
13081HAVE_SELINUX!$HAVE_SELINUX$ac_delim
13082HAVE_REALTIME!$HAVE_REALTIME$ac_delim
13083CMDLIB!$CMDLIB$ac_delim
13084LOCALEDIR!$LOCALEDIR$ac_delim
13085CONFDIR!$CONFDIR$ac_delim
13086_ACEOF
13087
13088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7a197a62
AK
13089 break
13090 elif $ac_last_try; then
1995c9ff
AK
13091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13092echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7a197a62
AK
13093 { (exit 1); exit 1; }; }
13094 else
13095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
ad6254c5 13096 fi
7a197a62 13097done
1995c9ff
AK
13098
13099ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13100if test -n "$ac_eof"; then
13101 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13102 ac_eof=`expr $ac_eof + 1`
13103fi
7a197a62
AK
13104
13105cat >>$CONFIG_STATUS <<_ACEOF
1995c9ff
AK
13106cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13107/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13108_ACEOF
13109sed '
13110s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13111s/^/s,@/; s/!/@,|#_!!_#|/
13112:n
13113t n
13114s/'"$ac_delim"'$/,g/; t
13115s/$/\\/; p
13116N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13117' >>$CONFIG_STATUS <conf$$subs.sed
13118rm -f conf$$subs.sed
7a197a62 13119cat >>$CONFIG_STATUS <<_ACEOF
1995c9ff
AK
13120CEOF$ac_eof
13121_ACEOF
7a197a62 13122
8106cdd5 13123
1995c9ff
AK
13124ac_delim='%!_!# '
13125for ac_last_try in false false false false false :; do
13126 cat >conf$$subs.sed <<_ACEOF
13127STATICDIR!$STATICDIR$ac_delim
13128DMDIR!$DMDIR$ac_delim
13129INTL_PACKAGE!$INTL_PACKAGE$ac_delim
13130INTL!$INTL$ac_delim
13131CLVMD!$CLVMD$ac_delim
13132CLUSTER!$CLUSTER$ac_delim
13133FSADM!$FSADM$ac_delim
13134DMEVENTD!$DMEVENTD$ac_delim
13135LIB_PTHREAD!$LIB_PTHREAD$ac_delim
13136LTLIBOBJS!$LTLIBOBJS$ac_delim
13137_ACEOF
13138
13139 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13140 break
13141 elif $ac_last_try; then
13142 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13143echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13144 { (exit 1); exit 1; }; }
13145 else
13146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13147 fi
13148done
13149
13150ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13151if test -n "$ac_eof"; then
13152 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13153 ac_eof=`expr $ac_eof + 1`
13154fi
7a197a62 13155
1995c9ff
AK
13156cat >>$CONFIG_STATUS <<_ACEOF
13157cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13158/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13159_ACEOF
13160sed '
13161s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13162s/^/s,@/; s/!/@,|#_!!_#|/
13163:n
13164t n
13165s/'"$ac_delim"'$/,g/; t
13166s/$/\\/; p
13167N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13168' >>$CONFIG_STATUS <conf$$subs.sed
13169rm -f conf$$subs.sed
13170cat >>$CONFIG_STATUS <<_ACEOF
13171:end
13172s/|#_!!_#|//g
13173CEOF$ac_eof
7a197a62
AK
13174_ACEOF
13175
1995c9ff 13176
7a197a62
AK
13177# VPATH may cause trouble with some makes, so we remove $(srcdir),
13178# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13179# trailing colons and then remove the whole line if VPATH becomes empty
13180# (actually we leave an empty line to preserve line numbers).
13181if test "x$srcdir" = x.; then
13182 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13183s/:*\$(srcdir):*/:/
13184s/:*\${srcdir}:*/:/
13185s/:*@srcdir@:*/:/
13186s/^\([^=]*=[ ]*\):*/\1/
13187s/:*$//
13188s/^[^=]*=[ ]*$//
13189}'
13190fi
13191
ad6254c5 13192cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
13193fi # test -n "$CONFIG_FILES"
13194
13195
13196for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
13197do
13198 case $ac_tag in
13199 :[FHLC]) ac_mode=$ac_tag; continue;;
13200 esac
13201 case $ac_mode$ac_tag in
13202 :[FHL]*:*);;
1995c9ff
AK
13203 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13204echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
13205 { (exit 1); exit 1; }; };;
13206 :[FH]-) ac_tag=-:-;;
13207 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13208 esac
13209 ac_save_IFS=$IFS
13210 IFS=:
13211 set x $ac_tag
13212 IFS=$ac_save_IFS
13213 shift
13214 ac_file=$1
13215 shift
13216
13217 case $ac_mode in
13218 :L) ac_source=$1;;
13219 :[FH])
13220 ac_file_inputs=
13221 for ac_f
13222 do
13223 case $ac_f in
13224 -) ac_f="$tmp/stdin";;
13225 *) # Look for the file first in the build tree, then in the source tree
13226 # (if the path is not absolute). The absolute path cannot be DOS-style,
13227 # because $ac_f cannot contain `:'.
13228 test -f "$ac_f" ||
13229 case $ac_f in
13230 [\\/$]*) false;;
13231 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13232 esac ||
1995c9ff
AK
13233 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13234echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
13235 { (exit 1); exit 1; }; };;
13236 esac
13237 ac_file_inputs="$ac_file_inputs $ac_f"
13238 done
13239
13240 # Let's still pretend it is `configure' which instantiates (i.e., don't
13241 # use $as_me), people would be surprised to read:
13242 # /* config.h. Generated by config.status. */
1995c9ff
AK
13243 configure_input="Generated from "`IFS=:
13244 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
13245 if test x"$ac_file" != x-; then
13246 configure_input="$ac_file. $configure_input"
1995c9ff
AK
13247 { echo "$as_me:$LINENO: creating $ac_file" >&5
13248echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
13249 fi
13250
13251 case $ac_tag in
13252 *:-:* | *:-) cat >"$tmp/stdin";;
13253 esac
13254 ;;
80992638 13255 esac
8106cdd5 13256
7a197a62 13257 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 13258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13259 X"$ac_file" : 'X\(//\)[^/]' \| \
13260 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 13261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 13262echo X"$ac_file" |
7a197a62
AK
13263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13264 s//\1/
13265 q
13266 }
13267 /^X\(\/\/\)[^/].*/{
13268 s//\1/
13269 q
13270 }
13271 /^X\(\/\/\)$/{
13272 s//\1/
13273 q
13274 }
13275 /^X\(\/\).*/{
13276 s//\1/
13277 q
13278 }
13279 s/.*/./; q'`
13280 { as_dir="$ac_dir"
13281 case $as_dir in #(
13282 -*) as_dir=./$as_dir;;
13283 esac
13284 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 13285 as_dirs=
7a197a62
AK
13286 while :; do
13287 case $as_dir in #(
1995c9ff 13288 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
13289 *) as_qdir=$as_dir;;
13290 esac
13291 as_dirs="'$as_qdir' $as_dirs"
13292 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 13293$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
13294 X"$as_dir" : 'X\(//\)[^/]' \| \
13295 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 13296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1995c9ff 13297echo X"$as_dir" |
7a197a62
AK
13298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13299 s//\1/
13300 q
13301 }
13302 /^X\(\/\/\)[^/].*/{
13303 s//\1/
13304 q
13305 }
13306 /^X\(\/\/\)$/{
13307 s//\1/
13308 q
13309 }
13310 /^X\(\/\).*/{
13311 s//\1/
13312 q
13313 }
13314 s/.*/./; q'`
13315 test -d "$as_dir" && break
ad6254c5 13316 done
7a197a62 13317 test -z "$as_dirs" || eval "mkdir $as_dirs"
1995c9ff
AK
13318 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13319echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 13320 { (exit 1); exit 1; }; }; }
ad6254c5
AK
13321 ac_builddir=.
13322
7a197a62
AK
13323case "$ac_dir" in
13324.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13325*)
1995c9ff 13326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 13327 # A ".." for each directory in $ac_dir_suffix.
1995c9ff 13328 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
13329 case $ac_top_builddir_sub in
13330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13332 esac ;;
13333esac
13334ac_abs_top_builddir=$ac_pwd
13335ac_abs_builddir=$ac_pwd$ac_dir_suffix
13336# for backward compatibility:
13337ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
13338
13339case $srcdir in
7a197a62 13340 .) # We are building in place.
ad6254c5 13341 ac_srcdir=.
7a197a62
AK
13342 ac_top_srcdir=$ac_top_builddir_sub
13343 ac_abs_top_srcdir=$ac_pwd ;;
13344 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 13345 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
13346 ac_top_srcdir=$srcdir
13347 ac_abs_top_srcdir=$srcdir ;;
13348 *) # Relative name.
13349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13350 ac_top_srcdir=$ac_top_build_prefix$srcdir
13351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 13352esac
7a197a62 13353ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 13354
ad6254c5 13355
7a197a62
AK
13356 case $ac_mode in
13357 :F)
13358 #
13359 # CONFIG_FILE
13360 #
ad6254c5
AK
13361
13362 case $INSTALL in
13363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 13364 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 13365 esac
7a197a62 13366_ACEOF
795ca3e5 13367
7a197a62
AK
13368cat >>$CONFIG_STATUS <<\_ACEOF
13369# If the template does not know about datarootdir, expand it.
13370# FIXME: This hack should be removed a few years after 2.60.
13371ac_datarootdir_hack=; ac_datarootdir_seen=
13372
13373case `sed -n '/datarootdir/ {
13374 p
13375 q
13376}
13377/@datadir@/p
13378/@docdir@/p
13379/@infodir@/p
13380/@localedir@/p
13381/@mandir@/p
13382' $ac_file_inputs` in
13383*datarootdir*) ac_datarootdir_seen=yes;;
13384*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1995c9ff
AK
13385 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13386echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 13387_ACEOF
7a197a62
AK
13388cat >>$CONFIG_STATUS <<_ACEOF
13389 ac_datarootdir_hack='
13390 s&@datadir@&$datadir&g
13391 s&@docdir@&$docdir&g
13392 s&@infodir@&$infodir&g
13393 s&@localedir@&$localedir&g
13394 s&@mandir@&$mandir&g
13395 s&\\\${datarootdir}&$datarootdir&g' ;;
13396esac
13397_ACEOF
13398
13399# Neutralize VPATH when `$srcdir' = `.'.
13400# Shell code in configure.ac might set extrasub.
13401# FIXME: do we really want to maintain this feature?
ad6254c5
AK
13402cat >>$CONFIG_STATUS <<_ACEOF
13403 sed "$ac_vpsub
13404$extrasub
13405_ACEOF
13406cat >>$CONFIG_STATUS <<\_ACEOF
13407:t
13408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7a197a62
AK
13409s&@configure_input@&$configure_input&;t t
13410s&@top_builddir@&$ac_top_builddir_sub&;t t
13411s&@srcdir@&$ac_srcdir&;t t
13412s&@abs_srcdir@&$ac_abs_srcdir&;t t
13413s&@top_srcdir@&$ac_top_srcdir&;t t
13414s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13415s&@builddir@&$ac_builddir&;t t
13416s&@abs_builddir@&$ac_abs_builddir&;t t
13417s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13418s&@INSTALL@&$ac_INSTALL&;t t
13419$ac_datarootdir_hack
1995c9ff 13420" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
13421
13422test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13423 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13424 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1995c9ff 13425 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 13426which seems to be undefined. Please make sure it is defined." >&5
1995c9ff 13427echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
13428which seems to be undefined. Please make sure it is defined." >&2;}
13429
13430 rm -f "$tmp/stdin"
72b2cb61 13431 case $ac_file in
7a197a62
AK
13432 -) cat "$tmp/out"; rm -f "$tmp/out";;
13433 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
72b2cb61 13434 esac
7a197a62
AK
13435 ;;
13436 :H)
13437 #
13438 # CONFIG_HEADER
13439 #
13440_ACEOF
13441
13442# Transform confdefs.h into a sed script `conftest.defines', that
13443# substitutes the proper values into config.h.in to produce config.h.
13444rm -f conftest.defines conftest.tail
13445# First, append a space to every undef/define line, to ease matching.
13446echo 's/$/ /' >conftest.defines
13447# Then, protect against being on the right side of a sed subst, or in
13448# an unquoted here document, in config.status. If some macros were
13449# called several times there might be several #defines for the same
13450# symbol, which is useless. But do not sort them, since the last
13451# AC_DEFINE must be honored.
13452ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13453# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13454# NAME is the cpp macro being defined, VALUE is the value it is being given.
13455# PARAMS is the parameter list in the macro definition--in most cases, it's
13456# just an empty string.
13457ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13458ac_dB='\\)[ (].*,\\1define\\2'
13459ac_dC=' '
13460ac_dD=' ,'
13461
13462uniq confdefs.h |
13463 sed -n '
13464 t rset
13465 :rset
13466 s/^[ ]*#[ ]*define[ ][ ]*//
13467 t ok
13468 d
13469 :ok
13470 s/[\\&,]/\\&/g
13471 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13472 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13473 ' >>conftest.defines
13474
13475# Remove the space that was appended to ease matching.
13476# Then replace #undef with comments. This is necessary, for
72b2cb61
AK
13477# example, in the case of _POSIX_SOURCE, which is predefined and required
13478# on some systems where configure will not decide to define it.
7a197a62
AK
13479# (The regexp can be short, since the line contains either #define or #undef.)
13480echo 's/ $//
13481s,^[ #]*u.*,/* & */,' >>conftest.defines
13482
13483# Break up conftest.defines:
13484ac_max_sed_lines=50
13485
13486# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13487# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13488# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13489# et cetera.
13490ac_in='$ac_file_inputs'
13491ac_out='"$tmp/out1"'
13492ac_nxt='"$tmp/out2"'
13493
13494while :
72b2cb61 13495do
7a197a62
AK
13496 # Write a here document:
13497 cat >>$CONFIG_STATUS <<_ACEOF
13498 # First, check the format of the line:
13499 cat >"\$tmp/defines.sed" <<\\CEOF
13500/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13501/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13502b
13503:def
13504_ACEOF
13505 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
72b2cb61 13506 echo 'CEOF
7a197a62
AK
13507 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13508 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13509 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13510 grep . conftest.tail >/dev/null || break
72b2cb61
AK
13511 rm -f conftest.defines
13512 mv conftest.tail conftest.defines
13513done
7a197a62 13514rm -f conftest.defines conftest.tail
72b2cb61 13515
7a197a62 13516echo "ac_result=$ac_in" >>$CONFIG_STATUS
72b2cb61 13517cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 13518 if test x"$ac_file" != x-; then
1995c9ff 13519 echo "/* $configure_input */" >"$tmp/config.h"
7a197a62
AK
13520 cat "$ac_result" >>"$tmp/config.h"
13521 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
1995c9ff
AK
13522 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13523echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 13524 else
72b2cb61 13525 rm -f $ac_file
7a197a62 13526 mv "$tmp/config.h" $ac_file
72b2cb61
AK
13527 fi
13528 else
1995c9ff 13529 echo "/* $configure_input */"
7a197a62 13530 cat "$ac_result"
72b2cb61 13531 fi
7a197a62
AK
13532 rm -f "$tmp/out12"
13533 ;;
13534
13535
13536 esac
13537
13538done # for ac_tag
795ca3e5 13539
795ca3e5 13540
ad6254c5
AK
13541{ (exit 0); exit 0; }
13542_ACEOF
795ca3e5 13543chmod +x $CONFIG_STATUS
ad6254c5
AK
13544ac_clean_files=$ac_clean_files_save
13545
13546
13547# configure is writing to config.log, and then calls config.status.
13548# config.status does its own redirection, appending to config.log.
13549# Unfortunately, on DOS this fails, as config.log is still kept open
13550# by configure, so config.status won't be able to write to it; its
13551# output is simply discarded. So we exec the FD to /dev/null,
13552# effectively closing config.log, so it can be properly (re)opened and
13553# appended to by config.status. When coming back to configure, we
13554# need to make the FD available again.
13555if test "$no_create" != yes; then
13556 ac_cs_success=:
13557 ac_config_status_args=
13558 test "$silent" = yes &&
13559 ac_config_status_args="$ac_config_status_args --quiet"
13560 exec 5>/dev/null
13561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13562 exec 5>>config.log
13563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13564 # would make configure fail if this is the last instruction.
13565 $ac_cs_success || { (exit 1); exit 1; }
13566fi
795ca3e5 13567
2dc95e1c
AK
13568
13569if test x$ODIRECT != xyes; then
1995c9ff
AK
13570 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13571echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 13572fi
809fae91
AK
13573
13574if test x$FSADM == xyes; then
1995c9ff
AK
13575 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
13576echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 13577fi
06f62ad1
AK
13578
13579if test x$DMEVENTD == xyes; then
1995c9ff
AK
13580 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
13581echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 13582fi
This page took 1.685365 seconds and 5 git commands to generate.