]> sourceware.org Git - lvm2.git/blame - configure
Don't make configure fail when readline library is not available.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
5556819a 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5556819a 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
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
5556819a 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
fddafd51
ZK
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
5556819a
AK
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
ad6254c5
AK
51fi
52
53# Support unset when possible.
8a2fc586 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
7a197a62
AK
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
5556819a
AK
66as_nl='
67'
7a197a62
AK
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
5556819a 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
91 { (exit 1); exit 1; }
92fi
93
ad6254c5 94# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
ad6254c5
AK
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
5556819a
AK
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
ad6254c5
AK
114
115# Required to use basename.
7a197a62
AK
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
118 as_expr=expr
119else
120 as_expr=false
121fi
122
7a197a62 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
7a197a62 131as_me=`$as_basename -- "$0" ||
ad6254c5
AK
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
7a197a62 134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 135echo X/"$0" |
7a197a62
AK
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
ad6254c5 149
7a197a62
AK
150# CDPATH.
151$as_unset CDPATH
ad6254c5 152
ad6254c5 153
7a197a62
AK
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
ad6254c5
AK
159fi
160
5556819a 161 if test $as_have_required = yes && (eval ":
7a197a62
AK
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
ad6254c5 177
7a197a62
AK
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
ad6254c5 185
7a197a62
AK
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
ad6254c5 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
7a197a62 226 case $as_dir in
ad6254c5 227 /*)
7a197a62
AK
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
5556819a 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
25fbec5b
AK
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
7a197a62 252fi
25fbec5b 253
7a197a62
AK
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
5556819a 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7a197a62
AK
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
25fbec5b
AK
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
7a197a62 273fi
25fbec5b 274
7a197a62
AK
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
ad6254c5
AK
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
ad6254c5 330 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
5556819a
AK
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
5556819a
AK
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
7a197a62
AK
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
ad6254c5 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
ad6254c5 442 sed '
7a197a62
AK
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
ad6254c5 447 N
7a197a62
AK
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 450 t loop
7a197a62 451 s/-\n.*//
ad6254c5 452 ' >$as_me.lineno &&
7a197a62 453 chmod +x "$as_me.lineno" ||
5556819a 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
ad6254c5
AK
461 # Exit status is that of the last command.
462 exit
463}
795ca3e5 464
ad6254c5 465
7a197a62
AK
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
ad6254c5 481esac
5556819a 482
7a197a62
AK
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
5556819a
AK
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 505 as_ln_s='cp -p'
5556819a
AK
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
ad6254c5
AK
508else
509 as_ln_s='cp -p'
510fi
7a197a62
AK
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
8a2fc586 517 test -d ./-p && rmdir ./-p
ad6254c5
AK
518 as_mkdir_p=false
519fi
520
25fbec5b
AK
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
7a197a62 523else
25fbec5b
AK
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
5556819a 532 test -d "$1/.";
25fbec5b
AK
533 else
534 case $1 in
5556819a 535 -*)set "./$1";;
25fbec5b
AK
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
7a197a62 541fi
25fbec5b 542as_executable_p=$as_test_x
ad6254c5
AK
543
544# Sed expression to map a string onto a valid CPP name.
8a2fc586 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
546
547# Sed expression to map a string onto a valid variable name.
8a2fc586 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
549
550
ad6254c5 551
7a197a62 552exec 7<&0 </dev/null 6>&1
ad6254c5
AK
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
ad6254c5
AK
559#
560# Initializations.
561#
795ca3e5 562ac_default_prefix=/usr/local
7a197a62 563ac_clean_files=
ad6254c5 564ac_config_libobj_dir=.
7a197a62 565LIBOBJS=
ad6254c5
AK
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
ad6254c5
AK
572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="lib/device/dev-cache.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
25fbec5b 583#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
584# include <sys/types.h>
585#endif
25fbec5b 586#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
587# include <sys/stat.h>
588#endif
25fbec5b 589#ifdef STDC_HEADERS
ad6254c5
AK
590# include <stdlib.h>
591# include <stddef.h>
592#else
25fbec5b 593# ifdef HAVE_STDLIB_H
ad6254c5
AK
594# include <stdlib.h>
595# endif
596#endif
25fbec5b
AK
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
25fbec5b 603#ifdef HAVE_STRINGS_H
ad6254c5
AK
604# include <strings.h>
605#endif
25fbec5b 606#ifdef HAVE_INTTYPES_H
ad6254c5 607# include <inttypes.h>
ad6254c5 608#endif
25fbec5b 609#ifdef HAVE_STDINT_H
7a197a62
AK
610# include <stdint.h>
611#endif
25fbec5b 612#ifdef HAVE_UNISTD_H
ad6254c5
AK
613# include <unistd.h>
614#endif"
615
795ca3e5 616ac_default_prefix=/usr
7a197a62
AK
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654build
655build_cpu
656build_vendor
657build_os
658host
659host_cpu
660host_vendor
661host_os
662target
663target_cpu
664target_vendor
665target_os
666AWK
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
d0191583
JM
674CPP
675GREP
676EGREP
7a197a62
AK
677INSTALL_PROGRAM
678INSTALL_SCRIPT
679INSTALL_DATA
680LN_S
681SET_MAKE
682RANLIB
683CFLOW_CMD
684CSCOPE_CMD
7a197a62
AK
685ALLOCA
686LIBOBJS
687POW_LIB
fddafd51
ZK
688LCOV
689GENHTML
d179cc7a 690LVM2CMD_LIB
7a197a62
AK
691MSGFMT
692MODPROBE_CMD
d0191583 693BUILD_DMEVENTD
7a197a62 694CLDFLAGS
7a197a62 695CLDNOWHOLEARCHIVE
d0191583
JM
696CLDWHOLEARCHIVE
697CLUSTER
698CLVMD
699CMDLIB
700COPTIMISE_FLAG
7a197a62
AK
701DEBUG
702DEVMAPPER
d0191583
JM
703DMDIR
704DMEVENTD
705DM_COMPAT
706DM_DEVICE_GID
707DM_DEVICE_MODE
708DM_DEVICE_UID
709DM_IOCTLS
710DM_LIB_VERSION
711FSADM
712GROUP
7a197a62 713HAVE_LIBDL
7a197a62 714HAVE_REALTIME
d0191583
JM
715HAVE_SELINUX
716INTL
717INTL_PACKAGE
718JOBS
719LDDEPS
720LIB_SUFFIX
7a197a62 721LOCALEDIR
d0191583
JM
722LVM1
723LVM1_FALLBACK
7a197a62 724CONFDIR
d0191583
JM
725LVM_VERSION
726MIRRORS
727OWNER
728PKGCONFIG
729POOL
730SNAPSHOTS
7a197a62 731STATICDIR
d0191583 732STATIC_LINK
66e941e8 733LIB_PTHREAD
7a197a62 734LTLIBOBJS'
ad6254c5 735ac_subst_files=''
7a197a62
AK
736 ac_precious_vars='build_alias
737host_alias
738target_alias
739CC
740CFLAGS
741LDFLAGS
25fbec5b 742LIBS
7a197a62
AK
743CPPFLAGS
744CPP'
745
795ca3e5
AK
746
747# Initialize some variables set by options.
ad6254c5
AK
748ac_init_help=
749ac_init_version=false
795ca3e5
AK
750# The variables have the same names as the options, with
751# dashes changed to underlines.
ad6254c5 752cache_file=/dev/null
795ca3e5 753exec_prefix=NONE
795ca3e5 754no_create=
795ca3e5
AK
755no_recursion=
756prefix=NONE
757program_prefix=NONE
758program_suffix=NONE
759program_transform_name=s,x,x,
760silent=
761site=
762srcdir=
795ca3e5
AK
763verbose=
764x_includes=NONE
765x_libraries=NONE
ad6254c5
AK
766
767# Installation directory options.
768# These are left unexpanded so users can "make install exec_prefix=/foo"
769# and all the variables that are supposed to be based on exec_prefix
770# by default will actually change.
771# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 772# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
773bindir='${exec_prefix}/bin'
774sbindir='${exec_prefix}/sbin'
775libexecdir='${exec_prefix}/libexec'
7a197a62
AK
776datarootdir='${prefix}/share'
777datadir='${datarootdir}'
795ca3e5
AK
778sysconfdir='${prefix}/etc'
779sharedstatedir='${prefix}/com'
780localstatedir='${prefix}/var'
795ca3e5
AK
781includedir='${prefix}/include'
782oldincludedir='/usr/include'
7a197a62
AK
783docdir='${datarootdir}/doc/${PACKAGE}'
784infodir='${datarootdir}/info'
785htmldir='${docdir}'
786dvidir='${docdir}'
787pdfdir='${docdir}'
788psdir='${docdir}'
789libdir='${exec_prefix}/lib'
790localedir='${datarootdir}/locale'
791mandir='${datarootdir}/man'
795ca3e5 792
795ca3e5 793ac_prev=
7a197a62 794ac_dashdash=
795ca3e5
AK
795for ac_option
796do
795ca3e5
AK
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
7a197a62 799 eval $ac_prev=\$ac_option
795ca3e5
AK
800 ac_prev=
801 continue
802 fi
803
7a197a62
AK
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
795ca3e5
AK
808
809 # Accept the important Cygnus configure options, so we can diagnose typos.
810
7a197a62
AK
811 case $ac_dashdash$ac_option in
812 --)
813 ac_dashdash=yes ;;
795ca3e5
AK
814
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 818 bindir=$ac_optarg ;;
795ca3e5
AK
819
820 -build | --build | --buil | --bui | --bu)
ad6254c5 821 ac_prev=build_alias ;;
795ca3e5 822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 823 build_alias=$ac_optarg ;;
795ca3e5
AK
824
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
830 cache_file=$ac_optarg ;;
831
832 --config-cache | -C)
833 cache_file=config.cache ;;
795ca3e5 834
7a197a62 835 -datadir | --datadir | --datadi | --datad)
795ca3e5 836 ac_prev=datadir ;;
7a197a62 837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 838 datadir=$ac_optarg ;;
795ca3e5 839
7a197a62
AK
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
846
795ca3e5 847 -disable-* | --disable-*)
5556819a 848 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 849 # Reject names that are not valid shell variable names.
5556819a
AK
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 852 { (exit 1); exit 1; }; }
5556819a
AK
853 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_$ac_feature=no ;;
7a197a62
AK
855
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
860
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
795ca3e5
AK
865
866 -enable-* | --enable-*)
5556819a 867 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 868 # Reject names that are not valid shell variable names.
5556819a
AK
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 871 { (exit 1); exit 1; }; }
5556819a
AK
872 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
874
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
ad6254c5 882 exec_prefix=$ac_optarg ;;
795ca3e5
AK
883
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
887
ad6254c5
AK
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
795ca3e5
AK
894
895 -host | --host | --hos | --ho)
ad6254c5 896 ac_prev=host_alias ;;
795ca3e5 897 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 898 host_alias=$ac_optarg ;;
795ca3e5 899
7a197a62
AK
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
905
795ca3e5
AK
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 911 includedir=$ac_optarg ;;
795ca3e5
AK
912
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 916 infodir=$ac_optarg ;;
795ca3e5
AK
917
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 921 libdir=$ac_optarg ;;
795ca3e5
AK
922
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
ad6254c5 928 libexecdir=$ac_optarg ;;
795ca3e5 929
7a197a62
AK
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
934
795ca3e5 935 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 936 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 940 localstatedir=$ac_optarg ;;
795ca3e5
AK
941
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 945 mandir=$ac_optarg ;;
795ca3e5
AK
946
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
950
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 952 | --no-cr | --no-c | -n)
795ca3e5
AK
953 no_create=yes ;;
954
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
958
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 966 oldincludedir=$ac_optarg ;;
795ca3e5
AK
967
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 971 prefix=$ac_optarg ;;
795ca3e5
AK
972
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 978 program_prefix=$ac_optarg ;;
795ca3e5
AK
979
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 985 program_suffix=$ac_optarg ;;
795ca3e5
AK
986
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1002 program_transform_name=$ac_optarg ;;
795ca3e5 1003
7a197a62
AK
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1008
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1013
795ca3e5
AK
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1017
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
ad6254c5 1022 sbindir=$ac_optarg ;;
795ca3e5
AK
1023
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
ad6254c5 1033 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1034
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
ad6254c5 1038 site=$ac_optarg ;;
795ca3e5
AK
1039
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1043 srcdir=$ac_optarg ;;
795ca3e5
AK
1044
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1050 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1051
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1053 ac_prev=target_alias ;;
795ca3e5 1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1055 target_alias=$ac_optarg ;;
795ca3e5
AK
1056
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1059
ad6254c5
AK
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
795ca3e5
AK
1062
1063 -with-* | --with-*)
5556819a 1064 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1065 # Reject names that are not valid shell variable names.
5556819a
AK
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1068 { (exit 1); exit 1; }; }
5556819a
AK
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1071
1072 -without-* | --without-*)
5556819a 1073 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1074 # Reject names that are not valid shell variable names.
5556819a
AK
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1077 { (exit 1); exit 1; }; }
5556819a
AK
1078 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_$ac_package=no ;;
795ca3e5
AK
1080
1081 --x)
1082 # Obsolete; use --with-x.
1083 with_x=yes ;;
1084
1085 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086 | --x-incl | --x-inc | --x-in | --x-i)
1087 ac_prev=x_includes ;;
1088 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1090 x_includes=$ac_optarg ;;
795ca3e5
AK
1091
1092 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094 ac_prev=x_libraries ;;
1095 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1097 x_libraries=$ac_optarg ;;
795ca3e5 1098
5556819a 1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1100Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
795ca3e5
AK
1102 ;;
1103
ad6254c5
AK
1104 *=*)
1105 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
5556819a 1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1109 { (exit 1); exit 1; }; }
7a197a62 1110 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1111 export $ac_envvar ;;
1112
795ca3e5 1113 *)
ad6254c5 1114 # FIXME: should be removed in autoconf 3.0.
5556819a 1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5556819a 1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1119 ;;
1120
1121 esac
1122done
1123
1124if test -n "$ac_prev"; then
ad6254c5 1125 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5556819a 1126 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1127 { (exit 1); exit 1; }; }
795ca3e5 1128fi
795ca3e5 1129
5556819a 1130# Be sure to have absolute directory names.
7a197a62
AK
1131for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
795ca3e5 1135do
7a197a62 1136 eval ac_val=\$$ac_var
ad6254c5 1137 case $ac_val in
7a197a62
AK
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1140 esac
5556819a 1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1142 { (exit 1); exit 1; }; }
795ca3e5
AK
1143done
1144
ad6254c5
AK
1145# There might be people who depend on the old broken behavior: `$host'
1146# used to hold the argument of --host etc.
1147# FIXME: To remove some day.
1148build=$build_alias
1149host=$host_alias
1150target=$target_alias
1151
1152# FIXME: To remove some day.
1153if test "x$host_alias" != x; then
1154 if test "x$build_alias" = x; then
1155 cross_compiling=maybe
5556819a 1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1159 cross_compiling=yes
1160 fi
1161fi
8106cdd5 1162
ad6254c5
AK
1163ac_tool_prefix=
1164test -n "$host_alias" && ac_tool_prefix=$host_alias-
1165
1166test "$silent" = yes && exec 6>/dev/null
795ca3e5 1167
795ca3e5 1168
7a197a62
AK
1169ac_pwd=`pwd` && test -n "$ac_pwd" &&
1170ac_ls_di=`ls -di .` &&
1171ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5556819a 1172 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1173 { (exit 1); exit 1; }; }
1174test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5556819a 1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1176 { (exit 1); exit 1; }; }
1177
1178
795ca3e5
AK
1179# Find the source files, if location was not specified.
1180if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
7a197a62 1182 # Try the directory containing this script, then the parent directory.
5556819a
AK
1183 ac_confdir=`$as_dirname -- "$0" ||
1184$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1188echo X"$0" |
7a197a62
AK
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)[^/].*/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\).*/{
1202 s//\1/
1203 q
1204 }
1205 s/.*/./; q'`
795ca3e5 1206 srcdir=$ac_confdir
7a197a62 1207 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1208 srcdir=..
1209 fi
1210else
1211 ac_srcdir_defaulted=no
1212fi
7a197a62
AK
1213if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5556819a 1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1216 { (exit 1); exit 1; }; }
795ca3e5 1217fi
7a197a62
AK
1218ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219ac_abs_confdir=`(
5556819a 1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1221 { (exit 1); exit 1; }; }
7a197a62
AK
1222 pwd)`
1223# When building in place, set srcdir=.
1224if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 srcdir=.
1226fi
1227# Remove unnecessary trailing slashes from srcdir.
1228# Double slashes in file names in object file debugging info
1229# mess up M-x gdb in Emacs.
1230case $srcdir in
1231*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1232esac
1233for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1238done
ad6254c5
AK
1239
1240#
1241# Report the --help message.
1242#
1243if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1246 cat <<_ACEOF
1247\`configure' configures this package to adapt to many kinds of systems.
1248
1249Usage: $0 [OPTION]... [VAR=VALUE]...
1250
1251To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252VAR=VALUE. See below for descriptions of some of the useful variables.
1253
1254Defaults for the options are specified in brackets.
1255
1256Configuration:
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1266
ad6254c5
AK
1267Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
5556819a 1269 [$ac_default_prefix]
ad6254c5 1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5556819a 1271 [PREFIX]
ad6254c5
AK
1272
1273By default, \`make install' will install all the files in
1274\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276for instance \`--prefix=\$HOME'.
1277
1278For better control, use the options below.
1279
1280Fine tuning of the installation directories:
5556819a
AK
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1300_ACEOF
1301
1302 cat <<\_ACEOF
1303
1304System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 --target=TARGET configure for building compilers for TARGET [HOST]
1308_ACEOF
1309fi
1310
1311if test -n "$ac_init_help"; then
1312
1313 cat <<\_ACEOF
1314
1315Optional Features:
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1318 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1319 device-mapper is missing from the kernel
1b523347 1320 --disable-readline Disable readline support
3d978351 1321 --disable-realtime Disable realtime clock support
ad6254c5 1322 --enable-debug Enable debugging
5556819a 1323 --enable-profiling Gather gcov profiling data
ad6254c5
AK
1324 --disable-devmapper Disable device-mapper interaction
1325 --disable-o_direct Disable O_DIRECT
1326 --enable-cmdlib Build shared command library
1327 --enable-fsadm Enable fsadm
15d91f5a 1328 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1329 --enable-static_link Use this to link the tools to their libraries
1330 statically. Default is dynamic linking
1331 --disable-selinux Disable selinux support
ad6254c5
AK
1332 --enable-nls Enable Native Language Support
1333
1334Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1337 --with-user=USER Set the owner of installed files [USER=root]
1338 --with-group=GROUP Set the group owner of installed files [GROUP=root]
ad6254c5
AK
1339 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1340 TYPE=internal
1341 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1342 TYPE=internal
1343 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1344 TYPE=internal
1345 --with-snapshots=TYPE Snapshot support: internal/shared/none
1346 TYPE=internal
1347 --with-mirrors=TYPE Mirror support: internal/shared/none
1348 TYPE=internal
5c7fc7c4 1349 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1350 TYPE=none
d0191583
JM
1351 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1352 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1353 --with-confdir=DIR Configuration files in DIR /etc
1354 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1355 --with-dmdir=DIR Build against device-mapper source tree in DIR
ad6254c5
AK
1356
1357Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
25fbec5b 1362 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1365 CPP C preprocessor
1366
1367Use these variables to override the choices made by `configure' or to help
1368it to find libraries and programs with nonstandard names/locations.
1369
1370_ACEOF
7a197a62 1371ac_status=$?
ad6254c5
AK
1372fi
1373
1374if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
ad6254c5 1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5556819a 1377 test -d "$ac_dir" || continue
ad6254c5
AK
1378 ac_builddir=.
1379
7a197a62
AK
1380case "$ac_dir" in
1381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382*)
5556819a 1383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1384 # A ".." for each directory in $ac_dir_suffix.
5556819a 1385 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1386 case $ac_top_builddir_sub in
1387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389 esac ;;
1390esac
1391ac_abs_top_builddir=$ac_pwd
1392ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393# for backward compatibility:
1394ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1395
1396case $srcdir in
7a197a62 1397 .) # We are building in place.
ad6254c5 1398 ac_srcdir=.
7a197a62
AK
1399 ac_top_srcdir=$ac_top_builddir_sub
1400 ac_abs_top_srcdir=$ac_pwd ;;
1401 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1402 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1403 ac_top_srcdir=$srcdir
1404 ac_abs_top_srcdir=$srcdir ;;
1405 *) # Relative name.
1406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407 ac_top_srcdir=$ac_top_build_prefix$srcdir
1408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1409esac
7a197a62
AK
1410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411
1412 cd "$ac_dir" || { ac_status=$?; continue; }
1413 # Check for guested configure.
1414 if test -f "$ac_srcdir/configure.gnu"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417 elif test -f "$ac_srcdir/configure"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1420 else
5556819a 1421 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1422 fi || ac_status=$?
1423 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1424 done
1425fi
1426
7a197a62 1427test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1428if $ac_init_version; then
1429 cat <<\_ACEOF
7a197a62 1430configure
5556819a 1431generated by GNU Autoconf 2.61
ad6254c5 1432
7a197a62 1433Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5556819a 14342002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1435This configure script is free software; the Free Software Foundation
1436gives unlimited permission to copy, distribute and modify it.
1437_ACEOF
7a197a62 1438 exit
ad6254c5 1439fi
7a197a62 1440cat >config.log <<_ACEOF
ad6254c5
AK
1441This file contains any messages produced by compilers while
1442running configure, to aid debugging if configure makes a mistake.
1443
1444It was created by $as_me, which was
5556819a 1445generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1446
1447 $ $0 $@
1448
1449_ACEOF
7a197a62 1450exec 5>>config.log
ad6254c5
AK
1451{
1452cat <<_ASUNAME
1453## --------- ##
1454## Platform. ##
1455## --------- ##
1456
1457hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1458uname -m = `(uname -m) 2>/dev/null || echo unknown`
1459uname -r = `(uname -r) 2>/dev/null || echo unknown`
1460uname -s = `(uname -s) 2>/dev/null || echo unknown`
1461uname -v = `(uname -v) 2>/dev/null || echo unknown`
1462
1463/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1464/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1465
1466/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1467/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1468/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1469/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1470/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1471/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1472/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1473
1474_ASUNAME
1475
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
5556819a 1481 echo "PATH: $as_dir"
ad6254c5 1482done
7a197a62 1483IFS=$as_save_IFS
ad6254c5
AK
1484
1485} >&5
1486
1487cat >&5 <<_ACEOF
1488
1489
1490## ----------- ##
1491## Core tests. ##
1492## ----------- ##
1493
1494_ACEOF
1495
1496
1497# Keep a trace of the command line.
1498# Strip out --no-create and --no-recursion so they do not pile up.
1499# Strip out --silent because we don't want to record it for future runs.
1500# Also quote any args containing shell meta-characters.
1501# Make two passes to allow for proper duplicate-argument suppression.
1502ac_configure_args=
1503ac_configure_args0=
1504ac_configure_args1=
ad6254c5
AK
1505ac_must_keep_next=false
1506for ac_pass in 1 2
1507do
1508 for ac_arg
1509 do
1510 case $ac_arg in
1511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1513 | -silent | --silent | --silen | --sile | --sil)
1514 continue ;;
7a197a62 1515 *\'*)
5556819a 1516 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1517 esac
1518 case $ac_pass in
1519 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1520 2)
1521 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1522 if test $ac_must_keep_next = true; then
8a2fc586 1523 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1524 else
8a2fc586
AK
1525 case $ac_arg in
1526 *=* | --config-cache | -C | -disable-* | --disable-* \
1527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1529 | -with-* | --with-* | -without-* | --without-* | --x)
1530 case "$ac_configure_args0 " in
1531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1532 esac
1533 ;;
1534 -* ) ac_must_keep_next=true ;;
1535 esac
ad6254c5 1536 fi
7a197a62 1537 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1538 ;;
1539 esac
1540 done
1541done
1542$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1543$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1544
1545# When interrupted or exit'd, cleanup temporary files, and complete
1546# config.log. We remove comments because anyway the quotes in there
1547# would cause problems or look ugly.
7a197a62
AK
1548# WARNING: Use '\'' to represent an apostrophe within the trap.
1549# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1550trap 'exit_status=$?
1551 # Save into config.log some information that might help in debugging.
1552 {
1553 echo
1554
1555 cat <<\_ASBOX
1556## ---------------- ##
1557## Cache variables. ##
1558## ---------------- ##
1559_ASBOX
1560 echo
1561 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1562(
1563 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1564 eval ac_val=\$$ac_var
1565 case $ac_val in #(
1566 *${as_nl}*)
1567 case $ac_var in #(
5556819a
AK
1568 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1569echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1570 esac
1571 case $ac_var in #(
1572 _ | IFS | as_nl) ;; #(
1573 *) $as_unset $ac_var ;;
1574 esac ;;
1575 esac
1576 done
ad6254c5 1577 (set) 2>&1 |
7a197a62
AK
1578 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1579 *${as_nl}ac_space=\ *)
ad6254c5 1580 sed -n \
7a197a62
AK
1581 "s/'\''/'\''\\\\'\'''\''/g;
1582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1583 ;; #(
ad6254c5 1584 *)
7a197a62 1585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1586 ;;
7a197a62
AK
1587 esac |
1588 sort
1589)
ad6254c5
AK
1590 echo
1591
1592 cat <<\_ASBOX
1593## ----------------- ##
1594## Output variables. ##
1595## ----------------- ##
1596_ASBOX
1597 echo
1598 for ac_var in $ac_subst_vars
1599 do
7a197a62
AK
1600 eval ac_val=\$$ac_var
1601 case $ac_val in
5556819a 1602 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1603 esac
5556819a 1604 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1605 done | sort
1606 echo
1607
1608 if test -n "$ac_subst_files"; then
1609 cat <<\_ASBOX
7a197a62
AK
1610## ------------------- ##
1611## File substitutions. ##
1612## ------------------- ##
ad6254c5
AK
1613_ASBOX
1614 echo
1615 for ac_var in $ac_subst_files
1616 do
7a197a62
AK
1617 eval ac_val=\$$ac_var
1618 case $ac_val in
5556819a 1619 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1620 esac
5556819a 1621 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1622 done | sort
1623 echo
1624 fi
1625
1626 if test -s confdefs.h; then
1627 cat <<\_ASBOX
1628## ----------- ##
1629## confdefs.h. ##
1630## ----------- ##
1631_ASBOX
1632 echo
7a197a62 1633 cat confdefs.h
ad6254c5
AK
1634 echo
1635 fi
1636 test "$ac_signal" != 0 &&
5556819a
AK
1637 echo "$as_me: caught signal $ac_signal"
1638 echo "$as_me: exit $exit_status"
ad6254c5 1639 } >&5
7a197a62
AK
1640 rm -f core *.core core.conftest.* &&
1641 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1642 exit $exit_status
7a197a62 1643' 0
ad6254c5
AK
1644for ac_signal in 1 2 13 15; do
1645 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1646done
1647ac_signal=0
1648
1649# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1650rm -f -r conftest* confdefs.h
ad6254c5
AK
1651
1652# Predefined preprocessor variables.
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_NAME "$PACKAGE_NAME"
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1661_ACEOF
1662
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_VERSION "$PACKAGE_VERSION"
1666_ACEOF
8106cdd5 1667
ad6254c5
AK
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_STRING "$PACKAGE_STRING"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1676_ACEOF
1677
1678
1679# Let the site file select an alternate cache file if it wants to.
5556819a 1680# Prefer explicitly selected file to automatically selected ones.
7a197a62 1681if test -n "$CONFIG_SITE"; then
5556819a 1682 set x "$CONFIG_SITE"
7a197a62 1683elif test "x$prefix" != xNONE; then
5556819a 1684 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7a197a62 1685else
5556819a
AK
1686 set x "$ac_default_prefix/share/config.site" \
1687 "$ac_default_prefix/etc/config.site"
795ca3e5 1688fi
5556819a
AK
1689shift
1690for ac_site_file
7a197a62 1691do
795ca3e5 1692 if test -r "$ac_site_file"; then
5556819a
AK
1693 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1694echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1695 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1696 . "$ac_site_file"
1697 fi
1698done
1699
1700if test -r "$cache_file"; then
ad6254c5
AK
1701 # Some versions of bash will fail to source /dev/null (special
1702 # files actually), so we avoid doing that.
1703 if test -f "$cache_file"; then
5556819a
AK
1704 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1705echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1706 case $cache_file in
7a197a62
AK
1707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1708 *) . "./$cache_file";;
ad6254c5
AK
1709 esac
1710 fi
795ca3e5 1711else
5556819a
AK
1712 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1713echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1714 >$cache_file
1715fi
1716
1717# Check that the precious variables saved in the cache have kept the same
1718# value.
1719ac_cache_corrupted=false
7a197a62 1720for ac_var in $ac_precious_vars; do
ad6254c5
AK
1721 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1722 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1723 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1724 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1725 case $ac_old_set,$ac_new_set in
1726 set,)
5556819a
AK
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1728echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1729 ac_cache_corrupted=: ;;
1730 ,set)
5556819a
AK
1731 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1732echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1733 ac_cache_corrupted=: ;;
1734 ,);;
1735 *)
1736 if test "x$ac_old_val" != "x$ac_new_val"; then
5556819a
AK
1737 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1738echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1739 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1740echo "$as_me: former value: $ac_old_val" >&2;}
1741 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1742echo "$as_me: current value: $ac_new_val" >&2;}
1743 ac_cache_corrupted=:
ad6254c5
AK
1744 fi;;
1745 esac
1746 # Pass precious variables to config.status.
1747 if test "$ac_new_set" = set; then
1748 case $ac_new_val in
5556819a 1749 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1750 *) ac_arg=$ac_var=$ac_new_val ;;
1751 esac
1752 case " $ac_configure_args " in
1753 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1754 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 esac
1756 fi
1757done
1758if $ac_cache_corrupted; then
5556819a
AK
1759 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1760echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1761 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1762echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1763 { (exit 1); exit 1; }; }
795ca3e5
AK
1764fi
1765
ad6254c5
AK
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
7a197a62
AK
1782ac_ext=c
1783ac_cpp='$CPP $CPPFLAGS'
1784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1787
795ca3e5
AK
1788
1789
7a197a62 1790ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1791
1792
80992638 1793################################################################################
795ca3e5 1794ac_aux_dir=
7a197a62
AK
1795for ac_dir in autoconf "$srcdir"/autoconf; do
1796 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1797 ac_aux_dir=$ac_dir
1798 ac_install_sh="$ac_aux_dir/install-sh -c"
1799 break
7a197a62 1800 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1801 ac_aux_dir=$ac_dir
1802 ac_install_sh="$ac_aux_dir/install.sh -c"
1803 break
7a197a62 1804 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1805 ac_aux_dir=$ac_dir
1806 ac_install_sh="$ac_aux_dir/shtool install -c"
1807 break
795ca3e5
AK
1808 fi
1809done
1810if test -z "$ac_aux_dir"; then
5556819a
AK
1811 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1812echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1813 { (exit 1); exit 1; }; }
795ca3e5 1814fi
7a197a62
AK
1815
1816# These three variables are undocumented and unsupported,
1817# and are intended to be withdrawn in a future Autoconf release.
1818# They can cause serious problems if a builder's source tree is in a directory
1819# whose full name contains unusual characters.
1820ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1821ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1822ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1823
8ce0cbda
AK
1824
1825
ad6254c5 1826################################################################################
8ce0cbda 1827# Make sure we can run config.sub.
7a197a62 1828$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5556819a
AK
1829 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1830echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1831 { (exit 1); exit 1; }; }
1832
5556819a
AK
1833{ echo "$as_me:$LINENO: checking build system type" >&5
1834echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1835if test "${ac_cv_build+set}" = set; then
5556819a 1836 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1837else
7a197a62
AK
1838 ac_build_alias=$build_alias
1839test "x$ac_build_alias" = x &&
1840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1841test "x$ac_build_alias" = x &&
5556819a
AK
1842 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1843echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1844 { (exit 1); exit 1; }; }
7a197a62 1845ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5556819a
AK
1846 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1847echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1848 { (exit 1); exit 1; }; }
1849
1850fi
5556819a
AK
1851{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1852echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1853case $ac_cv_build in
1854*-*-*) ;;
5556819a
AK
1855*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1856echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1857 { (exit 1); exit 1; }; };;
1858esac
ad6254c5 1859build=$ac_cv_build
7a197a62
AK
1860ac_save_IFS=$IFS; IFS='-'
1861set x $ac_cv_build
1862shift
1863build_cpu=$1
1864build_vendor=$2
1865shift; shift
1866# Remember, the first character of IFS is used to create $*,
1867# except with old shells:
1868build_os=$*
1869IFS=$ac_save_IFS
1870case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1871
1872
5556819a
AK
1873{ echo "$as_me:$LINENO: checking host system type" >&5
1874echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1875if test "${ac_cv_host+set}" = set; then
5556819a 1876 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1877else
7a197a62
AK
1878 if test "x$host_alias" = x; then
1879 ac_cv_host=$ac_cv_build
1880else
1881 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5556819a
AK
1882 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1883echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1884 { (exit 1); exit 1; }; }
7a197a62 1885fi
ad6254c5
AK
1886
1887fi
5556819a
AK
1888{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1889echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1890case $ac_cv_host in
1891*-*-*) ;;
5556819a
AK
1892*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1893echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1894 { (exit 1); exit 1; }; };;
1895esac
ad6254c5 1896host=$ac_cv_host
7a197a62
AK
1897ac_save_IFS=$IFS; IFS='-'
1898set x $ac_cv_host
1899shift
1900host_cpu=$1
1901host_vendor=$2
1902shift; shift
1903# Remember, the first character of IFS is used to create $*,
1904# except with old shells:
1905host_os=$*
1906IFS=$ac_save_IFS
1907case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1908
1909
5556819a
AK
1910{ echo "$as_me:$LINENO: checking target system type" >&5
1911echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1912if test "${ac_cv_target+set}" = set; then
5556819a 1913 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1914else
7a197a62
AK
1915 if test "x$target_alias" = x; then
1916 ac_cv_target=$ac_cv_host
1917else
1918 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5556819a
AK
1919 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1920echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1921 { (exit 1); exit 1; }; }
7a197a62 1922fi
8ce0cbda 1923
ad6254c5 1924fi
5556819a
AK
1925{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1926echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1927case $ac_cv_target in
1928*-*-*) ;;
5556819a
AK
1929*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1930echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1931 { (exit 1); exit 1; }; };;
1932esac
ad6254c5 1933target=$ac_cv_target
7a197a62
AK
1934ac_save_IFS=$IFS; IFS='-'
1935set x $ac_cv_target
1936shift
1937target_cpu=$1
1938target_vendor=$2
1939shift; shift
1940# Remember, the first character of IFS is used to create $*,
1941# except with old shells:
1942target_os=$*
1943IFS=$ac_save_IFS
1944case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1945
8ce0cbda 1946
ad6254c5
AK
1947# The aliases save the names the user supplied, while $host etc.
1948# will get canonicalized.
1949test -n "$target_alias" &&
8ce0cbda
AK
1950 test "$program_prefix$program_suffix$program_transform_name" = \
1951 NONENONEs,x,x, &&
1952 program_prefix=${target_alias}-
1953
8ce0cbda
AK
1954case "$host_os" in
1955 linux*)
8ce0cbda
AK
1956 COPTIMISE_FLAG="-O2"
1957 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1958 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1959 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1960 LDDEPS="$LDDEPS .export.sym"
1961 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1962 LIB_SUFFIX=so
8ce0cbda
AK
1963 DEVMAPPER=yes
1964 ODIRECT=yes
d0191583 1965 DM_IOCTLS=yes
8ce0cbda 1966 SELINUX=yes
8b1a3214 1967 REALTIME=yes
8ce0cbda 1968 CLUSTER=internal
d0191583
JM
1969 FSADM=no
1970 ;;
8ce0cbda
AK
1971 darwin*)
1972 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1973 COPTIMISE_FLAG="-O2"
1974 CLDFLAGS="$CLDFLAGS"
1975 CLDWHOLEARCHIVE="-all_load"
1976 CLDNOWHOLEARCHIVE=
d0191583 1977 LIB_SUFFIX=dylib
a653923f 1978 DEVMAPPER=yes
8ce0cbda 1979 ODIRECT=no
d0191583 1980 DM_IOCTLS=no
8ce0cbda 1981 SELINUX=no
8b1a3214 1982 REALTIME=no
8ce0cbda 1983 CLUSTER=none
d0191583
JM
1984 FSADM=no
1985 ;;
8ce0cbda
AK
1986esac
1987
80992638 1988################################################################################
ad6254c5 1989for ac_prog in gawk mawk nawk awk
795ca3e5 1990do
ad6254c5 1991 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1992set dummy $ac_prog; ac_word=$2
5556819a
AK
1993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 1995if test "${ac_cv_prog_AWK+set}" = set; then
5556819a 1996 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1997else
1998 if test -n "$AWK"; then
1999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2000else
ad6254c5
AK
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2008 ac_cv_prog_AWK="$ac_prog"
5556819a 2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2010 break 2
2011 fi
2012done
2013done
7a197a62 2014IFS=$as_save_IFS
ad6254c5 2015
795ca3e5
AK
2016fi
2017fi
ad6254c5 2018AWK=$ac_cv_prog_AWK
795ca3e5 2019if test -n "$AWK"; then
5556819a
AK
2020 { echo "$as_me:$LINENO: result: $AWK" >&5
2021echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2022else
5556819a
AK
2023 { echo "$as_me:$LINENO: result: no" >&5
2024echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2025fi
2026
7a197a62 2027
ad6254c5
AK
2028 test -n "$AWK" && break
2029done
2030
2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2038set dummy ${ac_tool_prefix}gcc; ac_word=$2
5556819a
AK
2039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2041if test "${ac_cv_prog_CC+set}" = set; then
5556819a 2042 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2043else
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC="$CC" # Let the user override the test.
2046else
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5556819a 2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2056 break 2
2057 fi
2058done
8106cdd5 2059done
7a197a62 2060IFS=$as_save_IFS
8106cdd5 2061
ad6254c5
AK
2062fi
2063fi
2064CC=$ac_cv_prog_CC
2065if test -n "$CC"; then
5556819a
AK
2066 { echo "$as_me:$LINENO: result: $CC" >&5
2067echo "${ECHO_T}$CC" >&6; }
ad6254c5 2068else
5556819a
AK
2069 { echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2071fi
2072
7a197a62 2073
ad6254c5
AK
2074fi
2075if test -z "$ac_cv_prog_CC"; then
2076 ac_ct_CC=$CC
2077 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2078set dummy gcc; ac_word=$2
5556819a
AK
2079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2081if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5556819a 2082 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2083else
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086else
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2094 ac_cv_prog_ac_ct_CC="gcc"
5556819a 2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2096 break 2
2097 fi
2098done
2099done
7a197a62 2100IFS=$as_save_IFS
ad6254c5
AK
2101
2102fi
2103fi
2104ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105if test -n "$ac_ct_CC"; then
5556819a
AK
2106 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2107echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2108else
5556819a
AK
2109 { echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2111fi
2112
7a197a62
AK
2113 if test "x$ac_ct_CC" = x; then
2114 CC=""
2115 else
2116 case $cross_compiling:$ac_tool_warned in
2117yes:)
5556819a 2118{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2119whose name does not start with the host triplet. If you think this
2120configuration is useful to you, please write to autoconf@gnu.org." >&5
5556819a 2121echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2122whose name does not start with the host triplet. If you think this
2123configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2124ac_tool_warned=yes ;;
2125esac
2126 CC=$ac_ct_CC
2127 fi
ad6254c5
AK
2128else
2129 CC="$ac_cv_prog_CC"
2130fi
2131
2132if test -z "$CC"; then
7a197a62
AK
2133 if test -n "$ac_tool_prefix"; then
2134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2135set dummy ${ac_tool_prefix}cc; ac_word=$2
5556819a
AK
2136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2138if test "${ac_cv_prog_CC+set}" = set; then
5556819a 2139 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2140else
2141 if test -n "$CC"; then
2142 ac_cv_prog_CC="$CC" # Let the user override the test.
2143else
ad6254c5
AK
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2151 ac_cv_prog_CC="${ac_tool_prefix}cc"
5556819a 2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2153 break 2
2154 fi
2155done
2156done
7a197a62 2157IFS=$as_save_IFS
ad6254c5 2158
8106cdd5
AK
2159fi
2160fi
ad6254c5 2161CC=$ac_cv_prog_CC
8106cdd5 2162if test -n "$CC"; then
5556819a
AK
2163 { echo "$as_me:$LINENO: result: $CC" >&5
2164echo "${ECHO_T}$CC" >&6; }
ad6254c5 2165else
5556819a
AK
2166 { echo "$as_me:$LINENO: result: no" >&5
2167echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2168fi
2169
8106cdd5 2170
7a197a62 2171 fi
ad6254c5 2172fi
795ca3e5
AK
2173if test -z "$CC"; then
2174 # Extract the first word of "cc", so it can be a program name with args.
2175set dummy cc; ac_word=$2
5556819a
AK
2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2178if test "${ac_cv_prog_CC+set}" = set; then
5556819a 2179 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2180else
2181 if test -n "$CC"; then
2182 ac_cv_prog_CC="$CC" # Let the user override the test.
2183else
795ca3e5 2184 ac_prog_rejected=no
ad6254c5
AK
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2193 ac_prog_rejected=yes
2194 continue
2195 fi
2196 ac_cv_prog_CC="cc"
5556819a 2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2198 break 2
2199 fi
2200done
2201done
7a197a62 2202IFS=$as_save_IFS
ad6254c5 2203
795ca3e5
AK
2204if test $ac_prog_rejected = yes; then
2205 # We found a bogon in the path, so make sure we never use it.
2206 set dummy $ac_cv_prog_CC
2207 shift
ad6254c5 2208 if test $# != 0; then
795ca3e5
AK
2209 # We chose a different compiler from the bogus one.
2210 # However, it has the same basename, so the bogon will be chosen
2211 # first if we set CC to just the basename; use the full file name.
2212 shift
ad6254c5 2213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2214 fi
2215fi
2216fi
2217fi
ad6254c5 2218CC=$ac_cv_prog_CC
795ca3e5 2219if test -n "$CC"; then
5556819a
AK
2220 { echo "$as_me:$LINENO: result: $CC" >&5
2221echo "${ECHO_T}$CC" >&6; }
795ca3e5 2222else
5556819a
AK
2223 { echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2225fi
2226
7a197a62 2227
ad6254c5
AK
2228fi
2229if test -z "$CC"; then
2230 if test -n "$ac_tool_prefix"; then
7a197a62 2231 for ac_prog in cl.exe
ad6254c5
AK
2232 do
2233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556819a
AK
2235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2237if test "${ac_cv_prog_CC+set}" = set; then
5556819a 2238 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2239else
2240 if test -n "$CC"; then
2241 ac_cv_prog_CC="$CC" # Let the user override the test.
2242else
ad6254c5
AK
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2250 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5556819a 2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2252 break 2
2253 fi
2254done
2255done
7a197a62 2256IFS=$as_save_IFS
ad6254c5 2257
795ca3e5
AK
2258fi
2259fi
ad6254c5 2260CC=$ac_cv_prog_CC
795ca3e5 2261if test -n "$CC"; then
5556819a
AK
2262 { echo "$as_me:$LINENO: result: $CC" >&5
2263echo "${ECHO_T}$CC" >&6; }
795ca3e5 2264else
5556819a
AK
2265 { echo "$as_me:$LINENO: result: no" >&5
2266echo "${ECHO_T}no" >&6; }
795ca3e5 2267fi
ad6254c5 2268
7a197a62 2269
ad6254c5
AK
2270 test -n "$CC" && break
2271 done
2272fi
2273if test -z "$CC"; then
2274 ac_ct_CC=$CC
7a197a62 2275 for ac_prog in cl.exe
ad6254c5
AK
2276do
2277 # Extract the first word of "$ac_prog", so it can be a program name with args.
2278set dummy $ac_prog; ac_word=$2
5556819a
AK
2279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5556819a 2282 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2283else
2284 if test -n "$ac_ct_CC"; then
2285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2294 ac_cv_prog_ac_ct_CC="$ac_prog"
5556819a 2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2296 break 2
795ca3e5 2297 fi
ad6254c5
AK
2298done
2299done
7a197a62 2300IFS=$as_save_IFS
ad6254c5
AK
2301
2302fi
2303fi
2304ac_ct_CC=$ac_cv_prog_ac_ct_CC
2305if test -n "$ac_ct_CC"; then
5556819a
AK
2306 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2307echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2308else
5556819a
AK
2309 { echo "$as_me:$LINENO: result: no" >&5
2310echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2311fi
2312
7a197a62 2313
ad6254c5
AK
2314 test -n "$ac_ct_CC" && break
2315done
795ca3e5 2316
7a197a62
AK
2317 if test "x$ac_ct_CC" = x; then
2318 CC=""
2319 else
2320 case $cross_compiling:$ac_tool_warned in
2321yes:)
5556819a 2322{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2323whose name does not start with the host triplet. If you think this
2324configuration is useful to you, please write to autoconf@gnu.org." >&5
5556819a 2325echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2326whose name does not start with the host triplet. If you think this
2327configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2328ac_tool_warned=yes ;;
2329esac
2330 CC=$ac_ct_CC
2331 fi
ad6254c5
AK
2332fi
2333
2334fi
2335
2336
5556819a 2337test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2338See \`config.log' for more details." >&5
5556819a 2339echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2340See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2342
2343# Provide some information about the compiler.
5556819a
AK
2344echo "$as_me:$LINENO: checking for C compiler version" >&5
2345ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2346{ (ac_try="$ac_compiler --version >&5"
2347case "(($ac_try" in
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2350esac
5556819a 2351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2352 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2353 ac_status=$?
5556819a 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2355 (exit $ac_status); }
7a197a62
AK
2356{ (ac_try="$ac_compiler -v >&5"
2357case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360esac
5556819a 2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2362 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2363 ac_status=$?
5556819a 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2365 (exit $ac_status); }
7a197a62
AK
2366{ (ac_try="$ac_compiler -V >&5"
2367case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370esac
5556819a 2371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2372 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2373 ac_status=$?
5556819a 2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2375 (exit $ac_status); }
2376
2377cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383
2384int
2385main ()
2386{
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392ac_clean_files_save=$ac_clean_files
5556819a 2393ac_clean_files="$ac_clean_files a.out a.exe b.out"
ad6254c5
AK
2394# Try to create an executable without -o first, disregard a.out.
2395# It will help us diagnose broken compilers, and finding out an intuition
2396# of exeext.
5556819a
AK
2397{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2398echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2399ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400#
2401# List of possible output files, starting from the most likely.
2402# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2403# only as a last resort. b.out is created by i960 compilers.
2404ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2405#
2406# The IRIX 6 linker writes into existing files which may not be
2407# executable, retaining their permissions. Remove them first so a
2408# subsequent execution test works.
7a197a62
AK
2409ac_rmfiles=
2410for ac_file in $ac_files
2411do
2412 case $ac_file in
5556819a 2413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7a197a62
AK
2414 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2415 esac
2416done
2417rm -f $ac_rmfiles
2418
2419if { (ac_try="$ac_link_default"
2420case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423esac
5556819a 2424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2425 (eval "$ac_link_default") 2>&5
ad6254c5 2426 ac_status=$?
5556819a 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2428 (exit $ac_status); }; then
7a197a62
AK
2429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2430# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2431# in a Makefile. We should not override ac_cv_exeext if it was cached,
2432# so that the user can short-circuit this test for compilers unknown to
2433# Autoconf.
25fbec5b 2434for ac_file in $ac_files ''
ad6254c5
AK
2435do
2436 test -f "$ac_file" || continue
2437 case $ac_file in
5556819a 2438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2439 ;;
ad6254c5 2440 [ab].out )
8a2fc586
AK
2441 # We found the default executable, but exeext='' is most
2442 # certainly right.
2443 break;;
ad6254c5 2444 *.* )
7a197a62
AK
2445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2446 then :; else
2447 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448 fi
2449 # We set ac_cv_exeext here because the later test for it is not
2450 # safe: cross compilers may not add the suffix if given an `-o'
2451 # argument, so we may need to know it at that point already.
2452 # Even if this section looks crufty: it has the advantage of
2453 # actually working.
8a2fc586 2454 break;;
ad6254c5 2455 * )
8a2fc586 2456 break;;
ad6254c5
AK
2457 esac
2458done
7a197a62
AK
2459test "$ac_cv_exeext" = no && ac_cv_exeext=
2460
ad6254c5 2461else
25fbec5b
AK
2462 ac_file=''
2463fi
2464
5556819a
AK
2465{ echo "$as_me:$LINENO: result: $ac_file" >&5
2466echo "${ECHO_T}$ac_file" >&6; }
25fbec5b 2467if test -z "$ac_file"; then
5556819a 2468 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
5556819a 2471{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2472See \`config.log' for more details." >&5
5556819a 2473echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2474See \`config.log' for more details." >&2;}
2475 { (exit 77); exit 77; }; }
2476fi
2477
2478ac_exeext=$ac_cv_exeext
ad6254c5 2479
7a197a62 2480# Check that the compiler produces executables we can run. If not, either
ad6254c5 2481# the compiler is broken, or we cross compile.
5556819a
AK
2482{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2483echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2484# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2485# If not cross compiling, check that we can run a simple program.
2486if test "$cross_compiling" != yes; then
2487 if { ac_try='./$ac_file'
7a197a62
AK
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
5556819a 2492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2493 (eval "$ac_try") 2>&5
ad6254c5 2494 ac_status=$?
5556819a 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2496 (exit $ac_status); }; }; then
2497 cross_compiling=no
795ca3e5 2498 else
ad6254c5
AK
2499 if test "$cross_compiling" = maybe; then
2500 cross_compiling=yes
2501 else
5556819a 2502 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2503If you meant to cross compile, use \`--host'.
2504See \`config.log' for more details." >&5
5556819a 2505echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2506If you meant to cross compile, use \`--host'.
2507See \`config.log' for more details." >&2;}
2508 { (exit 1); exit 1; }; }
2509 fi
795ca3e5 2510 fi
80992638 2511fi
5556819a
AK
2512{ echo "$as_me:$LINENO: result: yes" >&5
2513echo "${ECHO_T}yes" >&6; }
ad6254c5 2514
5556819a 2515rm -f a.out a.exe conftest$ac_cv_exeext b.out
ad6254c5 2516ac_clean_files=$ac_clean_files_save
7a197a62 2517# Check that the compiler produces executables we can run. If not, either
ad6254c5 2518# the compiler is broken, or we cross compile.
5556819a
AK
2519{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2520echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2521{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2522echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2523
5556819a
AK
2524{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2525echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2526if { (ac_try="$ac_link"
2527case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
5556819a 2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2532 (eval "$ac_link") 2>&5
ad6254c5 2533 ac_status=$?
5556819a 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2535 (exit $ac_status); }; then
2536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2537# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2538# work properly (i.e., refer to `conftest.exe'), while it won't with
2539# `rm'.
2540for ac_file in conftest.exe conftest conftest.*; do
2541 test -f "$ac_file" || continue
2542 case $ac_file in
5556819a 2543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2545 break;;
ad6254c5
AK
2546 * ) break;;
2547 esac
2548done
80992638 2549else
5556819a 2550 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2551See \`config.log' for more details." >&5
5556819a 2552echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2553See \`config.log' for more details." >&2;}
2554 { (exit 1); exit 1; }; }
2555fi
2556
2557rm -f conftest$ac_cv_exeext
5556819a
AK
2558{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2559echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2560
2561rm -f conftest.$ac_ext
2562EXEEXT=$ac_cv_exeext
2563ac_exeext=$EXEEXT
5556819a
AK
2564{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2565echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2566if test "${ac_cv_objext+set}" = set; then
5556819a 2567 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2568else
ad6254c5 2569 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2570/* confdefs.h. */
2571_ACEOF
2572cat confdefs.h >>conftest.$ac_ext
2573cat >>conftest.$ac_ext <<_ACEOF
2574/* end confdefs.h. */
2575
2576int
2577main ()
2578{
2579
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584rm -f conftest.o conftest.obj
7a197a62
AK
2585if { (ac_try="$ac_compile"
2586case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589esac
5556819a 2590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2591 (eval "$ac_compile") 2>&5
ad6254c5 2592 ac_status=$?
5556819a 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2594 (exit $ac_status); }; then
7a197a62
AK
2595 for ac_file in conftest.o conftest.obj conftest.*; do
2596 test -f "$ac_file" || continue;
ad6254c5 2597 case $ac_file in
5556819a 2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2600 break;;
2601 esac
2602done
2603else
5556819a 2604 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
5556819a 2607{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2608See \`config.log' for more details." >&5
5556819a 2609echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2610See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2612fi
2613
2614rm -f conftest.$ac_cv_objext conftest.$ac_ext
2615fi
5556819a
AK
2616{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2617echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2618OBJEXT=$ac_cv_objext
2619ac_objext=$OBJEXT
5556819a
AK
2620{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2621echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2622if test "${ac_cv_c_compiler_gnu+set}" = set; then
5556819a 2623 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2624else
2625 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2626/* confdefs.h. */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h. */
2631
2632int
2633main ()
2634{
2635#ifndef __GNUC__
2636 choke me
2637#endif
80992638 2638
ad6254c5
AK
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643rm -f conftest.$ac_objext
7a197a62
AK
2644if { (ac_try="$ac_compile"
2645case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648esac
5556819a 2649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2650 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2651 ac_status=$?
8a2fc586
AK
2652 grep -v '^ *+' conftest.er1 >conftest.err
2653 rm -f conftest.er1
2654 cat conftest.err >&5
5556819a 2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2656 (exit $ac_status); } && {
2657 test -z "$ac_c_werror_flag" ||
2658 test ! -s conftest.err
2659 } && test -s conftest.$ac_objext; then
ad6254c5 2660 ac_compiler_gnu=yes
80992638 2661else
5556819a 2662 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
7a197a62 2665 ac_compiler_gnu=no
8106cdd5 2666fi
7a197a62
AK
2667
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2669ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2670
ad6254c5 2671fi
5556819a
AK
2672{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2673echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2674GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2675ac_test_CFLAGS=${CFLAGS+set}
2676ac_save_CFLAGS=$CFLAGS
5556819a
AK
2677{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2678echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2679if test "${ac_cv_prog_cc_g+set}" = set; then
5556819a 2680 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2681else
7a197a62
AK
2682 ac_save_c_werror_flag=$ac_c_werror_flag
2683 ac_c_werror_flag=yes
2684 ac_cv_prog_cc_g=no
2685 CFLAGS="-g"
2686 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2687/* confdefs.h. */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h. */
2692
2693int
2694main ()
2695{
2696
2697 ;
2698 return 0;
2699}
2700_ACEOF
2701rm -f conftest.$ac_objext
7a197a62
AK
2702if { (ac_try="$ac_compile"
2703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
5556819a 2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2708 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2709 ac_status=$?
8a2fc586
AK
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
5556819a 2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2714 (exit $ac_status); } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest.$ac_objext; then
7a197a62
AK
2718 ac_cv_prog_cc_g=yes
2719else
5556819a 2720 echo "$as_me: failed program was:" >&5
7a197a62
AK
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 CFLAGS=""
2724 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730
2731int
2732main ()
2733{
2734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext
2740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
5556819a 2745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2746 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2747 ac_status=$?
7a197a62
AK
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
5556819a 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2752 (exit $ac_status); } && {
2753 test -z "$ac_c_werror_flag" ||
2754 test ! -s conftest.err
2755 } && test -s conftest.$ac_objext; then
7a197a62
AK
2756 :
2757else
5556819a 2758 echo "$as_me: failed program was:" >&5
7a197a62
AK
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 ac_c_werror_flag=$ac_save_c_werror_flag
2762 CFLAGS="-g"
2763 cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778rm -f conftest.$ac_objext
2779if { (ac_try="$ac_compile"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
5556819a 2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2785 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2786 ac_status=$?
7a197a62
AK
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
5556819a 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2791 (exit $ac_status); } && {
2792 test -z "$ac_c_werror_flag" ||
2793 test ! -s conftest.err
2794 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2795 ac_cv_prog_cc_g=yes
2796else
5556819a 2797 echo "$as_me: failed program was:" >&5
ad6254c5 2798sed 's/^/| /' conftest.$ac_ext >&5
80992638 2799
7a197a62
AK
2800
2801fi
2802
2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804fi
2805
2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2807fi
7a197a62
AK
2808
2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2811fi
5556819a
AK
2812{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2813echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2814if test "$ac_test_CFLAGS" = set; then
ad6254c5 2815 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2816elif test $ac_cv_prog_cc_g = yes; then
2817 if test "$GCC" = yes; then
2818 CFLAGS="-g -O2"
2819 else
2820 CFLAGS="-g"
2821 fi
2822else
2823 if test "$GCC" = yes; then
2824 CFLAGS="-O2"
2825 else
2826 CFLAGS=
2827 fi
2828fi
5556819a
AK
2829{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2830echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2831if test "${ac_cv_prog_cc_c89+set}" = set; then
5556819a 2832 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2833else
7a197a62 2834 ac_cv_prog_cc_c89=no
ad6254c5
AK
2835ac_save_CC=$CC
2836cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2837/* confdefs.h. */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h. */
2842#include <stdarg.h>
2843#include <stdio.h>
2844#include <sys/types.h>
2845#include <sys/stat.h>
2846/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2847struct buf { int x; };
2848FILE * (*rcsopen) (struct buf *, struct stat *, int);
2849static char *e (p, i)
2850 char **p;
2851 int i;
2852{
2853 return p[i];
2854}
2855static char *f (char * (*g) (char **, int), char **p, ...)
2856{
2857 char *s;
2858 va_list v;
2859 va_start (v,p);
2860 s = g (p, va_arg (v,int));
2861 va_end (v);
2862 return s;
2863}
8a2fc586
AK
2864
2865/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2866 function prototypes and stuff, but not '\xHH' hex character constants.
2867 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2868 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2870 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2871 that's true only with -std. */
8a2fc586
AK
2872int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2873
7a197a62
AK
2874/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2875 inside strings and character constants. */
2876#define FOO(x) 'x'
2877int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2878
ad6254c5
AK
2879int test (int i, double x);
2880struct s1 {int (*f) (int a);};
2881struct s2 {int (*f) (double a);};
2882int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883int argc;
2884char **argv;
2885int
2886main ()
2887{
2888return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 ;
2890 return 0;
2891}
2892_ACEOF
7a197a62
AK
2893for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2895do
2896 CC="$ac_save_CC $ac_arg"
2897 rm -f conftest.$ac_objext
7a197a62
AK
2898if { (ac_try="$ac_compile"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
5556819a 2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2904 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2905 ac_status=$?
8a2fc586
AK
2906 grep -v '^ *+' conftest.er1 >conftest.err
2907 rm -f conftest.er1
2908 cat conftest.err >&5
5556819a 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2910 (exit $ac_status); } && {
2911 test -z "$ac_c_werror_flag" ||
2912 test ! -s conftest.err
2913 } && test -s conftest.$ac_objext; then
7a197a62 2914 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 2915else
5556819a 2916 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
7a197a62 2919
ad6254c5 2920fi
7a197a62
AK
2921
2922rm -f core conftest.err conftest.$ac_objext
2923 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 2924done
7a197a62 2925rm -f conftest.$ac_ext
ad6254c5
AK
2926CC=$ac_save_CC
2927
2928fi
7a197a62
AK
2929# AC_CACHE_VAL
2930case "x$ac_cv_prog_cc_c89" in
2931 x)
5556819a
AK
2932 { echo "$as_me:$LINENO: result: none needed" >&5
2933echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 2934 xno)
5556819a
AK
2935 { echo "$as_me:$LINENO: result: unsupported" >&5
2936echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 2937 *)
7a197a62 2938 CC="$CC $ac_cv_prog_cc_c89"
5556819a
AK
2939 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2940echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
2941esac
2942
ad6254c5 2943
ad6254c5
AK
2944ac_ext=c
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 2949
d0191583
JM
2950
2951
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556819a
AK
2957{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2958echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d0191583
JM
2959# On Suns, sometimes $CPP names a directory.
2960if test -n "$CPP" && test -d "$CPP"; then
2961 CPP=
2962fi
2963if test -z "$CPP"; then
2964 if test "${ac_cv_prog_CPP+set}" = set; then
5556819a 2965 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2966else
d0191583
JM
2967 # Double quotes because CPP needs to be expanded
2968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2969 do
2970 ac_preproc_ok=false
2971for ac_c_preproc_warn_flag in '' yes
ad6254c5 2972do
d0191583
JM
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h. */
2985#ifdef __STDC__
2986# include <limits.h>
2987#else
2988# include <assert.h>
2989#endif
2990 Syntax error
2991_ACEOF
2992if { (ac_try="$ac_cpp conftest.$ac_ext"
2993case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
ad6254c5 2996esac
5556819a 2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
2998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
5556819a 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3004 (exit $ac_status); } >/dev/null && {
3005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3006 test ! -s conftest.err
3007 }; then
3008 :
3009else
5556819a 3010 echo "$as_me: failed program was:" >&5
d0191583 3011sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3012
d0191583
JM
3013 # Broken: fails on valid input.
3014continue
795ca3e5 3015fi
795ca3e5 3016
d0191583 3017rm -f conftest.err conftest.$ac_ext
795ca3e5 3018
d0191583
JM
3019 # OK, works on sane cases. Now check whether nonexistent headers
3020 # can be detected and how.
3021 cat >conftest.$ac_ext <<_ACEOF
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027#include <ac_nonexistent.h>
3028_ACEOF
3029if { (ac_try="$ac_cpp conftest.$ac_ext"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
5556819a 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
5556819a 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3041 (exit $ac_status); } >/dev/null && {
3042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 }; then
3045 # Broken: success on invalid input.
3046continue
3047else
5556819a 3048 echo "$as_me: failed program was:" >&5
d0191583 3049sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3050
d0191583
JM
3051 # Passes both tests.
3052ac_preproc_ok=:
3053break
3054fi
795ca3e5 3055
d0191583
JM
3056rm -f conftest.err conftest.$ac_ext
3057
3058done
3059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060rm -f conftest.err conftest.$ac_ext
3061if $ac_preproc_ok; then
3062 break
795ca3e5
AK
3063fi
3064
d0191583
JM
3065 done
3066 ac_cv_prog_CPP=$CPP
3067
3068fi
3069 CPP=$ac_cv_prog_CPP
795ca3e5 3070else
d0191583
JM
3071 ac_cv_prog_CPP=$CPP
3072fi
5556819a
AK
3073{ echo "$as_me:$LINENO: result: $CPP" >&5
3074echo "${ECHO_T}$CPP" >&6; }
d0191583
JM
3075ac_preproc_ok=false
3076for ac_c_preproc_warn_flag in '' yes
3077do
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
ad6254c5 3086_ACEOF
d0191583
JM
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#ifdef __STDC__
3091# include <limits.h>
3092#else
3093# include <assert.h>
3094#endif
3095 Syntax error
3096_ACEOF
3097if { (ac_try="$ac_cpp conftest.$ac_ext"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
7a197a62 3101esac
5556819a 3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
5556819a 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3109 (exit $ac_status); } >/dev/null && {
3110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 }; then
3113 :
795ca3e5 3114else
5556819a 3115 echo "$as_me: failed program was:" >&5
d0191583
JM
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 # Broken: fails on valid input.
3119continue
795ca3e5
AK
3120fi
3121
d0191583
JM
3122rm -f conftest.err conftest.$ac_ext
3123
3124 # OK, works on sane cases. Now check whether nonexistent headers
3125 # can be detected and how.
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132#include <ac_nonexistent.h>
3133_ACEOF
3134if { (ac_try="$ac_cpp conftest.$ac_ext"
3135case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138esac
5556819a 3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
5556819a 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3146 (exit $ac_status); } >/dev/null && {
3147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3148 test ! -s conftest.err
3149 }; then
3150 # Broken: success on invalid input.
3151continue
795ca3e5 3152else
5556819a 3153 echo "$as_me: failed program was:" >&5
d0191583 3154sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3155
d0191583
JM
3156 # Passes both tests.
3157ac_preproc_ok=:
3158break
795ca3e5 3159fi
d0191583
JM
3160
3161rm -f conftest.err conftest.$ac_ext
3162
3163done
3164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165rm -f conftest.err conftest.$ac_ext
3166if $ac_preproc_ok; then
3167 :
8106cdd5 3168else
5556819a 3169 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3170See \`config.log' for more details." >&5
5556819a 3171echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3172See \`config.log' for more details." >&2;}
3173 { (exit 1); exit 1; }; }
8106cdd5
AK
3174fi
3175
d0191583
JM
3176ac_ext=c
3177ac_cpp='$CPP $CPPFLAGS'
3178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
7a197a62 3182
5556819a
AK
3183{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3184echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3185if test "${ac_cv_path_GREP+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187else
3188 # Extract the first word of "grep ggrep" to use in msg output
3189if test -z "$GREP"; then
3190set dummy grep ggrep; ac_prog_name=$2
d0191583 3191if test "${ac_cv_path_GREP+set}" = set; then
5556819a 3192 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3193else
d0191583 3194 ac_path_GREP_found=false
5556819a
AK
3195# Loop through the user's path and test for each of PROGNAME-LIST
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
d0191583 3201 for ac_prog in grep ggrep; do
5556819a
AK
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3204 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3205 # Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3206 # Check for GNU $ac_path_GREP
3207case `"$ac_path_GREP" --version 2>&1` in
3208*GNU*)
3209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3210*)
3211 ac_count=0
5556819a 3212 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3213 while :
3214 do
3215 cat "conftest.in" "conftest.in" >"conftest.tmp"
3216 mv "conftest.tmp" "conftest.in"
3217 cp "conftest.in" "conftest.nl"
5556819a 3218 echo 'GREP' >> "conftest.nl"
d0191583
JM
3219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221 ac_count=`expr $ac_count + 1`
3222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3223 # Best one so far, save it but keep looking for a better one
3224 ac_cv_path_GREP="$ac_path_GREP"
3225 ac_path_GREP_max=$ac_count
3226 fi
3227 # 10*(2^10) chars as input seems more than enough
3228 test $ac_count -gt 10 && break
3229 done
3230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231esac
3232
5556819a
AK
3233
3234 $ac_path_GREP_found && break 3
d0191583 3235 done
ad6254c5 3236done
5556819a
AK
3237
3238done
7a197a62 3239IFS=$as_save_IFS
5556819a
AK
3240
3241
3242fi
3243
3244GREP="$ac_cv_path_GREP"
3245if test -z "$GREP"; then
3246 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3247echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3248 { (exit 1); exit 1; }; }
5556819a
AK
3249fi
3250
80992638 3251else
d0191583 3252 ac_cv_path_GREP=$GREP
8106cdd5 3253fi
8106cdd5 3254
5556819a 3255
80992638 3256fi
5556819a
AK
3257{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3258echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
d0191583 3259 GREP="$ac_cv_path_GREP"
795ca3e5 3260
d0191583 3261
5556819a
AK
3262{ echo "$as_me:$LINENO: checking for egrep" >&5
3263echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
d0191583 3264if test "${ac_cv_path_EGREP+set}" = set; then
5556819a 3265 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3266else
d0191583
JM
3267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3268 then ac_cv_path_EGREP="$GREP -E"
3269 else
5556819a
AK
3270 # Extract the first word of "egrep" to use in msg output
3271if test -z "$EGREP"; then
3272set dummy egrep; ac_prog_name=$2
3273if test "${ac_cv_path_EGREP+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
d0191583 3276 ac_path_EGREP_found=false
5556819a
AK
3277# Loop through the user's path and test for each of PROGNAME-LIST
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3280do
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
d0191583 3283 for ac_prog in egrep; do
5556819a
AK
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3286 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3287 # Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3288 # Check for GNU $ac_path_EGREP
3289case `"$ac_path_EGREP" --version 2>&1` in
3290*GNU*)
3291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3292*)
3293 ac_count=0
5556819a 3294 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3295 while :
3296 do
3297 cat "conftest.in" "conftest.in" >"conftest.tmp"
3298 mv "conftest.tmp" "conftest.in"
3299 cp "conftest.in" "conftest.nl"
5556819a 3300 echo 'EGREP' >> "conftest.nl"
d0191583
JM
3301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303 ac_count=`expr $ac_count + 1`
3304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3305 # Best one so far, save it but keep looking for a better one
3306 ac_cv_path_EGREP="$ac_path_EGREP"
3307 ac_path_EGREP_max=$ac_count
3308 fi
3309 # 10*(2^10) chars as input seems more than enough
3310 test $ac_count -gt 10 && break
3311 done
3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3313esac
8a2fc586 3314
5556819a
AK
3315
3316 $ac_path_EGREP_found && break 3
d0191583 3317 done
8a2fc586 3318done
5556819a
AK
3319
3320done
7a197a62 3321IFS=$as_save_IFS
5556819a
AK
3322
3323
3324fi
3325
3326EGREP="$ac_cv_path_EGREP"
3327if test -z "$EGREP"; then
3328 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3329echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3330 { (exit 1); exit 1; }; }
5556819a
AK
3331fi
3332
d0191583
JM
3333else
3334 ac_cv_path_EGREP=$EGREP
3335fi
ad6254c5 3336
5556819a 3337
d0191583
JM
3338 fi
3339fi
5556819a
AK
3340{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3341echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
d0191583 3342 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3343
3344
d0191583 3345if test $ac_cv_c_compiler_gnu = yes; then
5556819a
AK
3346 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3347echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
d0191583 3348if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5556819a 3349 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3350else
d0191583 3351 ac_pattern="Autoconf.*'x'"
ad6254c5 3352 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
d0191583
JM
3358#include <sgtty.h>
3359Autoconf TIOCGETP
ad6254c5 3360_ACEOF
d0191583
JM
3361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3362 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3363 ac_cv_prog_gcc_traditional=yes
8106cdd5 3364else
d0191583 3365 ac_cv_prog_gcc_traditional=no
80992638 3366fi
d0191583 3367rm -f conftest*
ad6254c5 3368
8106cdd5 3369
d0191583
JM
3370 if test $ac_cv_prog_gcc_traditional = no; then
3371 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
d0191583
JM
3377#include <termio.h>
3378Autoconf TCGETA
ad6254c5 3379_ACEOF
d0191583
JM
3380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3382 ac_cv_prog_gcc_traditional=yes
7a197a62 3383fi
d0191583 3384rm -f conftest*
795ca3e5 3385
d0191583 3386 fi
795ca3e5 3387fi
5556819a
AK
3388{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3389echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3390 if test $ac_cv_prog_gcc_traditional = yes; then
3391 CC="$CC -traditional"
3392 fi
795ca3e5
AK
3393fi
3394
d0191583
JM
3395# Find a good install program. We prefer a C program (faster),
3396# so one script is as good as another. But avoid the broken or
3397# incompatible versions:
3398# SysV /etc/install, /usr/sbin/install
3399# SunOS /usr/etc/install
3400# IRIX /sbin/install
3401# AIX /bin/install
3402# AmigaOS /C/install, which installs bootblocks on floppy discs
3403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3406# OS/2's system install, which has a completely different semantic
3407# ./install, which can be erroneously created by make from ./install.sh.
5556819a
AK
3408{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3409echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d0191583
JM
3410if test -z "$INSTALL"; then
3411if test "${ac_cv_path_install+set}" = set; then
5556819a 3412 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3413else
d0191583
JM
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 # Account for people who put trailing slashes in PATH elements.
3420case $as_dir/ in
3421 ./ | .// | /cC/* | \
3422 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3423 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3424 /usr/ucb/* ) ;;
3425 *)
3426 # OSF1 and SCO ODT 3.0 have their own names for install.
3427 # Don't use installbsd from OSF since it installs stuff as root
3428 # by default.
3429 for ac_prog in ginstall scoinst install; do
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3432 if test $ac_prog = install &&
3433 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3434 # AIX install. It has an incompatible calling convention.
3435 :
3436 elif test $ac_prog = install &&
3437 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3438 # program-specific install script used by HP pwplus--don't use.
3439 :
3440 else
5556819a
AK
3441 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3442 break 3
d0191583
JM
3443 fi
3444 fi
3445 done
3446 done
3447 ;;
3448esac
3449done
3450IFS=$as_save_IFS
80992638 3451
d0191583
JM
3452
3453fi
3454 if test "${ac_cv_path_install+set}" = set; then
3455 INSTALL=$ac_cv_path_install
7a197a62 3456 else
d0191583
JM
3457 # As a last resort, use the slow shell script. Don't cache a
3458 # value for INSTALL within a source directory, because that will
3459 # break other packages using the cache if that directory is
3460 # removed, or if the value is a relative name.
3461 INSTALL=$ac_install_sh
7a197a62 3462 fi
d0191583 3463fi
5556819a
AK
3464{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3465echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3466
d0191583
JM
3467# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3468# It thinks the first close brace ends the variable substitution.
3469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3470
d0191583 3471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3472
d0191583
JM
3473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3474
5556819a
AK
3475{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3476echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d0191583
JM
3477LN_S=$as_ln_s
3478if test "$LN_S" = "ln -s"; then
5556819a
AK
3479 { echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6; }
d0191583 3481else
5556819a
AK
3482 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3483echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3484fi
d0191583 3485
5556819a
AK
3486{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3487echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3488set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3489if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 3490 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3491else
d0191583
JM
3492 cat >conftest.make <<\_ACEOF
3493SHELL = /bin/sh
3494all:
3495 @echo '@@@%%%=$(MAKE)=@@@%%%'
3496_ACEOF
3497# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3498case `${MAKE-make} -f conftest.make 2>/dev/null` in
3499 *@@@%%%=?*=@@@%%%*)
3500 eval ac_cv_prog_make_${ac_make}_set=yes;;
3501 *)
3502 eval ac_cv_prog_make_${ac_make}_set=no;;
3503esac
3504rm -f conftest.make
ad6254c5 3505fi
d0191583 3506if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5556819a
AK
3507 { echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6; }
d0191583
JM
3509 SET_MAKE=
3510else
5556819a
AK
3511 { echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6; }
d0191583 3513 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3514fi
8106cdd5 3515
5556819a
AK
3516{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3517echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3518if test -z "$MKDIR_P"; then
3519 if test "${ac_cv_path_mkdir+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in mkdir gmkdir; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3531 'mkdir (GNU coreutils) '* | \
3532 'mkdir (coreutils) '* | \
3533 'mkdir (fileutils) '4.1*)
3534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3535 break 3;;
3536 esac
3537 done
3538 done
3539done
3540IFS=$as_save_IFS
3541
3542fi
3543
3544 if test "${ac_cv_path_mkdir+set}" = set; then
3545 MKDIR_P="$ac_cv_path_mkdir -p"
3546 else
3547 # As a last resort, use the slow shell script. Don't cache a
3548 # value for MKDIR_P within a source directory, because that will
3549 # break other packages using the cache if that directory is
3550 # removed, or if the value is a relative name.
3551 test -d ./--version && rmdir ./--version
3552 MKDIR_P="$ac_install_sh -d"
3553 fi
3554fi
3555{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3556echo "${ECHO_T}$MKDIR_P" >&6; }
3557
d0191583
JM
3558if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3560set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5556819a
AK
3561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3563if test "${ac_cv_prog_RANLIB+set}" = set; then
5556819a 3564 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3565else
3566 if test -n "$RANLIB"; then
3567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5556819a 3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3578 break 2
3579 fi
3580done
3581done
3582IFS=$as_save_IFS
8106cdd5 3583
795ca3e5 3584fi
d0191583
JM
3585fi
3586RANLIB=$ac_cv_prog_RANLIB
3587if test -n "$RANLIB"; then
5556819a
AK
3588 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3589echo "${ECHO_T}$RANLIB" >&6; }
d0191583 3590else
5556819a
AK
3591 { echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6; }
d0191583
JM
3593fi
3594
8106cdd5 3595
ad6254c5 3596fi
d0191583
JM
3597if test -z "$ac_cv_prog_RANLIB"; then
3598 ac_ct_RANLIB=$RANLIB
3599 # Extract the first word of "ranlib", so it can be a program name with args.
3600set dummy ranlib; ac_word=$2
5556819a
AK
3601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5556819a 3604 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3605else
d0191583
JM
3606 if test -n "$ac_ct_RANLIB"; then
3607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3608else
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
8106cdd5 3611do
d0191583
JM
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_ac_ct_RANLIB="ranlib"
5556819a 3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3618 break 2
3619 fi
3620done
3621done
3622IFS=$as_save_IFS
3623
3624fi
3625fi
3626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3627if test -n "$ac_ct_RANLIB"; then
5556819a
AK
3628 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3629echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3630else
5556819a
AK
3631 { echo "$as_me:$LINENO: result: no" >&5
3632echo "${ECHO_T}no" >&6; }
d0191583 3633fi
ad6254c5 3634
d0191583
JM
3635 if test "x$ac_ct_RANLIB" = x; then
3636 RANLIB=":"
3637 else
3638 case $cross_compiling:$ac_tool_warned in
3639yes:)
5556819a 3640{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3641whose name does not start with the host triplet. If you think this
3642configuration is useful to you, please write to autoconf@gnu.org." >&5
5556819a 3643echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3644whose name does not start with the host triplet. If you think this
3645configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3646ac_tool_warned=yes ;;
3647esac
3648 RANLIB=$ac_ct_RANLIB
3649 fi
3650else
3651 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3652fi
7a197a62 3653
d0191583
JM
3654# Extract the first word of "cflow", so it can be a program name with args.
3655set dummy cflow; ac_word=$2
5556819a
AK
3656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3658if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
5556819a 3659 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3660else
3661 case $CFLOW_CMD in
3662 [\\/]* | ?:[\\/]*)
3663 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3664 ;;
3665 *)
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
5556819a 3674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3675 break 2
3676 fi
3677done
3678done
3679IFS=$as_save_IFS
ad6254c5 3680
d0191583 3681 ;;
7a197a62 3682esac
d0191583
JM
3683fi
3684CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3685if test -n "$CFLOW_CMD"; then
5556819a
AK
3686 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3687echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3688else
5556819a
AK
3689 { echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6; }
795ca3e5 3691fi
7a197a62 3692
ad6254c5 3693
d0191583
JM
3694# Extract the first word of "cscope", so it can be a program name with args.
3695set dummy cscope; ac_word=$2
5556819a
AK
3696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3698if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
5556819a 3699 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3700else
3701 case $CSCOPE_CMD in
3702 [\\/]* | ?:[\\/]*)
3703 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3704 ;;
3705 *)
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
5556819a 3714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3715 break 2
3716 fi
795ca3e5 3717done
d0191583
JM
3718done
3719IFS=$as_save_IFS
795ca3e5 3720
d0191583
JM
3721 ;;
3722esac
ad6254c5 3723fi
d0191583
JM
3724CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3725if test -n "$CSCOPE_CMD"; then
5556819a
AK
3726 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3727echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3728else
5556819a
AK
3729 { echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6; }
795ca3e5 3731fi
ad6254c5 3732
7a197a62 3733
ad6254c5 3734
d0191583
JM
3735################################################################################
3736
3737
3738
3739
3740
3741ac_header_dirent=no
3742for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5556819a
AK
3743 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3744{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3745echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
d0191583 3746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 3747 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 3748else
ad6254c5 3749 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
d0191583
JM
3755#include <sys/types.h>
3756#include <$ac_hdr>
3757
3758int
3759main ()
3760{
3761if ((DIR *) 0)
3762return 0;
3763 ;
3764 return 0;
3765}
ad6254c5 3766_ACEOF
d0191583
JM
3767rm -f conftest.$ac_objext
3768if { (ac_try="$ac_compile"
7a197a62
AK
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
5556819a 3773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3774 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
5556819a 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
25fbec5b 3782 test ! -s conftest.err
d0191583
JM
3783 } && test -s conftest.$ac_objext; then
3784 eval "$as_ac_Header=yes"
ad6254c5 3785else
5556819a 3786 echo "$as_me: failed program was:" >&5
ad6254c5 3787sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3788
d0191583 3789 eval "$as_ac_Header=no"
795ca3e5 3790fi
7a197a62 3791
d0191583 3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3793fi
5556819a
AK
3794ac_res=`eval echo '${'$as_ac_Header'}'`
3795 { echo "$as_me:$LINENO: result: $ac_res" >&5
3796echo "${ECHO_T}$ac_res" >&6; }
3797if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 3798 cat >>confdefs.h <<_ACEOF
5556819a 3799#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3800_ACEOF
795ca3e5 3801
d0191583
JM
3802ac_header_dirent=$ac_hdr; break
3803fi
ad6254c5 3804
d0191583
JM
3805done
3806# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3807if test $ac_header_dirent = dirent.h; then
5556819a
AK
3808 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3809echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3810if test "${ac_cv_search_opendir+set}" = set; then
5556819a 3811 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3812else
d0191583
JM
3813 ac_func_search_save_LIBS=$LIBS
3814cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
ad6254c5 3820
d0191583
JM
3821/* Override any GCC internal prototype to avoid an error.
3822 Use char because int might match the return type of a GCC
3823 builtin and then its argument prototype would still apply. */
3824#ifdef __cplusplus
3825extern "C"
3826#endif
3827char opendir ();
3828int
3829main ()
3830{
3831return opendir ();
3832 ;
3833 return 0;
3834}
3835_ACEOF
3836for ac_lib in '' dir; do
3837 if test -z "$ac_lib"; then
3838 ac_res="none required"
3839 else
3840 ac_res=-l$ac_lib
3841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3842 fi
3843 rm -f conftest.$ac_objext conftest$ac_exeext
3844if { (ac_try="$ac_link"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
5556819a 3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3850 (eval "$ac_link") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
5556819a 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
5556819a
AK
3859 } && test -s conftest$ac_exeext &&
3860 $as_test_x conftest$ac_exeext; then
d0191583
JM
3861 ac_cv_search_opendir=$ac_res
3862else
5556819a 3863 echo "$as_me: failed program was:" >&5
d0191583 3864sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3865
ad6254c5 3866
795ca3e5 3867fi
ad6254c5 3868
d0191583
JM
3869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3870 conftest$ac_exeext
3871 if test "${ac_cv_search_opendir+set}" = set; then
3872 break
7a197a62 3873fi
d0191583
JM
3874done
3875if test "${ac_cv_search_opendir+set}" = set; then
3876 :
7a197a62 3877else
d0191583 3878 ac_cv_search_opendir=no
7a197a62 3879fi
d0191583
JM
3880rm conftest.$ac_ext
3881LIBS=$ac_func_search_save_LIBS
7a197a62 3882fi
5556819a
AK
3883{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3884echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3885ac_res=$ac_cv_search_opendir
3886if test "$ac_res" != no; then
3887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3888
d0191583 3889fi
7a197a62 3890
7a197a62 3891else
5556819a
AK
3892 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3893echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3894if test "${ac_cv_search_opendir+set}" = set; then
5556819a 3895 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3896else
d0191583
JM
3897 ac_func_search_save_LIBS=$LIBS
3898cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
7a197a62 3904
d0191583
JM
3905/* Override any GCC internal prototype to avoid an error.
3906 Use char because int might match the return type of a GCC
3907 builtin and then its argument prototype would still apply. */
3908#ifdef __cplusplus
3909extern "C"
3910#endif
3911char opendir ();
3912int
3913main ()
3914{
3915return opendir ();
3916 ;
3917 return 0;
3918}
3919_ACEOF
3920for ac_lib in '' x; do
3921 if test -z "$ac_lib"; then
3922 ac_res="none required"
3923 else
3924 ac_res=-l$ac_lib
3925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3926 fi
3927 rm -f conftest.$ac_objext conftest$ac_exeext
3928if { (ac_try="$ac_link"
3929case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932esac
5556819a 3933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3934 (eval "$ac_link") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
5556819a 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
5556819a
AK
3943 } && test -s conftest$ac_exeext &&
3944 $as_test_x conftest$ac_exeext; then
d0191583
JM
3945 ac_cv_search_opendir=$ac_res
3946else
5556819a 3947 echo "$as_me: failed program was:" >&5
d0191583 3948sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
3949
3950
3951fi
3952
d0191583
JM
3953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3954 conftest$ac_exeext
3955 if test "${ac_cv_search_opendir+set}" = set; then
3956 break
7a197a62 3957fi
d0191583
JM
3958done
3959if test "${ac_cv_search_opendir+set}" = set; then
3960 :
7a197a62 3961else
d0191583 3962 ac_cv_search_opendir=no
7a197a62 3963fi
d0191583
JM
3964rm conftest.$ac_ext
3965LIBS=$ac_func_search_save_LIBS
3966fi
5556819a
AK
3967{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3968echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3969ac_res=$ac_cv_search_opendir
3970if test "$ac_res" != no; then
3971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3972
7a197a62 3973fi
7a197a62 3974
d0191583 3975fi
7a197a62 3976
5556819a
AK
3977{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3978echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 3979if test "${ac_cv_header_stdc+set}" = set; then
5556819a 3980 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
3981else
3982 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
3988#include <stdlib.h>
3989#include <stdarg.h>
3990#include <string.h>
3991#include <float.h>
3992
3993int
3994main ()
3995{
3996
3997 ;
3998 return 0;
3999}
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (ac_try="$ac_compile"
4003case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
5556819a 4007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4008 (eval "$ac_compile") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
5556819a 4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4014 (exit $ac_status); } && {
4015 test -z "$ac_c_werror_flag" ||
4016 test ! -s conftest.err
4017 } && test -s conftest.$ac_objext; then
7a197a62
AK
4018 ac_cv_header_stdc=yes
4019else
5556819a 4020 echo "$as_me: failed program was:" >&5
7a197a62
AK
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 ac_cv_header_stdc=no
4024fi
4025
4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027
4028if test $ac_cv_header_stdc = yes; then
4029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4030 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036#include <string.h>
8106cdd5 4037
ad6254c5
AK
4038_ACEOF
4039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "memchr" >/dev/null 2>&1; then
4041 :
4042else
4043 ac_cv_header_stdc=no
80992638 4044fi
ad6254c5 4045rm -f conftest*
795ca3e5
AK
4046
4047fi
4048
ad6254c5
AK
4049if test $ac_cv_header_stdc = yes; then
4050 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4051 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4052/* confdefs.h. */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h. */
80992638 4057#include <stdlib.h>
ad6254c5
AK
4058
4059_ACEOF
80992638 4060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4061 $EGREP "free" >/dev/null 2>&1; then
4062 :
795ca3e5 4063else
ad6254c5 4064 ac_cv_header_stdc=no
795ca3e5 4065fi
80992638 4066rm -f conftest*
8106cdd5 4067
795ca3e5
AK
4068fi
4069
ad6254c5
AK
4070if test $ac_cv_header_stdc = yes; then
4071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4072 if test "$cross_compiling" = yes; then
4073 :
795ca3e5 4074else
ad6254c5 4075 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081#include <ctype.h>
7a197a62 4082#include <stdlib.h>
ad6254c5
AK
4083#if ((' ' & 0x0FF) == 0x020)
4084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4086#else
4087# define ISLOWER(c) \
8a2fc586
AK
4088 (('a' <= (c) && (c) <= 'i') \
4089 || ('j' <= (c) && (c) <= 'r') \
4090 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4092#endif
ad6254c5
AK
4093
4094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4095int
4096main ()
4097{
4098 int i;
4099 for (i = 0; i < 256; i++)
4100 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4101 || toupper (i) != TOUPPER (i))
7a197a62
AK
4102 return 2;
4103 return 0;
ad6254c5
AK
4104}
4105_ACEOF
4106rm -f conftest$ac_exeext
7a197a62
AK
4107if { (ac_try="$ac_link"
4108case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111esac
5556819a 4112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4113 (eval "$ac_link") 2>&5
ad6254c5 4114 ac_status=$?
5556819a 4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4117 { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120esac
5556819a 4121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4122 (eval "$ac_try") 2>&5
ad6254c5 4123 ac_status=$?
5556819a 4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4125 (exit $ac_status); }; }; then
4126 :
795ca3e5 4127else
5556819a
AK
4128 echo "$as_me: program exited with status $ac_status" >&5
4129echo "$as_me: failed program was:" >&5
ad6254c5 4130sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4131
ad6254c5
AK
4132( exit $ac_status )
4133ac_cv_header_stdc=no
80992638 4134fi
7a197a62 4135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4136fi
7a197a62
AK
4137
4138
ad6254c5
AK
4139fi
4140fi
5556819a
AK
4141{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4143if test $ac_cv_header_stdc = yes; then
4144
4145cat >>confdefs.h <<\_ACEOF
4146#define STDC_HEADERS 1
4147_ACEOF
795ca3e5
AK
4148
4149fi
4150
5556819a
AK
4151{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4152echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4153if test "${ac_cv_header_sys_wait_h+set}" = set; then
5556819a 4154 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4155else
ad6254c5 4156 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4157/* confdefs.h. */
4158_ACEOF
4159cat confdefs.h >>conftest.$ac_ext
4160cat >>conftest.$ac_ext <<_ACEOF
4161/* end confdefs.h. */
80992638 4162#include <sys/types.h>
ad6254c5
AK
4163#include <sys/wait.h>
4164#ifndef WEXITSTATUS
7a197a62 4165# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4166#endif
4167#ifndef WIFEXITED
4168# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4169#endif
4170
4171int
4172main ()
4173{
4174 int s;
4175 wait (&s);
4176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4177 ;
4178 return 0;
4179}
4180_ACEOF
4181rm -f conftest.$ac_objext
7a197a62
AK
4182if { (ac_try="$ac_compile"
4183case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186esac
5556819a 4187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4188 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4189 ac_status=$?
8a2fc586
AK
4190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
5556819a 4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4194 (exit $ac_status); } && {
4195 test -z "$ac_c_werror_flag" ||
4196 test ! -s conftest.err
4197 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4198 ac_cv_header_sys_wait_h=yes
4199else
5556819a 4200 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
7a197a62 4203 ac_cv_header_sys_wait_h=no
8106cdd5 4204fi
7a197a62
AK
4205
4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4207fi
5556819a
AK
4208{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4209echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4210if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4211
ad6254c5
AK
4212cat >>confdefs.h <<\_ACEOF
4213#define HAVE_SYS_WAIT_H 1
4214_ACEOF
795ca3e5
AK
4215
4216fi
4217
5556819a
AK
4218{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4219echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4220if test "${ac_cv_header_time+set}" = set; then
5556819a 4221 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4222else
ad6254c5 4223 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
795ca3e5
AK
4229#include <sys/types.h>
4230#include <sys/time.h>
4231#include <time.h>
ad6254c5
AK
4232
4233int
4234main ()
4235{
4236if ((struct tm *) 0)
4237return 0;
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
7a197a62
AK
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
5556819a 4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4249 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4250 ac_status=$?
8a2fc586
AK
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
5556819a 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4255 (exit $ac_status); } && {
4256 test -z "$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4259 ac_cv_header_time=yes
4260else
5556819a 4261 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
7a197a62 4264 ac_cv_header_time=no
795ca3e5 4265fi
7a197a62
AK
4266
4267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4268fi
5556819a
AK
4269{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4270echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4271if test $ac_cv_header_time = yes; then
ad6254c5
AK
4272
4273cat >>confdefs.h <<\_ACEOF
795ca3e5 4274#define TIME_WITH_SYS_TIME 1
ad6254c5 4275_ACEOF
b896caa1 4276
8106cdd5 4277fi
b896caa1 4278
b896caa1 4279
d0191583
JM
4280# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291 inttypes.h stdint.h unistd.h
4292do
5556819a
AK
4293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4297 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4298else
4299 cat >conftest.$ac_ext <<_ACEOF
4300/* confdefs.h. */
4301_ACEOF
4302cat confdefs.h >>conftest.$ac_ext
4303cat >>conftest.$ac_ext <<_ACEOF
4304/* end confdefs.h. */
4305$ac_includes_default
4306
4307#include <$ac_header>
4308_ACEOF
4309rm -f conftest.$ac_objext
4310if { (ac_try="$ac_compile"
4311case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314esac
5556819a 4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4316 (eval "$ac_compile") 2>conftest.er1
4317 ac_status=$?
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
5556819a 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4322 (exit $ac_status); } && {
4323 test -z "$ac_c_werror_flag" ||
4324 test ! -s conftest.err
4325 } && test -s conftest.$ac_objext; then
4326 eval "$as_ac_Header=yes"
4327else
5556819a 4328 echo "$as_me: failed program was:" >&5
d0191583
JM
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331 eval "$as_ac_Header=no"
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
5556819a
AK
4336ac_res=`eval echo '${'$as_ac_Header'}'`
4337 { echo "$as_me:$LINENO: result: $ac_res" >&5
4338echo "${ECHO_T}$ac_res" >&6; }
4339if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 4340 cat >>confdefs.h <<_ACEOF
5556819a 4341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4342_ACEOF
4343
4344fi
4345
4346done
4347
b896caa1 4348
b896caa1
AK
4349
4350
795ca3e5 4351
8106cdd5 4352
80992638 4353
795ca3e5 4354
a38df97f 4355
80992638 4356
d0191583
JM
4357
4358
4359
4360
4361
4362for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4363 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4364do
5556819a 4365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
4367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4370 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 4371fi
5556819a
AK
4372ac_res=`eval echo '${'$as_ac_Header'}'`
4373 { echo "$as_me:$LINENO: result: $ac_res" >&5
4374echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4375else
d0191583 4376 # Is the header compilable?
5556819a
AK
4377{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d0191583 4379cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4380/* confdefs.h. */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h. */
4385$ac_includes_default
ad6254c5
AK
4386#include <$ac_header>
4387_ACEOF
4388rm -f conftest.$ac_objext
7a197a62
AK
4389if { (ac_try="$ac_compile"
4390case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393esac
5556819a 4394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4395 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4396 ac_status=$?
8a2fc586
AK
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
5556819a 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
d0191583 4405 ac_header_compiler=yes
ad6254c5 4406else
5556819a 4407 echo "$as_me: failed program was:" >&5
ad6254c5 4408sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4409
d0191583 4410 ac_header_compiler=no
ad6254c5 4411fi
7a197a62
AK
4412
4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
4414{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4415echo "${ECHO_T}$ac_header_compiler" >&6; }
d0191583
JM
4416
4417# Is the header present?
5556819a
AK
4418{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4419echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d0191583
JM
4420cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
4426#include <$ac_header>
4427_ACEOF
4428if { (ac_try="$ac_cpp conftest.$ac_ext"
4429case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432esac
5556819a 4433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
5556819a 4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4440 (exit $ac_status); } >/dev/null && {
4441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 }; then
4444 ac_header_preproc=yes
4445else
5556819a 4446 echo "$as_me: failed program was:" >&5
d0191583
JM
4447sed 's/^/| /' conftest.$ac_ext >&5
4448
4449 ac_header_preproc=no
4450fi
4451
4452rm -f conftest.err conftest.$ac_ext
5556819a
AK
4453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4454echo "${ECHO_T}$ac_header_preproc" >&6; }
d0191583
JM
4455
4456# So? What about this header?
4457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4458 yes:no: )
5556819a
AK
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4463 ac_header_preproc=yes
4464 ;;
4465 no:yes:* )
5556819a
AK
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4478
4479 ;;
4480esac
5556819a
AK
4481{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4484 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4485else
4486 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4487fi
5556819a
AK
4488ac_res=`eval echo '${'$as_ac_Header'}'`
4489 { echo "$as_me:$LINENO: result: $ac_res" >&5
4490echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4491
4492fi
5556819a 4493if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4494 cat >>confdefs.h <<_ACEOF
5556819a 4495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4496_ACEOF
a38df97f 4497
d0191583 4498else
5556819a
AK
4499 { { echo "$as_me:$LINENO: error: bailing out" >&5
4500echo "$as_me: error: bailing out" >&2;}
d0191583 4501 { (exit 1); exit 1; }; }
80992638
AK
4502fi
4503
ad6254c5
AK
4504done
4505
7d1552c9 4506
d0191583
JM
4507case "$host_os" in
4508 linux*)
7d1552c9 4509
80992638 4510
5a52dca9 4511
d0191583 4512for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4513do
5556819a 4514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
4516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4519 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4520fi
5556819a
AK
4521ac_res=`eval echo '${'$as_ac_Header'}'`
4522 { echo "$as_me:$LINENO: result: $ac_res" >&5
4523echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4524else
4525 # Is the header compilable?
5556819a
AK
4526{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4528cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4529/* confdefs.h. */
4530_ACEOF
4531cat confdefs.h >>conftest.$ac_ext
4532cat >>conftest.$ac_ext <<_ACEOF
4533/* end confdefs.h. */
4534$ac_includes_default
4535#include <$ac_header>
4536_ACEOF
4537rm -f conftest.$ac_objext
7a197a62
AK
4538if { (ac_try="$ac_compile"
4539case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542esac
5556819a 4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4544 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4545 ac_status=$?
8a2fc586
AK
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
5556819a 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4550 (exit $ac_status); } && {
4551 test -z "$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 } && test -s conftest.$ac_objext; then
fc54be10
AK
4554 ac_header_compiler=yes
4555else
5556819a 4556 echo "$as_me: failed program was:" >&5
fc54be10
AK
4557sed 's/^/| /' conftest.$ac_ext >&5
4558
4559 ac_header_compiler=no
4560fi
4561
4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
4563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4564echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4565
4566# Is the header present?
5556819a
AK
4567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4569cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
4575#include <$ac_header>
4576_ACEOF
7a197a62
AK
4577if { (ac_try="$ac_cpp conftest.$ac_ext"
4578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
5556819a 4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
5556819a 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4589 (exit $ac_status); } >/dev/null && {
4590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 }; then
ad6254c5
AK
4593 ac_header_preproc=yes
4594else
5556819a 4595 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 ac_header_preproc=no
4599fi
7a197a62 4600
ad6254c5 4601rm -f conftest.err conftest.$ac_ext
5556819a
AK
4602{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4603echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4604
4605# So? What about this header?
8a2fc586
AK
4606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4607 yes:no: )
5556819a
AK
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4611echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4612 ac_header_preproc=yes
ad6254c5 4613 ;;
8a2fc586 4614 no:yes:* )
5556819a
AK
4615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4616echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4618echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4620echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4622echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4626echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4627
ad6254c5
AK
4628 ;;
4629esac
5556819a
AK
4630{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4633 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4634else
8a2fc586 4635 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4636fi
5556819a
AK
4637ac_res=`eval echo '${'$as_ac_Header'}'`
4638 { echo "$as_me:$LINENO: result: $ac_res" >&5
4639echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4640
4641fi
5556819a 4642if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4643 cat >>confdefs.h <<_ACEOF
5556819a 4644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4645_ACEOF
b896caa1 4646
d8ac0fbc 4647else
5556819a
AK
4648 { { echo "$as_me:$LINENO: error: bailing out" >&5
4649echo "$as_me: error: bailing out" >&2;}
ad6254c5 4650 { (exit 1); exit 1; }; }
80992638
AK
4651fi
4652
ad6254c5 4653done
d0191583
JM
4654 ;;
4655 darwin*)
d8ac0fbc 4656
d8ac0fbc 4657
d0191583 4658for ac_header in machine/endian.h sys/disk.h
ad6254c5 4659do
5556819a 4660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
4662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4665 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4666fi
5556819a
AK
4667ac_res=`eval echo '${'$as_ac_Header'}'`
4668 { echo "$as_me:$LINENO: result: $ac_res" >&5
4669echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4670else
4671 # Is the header compilable?
5556819a
AK
4672{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4674cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4675/* confdefs.h. */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h. */
4680$ac_includes_default
4681#include <$ac_header>
4682_ACEOF
4683rm -f conftest.$ac_objext
7a197a62
AK
4684if { (ac_try="$ac_compile"
4685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
5556819a 4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4690 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4691 ac_status=$?
8a2fc586
AK
4692 grep -v '^ *+' conftest.er1 >conftest.err
4693 rm -f conftest.er1
4694 cat conftest.err >&5
5556819a 4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4696 (exit $ac_status); } && {
4697 test -z "$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4699 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4700 ac_header_compiler=yes
4701else
5556819a 4702 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
7a197a62 4705 ac_header_compiler=no
ad6254c5 4706fi
7a197a62
AK
4707
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
4709{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4710echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4711
4712# Is the header present?
5556819a
AK
4713{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4715cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4716/* confdefs.h. */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */
4721#include <$ac_header>
4722_ACEOF
7a197a62
AK
4723if { (ac_try="$ac_cpp conftest.$ac_ext"
4724case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727esac
5556819a 4728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
5556819a 4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4735 (exit $ac_status); } >/dev/null && {
4736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 }; then
ad6254c5
AK
4739 ac_header_preproc=yes
4740else
5556819a 4741 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_header_preproc=no
4745fi
7a197a62 4746
ad6254c5 4747rm -f conftest.err conftest.$ac_ext
5556819a
AK
4748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4749echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4750
4751# So? What about this header?
8a2fc586
AK
4752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4753 yes:no: )
5556819a
AK
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4758 ac_header_preproc=yes
ad6254c5 4759 ;;
8a2fc586 4760 no:yes:* )
5556819a
AK
4761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4773
ad6254c5
AK
4774 ;;
4775esac
5556819a
AK
4776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4779 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4780else
8a2fc586 4781 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4782fi
5556819a
AK
4783ac_res=`eval echo '${'$as_ac_Header'}'`
4784 { echo "$as_me:$LINENO: result: $ac_res" >&5
4785echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4786
4787fi
5556819a 4788if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4789 cat >>confdefs.h <<_ACEOF
5556819a 4790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4791_ACEOF
4922197a 4792
4922197a 4793else
5556819a
AK
4794 { { echo "$as_me:$LINENO: error: bailing out" >&5
4795echo "$as_me: error: bailing out" >&2;}
ad6254c5 4796 { (exit 1); exit 1; }; }
80992638
AK
4797fi
4798
ad6254c5 4799done
d0191583
JM
4800 ;;
4801esac
4922197a 4802
4922197a 4803
4922197a 4804
ad6254c5
AK
4805
4806
d0191583
JM
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4820 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4821 sys/types.h unistd.h
ad6254c5 4822do
5556819a 4823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
4825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4828 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4829fi
5556819a
AK
4830ac_res=`eval echo '${'$as_ac_Header'}'`
4831 { echo "$as_me:$LINENO: result: $ac_res" >&5
4832echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4833else
ad6254c5 4834 # Is the header compilable?
5556819a
AK
4835{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4837cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4838/* confdefs.h. */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4842/* end confdefs.h. */
4843$ac_includes_default
4844#include <$ac_header>
4845_ACEOF
4846rm -f conftest.$ac_objext
7a197a62
AK
4847if { (ac_try="$ac_compile"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
5556819a 4852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4853 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4854 ac_status=$?
8a2fc586
AK
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
5556819a 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4863 ac_header_compiler=yes
4864else
5556819a 4865 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
7a197a62 4868 ac_header_compiler=no
ad6254c5 4869fi
7a197a62
AK
4870
4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
4872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4873echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4874
4875# Is the header present?
5556819a
AK
4876{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4878cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4879/* confdefs.h. */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h. */
4884#include <$ac_header>
4885_ACEOF
7a197a62
AK
4886if { (ac_try="$ac_cpp conftest.$ac_ext"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
5556819a 4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
5556819a 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 }; then
ad6254c5
AK
4902 ac_header_preproc=yes
4903else
5556819a 4904 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4905sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_header_preproc=no
4908fi
7a197a62 4909
ad6254c5 4910rm -f conftest.err conftest.$ac_ext
5556819a
AK
4911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4913
4914# So? What about this header?
8a2fc586
AK
4915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4916 yes:no: )
5556819a
AK
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4921 ac_header_preproc=yes
ad6254c5 4922 ;;
8a2fc586 4923 no:yes:* )
5556819a
AK
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4936
ad6254c5
AK
4937 ;;
4938esac
5556819a
AK
4939{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4942 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4943else
8a2fc586 4944 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4945fi
5556819a
AK
4946ac_res=`eval echo '${'$as_ac_Header'}'`
4947 { echo "$as_me:$LINENO: result: $ac_res" >&5
4948echo "${ECHO_T}$ac_res" >&6; }
80992638 4949
ad6254c5 4950fi
5556819a 4951if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4952 cat >>confdefs.h <<_ACEOF
5556819a 4953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4954_ACEOF
795ca3e5 4955
795ca3e5 4956else
5556819a
AK
4957 { { echo "$as_me:$LINENO: error: bailing out" >&5
4958echo "$as_me: error: bailing out" >&2;}
ad6254c5 4959 { (exit 1); exit 1; }; }
80992638
AK
4960fi
4961
ad6254c5 4962done
ad6254c5 4963
795ca3e5 4964
d0191583
JM
4965
4966for ac_header in termios.h sys/statvfs.h
ad6254c5 4967do
5556819a 4968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
4970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 4973 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4974fi
5556819a
AK
4975ac_res=`eval echo '${'$as_ac_Header'}'`
4976 { echo "$as_me:$LINENO: result: $ac_res" >&5
4977echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4978else
4979 # Is the header compilable?
5556819a
AK
4980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4982cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4983/* confdefs.h. */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h. */
4988$ac_includes_default
4989#include <$ac_header>
4990_ACEOF
4991rm -f conftest.$ac_objext
7a197a62
AK
4992if { (ac_try="$ac_compile"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
5556819a 4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4998 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4999 ac_status=$?
8a2fc586
AK
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5556819a 5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5008 ac_header_compiler=yes
5009else
5556819a 5010 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
7a197a62 5013 ac_header_compiler=no
ad6254c5 5014fi
7a197a62
AK
5015
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
5017{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5019
5020# Is the header present?
5556819a
AK
5021{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5023cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5024/* confdefs.h. */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h. */
5029#include <$ac_header>
5030_ACEOF
7a197a62
AK
5031if { (ac_try="$ac_cpp conftest.$ac_ext"
5032case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035esac
5556819a 5036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5556819a 5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5043 (exit $ac_status); } >/dev/null && {
5044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5045 test ! -s conftest.err
5046 }; then
ad6254c5
AK
5047 ac_header_preproc=yes
5048else
5556819a 5049 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 ac_header_preproc=no
5053fi
7a197a62 5054
ad6254c5 5055rm -f conftest.err conftest.$ac_ext
5556819a
AK
5056{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5057echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5058
5059# So? What about this header?
8a2fc586
AK
5060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5061 yes:no: )
5556819a
AK
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5063echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5065echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5066 ac_header_preproc=yes
ad6254c5 5067 ;;
8a2fc586 5068 no:yes:* )
5556819a
AK
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5070echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5072echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5074echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5076echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5080echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5081
ad6254c5
AK
5082 ;;
5083esac
5556819a
AK
5084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 5087 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5088else
8a2fc586 5089 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5090fi
5556819a
AK
5091ac_res=`eval echo '${'$as_ac_Header'}'`
5092 { echo "$as_me:$LINENO: result: $ac_res" >&5
5093echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5094
ad6254c5 5095fi
5556819a 5096if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5097 cat >>confdefs.h <<_ACEOF
5556819a 5098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5099_ACEOF
5100
80992638
AK
5101fi
5102
ad6254c5 5103done
d0191583 5104
d3c8211f 5105
80992638 5106################################################################################
5556819a
AK
5107{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5108echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5109if test "${ac_cv_c_const+set}" = set; then
5556819a 5110 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5111else
ad6254c5 5112 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5113/* confdefs.h. */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h. */
5118
5119int
5120main ()
5121{
5122/* FIXME: Include the comments suggested by Paul. */
5123#ifndef __cplusplus
5124 /* Ultrix mips cc rejects this. */
5125 typedef int charset[2];
25fbec5b 5126 const charset cs;
ad6254c5 5127 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5128 char const *const *pcpcc;
5129 char **ppc;
ad6254c5
AK
5130 /* NEC SVR4.0.2 mips cc rejects this. */
5131 struct point {int x, y;};
5132 static struct point const zero = {0,0};
5133 /* AIX XL C 1.02.0.0 rejects this.
5134 It does not let you subtract one const X* pointer from another in
5135 an arm of an if-expression whose if-part is not a constant
5136 expression */
5137 const char *g = "string";
25fbec5b 5138 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5139 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5140 ++pcpcc;
5141 ppc = (char**) pcpcc;
5142 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5143 { /* SCO 3.2v4 cc rejects this. */
5144 char *t;
5145 char const *s = 0 ? (char *) 0 : (char const *) 0;
5146
5147 *t++ = 0;
7a197a62 5148 if (s) return 0;
ad6254c5
AK
5149 }
5150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5151 int x[] = {25, 17};
5152 const int *foo = &x[0];
5153 ++foo;
5154 }
5155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5156 typedef const int *iptr;
5157 iptr p = 0;
5158 ++p;
5159 }
5160 { /* AIX XL C 1.02.0.0 rejects this saying
5161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5162 struct s { int j; const int *ap[3]; };
5163 struct s *b; b->j = 5;
5164 }
5165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5166 const int foo = 10;
7a197a62 5167 if (!foo) return 0;
ad6254c5 5168 }
25fbec5b 5169 return !cs[0] && !zero.x;
ad6254c5
AK
5170#endif
5171
5172 ;
5173 return 0;
5174}
5175_ACEOF
5176rm -f conftest.$ac_objext
7a197a62
AK
5177if { (ac_try="$ac_compile"
5178case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181esac
5556819a 5182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5183 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5184 ac_status=$?
8a2fc586
AK
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5556819a 5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5193 ac_cv_c_const=yes
5194else
5556819a 5195 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5196sed 's/^/| /' conftest.$ac_ext >&5
5197
7a197a62 5198 ac_cv_c_const=no
ad6254c5 5199fi
7a197a62
AK
5200
5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5202fi
5556819a
AK
5203{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5204echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5205if test $ac_cv_c_const = no; then
80992638 5206
ad6254c5 5207cat >>confdefs.h <<\_ACEOF
5556819a 5208#define const
ad6254c5 5209_ACEOF
80992638 5210
d3c8211f 5211fi
d3c8211f 5212
5556819a
AK
5213{ echo "$as_me:$LINENO: checking for inline" >&5
5214echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5215if test "${ac_cv_c_inline+set}" = set; then
5556819a 5216 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5217else
ad6254c5
AK
5218 ac_cv_c_inline=no
5219for ac_kw in inline __inline__ __inline; do
5220 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5221/* confdefs.h. */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h. */
5226#ifndef __cplusplus
5227typedef int foo_t;
5228static $ac_kw foo_t static_foo () {return 0; }
5229$ac_kw foo_t foo () {return 0; }
5230#endif
80992638 5231
ad6254c5
AK
5232_ACEOF
5233rm -f conftest.$ac_objext
7a197a62
AK
5234if { (ac_try="$ac_compile"
5235case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238esac
5556819a 5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5240 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5241 ac_status=$?
8a2fc586
AK
5242 grep -v '^ *+' conftest.er1 >conftest.err
5243 rm -f conftest.er1
5244 cat conftest.err >&5
5556819a 5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5246 (exit $ac_status); } && {
5247 test -z "$ac_c_werror_flag" ||
5248 test ! -s conftest.err
5249 } && test -s conftest.$ac_objext; then
7a197a62 5250 ac_cv_c_inline=$ac_kw
ad6254c5 5251else
5556819a 5252 echo "$as_me: failed program was:" >&5
ad6254c5 5253sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5254
7a197a62 5255
8ce0cbda 5256fi
7a197a62
AK
5257
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 test "$ac_cv_c_inline" != no && break
ad6254c5 5260done
8ce0cbda 5261
8ce0cbda 5262fi
5556819a
AK
5263{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5264echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5265
5266
ad6254c5
AK
5267case $ac_cv_c_inline in
5268 inline | yes) ;;
8a2fc586
AK
5269 *)
5270 case $ac_cv_c_inline in
5271 no) ac_val=;;
5272 *) ac_val=$ac_cv_c_inline;;
5273 esac
5274 cat >>confdefs.h <<_ACEOF
5275#ifndef __cplusplus
5276#define inline $ac_val
5277#endif
c1c065a3 5278_ACEOF
d0191583
JM
5279 ;;
5280esac
5281
5556819a
AK
5282{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5283echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
d0191583 5284if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5556819a 5285 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5286else
5287 cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h. */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h. */
5293$ac_includes_default
5294int
5295main ()
5296{
5297static struct stat ac_aggr;
5298if (ac_aggr.st_rdev)
5299return 0;
5300 ;
5301 return 0;
5302}
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (ac_try="$ac_compile"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5556819a 5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5556819a 5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest.$ac_objext; then
5321 ac_cv_member_struct_stat_st_rdev=yes
5322else
5556819a 5323 echo "$as_me: failed program was:" >&5
d0191583
JM
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332$ac_includes_default
5333int
5334main ()
5335{
5336static struct stat ac_aggr;
5337if (sizeof ac_aggr.st_rdev)
5338return 0;
5339 ;
5340 return 0;
5341}
5342_ACEOF
5343rm -f conftest.$ac_objext
5344if { (ac_try="$ac_compile"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5556819a 5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5350 (eval "$ac_compile") 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5556819a 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
5360 ac_cv_member_struct_stat_st_rdev=yes
5361else
5556819a 5362 echo "$as_me: failed program was:" >&5
d0191583
JM
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_cv_member_struct_stat_st_rdev=no
5366fi
5367
5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369fi
5370
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372fi
5556819a
AK
5373{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5374echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5375if test $ac_cv_member_struct_stat_st_rdev = yes; then
5376
5377cat >>confdefs.h <<_ACEOF
5378#define HAVE_STRUCT_STAT_ST_RDEV 1
5379_ACEOF
5380
5381
5382fi
8ce0cbda 5383
5556819a
AK
5384{ echo "$as_me:$LINENO: checking for off_t" >&5
5385echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5386if test "${ac_cv_type_off_t+set}" = set; then
5556819a 5387 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5388else
fddafd51
ZK
5389 cat >conftest.$ac_ext <<_ACEOF
5390/* confdefs.h. */
5391_ACEOF
5392cat confdefs.h >>conftest.$ac_ext
5393cat >>conftest.$ac_ext <<_ACEOF
5394/* end confdefs.h. */
5395$ac_includes_default
5556819a 5396typedef off_t ac__type_new_;
fddafd51
ZK
5397int
5398main ()
5399{
5556819a
AK
5400if ((ac__type_new_ *) 0)
5401 return 0;
5402if (sizeof (ac__type_new_))
5403 return 0;
ad6254c5
AK
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext
7a197a62
AK
5409if { (ac_try="$ac_compile"
5410case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413esac
5556819a 5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5415 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5416 ac_status=$?
8a2fc586
AK
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5556819a 5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5421 (exit $ac_status); } && {
5422 test -z "$ac_c_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.$ac_objext; then
5556819a 5425 ac_cv_type_off_t=yes
ad6254c5 5426else
5556819a 5427 echo "$as_me: failed program was:" >&5
ad6254c5 5428sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 5429
5556819a 5430 ac_cv_type_off_t=no
80992638 5431fi
7a197a62
AK
5432
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5434fi
5556819a
AK
5435{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5436echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5437if test $ac_cv_type_off_t = yes; then
5438 :
5439else
80992638 5440
ad6254c5 5441cat >>confdefs.h <<_ACEOF
7a197a62 5442#define off_t long int
ad6254c5 5443_ACEOF
199e490e 5444
b896caa1
AK
5445fi
5446
5556819a
AK
5447{ echo "$as_me:$LINENO: checking for pid_t" >&5
5448echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5449if test "${ac_cv_type_pid_t+set}" = set; then
5556819a 5450 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5451else
fddafd51
ZK
5452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458$ac_includes_default
5556819a 5459typedef pid_t ac__type_new_;
fddafd51
ZK
5460int
5461main ()
5462{
5556819a
AK
5463if ((ac__type_new_ *) 0)
5464 return 0;
5465if (sizeof (ac__type_new_))
5466 return 0;
ad6254c5
AK
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471rm -f conftest.$ac_objext
7a197a62
AK
5472if { (ac_try="$ac_compile"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5556819a 5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5478 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5479 ac_status=$?
8a2fc586
AK
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5556819a 5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5556819a 5488 ac_cv_type_pid_t=yes
ad6254c5 5489else
5556819a 5490 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
5556819a 5493 ac_cv_type_pid_t=no
ad6254c5 5494fi
7a197a62
AK
5495
5496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5497fi
5556819a
AK
5498{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5499echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5500if test $ac_cv_type_pid_t = yes; then
5501 :
5502else
80992638 5503
ad6254c5
AK
5504cat >>confdefs.h <<_ACEOF
5505#define pid_t int
5506_ACEOF
2dc95e1c 5507
2dc95e1c
AK
5508fi
5509
5556819a
AK
5510{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5511echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d0191583 5512if test "${ac_cv_type_signal+set}" = set; then
5556819a 5513 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5514else
5515 cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
5521#include <sys/types.h>
5522#include <signal.h>
5523
5524int
5525main ()
5526{
5527return *(signal (0, 0)) (0) == 1;
5528 ;
5529 return 0;
5530}
5531_ACEOF
5532rm -f conftest.$ac_objext
5533if { (ac_try="$ac_compile"
5534case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537esac
5556819a 5538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5539 (eval "$ac_compile") 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5556819a 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 ac_cv_type_signal=int
5550else
5556819a 5551 echo "$as_me: failed program was:" >&5
d0191583
JM
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_cv_type_signal=void
5555fi
5556
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5556819a
AK
5559{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5560echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d0191583
JM
5561
5562cat >>confdefs.h <<_ACEOF
5563#define RETSIGTYPE $ac_cv_type_signal
5564_ACEOF
5565
5566
5556819a
AK
5567{ echo "$as_me:$LINENO: checking for size_t" >&5
5568echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5569if test "${ac_cv_type_size_t+set}" = set; then
5556819a 5570 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5571else
fddafd51
ZK
5572 cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h. */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h. */
5578$ac_includes_default
5556819a 5579typedef size_t ac__type_new_;
fddafd51
ZK
5580int
5581main ()
5582{
5556819a
AK
5583if ((ac__type_new_ *) 0)
5584 return 0;
5585if (sizeof (ac__type_new_))
5586 return 0;
ad6254c5
AK
5587 ;
5588 return 0;
5589}
5590_ACEOF
5591rm -f conftest.$ac_objext
7a197a62
AK
5592if { (ac_try="$ac_compile"
5593case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596esac
5556819a 5597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5598 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5599 ac_status=$?
8a2fc586
AK
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5556819a 5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5556819a 5608 ac_cv_type_size_t=yes
ad6254c5 5609else
5556819a 5610 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5611sed 's/^/| /' conftest.$ac_ext >&5
5612
5556819a 5613 ac_cv_type_size_t=no
80992638 5614fi
7a197a62
AK
5615
5616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5617fi
5556819a
AK
5618{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5619echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5620if test $ac_cv_type_size_t = yes; then
5621 :
5622else
80992638 5623
ad6254c5 5624cat >>confdefs.h <<_ACEOF
7a197a62 5625#define size_t unsigned int
ad6254c5 5626_ACEOF
8106cdd5 5627
8106cdd5
AK
5628fi
5629
5556819a
AK
5630{ echo "$as_me:$LINENO: checking for mode_t" >&5
5631echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5632if test "${ac_cv_type_mode_t+set}" = set; then
5556819a 5633 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5634else
fddafd51
ZK
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */
5641$ac_includes_default
5556819a 5642typedef mode_t ac__type_new_;
fddafd51
ZK
5643int
5644main ()
5645{
5556819a
AK
5646if ((ac__type_new_ *) 0)
5647 return 0;
5648if (sizeof (ac__type_new_))
5649 return 0;
ad6254c5
AK
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext
7a197a62
AK
5655if { (ac_try="$ac_compile"
5656case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659esac
5556819a 5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5661 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5662 ac_status=$?
8a2fc586
AK
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5556819a 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5556819a 5671 ac_cv_type_mode_t=yes
fddafd51 5672else
5556819a 5673 echo "$as_me: failed program was:" >&5
fddafd51
ZK
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
5556819a 5676 ac_cv_type_mode_t=no
80992638 5677fi
7a197a62
AK
5678
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5680fi
5556819a
AK
5681{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5682echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5683if test $ac_cv_type_mode_t = yes; then
5684 :
5685else
80992638 5686
ad6254c5
AK
5687cat >>confdefs.h <<_ACEOF
5688#define mode_t int
5689_ACEOF
5690
5691fi
5692
5556819a
AK
5693{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5694echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5695if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5556819a 5696 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5697else
5698 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704$ac_includes_default
5705int
5706main ()
5707{
5708static struct stat ac_aggr;
5709if (ac_aggr.st_rdev)
5710return 0;
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext
7a197a62
AK
5716if { (ac_try="$ac_compile"
5717case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720esac
5556819a 5721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5722 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5723 ac_status=$?
8a2fc586
AK
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5556819a 5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5732 ac_cv_member_struct_stat_st_rdev=yes
5733else
5556819a 5734 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
7a197a62 5737 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743$ac_includes_default
5744int
5745main ()
5746{
5747static struct stat ac_aggr;
5748if (sizeof ac_aggr.st_rdev)
5749return 0;
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754rm -f conftest.$ac_objext
7a197a62
AK
5755if { (ac_try="$ac_compile"
5756case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5556819a 5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5761 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5762 ac_status=$?
8a2fc586
AK
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5556819a 5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5767 (exit $ac_status); } && {
5768 test -z "$ac_c_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5771 ac_cv_member_struct_stat_st_rdev=yes
5772else
5556819a 5773 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5774sed 's/^/| /' conftest.$ac_ext >&5
5775
7a197a62 5776 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5777fi
7a197a62
AK
5778
5779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5780fi
7a197a62
AK
5781
5782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5783fi
5556819a
AK
5784{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5785echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5786if test $ac_cv_member_struct_stat_st_rdev = yes; then
5787
5788cat >>confdefs.h <<_ACEOF
5789#define HAVE_STRUCT_STAT_ST_RDEV 1
5790_ACEOF
5791
5792
ad6254c5
AK
5793fi
5794
5556819a
AK
5795{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5796echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5797if test "${ac_cv_struct_tm+set}" = set; then
5556819a 5798 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5799else
5800 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
5806#include <sys/types.h>
5807#include <time.h>
5808
5809int
5810main ()
5811{
25fbec5b
AK
5812struct tm tm;
5813 int *p = &tm.tm_sec;
5556819a 5814 return !p;
ad6254c5
AK
5815 ;
5816 return 0;
5817}
5818_ACEOF
5819rm -f conftest.$ac_objext
7a197a62
AK
5820if { (ac_try="$ac_compile"
5821case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5556819a 5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5826 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5827 ac_status=$?
8a2fc586
AK
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5556819a 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5836 ac_cv_struct_tm=time.h
5837else
5556819a 5838 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5839sed 's/^/| /' conftest.$ac_ext >&5
5840
7a197a62 5841 ac_cv_struct_tm=sys/time.h
ad6254c5 5842fi
7a197a62
AK
5843
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5845fi
5556819a
AK
5846{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5847echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5848if test $ac_cv_struct_tm = sys/time.h; then
5849
5850cat >>confdefs.h <<\_ACEOF
5851#define TM_IN_SYS_TIME 1
5852_ACEOF
5853
5854fi
809fae91 5855
795ca3e5 5856
80992638 5857################################################################################
ad6254c5
AK
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
d0191583
JM
5872
5873
5874
5875for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5876 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5877 uname
ad6254c5 5878do
5556819a
AK
5879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 5883 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5884else
ad6254c5 5885 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
8a2fc586
AK
5891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5893#define $ac_func innocuous_$ac_func
5894
ad6254c5
AK
5895/* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char $ac_func (); below.
5897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5898 <limits.h> exists even on freestanding compilers. */
8a2fc586 5899
ad6254c5
AK
5900#ifdef __STDC__
5901# include <limits.h>
5902#else
5903# include <assert.h>
5904#endif
8a2fc586
AK
5905
5906#undef $ac_func
5907
7a197a62
AK
5908/* Override any GCC internal prototype to avoid an error.
5909 Use char because int might match the return type of a GCC
5910 builtin and then its argument prototype would still apply. */
ad6254c5
AK
5911#ifdef __cplusplus
5912extern "C"
ad6254c5 5913#endif
ad6254c5
AK
5914char $ac_func ();
5915/* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
7a197a62 5918#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 5919choke me
ad6254c5
AK
5920#endif
5921
5922int
5923main ()
5924{
7a197a62 5925return $ac_func ();
ad6254c5
AK
5926 ;
5927 return 0;
5928}
5929_ACEOF
5930rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5931if { (ac_try="$ac_link"
5932case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935esac
5556819a 5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5937 (eval "$ac_link") 2>conftest.er1
ad6254c5 5938 ac_status=$?
8a2fc586
AK
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5556819a 5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5556819a
AK
5946 } && test -s conftest$ac_exeext &&
5947 $as_test_x conftest$ac_exeext; then
fc54be10
AK
5948 eval "$as_ac_var=yes"
5949else
5556819a 5950 echo "$as_me: failed program was:" >&5
fc54be10
AK
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 eval "$as_ac_var=no"
5954fi
5955
25fbec5b 5956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
5957 conftest$ac_exeext conftest.$ac_ext
5958fi
5556819a
AK
5959ac_res=`eval echo '${'$as_ac_var'}'`
5960 { echo "$as_me:$LINENO: result: $ac_res" >&5
5961echo "${ECHO_T}$ac_res" >&6; }
5962if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 5963 cat >>confdefs.h <<_ACEOF
5556819a 5964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
5965_ACEOF
5966
5967else
5556819a
AK
5968 { { echo "$as_me:$LINENO: error: bailing out" >&5
5969echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
5970 { (exit 1); exit 1; }; }
5971fi
5972done
795ca3e5 5973
ad6254c5
AK
5974# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5975# for constant arguments. Useless!
5556819a
AK
5976{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5977echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 5978if test "${ac_cv_working_alloca_h+set}" = set; then
5556819a 5979 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5980else
5981 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987#include <alloca.h>
5988int
5989main ()
5990{
5991char *p = (char *) alloca (2 * sizeof (int));
7a197a62 5992 if (p) return 0;
ad6254c5
AK
5993 ;
5994 return 0;
5995}
5996_ACEOF
5997rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
5998if { (ac_try="$ac_link"
5999case "(($ac_try" in
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6002esac
5556819a 6003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6004 (eval "$ac_link") 2>conftest.er1
ad6254c5 6005 ac_status=$?
8a2fc586
AK
6006 grep -v '^ *+' conftest.er1 >conftest.err
6007 rm -f conftest.er1
6008 cat conftest.err >&5
5556819a 6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6010 (exit $ac_status); } && {
6011 test -z "$ac_c_werror_flag" ||
6012 test ! -s conftest.err
5556819a
AK
6013 } && test -s conftest$ac_exeext &&
6014 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6015 ac_cv_working_alloca_h=yes
6016else
5556819a 6017 echo "$as_me: failed program was:" >&5
ad6254c5 6018sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6019
7a197a62 6020 ac_cv_working_alloca_h=no
ad6254c5 6021fi
7a197a62 6022
25fbec5b 6023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6024 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6025fi
5556819a
AK
6026{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6027echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6028if test $ac_cv_working_alloca_h = yes; then
6029
6030cat >>confdefs.h <<\_ACEOF
6031#define HAVE_ALLOCA_H 1
6032_ACEOF
6033
6034fi
6035
5556819a
AK
6036{ echo "$as_me:$LINENO: checking for alloca" >&5
6037echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6038if test "${ac_cv_func_alloca_works+set}" = set; then
5556819a 6039 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6040else
6041 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047#ifdef __GNUC__
6048# define alloca __builtin_alloca
6049#else
6050# ifdef _MSC_VER
6051# include <malloc.h>
6052# define alloca _alloca
6053# else
25fbec5b 6054# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6055# include <alloca.h>
6056# else
6057# ifdef _AIX
6058 #pragma alloca
6059# else
6060# ifndef alloca /* predefined by HP cc +Olibcalls */
6061char *alloca ();
6062# endif
6063# endif
6064# endif
6065# endif
6066#endif
6067
6068int
6069main ()
6070{
6071char *p = (char *) alloca (1);
7a197a62 6072 if (p) return 0;
ad6254c5
AK
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6078if { (ac_try="$ac_link"
6079case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
5556819a 6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6084 (eval "$ac_link") 2>conftest.er1
ad6254c5 6085 ac_status=$?
8a2fc586
AK
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
5556819a 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
5556819a
AK
6093 } && test -s conftest$ac_exeext &&
6094 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6095 ac_cv_func_alloca_works=yes
6096else
5556819a 6097 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
7a197a62 6100 ac_cv_func_alloca_works=no
ad6254c5 6101fi
7a197a62 6102
25fbec5b 6103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6104 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6105fi
5556819a
AK
6106{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6107echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6108
6109if test $ac_cv_func_alloca_works = yes; then
6110
6111cat >>confdefs.h <<\_ACEOF
6112#define HAVE_ALLOCA 1
6113_ACEOF
6114
6115else
6116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6117# that cause trouble. Some versions do not even contain alloca or
6118# contain a buggy version. If you still want to use their alloca,
6119# use ar to extract alloca.o from them instead of compiling alloca.c.
6120
7a197a62 6121ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6122
6123cat >>confdefs.h <<\_ACEOF
6124#define C_ALLOCA 1
6125_ACEOF
6126
6127
5556819a
AK
6128{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6129echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6130if test "${ac_cv_os_cray+set}" = set; then
5556819a 6131 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6132else
6133 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6134/* confdefs.h. */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h. */
7a197a62 6139#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6140webecray
6141#else
6142wenotbecray
6143#endif
6144
6145_ACEOF
795ca3e5 6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6147 $EGREP "webecray" >/dev/null 2>&1; then
6148 ac_cv_os_cray=yes
6149else
6150 ac_cv_os_cray=no
795ca3e5
AK
6151fi
6152rm -f conftest*
6153
795ca3e5 6154fi
5556819a
AK
6155{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6156echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6157if test $ac_cv_os_cray = yes; then
6158 for ac_func in _getb67 GETB67 getb67; do
5556819a
AK
6159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6160{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6162if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 6163 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6164else
6165 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
8a2fc586
AK
6171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6173#define $ac_func innocuous_$ac_func
6174
ad6254c5
AK
6175/* System header to define __stub macros and hopefully few prototypes,
6176 which can conflict with char $ac_func (); below.
6177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178 <limits.h> exists even on freestanding compilers. */
8a2fc586 6179
ad6254c5
AK
6180#ifdef __STDC__
6181# include <limits.h>
6182#else
6183# include <assert.h>
6184#endif
8a2fc586
AK
6185
6186#undef $ac_func
6187
7a197a62
AK
6188/* Override any GCC internal prototype to avoid an error.
6189 Use char because int might match the return type of a GCC
6190 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6191#ifdef __cplusplus
6192extern "C"
ad6254c5 6193#endif
ad6254c5
AK
6194char $ac_func ();
6195/* The GNU C library defines this for functions which it implements
6196 to always fail with ENOSYS. Some functions are actually named
6197 something starting with __ and the normal name is an alias. */
7a197a62 6198#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6199choke me
ad6254c5
AK
6200#endif
6201
6202int
6203main ()
6204{
7a197a62 6205return $ac_func ();
ad6254c5
AK
6206 ;
6207 return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6211if { (ac_try="$ac_link"
6212case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215esac
5556819a 6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6217 (eval "$ac_link") 2>conftest.er1
ad6254c5 6218 ac_status=$?
8a2fc586
AK
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
5556819a 6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
5556819a
AK
6226 } && test -s conftest$ac_exeext &&
6227 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6228 eval "$as_ac_var=yes"
6229else
5556819a 6230 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6231sed 's/^/| /' conftest.$ac_ext >&5
6232
7a197a62 6233 eval "$as_ac_var=no"
ad6254c5 6234fi
7a197a62 6235
25fbec5b 6236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6237 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6238fi
5556819a
AK
6239ac_res=`eval echo '${'$as_ac_var'}'`
6240 { echo "$as_me:$LINENO: result: $ac_res" >&5
6241echo "${ECHO_T}$ac_res" >&6; }
6242if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6243
ad6254c5
AK
6244cat >>confdefs.h <<_ACEOF
6245#define CRAY_STACKSEG_END $ac_func
6246_ACEOF
6247
6248 break
6249fi
6250
6251 done
6252fi
6253
5556819a
AK
6254{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6255echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6256if test "${ac_cv_c_stack_direction+set}" = set; then
5556819a 6257 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6258else
6259 if test "$cross_compiling" = yes; then
6260 ac_cv_c_stack_direction=0
6261else
6262 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
7a197a62 6268$ac_includes_default
ad6254c5
AK
6269int
6270find_stack_direction ()
6271{
6272 static char *addr = 0;
6273 auto char dummy;
6274 if (addr == 0)
6275 {
6276 addr = &dummy;
6277 return find_stack_direction ();
6278 }
6279 else
6280 return (&dummy > addr) ? 1 : -1;
6281}
6282
6283int
6284main ()
6285{
7a197a62 6286 return find_stack_direction () < 0;
ad6254c5
AK
6287}
6288_ACEOF
6289rm -f conftest$ac_exeext
7a197a62
AK
6290if { (ac_try="$ac_link"
6291case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294esac
5556819a 6295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6296 (eval "$ac_link") 2>&5
ad6254c5 6297 ac_status=$?
5556819a 6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
5556819a 6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6305 (eval "$ac_try") 2>&5
ad6254c5 6306 ac_status=$?
5556819a 6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6308 (exit $ac_status); }; }; then
6309 ac_cv_c_stack_direction=1
6310else
5556819a
AK
6311 echo "$as_me: program exited with status $ac_status" >&5
6312echo "$as_me: failed program was:" >&5
ad6254c5
AK
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315( exit $ac_status )
6316ac_cv_c_stack_direction=-1
6317fi
7a197a62 6318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6319fi
7a197a62
AK
6320
6321
ad6254c5 6322fi
5556819a
AK
6323{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6324echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6325
6326cat >>confdefs.h <<_ACEOF
6327#define STACK_DIRECTION $ac_cv_c_stack_direction
6328_ACEOF
6329
6330
6331fi
6332
5556819a
AK
6333{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6334echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6335if test "${ac_cv_func_closedir_void+set}" = set; then
5556819a 6336 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6337else
6338 if test "$cross_compiling" = yes; then
6339 ac_cv_func_closedir_void=yes
6340else
6341 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347$ac_includes_default
6348#include <$ac_header_dirent>
6349#ifndef __cplusplus
6350int closedir ();
6351#endif
6352
6353int
6354main ()
6355{
7a197a62 6356return closedir (opendir (".")) != 0;
ad6254c5
AK
6357 ;
6358 return 0;
6359}
6360_ACEOF
6361rm -f conftest$ac_exeext
7a197a62
AK
6362if { (ac_try="$ac_link"
6363case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366esac
5556819a 6367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6368 (eval "$ac_link") 2>&5
ad6254c5 6369 ac_status=$?
5556819a 6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6372 { (case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375esac
5556819a 6376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6377 (eval "$ac_try") 2>&5
ad6254c5 6378 ac_status=$?
5556819a 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6380 (exit $ac_status); }; }; then
6381 ac_cv_func_closedir_void=no
6382else
5556819a
AK
6383 echo "$as_me: program exited with status $ac_status" >&5
6384echo "$as_me: failed program was:" >&5
ad6254c5
AK
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
6387( exit $ac_status )
6388ac_cv_func_closedir_void=yes
6389fi
7a197a62 6390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6391fi
7a197a62
AK
6392
6393
ad6254c5 6394fi
5556819a
AK
6395{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6396echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6397if test $ac_cv_func_closedir_void = yes; then
6398
6399cat >>confdefs.h <<\_ACEOF
6400#define CLOSEDIR_VOID 1
6401_ACEOF
6402
6403fi
6404
6405
7a197a62 6406for ac_header in vfork.h
ad6254c5 6407do
5556819a 6408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
6410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 6413 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6414fi
5556819a
AK
6415ac_res=`eval echo '${'$as_ac_Header'}'`
6416 { echo "$as_me:$LINENO: result: $ac_res" >&5
6417echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6418else
6419 # Is the header compilable?
5556819a
AK
6420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6422cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428$ac_includes_default
6429#include <$ac_header>
6430_ACEOF
6431rm -f conftest.$ac_objext
7a197a62
AK
6432if { (ac_try="$ac_compile"
6433case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436esac
5556819a 6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6438 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6439 ac_status=$?
8a2fc586
AK
6440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
5556819a 6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6444 (exit $ac_status); } && {
6445 test -z "$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6447 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6448 ac_header_compiler=yes
6449else
5556819a 6450 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
7a197a62 6453 ac_header_compiler=no
ad6254c5 6454fi
7a197a62
AK
6455
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
6457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6458echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6459
6460# Is the header present?
5556819a
AK
6461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6463cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469#include <$ac_header>
6470_ACEOF
7a197a62
AK
6471if { (ac_try="$ac_cpp conftest.$ac_ext"
6472case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
5556819a 6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
5556819a 6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6483 (exit $ac_status); } >/dev/null && {
6484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 }; then
ad6254c5
AK
6487 ac_header_preproc=yes
6488else
5556819a 6489 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 ac_header_preproc=no
6493fi
7a197a62 6494
ad6254c5 6495rm -f conftest.err conftest.$ac_ext
5556819a
AK
6496{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6498
6499# So? What about this header?
8a2fc586
AK
6500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501 yes:no: )
5556819a
AK
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6506 ac_header_preproc=yes
ad6254c5 6507 ;;
8a2fc586 6508 no:yes:* )
5556819a
AK
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6516echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6521
ad6254c5
AK
6522 ;;
6523esac
5556819a
AK
6524{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 6527 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6528else
8a2fc586 6529 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6530fi
5556819a
AK
6531ac_res=`eval echo '${'$as_ac_Header'}'`
6532 { echo "$as_me:$LINENO: result: $ac_res" >&5
6533echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6534
795ca3e5 6535fi
5556819a 6536if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6537 cat >>confdefs.h <<_ACEOF
5556819a 6538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6539_ACEOF
6540
6541fi
6542
6543done
795ca3e5 6544
ad6254c5
AK
6545
6546
6547for ac_func in fork vfork
6548do
5556819a
AK
6549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 6553 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6554else
ad6254c5 6555 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6556/* confdefs.h. */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h. */
8a2fc586
AK
6561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6563#define $ac_func innocuous_$ac_func
6564
ad6254c5
AK
6565/* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char $ac_func (); below.
6567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6568 <limits.h> exists even on freestanding compilers. */
8a2fc586 6569
ad6254c5
AK
6570#ifdef __STDC__
6571# include <limits.h>
6572#else
6573# include <assert.h>
795ca3e5 6574#endif
8a2fc586
AK
6575
6576#undef $ac_func
6577
7a197a62
AK
6578/* Override any GCC internal prototype to avoid an error.
6579 Use char because int might match the return type of a GCC
6580 builtin and then its argument prototype would still apply. */
795ca3e5 6581#ifdef __cplusplus
ad6254c5 6582extern "C"
ad6254c5 6583#endif
ad6254c5
AK
6584char $ac_func ();
6585/* The GNU C library defines this for functions which it implements
6586 to always fail with ENOSYS. Some functions are actually named
6587 something starting with __ and the normal name is an alias. */
7a197a62 6588#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6589choke me
795ca3e5
AK
6590#endif
6591
ad6254c5
AK
6592int
6593main ()
6594{
7a197a62 6595return $ac_func ();
ad6254c5
AK
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6601if { (ac_try="$ac_link"
6602case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605esac
5556819a 6606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6607 (eval "$ac_link") 2>conftest.er1
ad6254c5 6608 ac_status=$?
8a2fc586
AK
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
5556819a 6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
5556819a
AK
6616 } && test -s conftest$ac_exeext &&
6617 $as_test_x conftest$ac_exeext; then
ad6254c5 6618 eval "$as_ac_var=yes"
795ca3e5 6619else
5556819a 6620 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
7a197a62 6623 eval "$as_ac_var=no"
795ca3e5 6624fi
7a197a62 6625
25fbec5b 6626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6627 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6628fi
5556819a
AK
6629ac_res=`eval echo '${'$as_ac_var'}'`
6630 { echo "$as_me:$LINENO: result: $ac_res" >&5
6631echo "${ECHO_T}$ac_res" >&6; }
6632if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6633 cat >>confdefs.h <<_ACEOF
5556819a 6634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6635_ACEOF
6636
6637fi
6638done
6639
6640if test "x$ac_cv_func_fork" = xyes; then
5556819a
AK
6641 { echo "$as_me:$LINENO: checking for working fork" >&5
6642echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6643if test "${ac_cv_func_fork_works+set}" = set; then
5556819a 6644 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6645else
6646 if test "$cross_compiling" = yes; then
6647 ac_cv_func_fork_works=cross
6648else
6649 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6650/* confdefs.h. */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h. */
6655$ac_includes_default
6656int
6657main ()
6658{
6659
6660 /* By Ruediger Kuhlmann. */
6661 return fork () < 0;
6662
6663 ;
6664 return 0;
6665}
ad6254c5
AK
6666_ACEOF
6667rm -f conftest$ac_exeext
7a197a62
AK
6668if { (ac_try="$ac_link"
6669case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672esac
5556819a 6673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6674 (eval "$ac_link") 2>&5
ad6254c5 6675 ac_status=$?
5556819a 6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6678 { (case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681esac
5556819a 6682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6683 (eval "$ac_try") 2>&5
ad6254c5 6684 ac_status=$?
5556819a 6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6686 (exit $ac_status); }; }; then
6687 ac_cv_func_fork_works=yes
6688else
5556819a
AK
6689 echo "$as_me: program exited with status $ac_status" >&5
6690echo "$as_me: failed program was:" >&5
ad6254c5
AK
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693( exit $ac_status )
6694ac_cv_func_fork_works=no
6695fi
7a197a62 6696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6697fi
7a197a62
AK
6698
6699
ad6254c5 6700fi
5556819a
AK
6701{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6702echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6703
6704else
6705 ac_cv_func_fork_works=$ac_cv_func_fork
6706fi
6707if test "x$ac_cv_func_fork_works" = xcross; then
6708 case $host in
6709 *-*-amigaos* | *-*-msdosdjgpp*)
6710 # Override, as these systems have only a dummy fork() stub
6711 ac_cv_func_fork_works=no
6712 ;;
6713 *)
6714 ac_cv_func_fork_works=yes
6715 ;;
6716 esac
5556819a
AK
6717 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6718echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6719fi
6720ac_cv_func_vfork_works=$ac_cv_func_vfork
6721if test "x$ac_cv_func_vfork" = xyes; then
5556819a
AK
6722 { echo "$as_me:$LINENO: checking for working vfork" >&5
6723echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6724if test "${ac_cv_func_vfork_works+set}" = set; then
5556819a 6725 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6726else
6727 if test "$cross_compiling" = yes; then
6728 ac_cv_func_vfork_works=cross
6729else
6730 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6731/* confdefs.h. */
6732_ACEOF
6733cat confdefs.h >>conftest.$ac_ext
6734cat >>conftest.$ac_ext <<_ACEOF
6735/* end confdefs.h. */
6736/* Thanks to Paul Eggert for this test. */
7a197a62 6737$ac_includes_default
ad6254c5 6738#include <sys/wait.h>
25fbec5b 6739#ifdef HAVE_VFORK_H
ad6254c5
AK
6740# include <vfork.h>
6741#endif
6742/* On some sparc systems, changes by the child to local and incoming
6743 argument registers are propagated back to the parent. The compiler
6744 is told about this with #include <vfork.h>, but some compilers
6745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6746 static variable whose address is put into a register that is
6747 clobbered by the vfork. */
6748static void
6749#ifdef __cplusplus
6750sparc_address_test (int arg)
6751# else
6752sparc_address_test (arg) int arg;
6753#endif
6754{
6755 static pid_t child;
6756 if (!child) {
6757 child = vfork ();
6758 if (child < 0) {
6759 perror ("vfork");
6760 _exit(2);
6761 }
6762 if (!child) {
6763 arg = getpid();
6764 write(-1, "", 0);
6765 _exit (arg);
6766 }
6767 }
6768}
6769
6770int
6771main ()
6772{
6773 pid_t parent = getpid ();
6774 pid_t child;
6775
6776 sparc_address_test (0);
6777
6778 child = vfork ();
6779
6780 if (child == 0) {
6781 /* Here is another test for sparc vfork register problems. This
6782 test uses lots of local variables, at least as many local
6783 variables as main has allocated so far including compiler
6784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6786 reuse the register of parent for one of the local variables,
6787 since it will think that parent can't possibly be used any more
6788 in this routine. Assigning to the local variable will thus
6789 munge parent in the parent process. */
6790 pid_t
6791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6793 /* Convince the compiler that p..p7 are live; otherwise, it might
6794 use the same hardware register for all 8 local variables. */
6795 if (p != p1 || p != p2 || p != p3 || p != p4
6796 || p != p5 || p != p6 || p != p7)
6797 _exit(1);
6798
6799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6800 from child file descriptors. If the child closes a descriptor
6801 before it execs or exits, this munges the parent's descriptor
6802 as well. Test for this by closing stdout in the child. */
6803 _exit(close(fileno(stdout)) != 0);
6804 } else {
6805 int status;
6806 struct stat st;
6807
6808 while (wait(&status) != child)
6809 ;
7a197a62 6810 return (
ad6254c5
AK
6811 /* Was there some problem with vforking? */
6812 child < 0
6813
6814 /* Did the child fail? (This shouldn't happen.) */
6815 || status
6816
6817 /* Did the vfork/compiler bug occur? */
6818 || parent != getpid()
6819
6820 /* Did the file descriptor bug occur? */
6821 || fstat(fileno(stdout), &st) != 0
6822 );
6823 }
6824}
6825_ACEOF
6826rm -f conftest$ac_exeext
7a197a62
AK
6827if { (ac_try="$ac_link"
6828case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831esac
5556819a 6832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6833 (eval "$ac_link") 2>&5
ad6254c5 6834 ac_status=$?
5556819a 6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6837 { (case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
5556819a 6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6842 (eval "$ac_try") 2>&5
ad6254c5 6843 ac_status=$?
5556819a 6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6845 (exit $ac_status); }; }; then
6846 ac_cv_func_vfork_works=yes
6847else
5556819a
AK
6848 echo "$as_me: program exited with status $ac_status" >&5
6849echo "$as_me: failed program was:" >&5
ad6254c5
AK
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
6852( exit $ac_status )
6853ac_cv_func_vfork_works=no
6854fi
7a197a62 6855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6856fi
7a197a62
AK
6857
6858
ad6254c5 6859fi
5556819a
AK
6860{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6861echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6862
6863fi;
6864if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6865 ac_cv_func_vfork_works=$ac_cv_func_vfork
5556819a
AK
6866 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6867echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6868fi
6869
6870if test "x$ac_cv_func_vfork_works" = xyes; then
6871
6872cat >>confdefs.h <<\_ACEOF
6873#define HAVE_WORKING_VFORK 1
6874_ACEOF
6875
6876else
6877
6878cat >>confdefs.h <<\_ACEOF
6879#define vfork fork
6880_ACEOF
6881
6882fi
6883if test "x$ac_cv_func_fork_works" = xyes; then
6884
6885cat >>confdefs.h <<\_ACEOF
6886#define HAVE_WORKING_FORK 1
6887_ACEOF
6888
6889fi
6890
5556819a
AK
6891{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6892echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6893if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5556819a 6894 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6895else
6896 rm -f conftest.sym conftest.file
6897echo >conftest.file
6898if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6899 if test "$cross_compiling" = yes; then
6900 ac_cv_func_lstat_dereferences_slashed_symlink=no
6901else
6902 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6903/* confdefs.h. */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h. */
6908$ac_includes_default
6909int
6910main ()
6911{
6912struct stat sbuf;
6913 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6914 That is better in the sense that it means we will not
6915 have to compile and use the lstat wrapper. */
7a197a62 6916 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
6917 ;
6918 return 0;
6919}
6920_ACEOF
6921rm -f conftest$ac_exeext
7a197a62
AK
6922if { (ac_try="$ac_link"
6923case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6926esac
5556819a 6927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6928 (eval "$ac_link") 2>&5
ad6254c5 6929 ac_status=$?
5556819a 6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6932 { (case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
5556819a 6936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6937 (eval "$ac_try") 2>&5
ad6254c5 6938 ac_status=$?
5556819a 6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6940 (exit $ac_status); }; }; then
6941 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6942else
5556819a
AK
6943 echo "$as_me: program exited with status $ac_status" >&5
6944echo "$as_me: failed program was:" >&5
ad6254c5
AK
6945sed 's/^/| /' conftest.$ac_ext >&5
6946
6947( exit $ac_status )
6948ac_cv_func_lstat_dereferences_slashed_symlink=no
6949fi
7a197a62 6950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6951fi
7a197a62
AK
6952
6953
ad6254c5
AK
6954else
6955 # If the `ln -s' command failed, then we probably don't even
6956 # have an lstat function.
6957 ac_cv_func_lstat_dereferences_slashed_symlink=no
6958fi
6959rm -f conftest.sym conftest.file
6960
6961fi
5556819a
AK
6962{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6963echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
6964
6965test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6966
6967cat >>confdefs.h <<_ACEOF
6968#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6969_ACEOF
6970
6971
6972if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 6973 case " $LIBOBJS " in
8a2fc586 6974 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
6975 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6976 ;;
8a2fc586
AK
6977esac
6978
ad6254c5
AK
6979fi
6980
5556819a
AK
6981{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6982echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 6983if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
5556819a 6984 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6985else
6986 if test "$cross_compiling" = yes; then
6987 ac_cv_func_lstat_empty_string_bug=yes
6988else
6989 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995$ac_includes_default
6996int
6997main ()
6998{
6999struct stat sbuf;
7a197a62 7000 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7001 ;
7002 return 0;
7003}
7004_ACEOF
7005rm -f conftest$ac_exeext
7a197a62
AK
7006if { (ac_try="$ac_link"
7007case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010esac
5556819a 7011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7012 (eval "$ac_link") 2>&5
ad6254c5 7013 ac_status=$?
5556819a 7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7016 { (case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019esac
5556819a 7020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7021 (eval "$ac_try") 2>&5
ad6254c5 7022 ac_status=$?
5556819a 7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7024 (exit $ac_status); }; }; then
7a197a62 7025 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7026else
5556819a
AK
7027 echo "$as_me: program exited with status $ac_status" >&5
7028echo "$as_me: failed program was:" >&5
ad6254c5
AK
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031( exit $ac_status )
7a197a62 7032ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7033fi
7a197a62 7034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7035fi
7a197a62
AK
7036
7037
ad6254c5 7038fi
5556819a
AK
7039{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7040echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7041if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7042 case " $LIBOBJS " in
8a2fc586 7043 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7044 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7045 ;;
8a2fc586
AK
7046esac
7047
ad6254c5
AK
7048
7049cat >>confdefs.h <<_ACEOF
7050#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7051_ACEOF
7052
7053fi
7054
7055
7056for ac_header in stdlib.h
7057do
5556819a 7058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
7060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 7063 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7064fi
5556819a
AK
7065ac_res=`eval echo '${'$as_ac_Header'}'`
7066 { echo "$as_me:$LINENO: result: $ac_res" >&5
7067echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7068else
7069 # Is the header compilable?
5556819a
AK
7070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7072cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7073/* confdefs.h. */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
7077/* end confdefs.h. */
7078$ac_includes_default
7079#include <$ac_header>
7080_ACEOF
7081rm -f conftest.$ac_objext
7a197a62
AK
7082if { (ac_try="$ac_compile"
7083case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086esac
5556819a 7087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7088 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7089 ac_status=$?
8a2fc586
AK
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
5556819a 7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7094 (exit $ac_status); } && {
7095 test -z "$ac_c_werror_flag" ||
7096 test ! -s conftest.err
7097 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7098 ac_header_compiler=yes
7099else
5556819a 7100 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7101sed 's/^/| /' conftest.$ac_ext >&5
7102
7a197a62 7103 ac_header_compiler=no
ad6254c5 7104fi
7a197a62
AK
7105
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
7107{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7108echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7109
7110# Is the header present?
5556819a
AK
7111{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7113cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119#include <$ac_header>
7120_ACEOF
7a197a62
AK
7121if { (ac_try="$ac_cpp conftest.$ac_ext"
7122case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125esac
5556819a 7126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
5556819a 7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7133 (exit $ac_status); } >/dev/null && {
7134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 }; then
ad6254c5
AK
7137 ac_header_preproc=yes
7138else
5556819a 7139 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142 ac_header_preproc=no
7143fi
7a197a62 7144
ad6254c5 7145rm -f conftest.err conftest.$ac_ext
5556819a
AK
7146{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7147echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7148
7149# So? What about this header?
8a2fc586
AK
7150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7151 yes:no: )
5556819a
AK
7152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7156 ac_header_preproc=yes
ad6254c5 7157 ;;
8a2fc586 7158 no:yes:* )
5556819a
AK
7159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7171
ad6254c5
AK
7172 ;;
7173esac
5556819a
AK
7174{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 7177 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7178else
8a2fc586 7179 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7180fi
5556819a
AK
7181ac_res=`eval echo '${'$as_ac_Header'}'`
7182 { echo "$as_me:$LINENO: result: $ac_res" >&5
7183echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7184
7185fi
5556819a 7186if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7187 cat >>confdefs.h <<_ACEOF
5556819a 7188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7189_ACEOF
7190
7191fi
7192
7193done
7194
5556819a
AK
7195{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7196echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7197if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5556819a 7198 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7199else
7200 if test "$cross_compiling" = yes; then
7201 ac_cv_func_malloc_0_nonnull=no
7202else
7203 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7204/* confdefs.h. */
7205_ACEOF
7206cat confdefs.h >>conftest.$ac_ext
7207cat >>conftest.$ac_ext <<_ACEOF
7208/* end confdefs.h. */
25fbec5b 7209#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7210# include <stdlib.h>
7211#else
7212char *malloc ();
7213#endif
7214
7215int
7216main ()
7217{
7a197a62 7218return ! malloc (0);
ad6254c5
AK
7219 ;
7220 return 0;
7221}
7222_ACEOF
7223rm -f conftest$ac_exeext
7a197a62
AK
7224if { (ac_try="$ac_link"
7225case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228esac
5556819a 7229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7230 (eval "$ac_link") 2>&5
ad6254c5 7231 ac_status=$?
5556819a 7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7234 { (case "(($ac_try" in
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7237esac
5556819a 7238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7239 (eval "$ac_try") 2>&5
ad6254c5 7240 ac_status=$?
5556819a 7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7242 (exit $ac_status); }; }; then
7243 ac_cv_func_malloc_0_nonnull=yes
7244else
5556819a
AK
7245 echo "$as_me: program exited with status $ac_status" >&5
7246echo "$as_me: failed program was:" >&5
ad6254c5
AK
7247sed 's/^/| /' conftest.$ac_ext >&5
7248
7249( exit $ac_status )
7250ac_cv_func_malloc_0_nonnull=no
7251fi
7a197a62 7252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7253fi
7a197a62
AK
7254
7255
ad6254c5 7256fi
5556819a
AK
7257{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7258echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7259if test $ac_cv_func_malloc_0_nonnull = yes; then
7260
7261cat >>confdefs.h <<\_ACEOF
7262#define HAVE_MALLOC 1
7263_ACEOF
7264
7265else
7266 cat >>confdefs.h <<\_ACEOF
7267#define HAVE_MALLOC 0
7268_ACEOF
7269
7a197a62 7270 case " $LIBOBJS " in
8a2fc586 7271 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7272 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7273 ;;
8a2fc586
AK
7274esac
7275
ad6254c5
AK
7276
7277cat >>confdefs.h <<\_ACEOF
7278#define malloc rpl_malloc
7279_ACEOF
7280
7281fi
7282
7283
7284
5556819a
AK
7285{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7286echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7287if test "${ac_cv_func_memcmp_working+set}" = set; then
5556819a 7288 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7289else
7290 if test "$cross_compiling" = yes; then
7291 ac_cv_func_memcmp_working=no
7292else
7293 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */
8a2fc586 7299$ac_includes_default
ad6254c5
AK
7300int
7301main ()
7302{
7303
7304 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7305 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7306 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7307 return 1;
ad6254c5
AK
7308
7309 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7310 or more and with at least one buffer not starting on a 4-byte boundary.
7311 William Lewis provided this test program. */
7312 {
7313 char foo[21];
7314 char bar[21];
7315 int i;
7316 for (i = 0; i < 4; i++)
7317 {
8a2fc586
AK
7318 char *a = foo + i;
7319 char *b = bar + i;
7320 strcpy (a, "--------01111111");
7321 strcpy (b, "--------10000000");
7322 if (memcmp (a, b, 16) >= 0)
7a197a62 7323 return 1;
ad6254c5 7324 }
7a197a62 7325 return 0;
ad6254c5
AK
7326 }
7327
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332rm -f conftest$ac_exeext
7a197a62
AK
7333if { (ac_try="$ac_link"
7334case "(($ac_try" in
7335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336 *) ac_try_echo=$ac_try;;
7337esac
5556819a 7338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7339 (eval "$ac_link") 2>&5
ad6254c5 7340 ac_status=$?
5556819a 7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7343 { (case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346esac
5556819a 7347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7348 (eval "$ac_try") 2>&5
ad6254c5 7349 ac_status=$?
5556819a 7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7351 (exit $ac_status); }; }; then
7352 ac_cv_func_memcmp_working=yes
7353else
5556819a
AK
7354 echo "$as_me: program exited with status $ac_status" >&5
7355echo "$as_me: failed program was:" >&5
ad6254c5
AK
7356sed 's/^/| /' conftest.$ac_ext >&5
7357
7358( exit $ac_status )
7359ac_cv_func_memcmp_working=no
7360fi
7a197a62 7361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7362fi
7a197a62
AK
7363
7364
ad6254c5 7365fi
5556819a
AK
7366{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7367echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7368test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7369 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7370 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7371 ;;
8a2fc586
AK
7372esac
7373
ad6254c5
AK
7374
7375
7376
7377for ac_header in stdlib.h unistd.h
7378do
5556819a 7379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
7381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 7384 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7385fi
5556819a
AK
7386ac_res=`eval echo '${'$as_ac_Header'}'`
7387 { echo "$as_me:$LINENO: result: $ac_res" >&5
7388echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7389else
7390 # Is the header compilable?
5556819a
AK
7391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7393cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7394/* confdefs.h. */
7395_ACEOF
7396cat confdefs.h >>conftest.$ac_ext
7397cat >>conftest.$ac_ext <<_ACEOF
7398/* end confdefs.h. */
7399$ac_includes_default
7400#include <$ac_header>
7401_ACEOF
7402rm -f conftest.$ac_objext
7a197a62
AK
7403if { (ac_try="$ac_compile"
7404case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407esac
5556819a 7408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7409 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7410 ac_status=$?
8a2fc586
AK
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
5556819a 7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7419 ac_header_compiler=yes
7420else
5556819a 7421 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7422sed 's/^/| /' conftest.$ac_ext >&5
7423
7a197a62 7424 ac_header_compiler=no
ad6254c5 7425fi
7a197a62
AK
7426
7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
7428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7429echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7430
7431# Is the header present?
5556819a
AK
7432{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7433echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7434cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7435/* confdefs.h. */
7436_ACEOF
7437cat confdefs.h >>conftest.$ac_ext
7438cat >>conftest.$ac_ext <<_ACEOF
7439/* end confdefs.h. */
7440#include <$ac_header>
7441_ACEOF
7a197a62
AK
7442if { (ac_try="$ac_cpp conftest.$ac_ext"
7443case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446esac
5556819a 7447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
5556819a 7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7454 (exit $ac_status); } >/dev/null && {
7455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 }; then
ad6254c5
AK
7458 ac_header_preproc=yes
7459else
5556819a 7460 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7461sed 's/^/| /' conftest.$ac_ext >&5
7462
7463 ac_header_preproc=no
7464fi
7a197a62 7465
ad6254c5 7466rm -f conftest.err conftest.$ac_ext
5556819a
AK
7467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7468echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7469
7470# So? What about this header?
8a2fc586
AK
7471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7472 yes:no: )
5556819a
AK
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7477 ac_header_preproc=yes
ad6254c5 7478 ;;
8a2fc586 7479 no:yes:* )
5556819a
AK
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7487echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7492
ad6254c5
AK
7493 ;;
7494esac
5556819a
AK
7495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 7498 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7499else
8a2fc586 7500 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7501fi
5556819a
AK
7502ac_res=`eval echo '${'$as_ac_Header'}'`
7503 { echo "$as_me:$LINENO: result: $ac_res" >&5
7504echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7505
7506fi
5556819a 7507if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7508 cat >>confdefs.h <<_ACEOF
5556819a 7509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7510_ACEOF
7511
7512fi
7513
7514done
7515
7516
7517for ac_func in getpagesize
7518do
5556819a
AK
7519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 7523 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7524else
7525 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7526/* confdefs.h. */
7527_ACEOF
7528cat confdefs.h >>conftest.$ac_ext
7529cat >>conftest.$ac_ext <<_ACEOF
7530/* end confdefs.h. */
8a2fc586
AK
7531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7533#define $ac_func innocuous_$ac_func
7534
ad6254c5
AK
7535/* System header to define __stub macros and hopefully few prototypes,
7536 which can conflict with char $ac_func (); below.
7537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538 <limits.h> exists even on freestanding compilers. */
8a2fc586 7539
ad6254c5
AK
7540#ifdef __STDC__
7541# include <limits.h>
7542#else
7543# include <assert.h>
7544#endif
8a2fc586
AK
7545
7546#undef $ac_func
7547
7a197a62
AK
7548/* Override any GCC internal prototype to avoid an error.
7549 Use char because int might match the return type of a GCC
7550 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7551#ifdef __cplusplus
7552extern "C"
ad6254c5 7553#endif
ad6254c5
AK
7554char $ac_func ();
7555/* The GNU C library defines this for functions which it implements
7556 to always fail with ENOSYS. Some functions are actually named
7557 something starting with __ and the normal name is an alias. */
7a197a62 7558#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7559choke me
ad6254c5
AK
7560#endif
7561
7562int
7563main ()
7564{
7a197a62 7565return $ac_func ();
ad6254c5
AK
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7571if { (ac_try="$ac_link"
7572case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
5556819a 7576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7577 (eval "$ac_link") 2>conftest.er1
ad6254c5 7578 ac_status=$?
8a2fc586
AK
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
5556819a 7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7583 (exit $ac_status); } && {
7584 test -z "$ac_c_werror_flag" ||
7585 test ! -s conftest.err
5556819a
AK
7586 } && test -s conftest$ac_exeext &&
7587 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7588 eval "$as_ac_var=yes"
7589else
5556819a 7590 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7a197a62 7593 eval "$as_ac_var=no"
ad6254c5 7594fi
7a197a62 7595
25fbec5b 7596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7597 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7598fi
5556819a
AK
7599ac_res=`eval echo '${'$as_ac_var'}'`
7600 { echo "$as_me:$LINENO: result: $ac_res" >&5
7601echo "${ECHO_T}$ac_res" >&6; }
7602if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7603 cat >>confdefs.h <<_ACEOF
5556819a 7604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7605_ACEOF
7606
7607fi
7608done
7609
5556819a
AK
7610{ echo "$as_me:$LINENO: checking for working mmap" >&5
7611echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7612if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5556819a 7613 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7614else
7615 if test "$cross_compiling" = yes; then
7616 ac_cv_func_mmap_fixed_mapped=no
7617else
7618 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
7624$ac_includes_default
7625/* malloc might have been renamed as rpl_malloc. */
7626#undef malloc
7627
7628/* Thanks to Mike Haertel and Jim Avera for this test.
7629 Here is a matrix of mmap possibilities:
7630 mmap private not fixed
7631 mmap private fixed at somewhere currently unmapped
7632 mmap private fixed at somewhere already mapped
7633 mmap shared not fixed
7634 mmap shared fixed at somewhere currently unmapped
7635 mmap shared fixed at somewhere already mapped
7636 For private mappings, we should verify that changes cannot be read()
7637 back from the file, nor mmap's back from the file at a different
7638 address. (There have been systems where private was not correctly
7639 implemented like the infamous i386 svr4.0, and systems where the
7640 VM page cache was not coherent with the file system buffer cache
7641 like early versions of FreeBSD and possibly contemporary NetBSD.)
7642 For shared mappings, we should conversely verify that changes get
7643 propagated back to all the places they're supposed to be.
7644
7645 Grep wants private fixed already mapped.
7646 The main things grep needs to know about mmap are:
7647 * does it exist and is it safe to write into the mmap'd area
7648 * how to use it (BSD variants) */
7649
7650#include <fcntl.h>
7651#include <sys/mman.h>
7652
25fbec5b 7653#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7654char *malloc ();
7655#endif
7656
7657/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7658#ifndef HAVE_GETPAGESIZE
ad6254c5 7659/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7660# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7661# define HAVE_SYS_PARAM_H 1
7662# endif
7663
7664# ifdef _SC_PAGESIZE
7665# define getpagesize() sysconf(_SC_PAGESIZE)
7666# else /* no _SC_PAGESIZE */
25fbec5b 7667# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7668# include <sys/param.h>
7669# ifdef EXEC_PAGESIZE
7670# define getpagesize() EXEC_PAGESIZE
7671# else /* no EXEC_PAGESIZE */
7672# ifdef NBPG
7673# define getpagesize() NBPG * CLSIZE
7674# ifndef CLSIZE
7675# define CLSIZE 1
7676# endif /* no CLSIZE */
7677# else /* no NBPG */
7678# ifdef NBPC
7679# define getpagesize() NBPC
7680# else /* no NBPC */
7681# ifdef PAGESIZE
7682# define getpagesize() PAGESIZE
7683# endif /* PAGESIZE */
7684# endif /* no NBPC */
7685# endif /* no NBPG */
7686# endif /* no EXEC_PAGESIZE */
7687# else /* no HAVE_SYS_PARAM_H */
7688# define getpagesize() 8192 /* punt totally */
7689# endif /* no HAVE_SYS_PARAM_H */
7690# endif /* no _SC_PAGESIZE */
7691
7692#endif /* no HAVE_GETPAGESIZE */
7693
7694int
7695main ()
7696{
7697 char *data, *data2, *data3;
7698 int i, pagesize;
7699 int fd;
7700
7701 pagesize = getpagesize ();
7702
7703 /* First, make a file with some known garbage in it. */
7704 data = (char *) malloc (pagesize);
7705 if (!data)
7a197a62 7706 return 1;
ad6254c5
AK
7707 for (i = 0; i < pagesize; ++i)
7708 *(data + i) = rand ();
7709 umask (0);
7710 fd = creat ("conftest.mmap", 0600);
7711 if (fd < 0)
7a197a62 7712 return 1;
ad6254c5 7713 if (write (fd, data, pagesize) != pagesize)
7a197a62 7714 return 1;
ad6254c5
AK
7715 close (fd);
7716
7717 /* Next, try to mmap the file at a fixed address which already has
7718 something else allocated at it. If we can, also make sure that
7719 we see the same garbage. */
7720 fd = open ("conftest.mmap", O_RDWR);
7721 if (fd < 0)
7a197a62 7722 return 1;
ad6254c5
AK
7723 data2 = (char *) malloc (2 * pagesize);
7724 if (!data2)
7a197a62
AK
7725 return 1;
7726 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7727 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7728 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7729 return 1;
ad6254c5
AK
7730 for (i = 0; i < pagesize; ++i)
7731 if (*(data + i) != *(data2 + i))
7a197a62 7732 return 1;
ad6254c5
AK
7733
7734 /* Finally, make sure that changes to the mapped area do not
7735 percolate back to the file as seen by read(). (This is a bug on
7736 some variants of i386 svr4.0.) */
7737 for (i = 0; i < pagesize; ++i)
7738 *(data2 + i) = *(data2 + i) + 1;
7739 data3 = (char *) malloc (pagesize);
7740 if (!data3)
7a197a62 7741 return 1;
ad6254c5 7742 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7743 return 1;
ad6254c5
AK
7744 for (i = 0; i < pagesize; ++i)
7745 if (*(data + i) != *(data3 + i))
7a197a62 7746 return 1;
ad6254c5 7747 close (fd);
7a197a62 7748 return 0;
ad6254c5
AK
7749}
7750_ACEOF
7751rm -f conftest$ac_exeext
7a197a62
AK
7752if { (ac_try="$ac_link"
7753case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756esac
5556819a 7757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7758 (eval "$ac_link") 2>&5
ad6254c5 7759 ac_status=$?
5556819a 7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7762 { (case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765esac
5556819a 7766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7767 (eval "$ac_try") 2>&5
ad6254c5 7768 ac_status=$?
5556819a 7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7770 (exit $ac_status); }; }; then
7771 ac_cv_func_mmap_fixed_mapped=yes
7772else
5556819a
AK
7773 echo "$as_me: program exited with status $ac_status" >&5
7774echo "$as_me: failed program was:" >&5
ad6254c5
AK
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
7777( exit $ac_status )
7778ac_cv_func_mmap_fixed_mapped=no
7779fi
7a197a62 7780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7781fi
7a197a62
AK
7782
7783
ad6254c5 7784fi
5556819a
AK
7785{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7786echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7787if test $ac_cv_func_mmap_fixed_mapped = yes; then
7788
7789cat >>confdefs.h <<\_ACEOF
7790#define HAVE_MMAP 1
7791_ACEOF
7792
7793fi
7794rm -f conftest.mmap
7795
5556819a
AK
7796{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7797echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7798if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5556819a 7799 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7800else
7801 if test "$cross_compiling" = yes; then
7802 ac_cv_func_stat_empty_string_bug=yes
7803else
7804 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7805/* confdefs.h. */
7806_ACEOF
7807cat confdefs.h >>conftest.$ac_ext
7808cat >>conftest.$ac_ext <<_ACEOF
7809/* end confdefs.h. */
7810$ac_includes_default
7811int
7812main ()
7813{
7814struct stat sbuf;
7a197a62 7815 return stat ("", &sbuf) == 0;
ad6254c5
AK
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest$ac_exeext
7a197a62
AK
7821if { (ac_try="$ac_link"
7822case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825esac
5556819a 7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7827 (eval "$ac_link") 2>&5
ad6254c5 7828 ac_status=$?
5556819a 7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7831 { (case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
5556819a 7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7836 (eval "$ac_try") 2>&5
ad6254c5 7837 ac_status=$?
5556819a 7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7839 (exit $ac_status); }; }; then
7a197a62 7840 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7841else
5556819a
AK
7842 echo "$as_me: program exited with status $ac_status" >&5
7843echo "$as_me: failed program was:" >&5
ad6254c5
AK
7844sed 's/^/| /' conftest.$ac_ext >&5
7845
7846( exit $ac_status )
7a197a62 7847ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7848fi
7a197a62 7849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7850fi
7a197a62
AK
7851
7852
ad6254c5 7853fi
5556819a
AK
7854{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7855echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7856if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7857 case " $LIBOBJS " in
8a2fc586 7858 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7859 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7860 ;;
8a2fc586
AK
7861esac
7862
ad6254c5
AK
7863
7864cat >>confdefs.h <<_ACEOF
7865#define HAVE_STAT_EMPTY_STRING_BUG 1
7866_ACEOF
7867
7868fi
7869
5556819a
AK
7870{ echo "$as_me:$LINENO: checking for working strtod" >&5
7871echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7872if test "${ac_cv_func_strtod+set}" = set; then
5556819a 7873 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7874else
7875 if test "$cross_compiling" = yes; then
7876 ac_cv_func_strtod=no
7877else
7878 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7879/* confdefs.h. */
7880_ACEOF
7881cat confdefs.h >>conftest.$ac_ext
7882cat >>conftest.$ac_ext <<_ACEOF
7883/* end confdefs.h. */
7884
7a197a62
AK
7885$ac_includes_default
7886#ifndef strtod
ad6254c5 7887double strtod ();
7a197a62 7888#endif
ad6254c5
AK
7889int
7890main()
7891{
7892 {
7893 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7894 char *string = " +69";
7895 char *term;
7896 double value;
7897 value = strtod (string, &term);
7898 if (value != 69 || term != (string + 4))
7a197a62 7899 return 1;
ad6254c5
AK
7900 }
7901
7902 {
7903 /* Under Solaris 2.4, strtod returns the wrong value for the
7904 terminating character under some conditions. */
7905 char *string = "NaN";
7906 char *term;
7907 strtod (string, &term);
7908 if (term != string && *(term - 1) == 0)
7a197a62 7909 return 1;
ad6254c5 7910 }
7a197a62 7911 return 0;
ad6254c5
AK
7912}
7913
7914_ACEOF
7915rm -f conftest$ac_exeext
7a197a62
AK
7916if { (ac_try="$ac_link"
7917case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920esac
5556819a 7921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7922 (eval "$ac_link") 2>&5
ad6254c5 7923 ac_status=$?
5556819a 7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7926 { (case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929esac
5556819a 7930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7931 (eval "$ac_try") 2>&5
ad6254c5 7932 ac_status=$?
5556819a 7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7934 (exit $ac_status); }; }; then
7935 ac_cv_func_strtod=yes
7936else
5556819a
AK
7937 echo "$as_me: program exited with status $ac_status" >&5
7938echo "$as_me: failed program was:" >&5
ad6254c5
AK
7939sed 's/^/| /' conftest.$ac_ext >&5
7940
7941( exit $ac_status )
7942ac_cv_func_strtod=no
7943fi
7a197a62 7944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7945fi
7a197a62
AK
7946
7947
ad6254c5 7948fi
5556819a
AK
7949{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
7950echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 7951if test $ac_cv_func_strtod = no; then
7a197a62 7952 case " $LIBOBJS " in
8a2fc586 7953 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
7954 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7955 ;;
8a2fc586
AK
7956esac
7957
5556819a
AK
7958{ echo "$as_me:$LINENO: checking for pow" >&5
7959echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 7960if test "${ac_cv_func_pow+set}" = set; then
5556819a 7961 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7962else
7963 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7964/* confdefs.h. */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h. */
8a2fc586
AK
7969/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7971#define pow innocuous_pow
7972
ad6254c5
AK
7973/* System header to define __stub macros and hopefully few prototypes,
7974 which can conflict with char pow (); below.
7975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7976 <limits.h> exists even on freestanding compilers. */
8a2fc586 7977
ad6254c5
AK
7978#ifdef __STDC__
7979# include <limits.h>
7980#else
7981# include <assert.h>
7982#endif
8a2fc586
AK
7983
7984#undef pow
7985
7a197a62
AK
7986/* Override any GCC internal prototype to avoid an error.
7987 Use char because int might match the return type of a GCC
7988 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7989#ifdef __cplusplus
7990extern "C"
ad6254c5 7991#endif
ad6254c5
AK
7992char pow ();
7993/* The GNU C library defines this for functions which it implements
7994 to always fail with ENOSYS. Some functions are actually named
7995 something starting with __ and the normal name is an alias. */
7a197a62 7996#if defined __stub_pow || defined __stub___pow
ad6254c5 7997choke me
ad6254c5
AK
7998#endif
7999
8000int
8001main ()
8002{
7a197a62 8003return pow ();
ad6254c5
AK
8004 ;
8005 return 0;
8006}
8007_ACEOF
8008rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8009if { (ac_try="$ac_link"
8010case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8013esac
5556819a 8014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8015 (eval "$ac_link") 2>conftest.er1
ad6254c5 8016 ac_status=$?
8a2fc586
AK
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
5556819a 8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
5556819a
AK
8024 } && test -s conftest$ac_exeext &&
8025 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8026 ac_cv_func_pow=yes
8027else
5556819a 8028 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8029sed 's/^/| /' conftest.$ac_ext >&5
8030
7a197a62 8031 ac_cv_func_pow=no
ad6254c5 8032fi
7a197a62 8033
25fbec5b 8034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8035 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8036fi
5556819a
AK
8037{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8038echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8039
8040if test $ac_cv_func_pow = no; then
5556819a
AK
8041 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8042echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8043if test "${ac_cv_lib_m_pow+set}" = set; then
5556819a 8044 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8045else
8046 ac_check_lib_save_LIBS=$LIBS
8047LIBS="-lm $LIBS"
8048cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054
7a197a62
AK
8055/* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8058#ifdef __cplusplus
8059extern "C"
8060#endif
ad6254c5
AK
8061char pow ();
8062int
8063main ()
8064{
7a197a62 8065return pow ();
ad6254c5
AK
8066 ;
8067 return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8071if { (ac_try="$ac_link"
8072case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075esac
5556819a 8076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8077 (eval "$ac_link") 2>conftest.er1
ad6254c5 8078 ac_status=$?
8a2fc586
AK
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
5556819a 8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
5556819a
AK
8086 } && test -s conftest$ac_exeext &&
8087 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8088 ac_cv_lib_m_pow=yes
8089else
5556819a 8090 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
7a197a62 8093 ac_cv_lib_m_pow=no
ad6254c5 8094fi
7a197a62 8095
25fbec5b 8096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8097 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8098LIBS=$ac_check_lib_save_LIBS
d0191583 8099fi
5556819a
AK
8100{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8101echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8102if test $ac_cv_lib_m_pow = yes; then
8103 POW_LIB=-lm
8104else
5556819a
AK
8105 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8106echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8107fi
72b2cb61 8108
d0191583 8109fi
72b2cb61 8110
ad6254c5
AK
8111fi
8112
ad6254c5 8113
d0191583
JM
8114for ac_func in vprintf
8115do
5556819a
AK
8116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8117{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
d0191583 8119if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 8120 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8121else
d0191583
JM
8122 cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130#define $ac_func innocuous_$ac_func
7a197a62 8131
d0191583
JM
8132/* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char $ac_func (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
ad6254c5 8136
d0191583
JM
8137#ifdef __STDC__
8138# include <limits.h>
8139#else
8140# include <assert.h>
8141#endif
ad6254c5 8142
d0191583 8143#undef $ac_func
72b2cb61 8144
d0191583
JM
8145/* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8148#ifdef __cplusplus
8149extern "C"
8150#endif
8151char $ac_func ();
8152/* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155#if defined __stub_$ac_func || defined __stub___$ac_func
8156choke me
8157#endif
8158
8159int
8160main ()
8161{
8162return $ac_func ();
8163 ;
8164 return 0;
8165}
72b2cb61 8166_ACEOF
d0191583
JM
8167rm -f conftest.$ac_objext conftest$ac_exeext
8168if { (ac_try="$ac_link"
8169case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172esac
5556819a 8173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8174 (eval "$ac_link") 2>conftest.er1
8175 ac_status=$?
8176 grep -v '^ *+' conftest.er1 >conftest.err
8177 rm -f conftest.er1
8178 cat conftest.err >&5
5556819a 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8180 (exit $ac_status); } && {
8181 test -z "$ac_c_werror_flag" ||
8182 test ! -s conftest.err
5556819a
AK
8183 } && test -s conftest$ac_exeext &&
8184 $as_test_x conftest$ac_exeext; then
d0191583
JM
8185 eval "$as_ac_var=yes"
8186else
5556819a 8187 echo "$as_me: failed program was:" >&5
d0191583 8188sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8189
d0191583 8190 eval "$as_ac_var=no"
ad6254c5
AK
8191fi
8192
d0191583
JM
8193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8194 conftest$ac_exeext conftest.$ac_ext
7a197a62 8195fi
5556819a
AK
8196ac_res=`eval echo '${'$as_ac_var'}'`
8197 { echo "$as_me:$LINENO: result: $ac_res" >&5
8198echo "${ECHO_T}$ac_res" >&6; }
8199if test `eval echo '${'$as_ac_var'}'` = yes; then
d0191583 8200 cat >>confdefs.h <<_ACEOF
5556819a 8201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8202_ACEOF
7a197a62 8203
5556819a
AK
8204{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8205echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
d0191583 8206if test "${ac_cv_func__doprnt+set}" = set; then
5556819a 8207 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8208else
d0191583
JM
8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8217#define _doprnt innocuous__doprnt
7a197a62 8218
d0191583
JM
8219/* System header to define __stub macros and hopefully few prototypes,
8220 which can conflict with char _doprnt (); below.
8221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8222 <limits.h> exists even on freestanding compilers. */
ad6254c5 8223
d0191583
JM
8224#ifdef __STDC__
8225# include <limits.h>
8226#else
8227# include <assert.h>
8228#endif
72b2cb61 8229
d0191583
JM
8230#undef _doprnt
8231
8232/* Override any GCC internal prototype to avoid an error.
8233 Use char because int might match the return type of a GCC
8234 builtin and then its argument prototype would still apply. */
8235#ifdef __cplusplus
8236extern "C"
8237#endif
8238char _doprnt ();
8239/* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242#if defined __stub__doprnt || defined __stub____doprnt
8243choke me
8244#endif
8245
8246int
8247main ()
8248{
8249return _doprnt ();
8250 ;
8251 return 0;
8252}
72b2cb61 8253_ACEOF
d0191583
JM
8254rm -f conftest.$ac_objext conftest$ac_exeext
8255if { (ac_try="$ac_link"
8256case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
5556819a 8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8261 (eval "$ac_link") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
5556819a 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
5556819a
AK
8270 } && test -s conftest$ac_exeext &&
8271 $as_test_x conftest$ac_exeext; then
d0191583
JM
8272 ac_cv_func__doprnt=yes
8273else
5556819a 8274 echo "$as_me: failed program was:" >&5
d0191583 8275sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8276
d0191583 8277 ac_cv_func__doprnt=no
ad6254c5
AK
8278fi
8279
d0191583
JM
8280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8281 conftest$ac_exeext conftest.$ac_ext
7a197a62 8282fi
5556819a
AK
8283{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8284echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
d0191583 8285if test $ac_cv_func__doprnt = yes; then
7a197a62 8286
d0191583
JM
8287cat >>confdefs.h <<\_ACEOF
8288#define HAVE_DOPRNT 1
8289_ACEOF
ad6254c5 8290
7a197a62
AK
8291fi
8292
d0191583
JM
8293fi
8294done
8b1a3214 8295
ad6254c5 8296
7a197a62 8297
d0191583 8298################################################################################
ad6254c5 8299
ad6254c5
AK
8300
8301################################################################################
5556819a
AK
8302{ echo "$as_me:$LINENO: checking file owner" >&5
8303echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
d0191583
JM
8304OWNER="root"
8305
8306
8307# Check whether --with-user was given.
8308if test "${with_user+set}" = set; then
8309 withval=$with_user; OWNER="$withval"
7a197a62
AK
8310fi
8311
5556819a
AK
8312{ echo "$as_me:$LINENO: result: $OWNER" >&5
8313echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8314
d0191583
JM
8315if test x$OWNER != x; then
8316 OWNER="-o $OWNER"
ad6254c5
AK
8317fi
8318
8319################################################################################
5556819a
AK
8320{ echo "$as_me:$LINENO: checking group owner" >&5
8321echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
d0191583 8322GROUP="root"
ad6254c5 8323
d0191583
JM
8324# Check whether --with-group was given.
8325if test "${with_group+set}" = set; then
8326 withval=$with_group; GROUP="$withval"
7a197a62
AK
8327fi
8328
5556819a
AK
8329{ echo "$as_me:$LINENO: result: $GROUP" >&5
8330echo "${ECHO_T}$GROUP" >&6; }
d0191583
JM
8331
8332if test x$GROUP != x; then
8333 GROUP="-g $GROUP"
8334fi
ad6254c5
AK
8335
8336################################################################################
5556819a
AK
8337{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8338echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
d0191583
JM
8339# Check whether --enable-lvm1_fallback was given.
8340if test "${enable_lvm1_fallback+set}" = set; then
8341 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8342else
8343 LVM1_FALLBACK=no
7a197a62
AK
8344fi
8345
5556819a
AK
8346{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8347echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8348
d0191583 8349if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8350
8351cat >>confdefs.h <<\_ACEOF
d0191583 8352#define LVM1_FALLBACK 1
72b2cb61
AK
8353_ACEOF
8354
ad6254c5
AK
8355fi
8356
8357################################################################################
5556819a
AK
8358{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8359echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
d0191583
JM
8360
8361# Check whether --with-lvm1 was given.
8362if test "${with_lvm1+set}" = set; then
8363 withval=$with_lvm1; LVM1="$withval"
8364else
8365 LVM1="internal"
7a197a62
AK
8366fi
8367
5556819a
AK
8368{ echo "$as_me:$LINENO: result: $LVM1" >&5
8369echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8370
d0191583 8371if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
5556819a 8372 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8373" >&5
5556819a 8374echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8375" >&2;}
8376 { (exit 1); exit 1; }; }
8377fi;
8378
8379if test x$LVM1 = xinternal; then
72b2cb61
AK
8380
8381cat >>confdefs.h <<\_ACEOF
d0191583 8382#define LVM1_INTERNAL 1
72b2cb61
AK
8383_ACEOF
8384
ad6254c5
AK
8385fi
8386
8387################################################################################
5556819a
AK
8388{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8389echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
d0191583
JM
8390
8391# Check whether --with-pool was given.
8392if test "${with_pool+set}" = set; then
8393 withval=$with_pool; POOL="$withval"
ad6254c5 8394else
d0191583 8395 POOL="internal"
7a197a62
AK
8396fi
8397
5556819a
AK
8398{ echo "$as_me:$LINENO: result: $POOL" >&5
8399echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8400
d0191583 8401if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
5556819a 8402 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8403" >&5
5556819a 8404echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8405" >&2;}
8406 { (exit 1); exit 1; }; }
8407fi;
7a197a62 8408
d0191583
JM
8409if test x$POOL = xinternal; then
8410
8411cat >>confdefs.h <<\_ACEOF
8412#define POOL_INTERNAL 1
8413_ACEOF
8414
8415fi
ad6254c5 8416
06f62ad1 8417################################################################################
5556819a
AK
8418{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8419echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
d0191583
JM
8420
8421# Check whether --with-cluster was given.
8422if test "${with_cluster+set}" = set; then
8423 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8424fi
8425
5556819a
AK
8426{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8427echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8428
d0191583 8429if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
5556819a 8430 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8431" >&5
5556819a 8432echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8433" >&2;}
8434 { (exit 1); exit 1; }; }
d0191583 8435fi;
06f62ad1 8436
d0191583 8437if test x$CLUSTER = xinternal; then
72b2cb61
AK
8438
8439cat >>confdefs.h <<\_ACEOF
d0191583 8440#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8441_ACEOF
8442
15d91f5a 8443fi
ad6254c5
AK
8444
8445################################################################################
5556819a
AK
8446{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8447echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8448
d0191583
JM
8449# Check whether --with-snapshots was given.
8450if test "${with_snapshots+set}" = set; then
8451 withval=$with_snapshots; SNAPSHOTS="$withval"
8452else
8453 SNAPSHOTS="internal"
ad6254c5
AK
8454fi
8455
5556819a
AK
8456{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8457echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8458
d0191583 8459if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
5556819a 8460 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8461" >&5
5556819a 8462echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8463" >&2;}
8464 { (exit 1); exit 1; }; }
8465fi;
8466
8467if test x$SNAPSHOTS = xinternal; then
8468
8469cat >>confdefs.h <<\_ACEOF
8470#define SNAPSHOT_INTERNAL 1
8471_ACEOF
ad6254c5 8472
ad6254c5 8473fi
7a197a62 8474
d0191583 8475################################################################################
5556819a
AK
8476{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8477echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
d0191583
JM
8478
8479# Check whether --with-mirrors was given.
8480if test "${with_mirrors+set}" = set; then
8481 withval=$with_mirrors; MIRRORS="$withval"
8482else
8483 MIRRORS="internal"
ad6254c5 8484fi
ad6254c5 8485
5556819a
AK
8486{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8487echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8488
d0191583 8489if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
5556819a 8490 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8491" >&5
5556819a 8492echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8493" >&2;}
8494 { (exit 1); exit 1; }; }
8495fi;
ad6254c5 8496
d0191583 8497if test x$MIRRORS = xinternal; then
ad6254c5 8498
d0191583
JM
8499cat >>confdefs.h <<\_ACEOF
8500#define MIRRORED_INTERNAL 1
ad6254c5 8501_ACEOF
8a2fc586 8502
d0191583 8503fi
8a2fc586 8504
d0191583 8505################################################################################
5556819a
AK
8506{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8507echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
d0191583
JM
8508# Check whether --enable-readline was given.
8509if test "${enable_readline+set}" = set; then
8510 enableval=$enable_readline; READLINE=$enableval
8511else
1b523347 8512 READLINE=yes
d0191583 8513fi
8a2fc586 8514
5556819a
AK
8515{ echo "$as_me:$LINENO: result: $READLINE" >&5
8516echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8517
d0191583 8518################################################################################
5556819a
AK
8519{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8520echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
d0191583
JM
8521# Check whether --enable-realtime was given.
8522if test "${enable_realtime+set}" = set; then
8523 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8524fi
ad6254c5 8525
5556819a
AK
8526{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8527echo "${ECHO_T}$REALTIME" >&6; }
d0191583
JM
8528
8529################################################################################
5556819a
AK
8530{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8531echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
d0191583
JM
8532
8533# Check whether --with-clvmd was given.
8534if test "${with_clvmd+set}" = set; then
8535 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8536else
d0191583
JM
8537 CLVMD="none"
8538fi
8a2fc586 8539
d0191583
JM
8540if test x$CLVMD = xyes; then
8541 CLVMD=all
8542fi
5556819a
AK
8543{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8544echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8545
d0191583
JM
8546if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8547 CLUSTER=internal
8548fi
8a2fc586 8549
d0191583 8550################################################################################
5556819a
AK
8551{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8552echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
d0191583
JM
8553# Check whether --enable-debug was given.
8554if test "${enable_debug+set}" = set; then
8555 enableval=$enable_debug; DEBUG=$enableval
8556else
8557 DEBUG=no
8558fi
8a2fc586 8559
5556819a
AK
8560{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8561echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8562
d0191583
JM
8563if test x$DEBUG = xyes; then
8564 COPTIMISE_FLAG=
fc54be10 8565else
d0191583
JM
8566 CSCOPE_CMD=
8567fi
fc54be10 8568
d0191583 8569################################################################################
5556819a
AK
8570{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8571echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
d0191583
JM
8572
8573# Check whether --with-optimisation was given.
8574if test "${with_optimisation+set}" = set; then
8575 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8576fi
8577
5556819a
AK
8578{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8579echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
8580
8581################################################################################
5556819a
AK
8582{ echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8583echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
fddafd51
ZK
8584# Check whether --enable-profiling was given.
8585if test "${enable_profiling+set}" = set; then
5556819a 8586 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 8587else
5556819a 8588 PROFILING=no
fddafd51
ZK
8589fi
8590
5556819a
AK
8591{ echo "$as_me:$LINENO: result: $PROFILING" >&5
8592echo "${ECHO_T}$PROFILING" >&6; }
8593
8594if test "x$PROFILING" = xyes; then
8595 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8596 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 8597set dummy lcov; ac_word=$2
5556819a
AK
8598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8600if test "${ac_cv_path_LCOV+set}" = set; then
5556819a 8601 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8602else
8603 case $LCOV in
8604 [\\/]* | ?:[\\/]*)
8605 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8606 ;;
8607 *)
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8615 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
5556819a 8616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8617 break 2
8618 fi
8619done
8620done
8621IFS=$as_save_IFS
8622
8623 ;;
8624esac
8625fi
8626LCOV=$ac_cv_path_LCOV
8627if test -n "$LCOV"; then
5556819a
AK
8628 { echo "$as_me:$LINENO: result: $LCOV" >&5
8629echo "${ECHO_T}$LCOV" >&6; }
fddafd51 8630else
5556819a
AK
8631 { echo "$as_me:$LINENO: result: no" >&5
8632echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8633fi
8634
8635
5556819a 8636 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 8637set dummy genhtml; ac_word=$2
5556819a
AK
8638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8640if test "${ac_cv_path_GENHTML+set}" = set; then
5556819a 8641 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8642else
8643 case $GENHTML in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8646 ;;
8647 *)
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
5556819a 8656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8657 break 2
8658 fi
8659done
8660done
8661IFS=$as_save_IFS
8662
8663 ;;
8664esac
8665fi
8666GENHTML=$ac_cv_path_GENHTML
8667if test -n "$GENHTML"; then
5556819a
AK
8668 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8669echo "${ECHO_T}$GENHTML" >&6; }
fddafd51 8670else
5556819a
AK
8671 { echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8673fi
8674
8675
5556819a 8676fi
d0191583
JM
8677
8678################################################################################
5556819a
AK
8679{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8680echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
d0191583
JM
8681# Check whether --enable-devmapper was given.
8682if test "${enable_devmapper+set}" = set; then
8683 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8684fi
8685
5556819a
AK
8686{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8687echo "${ECHO_T}$DEVMAPPER" >&6; }
d0191583
JM
8688
8689if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8690
8691cat >>confdefs.h <<\_ACEOF
d0191583 8692#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8693_ACEOF
8694
8695fi
8696
d0191583 8697################################################################################
5556819a
AK
8698{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8699echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
d0191583
JM
8700# Check whether --enable-o_direct was given.
8701if test "${enable_o_direct+set}" = set; then
8702 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8703fi
ad6254c5 8704
5556819a
AK
8705{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8706echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8707
d0191583 8708if test x$ODIRECT = xyes; then
ad6254c5 8709
d0191583
JM
8710cat >>confdefs.h <<\_ACEOF
8711#define O_DIRECT_SUPPORT 1
8712_ACEOF
ad6254c5 8713
d0191583 8714fi
ad6254c5 8715
d0191583 8716################################################################################
5556819a
AK
8717{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8718echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
d0191583
JM
8719# Check whether --enable-cmdlib was given.
8720if test "${enable_cmdlib+set}" = set; then
8721 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8722else
d0191583
JM
8723 CMDLIB=no
8724fi
8a2fc586 8725
5556819a
AK
8726{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8727echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8728
2a9a80c9 8729test x$CMDLIB = xyes \
d179cc7a
JM
8730 && LVM2CMD_LIB=-llvm2cmd \
8731 || LVM2CMD_LIB=
8732
2a9a80c9 8733
d0191583 8734################################################################################
5556819a
AK
8735{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8736echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
d0191583
JM
8737# Check whether --enable-fsadm was given.
8738if test "${enable_fsadm+set}" = set; then
8739 enableval=$enable_fsadm; FSADM=$enableval
8740fi
8a2fc586 8741
5556819a
AK
8742{ echo "$as_me:$LINENO: result: $FSADM" >&5
8743echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8744
d0191583 8745################################################################################
5556819a
AK
8746{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8747echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
d0191583
JM
8748# Check whether --enable-dmeventd was given.
8749if test "${enable_dmeventd+set}" = set; then
8750 enableval=$enable_dmeventd; DMEVENTD=$enableval
8751fi
ad6254c5 8752
5556819a
AK
8753{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8754echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8755
2a9a80c9
PR
8756if test x$DMEVENTD = xyes; then
8757 if test x$MIRRORS != xinternal; then
8758 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
8759 " >&5
5556819a 8760echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8761 " >&2;}
d0191583 8762 { (exit 1); exit 1; }; }
2a9a80c9
PR
8763 fi
8764 if test x$CMDLIB = xno; then
8765 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8766 " >&5
8767echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
8768 " >&2;}
8769 { (exit 1); exit 1; }; }
8770 fi
ad6254c5 8771fi
7a197a62 8772
d0191583
JM
8773if test x$DMEVENTD = xyes; then
8774
8775cat >>confdefs.h <<\_ACEOF
8776#define DMEVENTD 1
ad6254c5
AK
8777_ACEOF
8778
ad6254c5 8779fi
d0191583
JM
8780################################################################################
8781if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8782 then exec_prefix="";
8783fi;
ad6254c5
AK
8784
8785################################################################################
8786if test x$READLINE = xyes; then
5556819a
AK
8787 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8788echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 8789if test "${ac_cv_search_tgetent+set}" = set; then
5556819a 8790 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8791else
8792 ac_func_search_save_LIBS=$LIBS
ad6254c5 8793cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8794/* confdefs.h. */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h. */
8799
7a197a62
AK
8800/* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8803#ifdef __cplusplus
8804extern "C"
8805#endif
ad6254c5
AK
8806char tgetent ();
8807int
8808main ()
8809{
7a197a62 8810return tgetent ();
ad6254c5
AK
8811 ;
8812 return 0;
8813}
8814_ACEOF
7a197a62
AK
8815for ac_lib in '' ncurses curses termcap termlib; do
8816 if test -z "$ac_lib"; then
8817 ac_res="none required"
8818 else
8819 ac_res=-l$ac_lib
8820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8821 fi
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823if { (ac_try="$ac_link"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
5556819a 8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8829 (eval "$ac_link") 2>conftest.er1
ad6254c5 8830 ac_status=$?
8a2fc586
AK
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
5556819a 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
5556819a
AK
8838 } && test -s conftest$ac_exeext &&
8839 $as_test_x conftest$ac_exeext; then
7a197a62 8840 ac_cv_search_tgetent=$ac_res
ad6254c5 8841else
5556819a 8842 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
ad6254c5 8845
7a197a62 8846fi
ad6254c5 8847
25fbec5b 8848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
8849 conftest$ac_exeext
8850 if test "${ac_cv_search_tgetent+set}" = set; then
8851 break
ad6254c5 8852fi
7a197a62
AK
8853done
8854if test "${ac_cv_search_tgetent+set}" = set; then
8855 :
8856else
8857 ac_cv_search_tgetent=no
ad6254c5 8858fi
7a197a62 8859rm conftest.$ac_ext
ad6254c5
AK
8860LIBS=$ac_func_search_save_LIBS
8861fi
5556819a
AK
8862{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8863echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
8864ac_res=$ac_cv_search_tgetent
8865if test "$ac_res" != no; then
8866 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5
AK
8867
8868else
5556819a 8869 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
8870--enable-readline option (which is enabled by default). Either disable readline
8871support with --disable-readline or download and install termcap from:
8872 ftp.gnu.org/gnu/termcap
8873Note: if you are using precompiled packages you will also need the development
8874 package as well (which may be called termcap-devel or something similar).
8875Note: (n)curses also seems to work as a substitute for termcap. This was
8876 not found either - but you could try installing that as well.
8877" >&5
5556819a 8878echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
8879--enable-readline option (which is enabled by default). Either disable readline
8880support with --disable-readline or download and install termcap from:
8881 ftp.gnu.org/gnu/termcap
8882Note: if you are using precompiled packages you will also need the development
8883 package as well (which may be called termcap-devel or something similar).
8884Note: (n)curses also seems to work as a substitute for termcap. This was
8885 not found either - but you could try installing that as well.
8886" >&2;}
8887 { (exit 1); exit 1; }; }
8888
8889fi
8890
8891fi
8892
8893################################################################################
5556819a
AK
8894{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 8896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5556819a 8897 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8898else
8899 ac_check_lib_save_LIBS=$LIBS
8900LIBS="-ldl $LIBS"
8901cat >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. */
8907
7a197a62
AK
8908/* Override any GCC internal prototype to avoid an error.
8909 Use char because int might match the return type of a GCC
8910 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8911#ifdef __cplusplus
8912extern "C"
8913#endif
ad6254c5
AK
8914char dlopen ();
8915int
8916main ()
8917{
7a197a62 8918return dlopen ();
ad6254c5
AK
8919 ;
8920 return 0;
8921}
8922_ACEOF
8923rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8924if { (ac_try="$ac_link"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
5556819a 8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8930 (eval "$ac_link") 2>conftest.er1
ad6254c5 8931 ac_status=$?
8a2fc586
AK
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
5556819a 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
5556819a
AK
8939 } && test -s conftest$ac_exeext &&
8940 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8941 ac_cv_lib_dl_dlopen=yes
8942else
5556819a 8943 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
7a197a62 8946 ac_cv_lib_dl_dlopen=no
ad6254c5 8947fi
7a197a62 8948
25fbec5b 8949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8950 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8951LIBS=$ac_check_lib_save_LIBS
8952fi
5556819a
AK
8953{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
8955if test $ac_cv_lib_dl_dlopen = yes; then
8956 HAVE_LIBDL=yes
8957else
8958 HAVE_LIBDL=no
8959fi
8960
8961
7e9e9502 8962if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8963
8964cat >>confdefs.h <<\_ACEOF
8965#define HAVE_LIBDL 1
8966_ACEOF
8967
ad6254c5
AK
8968 LIBS="-ldl $LIBS"
8969else
8970 HAVE_LIBDL=no
8971fi
8972
8973################################################################################
8974if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8975 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8976 \) -a "x$STATIC_LINK" = xyes ];
5556819a 8977 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 8978" >&5
5556819a 8979echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
8980" >&2;}
8981 { (exit 1); exit 1; }; }
8982fi
8983
d0191583 8984################################################################################
5556819a
AK
8985{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
8986echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
8987# Check whether --enable-static_link was given.
8988if test "${enable_static_link+set}" = set; then
8989 enableval=$enable_static_link; STATIC_LINK=$enableval
8990else
8991 STATIC_LINK=no
8992fi
8993
5556819a
AK
8994{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8995echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
8996
8997################################################################################
5556819a
AK
8998{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
8999echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9000# Check whether --enable-selinux was given.
9001if test "${enable_selinux+set}" = set; then
9002 enableval=$enable_selinux; SELINUX=$enableval
9003fi
9004
5556819a
AK
9005{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9006echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9007
ad6254c5
AK
9008################################################################################
9009if test x$SELINUX = xyes; then
5556819a
AK
9010 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9011echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9012if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
5556819a 9013 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9014else
9015 ac_check_lib_save_LIBS=$LIBS
9016LIBS="-lsepol $LIBS"
9017cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */
9023
7a197a62
AK
9024/* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9027#ifdef __cplusplus
9028extern "C"
9029#endif
8a2fc586
AK
9030char sepol_check_context ();
9031int
9032main ()
9033{
7a197a62 9034return sepol_check_context ();
8a2fc586
AK
9035 ;
9036 return 0;
9037}
9038_ACEOF
9039rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9040if { (ac_try="$ac_link"
9041case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
5556819a 9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9046 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
5556819a 9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9052 (exit $ac_status); } && {
9053 test -z "$ac_c_werror_flag" ||
9054 test ! -s conftest.err
5556819a
AK
9055 } && test -s conftest$ac_exeext &&
9056 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9057 ac_cv_lib_sepol_sepol_check_context=yes
9058else
5556819a 9059 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
7a197a62 9062 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9063fi
7a197a62 9064
25fbec5b 9065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9066 conftest$ac_exeext conftest.$ac_ext
9067LIBS=$ac_check_lib_save_LIBS
9068fi
5556819a
AK
9069{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9070echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9071if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9072 HAVE_SEPOL=yes
9073else
9074 HAVE_SEPOL=no
9075fi
9076
8a2fc586
AK
9077
9078 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9079
9080cat >>confdefs.h <<\_ACEOF
9081#define HAVE_SEPOL 1
9082_ACEOF
9083
8a2fc586
AK
9084 LIBS="-lsepol $LIBS"
9085 fi
9086
5556819a
AK
9087 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9088echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9089if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
5556819a 9090 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9091else
9092 ac_check_lib_save_LIBS=$LIBS
9093LIBS="-lselinux $LIBS"
9094cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9095/* confdefs.h. */
9096_ACEOF
9097cat confdefs.h >>conftest.$ac_ext
9098cat >>conftest.$ac_ext <<_ACEOF
9099/* end confdefs.h. */
9100
7a197a62
AK
9101/* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9104#ifdef __cplusplus
9105extern "C"
9106#endif
ad6254c5
AK
9107char is_selinux_enabled ();
9108int
9109main ()
9110{
7a197a62 9111return is_selinux_enabled ();
ad6254c5
AK
9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9117if { (ac_try="$ac_link"
9118case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
5556819a 9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9123 (eval "$ac_link") 2>conftest.er1
ad6254c5 9124 ac_status=$?
8a2fc586
AK
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
5556819a 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
5556819a
AK
9132 } && test -s conftest$ac_exeext &&
9133 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9134 ac_cv_lib_selinux_is_selinux_enabled=yes
9135else
5556819a 9136 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9137sed 's/^/| /' conftest.$ac_ext >&5
9138
7a197a62 9139 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9140fi
7a197a62 9141
25fbec5b 9142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9143 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9144LIBS=$ac_check_lib_save_LIBS
9145fi
5556819a
AK
9146{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9147echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9148if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9149 HAVE_SELINUX=yes
9150else
9151 HAVE_SELINUX=no
9152fi
9153
ad6254c5
AK
9154
9155 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9156
9157cat >>confdefs.h <<\_ACEOF
9158#define HAVE_SELINUX 1
9159_ACEOF
9160
ad6254c5
AK
9161 LIBS="-lselinux $LIBS"
9162 else
5556819a
AK
9163 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9164echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9165 fi
9166
d0191583 9167 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9168 # fails on at least Debian unstable due to unsatisfied references
9169 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9170 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9171 lvm_saved_libs=$LIBS
9172 LIBS="$LIBS -static"
5556819a
AK
9173 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9174echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9175if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
5556819a 9176 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9177else
9178 ac_func_search_save_LIBS=$LIBS
9179cat >conftest.$ac_ext <<_ACEOF
9180/* confdefs.h. */
9181_ACEOF
9182cat confdefs.h >>conftest.$ac_ext
9183cat >>conftest.$ac_ext <<_ACEOF
9184/* end confdefs.h. */
9185
9186/* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9189#ifdef __cplusplus
9190extern "C"
9191#endif
9192char pthread_mutex_lock ();
9193int
9194main ()
9195{
9196return pthread_mutex_lock ();
9197 ;
9198 return 0;
9199}
9200_ACEOF
9201for ac_lib in '' pthread; do
9202 if test -z "$ac_lib"; then
9203 ac_res="none required"
9204 else
9205 ac_res=-l$ac_lib
9206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9207 fi
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209if { (ac_try="$ac_link"
9210case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
5556819a 9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9215 (eval "$ac_link") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
5556819a 9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
5556819a
AK
9224 } && test -s conftest$ac_exeext &&
9225 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9226 ac_cv_search_pthread_mutex_lock=$ac_res
9227else
5556819a 9228 echo "$as_me: failed program was:" >&5
66e941e8
JM
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
9231
9232fi
9233
25fbec5b 9234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9235 conftest$ac_exeext
9236 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9237 break
9238fi
9239done
9240if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9241 :
9242else
9243 ac_cv_search_pthread_mutex_lock=no
9244fi
9245rm conftest.$ac_ext
9246LIBS=$ac_func_search_save_LIBS
9247fi
5556819a
AK
9248{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9249echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9250ac_res=$ac_cv_search_pthread_mutex_lock
9251if test "$ac_res" != no; then
9252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9253 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9254 LIB_PTHREAD=-lpthread
9255fi
9256
9257 LIBS=$lvm_saved_libs
ad6254c5
AK
9258 fi
9259fi
9260
8b1a3214
AK
9261################################################################################
9262if test x$REALTIME = xyes; then
5556819a
AK
9263 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9264echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9265if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5556819a 9266 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9267else
9268 ac_check_lib_save_LIBS=$LIBS
9269LIBS="-lrt $LIBS"
9270cat >conftest.$ac_ext <<_ACEOF
9271/* confdefs.h. */
9272_ACEOF
9273cat confdefs.h >>conftest.$ac_ext
9274cat >>conftest.$ac_ext <<_ACEOF
9275/* end confdefs.h. */
9276
7a197a62
AK
9277/* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9280#ifdef __cplusplus
9281extern "C"
9282#endif
8b1a3214
AK
9283char clock_gettime ();
9284int
9285main ()
9286{
7a197a62 9287return clock_gettime ();
8b1a3214
AK
9288 ;
9289 return 0;
9290}
9291_ACEOF
9292rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9293if { (ac_try="$ac_link"
9294case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297esac
5556819a 9298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9299 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
5556819a 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9305 (exit $ac_status); } && {
9306 test -z "$ac_c_werror_flag" ||
9307 test ! -s conftest.err
5556819a
AK
9308 } && test -s conftest$ac_exeext &&
9309 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9310 ac_cv_lib_rt_clock_gettime=yes
9311else
5556819a 9312 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
7a197a62 9315 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9316fi
7a197a62 9317
25fbec5b 9318rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9319 conftest$ac_exeext conftest.$ac_ext
9320LIBS=$ac_check_lib_save_LIBS
9321fi
5556819a
AK
9322{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9323echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9324if test $ac_cv_lib_rt_clock_gettime = yes; then
9325 HAVE_REALTIME=yes
9326else
9327 HAVE_REALTIME=no
9328fi
9329
8b1a3214
AK
9330
9331 if test x$HAVE_REALTIME = xyes; then
9332
9333cat >>confdefs.h <<\_ACEOF
9334#define HAVE_REALTIME 1
9335_ACEOF
9336
9337 LIBS="-lrt $LIBS"
9338 else
5556819a
AK
9339 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9340echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9341 fi
9342fi
9343
ad6254c5
AK
9344################################################################################
9345
9346for ac_header in getopt.h
9347do
5556819a 9348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
9350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9353 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9354fi
5556819a
AK
9355ac_res=`eval echo '${'$as_ac_Header'}'`
9356 { echo "$as_me:$LINENO: result: $ac_res" >&5
9357echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9358else
9359 # Is the header compilable?
5556819a
AK
9360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9362cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h. */
9368$ac_includes_default
9369#include <$ac_header>
9370_ACEOF
9371rm -f conftest.$ac_objext
7a197a62
AK
9372if { (ac_try="$ac_compile"
9373case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
5556819a 9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9378 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9379 ac_status=$?
8a2fc586
AK
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
5556819a 9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9388 ac_header_compiler=yes
9389else
5556819a 9390 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
7a197a62 9393 ac_header_compiler=no
ad6254c5 9394fi
7a197a62
AK
9395
9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
9397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9399
9400# Is the header present?
5556819a
AK
9401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9403cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h. */
9409#include <$ac_header>
9410_ACEOF
7a197a62
AK
9411if { (ac_try="$ac_cpp conftest.$ac_ext"
9412case "(($ac_try" in
9413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9415esac
5556819a 9416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9418 ac_status=$?
9419 grep -v '^ *+' conftest.er1 >conftest.err
9420 rm -f conftest.er1
9421 cat conftest.err >&5
5556819a 9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9423 (exit $ac_status); } >/dev/null && {
9424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9426 }; then
ad6254c5
AK
9427 ac_header_preproc=yes
9428else
5556819a 9429 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_header_preproc=no
9433fi
7a197a62 9434
ad6254c5 9435rm -f conftest.err conftest.$ac_ext
5556819a
AK
9436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9437echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9438
9439# So? What about this header?
8a2fc586
AK
9440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9441 yes:no: )
5556819a
AK
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9446 ac_header_preproc=yes
ad6254c5 9447 ;;
8a2fc586 9448 no:yes:* )
5556819a
AK
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9461
ad6254c5
AK
9462 ;;
9463esac
5556819a
AK
9464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9467 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9468else
8a2fc586 9469 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9470fi
5556819a
AK
9471ac_res=`eval echo '${'$as_ac_Header'}'`
9472 { echo "$as_me:$LINENO: result: $ac_res" >&5
9473echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9474
9475fi
5556819a 9476if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9477 cat >>confdefs.h <<_ACEOF
5556819a 9478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9479_ACEOF
72b2cb61
AK
9480
9481cat >>confdefs.h <<\_ACEOF
9482#define HAVE_GETOPTLONG 1
9483_ACEOF
9484
ad6254c5
AK
9485fi
9486
9487done
9488
9489
9490################################################################################
9491if test x$READLINE = xyes; then
9492
5556819a
AK
9493{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9494echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9495if test "${ac_cv_lib_readline_readline+set}" = set; then
5556819a 9496 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9497else
9498 ac_check_lib_save_LIBS=$LIBS
9499LIBS="-lreadline $LIBS"
9500cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9501/* confdefs.h. */
9502_ACEOF
9503cat confdefs.h >>conftest.$ac_ext
9504cat >>conftest.$ac_ext <<_ACEOF
9505/* end confdefs.h. */
9506
7a197a62
AK
9507/* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9510#ifdef __cplusplus
9511extern "C"
9512#endif
ad6254c5
AK
9513char readline ();
9514int
9515main ()
9516{
7a197a62 9517return readline ();
ad6254c5
AK
9518 ;
9519 return 0;
9520}
9521_ACEOF
9522rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9523if { (ac_try="$ac_link"
9524case "(($ac_try" in
9525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526 *) ac_try_echo=$ac_try;;
9527esac
5556819a 9528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9529 (eval "$ac_link") 2>conftest.er1
ad6254c5 9530 ac_status=$?
8a2fc586
AK
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
5556819a 9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9535 (exit $ac_status); } && {
9536 test -z "$ac_c_werror_flag" ||
9537 test ! -s conftest.err
5556819a
AK
9538 } && test -s conftest$ac_exeext &&
9539 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9540 ac_cv_lib_readline_readline=yes
9541else
5556819a 9542 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9543sed 's/^/| /' conftest.$ac_ext >&5
9544
7a197a62 9545 ac_cv_lib_readline_readline=no
ad6254c5 9546fi
7a197a62 9547
25fbec5b 9548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9549 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9550LIBS=$ac_check_lib_save_LIBS
9551fi
5556819a
AK
9552{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9553echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5
AK
9554if test $ac_cv_lib_readline_readline = yes; then
9555 cat >>confdefs.h <<_ACEOF
9556#define HAVE_LIBREADLINE 1
9557_ACEOF
9558
9559 LIBS="-lreadline $LIBS"
9560
9561else
5556819a 9562 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9563--enable-readline option (which is enabled by default). Either disable readline
9564support with --disable-readline or download and install readline from:
9565 ftp.gnu.org/gnu/readline
9566Note: if you are using precompiled packages you will also need the development
9567package as well (which may be called readline-devel or something similar).
9568" >&5
5556819a 9569echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9570--enable-readline option (which is enabled by default). Either disable readline
9571support with --disable-readline or download and install readline from:
9572 ftp.gnu.org/gnu/readline
9573Note: if you are using precompiled packages you will also need the development
9574package as well (which may be called readline-devel or something similar).
9575" >&2;}
9576 { (exit 1); exit 1; }; }
9577
9578fi
9579
5556819a
AK
9580 { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
9581echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; }
ad6254c5 9582if test "${ac_cv_func_rl_completion_matches+set}" = set; then
5556819a 9583 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9584else
9585 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9586/* confdefs.h. */
9587_ACEOF
9588cat confdefs.h >>conftest.$ac_ext
9589cat >>conftest.$ac_ext <<_ACEOF
9590/* end confdefs.h. */
8a2fc586
AK
9591/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
9592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593#define rl_completion_matches innocuous_rl_completion_matches
9594
ad6254c5
AK
9595/* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char rl_completion_matches (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
8a2fc586 9599
ad6254c5
AK
9600#ifdef __STDC__
9601# include <limits.h>
9602#else
9603# include <assert.h>
9604#endif
8a2fc586
AK
9605
9606#undef rl_completion_matches
9607
7a197a62
AK
9608/* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9611#ifdef __cplusplus
9612extern "C"
ad6254c5 9613#endif
ad6254c5
AK
9614char rl_completion_matches ();
9615/* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
7a197a62 9618#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 9619choke me
ad6254c5
AK
9620#endif
9621
9622int
9623main ()
9624{
7a197a62 9625return rl_completion_matches ();
ad6254c5
AK
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9631if { (ac_try="$ac_link"
9632case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
5556819a 9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9637 (eval "$ac_link") 2>conftest.er1
ad6254c5 9638 ac_status=$?
8a2fc586
AK
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
5556819a 9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
5556819a
AK
9646 } && test -s conftest$ac_exeext &&
9647 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9648 ac_cv_func_rl_completion_matches=yes
9649else
5556819a 9650 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
7a197a62 9653 ac_cv_func_rl_completion_matches=no
ad6254c5 9654fi
7a197a62 9655
25fbec5b 9656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9657 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9658fi
5556819a
AK
9659{ echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
9660echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 9661if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 9662
72b2cb61
AK
9663cat >>confdefs.h <<\_ACEOF
9664#define HAVE_RL_COMPLETION_MATCHES 1
9665_ACEOF
9666
9667fi
ad6254c5 9668
d179cc7a
JM
9669
9670cat >>confdefs.h <<\_ACEOF
9671#define READLINE_SUPPORT 1
9672_ACEOF
9673
ad6254c5
AK
9674fi
9675
9676################################################################################
5556819a
AK
9677{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9678echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9679# Check whether --enable-nls was given.
ad6254c5 9680if test "${enable_nls+set}" = set; then
7a197a62 9681 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9682else
9683 INTL=no
7a197a62
AK
9684fi
9685
5556819a
AK
9686{ echo "$as_me:$LINENO: result: $INTL" >&5
9687echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9688
9689if test x$INTL = xyes; then
9690 INTL_PACKAGE="lvm2"
9691 # Extract the first word of "msgfmt", so it can be a program name with args.
9692set dummy msgfmt; ac_word=$2
5556819a
AK
9693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 9695if test "${ac_cv_path_MSGFMT+set}" = set; then
5556819a 9696 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9697else
9698 case $MSGFMT in
9699 [\\/]* | ?:[\\/]*)
9700 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9701 ;;
9702 *)
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704for as_dir in $PATH
9705do
9706 IFS=$as_save_IFS
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 9710 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
5556819a 9711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
9712 break 2
9713 fi
9714done
9715done
7a197a62 9716IFS=$as_save_IFS
ad6254c5
AK
9717
9718 ;;
9719esac
9720fi
9721MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9722if test -n "$MSGFMT"; then
5556819a
AK
9723 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9724echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 9725else
5556819a
AK
9726 { echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6; }
ad6254c5
AK
9728fi
9729
7a197a62 9730
ad6254c5 9731 if [ "x$MSGFMT" == x ];
5556819a 9732 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 9733 " >&5
5556819a 9734echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
9735 " >&2;}
9736 { (exit 1); exit 1; }; }
9737 fi;
9738
9739
7a197a62 9740# Check whether --with-localedir was given.
ad6254c5 9741if test "${with_localedir+set}" = set; then
7a197a62 9742 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9743else
9744 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9745fi
9746
ad6254c5
AK
9747fi
9748
9749################################################################################
9750
7a197a62 9751# Check whether --with-confdir was given.
ad6254c5 9752if test "${with_confdir+set}" = set; then
7a197a62 9753 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9754else
9755 CONFDIR='/etc'
7a197a62
AK
9756fi
9757
ad6254c5
AK
9758
9759
7a197a62 9760# Check whether --with-staticdir was given.
ad6254c5 9761if test "${with_staticdir+set}" = set; then
7a197a62 9762 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9763else
9764 STATICDIR='${exec_prefix}/sbin'
7a197a62 9765fi
ad6254c5 9766
33f732c5 9767
7a197a62
AK
9768
9769# Check whether --with-dmdir was given.
33f732c5 9770if test "${with_dmdir+set}" = set; then
7a197a62 9771 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9772else
9773 DMDIR=
7a197a62
AK
9774fi
9775
33f732c5 9776
09339e2b 9777# Convert a relative dir name to absolute.
25fbec5b
AK
9778case $DMDIR in
9779 /*) ;;
9780 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
9781esac
9782
ad6254c5
AK
9783################################################################################
9784if test x$READLINE = xyes; then
9785
9786
9787for ac_header in readline/readline.h readline/history.h
9788do
5556819a 9789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
9791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9794 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9795fi
5556819a
AK
9796ac_res=`eval echo '${'$as_ac_Header'}'`
9797 { echo "$as_me:$LINENO: result: $ac_res" >&5
9798echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9799else
9800 # Is the header compilable?
5556819a
AK
9801{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9803cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9804/* confdefs.h. */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h. */
9809$ac_includes_default
9810#include <$ac_header>
9811_ACEOF
9812rm -f conftest.$ac_objext
7a197a62
AK
9813if { (ac_try="$ac_compile"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
5556819a 9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9819 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9820 ac_status=$?
8a2fc586
AK
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
5556819a 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9825 (exit $ac_status); } && {
9826 test -z "$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9828 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9829 ac_header_compiler=yes
9830else
5556819a 9831 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
7a197a62 9834 ac_header_compiler=no
ad6254c5 9835fi
7a197a62
AK
9836
9837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
9838{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9839echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9840
9841# Is the header present?
5556819a
AK
9842{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9844cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9845/* confdefs.h. */
9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h. */
9850#include <$ac_header>
9851_ACEOF
7a197a62
AK
9852if { (ac_try="$ac_cpp conftest.$ac_ext"
9853case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856esac
5556819a 9857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
5556819a 9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9864 (exit $ac_status); } >/dev/null && {
9865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 }; then
ad6254c5
AK
9868 ac_header_preproc=yes
9869else
5556819a 9870 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9871sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ac_header_preproc=no
9874fi
7a197a62 9875
ad6254c5 9876rm -f conftest.err conftest.$ac_ext
5556819a
AK
9877{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9878echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9879
9880# So? What about this header?
8a2fc586
AK
9881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9882 yes:no: )
5556819a
AK
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9887 ac_header_preproc=yes
ad6254c5 9888 ;;
8a2fc586 9889 no:yes:* )
5556819a
AK
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9902
ad6254c5
AK
9903 ;;
9904esac
5556819a
AK
9905{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9908 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9909else
8a2fc586 9910 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9911fi
5556819a
AK
9912ac_res=`eval echo '${'$as_ac_Header'}'`
9913 { echo "$as_me:$LINENO: result: $ac_res" >&5
9914echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9915
9916fi
5556819a 9917if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9918 cat >>confdefs.h <<_ACEOF
5556819a 9919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9920_ACEOF
9921
9922else
5556819a
AK
9923 { { echo "$as_me:$LINENO: error: bailing out" >&5
9924echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
9925 { (exit 1); exit 1; }; }
9926fi
9927
9928done
9929
9930fi
9931
5c7fc7c4 9932if test x$CLVMD != xnone; then
ad6254c5
AK
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943for 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
9944do
5556819a 9945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
9947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9950 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9951fi
5556819a
AK
9952ac_res=`eval echo '${'$as_ac_Header'}'`
9953 { echo "$as_me:$LINENO: result: $ac_res" >&5
9954echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9955else
9956 # Is the header compilable?
5556819a
AK
9957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9959cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9960/* confdefs.h. */
9961_ACEOF
9962cat confdefs.h >>conftest.$ac_ext
9963cat >>conftest.$ac_ext <<_ACEOF
9964/* end confdefs.h. */
9965$ac_includes_default
9966#include <$ac_header>
9967_ACEOF
9968rm -f conftest.$ac_objext
7a197a62
AK
9969if { (ac_try="$ac_compile"
9970case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
5556819a 9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9975 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9976 ac_status=$?
8a2fc586
AK
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
5556819a 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9985 ac_header_compiler=yes
9986else
5556819a 9987 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
7a197a62 9990 ac_header_compiler=no
ad6254c5 9991fi
7a197a62
AK
9992
9993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
9994{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9995echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9996
9997# Is the header present?
5556819a
AK
9998{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10000cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006#include <$ac_header>
10007_ACEOF
7a197a62
AK
10008if { (ac_try="$ac_cpp conftest.$ac_ext"
10009case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012esac
5556819a 10013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
5556819a 10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10020 (exit $ac_status); } >/dev/null && {
10021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10022 test ! -s conftest.err
10023 }; then
ad6254c5
AK
10024 ac_header_preproc=yes
10025else
5556819a 10026 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10027sed 's/^/| /' conftest.$ac_ext >&5
10028
10029 ac_header_preproc=no
10030fi
7a197a62 10031
ad6254c5 10032rm -f conftest.err conftest.$ac_ext
5556819a
AK
10033{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10034echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10035
10036# So? What about this header?
8a2fc586
AK
10037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10038 yes:no: )
5556819a
AK
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10043 ac_header_preproc=yes
ad6254c5 10044 ;;
8a2fc586 10045 no:yes:* )
5556819a
AK
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10049echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10053echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10058
ad6254c5
AK
10059 ;;
10060esac
5556819a
AK
10061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10064 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10065else
8a2fc586 10066 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10067fi
5556819a
AK
10068ac_res=`eval echo '${'$as_ac_Header'}'`
10069 { echo "$as_me:$LINENO: result: $ac_res" >&5
10070echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10071
10072fi
5556819a 10073if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10074 cat >>confdefs.h <<_ACEOF
5556819a 10075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10076_ACEOF
10077
10078else
5556819a
AK
10079 { { echo "$as_me:$LINENO: error: bailing out" >&5
10080echo "$as_me: error: bailing out" >&2;}
ad6254c5 10081 { (exit 1); exit 1; }; }
795ca3e5
AK
10082fi
10083
ad6254c5
AK
10084done
10085
10086
795ca3e5 10087
8106cdd5 10088
ad6254c5
AK
10089
10090
10091for ac_func in dup2 getmntent memmove select socket
10092do
5556819a
AK
10093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10094{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10096if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10097 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10098else
ad6254c5 10099 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10100/* confdefs.h. */
10101_ACEOF
10102cat confdefs.h >>conftest.$ac_ext
10103cat >>conftest.$ac_ext <<_ACEOF
10104/* end confdefs.h. */
8a2fc586
AK
10105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10107#define $ac_func innocuous_$ac_func
10108
795ca3e5 10109/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10110 which can conflict with char $ac_func (); below.
10111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10112 <limits.h> exists even on freestanding compilers. */
8a2fc586 10113
ad6254c5
AK
10114#ifdef __STDC__
10115# include <limits.h>
10116#else
10117# include <assert.h>
10118#endif
8a2fc586
AK
10119
10120#undef $ac_func
10121
7a197a62
AK
10122/* Override any GCC internal prototype to avoid an error.
10123 Use char because int might match the return type of a GCC
10124 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10125#ifdef __cplusplus
10126extern "C"
ad6254c5 10127#endif
ad6254c5 10128char $ac_func ();
795ca3e5
AK
10129/* The GNU C library defines this for functions which it implements
10130 to always fail with ENOSYS. Some functions are actually named
10131 something starting with __ and the normal name is an alias. */
7a197a62 10132#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10133choke me
795ca3e5
AK
10134#endif
10135
ad6254c5
AK
10136int
10137main ()
10138{
7a197a62 10139return $ac_func ();
ad6254c5
AK
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10145if { (ac_try="$ac_link"
10146case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10149esac
5556819a 10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10151 (eval "$ac_link") 2>conftest.er1
ad6254c5 10152 ac_status=$?
8a2fc586
AK
10153 grep -v '^ *+' conftest.er1 >conftest.err
10154 rm -f conftest.er1
10155 cat conftest.err >&5
5556819a 10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10157 (exit $ac_status); } && {
10158 test -z "$ac_c_werror_flag" ||
10159 test ! -s conftest.err
5556819a
AK
10160 } && test -s conftest$ac_exeext &&
10161 $as_test_x conftest$ac_exeext; then
ad6254c5 10162 eval "$as_ac_var=yes"
795ca3e5 10163else
5556819a 10164 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
7a197a62 10167 eval "$as_ac_var=no"
80992638 10168fi
7a197a62 10169
25fbec5b 10170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10171 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10172fi
5556819a
AK
10173ac_res=`eval echo '${'$as_ac_var'}'`
10174 { echo "$as_me:$LINENO: result: $ac_res" >&5
10175echo "${ECHO_T}$ac_res" >&6; }
10176if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10177 cat >>confdefs.h <<_ACEOF
5556819a 10178#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10179_ACEOF
80992638
AK
10180
10181else
5556819a
AK
10182 { { echo "$as_me:$LINENO: error: bailing out" >&5
10183echo "$as_me: error: bailing out" >&2;}
ad6254c5 10184 { (exit 1); exit 1; }; }
8106cdd5 10185fi
ad6254c5 10186done
795ca3e5 10187
25fbec5b
AK
10188 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10189# -lseq on Dynix/PTX, -lgen on Unixware.
5556819a
AK
10190{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10191echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10192if test "${ac_cv_search_getmntent+set}" = set; then
5556819a 10193 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10194else
10195 ac_func_search_save_LIBS=$LIBS
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h. */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h. */
80992638 10202
7a197a62
AK
10203/* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
ad6254c5 10205 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10206#ifdef __cplusplus
10207extern "C"
10208#endif
25fbec5b 10209char getmntent ();
ad6254c5
AK
10210int
10211main ()
10212{
25fbec5b 10213return getmntent ();
ad6254c5
AK
10214 ;
10215 return 0;
10216}
10217_ACEOF
25fbec5b
AK
10218for ac_lib in '' sun seq gen; do
10219 if test -z "$ac_lib"; then
10220 ac_res="none required"
10221 else
10222 ac_res=-l$ac_lib
10223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10224 fi
10225 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10226if { (ac_try="$ac_link"
10227case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230esac
5556819a 10231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10232 (eval "$ac_link") 2>conftest.er1
ad6254c5 10233 ac_status=$?
8a2fc586
AK
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
5556819a 10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10238 (exit $ac_status); } && {
10239 test -z "$ac_c_werror_flag" ||
10240 test ! -s conftest.err
5556819a
AK
10241 } && test -s conftest$ac_exeext &&
10242 $as_test_x conftest$ac_exeext; then
25fbec5b 10243 ac_cv_search_getmntent=$ac_res
80992638 10244else
5556819a 10245 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10246sed 's/^/| /' conftest.$ac_ext >&5
10247
25fbec5b 10248
795ca3e5
AK
10249fi
10250
25fbec5b
AK
10251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252 conftest$ac_exeext
10253 if test "${ac_cv_search_getmntent+set}" = set; then
10254 break
795ca3e5 10255fi
25fbec5b
AK
10256done
10257if test "${ac_cv_search_getmntent+set}" = set; then
10258 :
10259else
10260 ac_cv_search_getmntent=no
10261fi
10262rm conftest.$ac_ext
10263LIBS=$ac_func_search_save_LIBS
10264fi
5556819a
AK
10265{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10266echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10267ac_res=$ac_cv_search_getmntent
10268if test "$ac_res" != no; then
10269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10270 ac_cv_func_getmntent=yes
10271
10272cat >>confdefs.h <<\_ACEOF
2a9a80c9 10273#define HAVE_GETMNTENT 1
ad6254c5 10274_ACEOF
795ca3e5 10275
25fbec5b
AK
10276else
10277 ac_cv_func_getmntent=no
795ca3e5 10278fi
795ca3e5
AK
10279
10280
ad6254c5
AK
10281# AC_FUNC_REALLOC
10282
10283
10284for ac_header in sys/select.h sys/socket.h
10285do
5556819a 10286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10291 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10292fi
5556819a
AK
10293ac_res=`eval echo '${'$as_ac_Header'}'`
10294 { echo "$as_me:$LINENO: result: $ac_res" >&5
10295echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10296else
ad6254c5 10297 # Is the header compilable?
5556819a
AK
10298{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10300cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10301/* confdefs.h. */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h. */
10306$ac_includes_default
10307#include <$ac_header>
10308_ACEOF
10309rm -f conftest.$ac_objext
7a197a62
AK
10310if { (ac_try="$ac_compile"
10311case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314esac
5556819a 10315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10316 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10317 ac_status=$?
8a2fc586
AK
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
5556819a 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10322 (exit $ac_status); } && {
10323 test -z "$ac_c_werror_flag" ||
10324 test ! -s conftest.err
10325 } && test -s conftest.$ac_objext; then
ad6254c5 10326 ac_header_compiler=yes
80992638 10327else
5556819a 10328 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
7a197a62 10331 ac_header_compiler=no
ad6254c5 10332fi
7a197a62
AK
10333
10334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10335{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10336echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10337
10338# Is the header present?
5556819a
AK
10339{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10341cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10342/* confdefs.h. */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h. */
10347#include <$ac_header>
10348_ACEOF
7a197a62
AK
10349if { (ac_try="$ac_cpp conftest.$ac_ext"
10350case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
5556819a 10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
5556819a 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10361 (exit $ac_status); } >/dev/null && {
10362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 }; then
ad6254c5
AK
10365 ac_header_preproc=yes
10366else
5556819a 10367 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10368sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 ac_header_preproc=no
10371fi
7a197a62 10372
ad6254c5 10373rm -f conftest.err conftest.$ac_ext
5556819a
AK
10374{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10375echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10376
10377# So? What about this header?
8a2fc586
AK
10378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10379 yes:no: )
5556819a
AK
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10384 ac_header_preproc=yes
ad6254c5 10385 ;;
8a2fc586 10386 no:yes:* )
5556819a
AK
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10399
ad6254c5
AK
10400 ;;
10401esac
5556819a
AK
10402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10405 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10406else
8a2fc586 10407 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10408fi
5556819a
AK
10409ac_res=`eval echo '${'$as_ac_Header'}'`
10410 { echo "$as_me:$LINENO: result: $ac_res" >&5
10411echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10412
795ca3e5 10413fi
5556819a 10414if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10415 cat >>confdefs.h <<_ACEOF
5556819a 10416#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10417_ACEOF
10418
795ca3e5
AK
10419fi
10420
ad6254c5
AK
10421done
10422
5556819a
AK
10423{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10424echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10425if test "${ac_cv_func_select_args+set}" = set; then
5556819a 10426 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10427else
ad6254c5 10428 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10429 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10430 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10431 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10432/* confdefs.h. */
10433_ACEOF
10434cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h. */
10437$ac_includes_default
25fbec5b 10438#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10439# include <sys/select.h>
10440#endif
25fbec5b 10441#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10442# include <sys/socket.h>
10443#endif
10444
10445int
10446main ()
10447{
10448extern int select ($ac_arg1,
8a2fc586
AK
10449 $ac_arg234, $ac_arg234, $ac_arg234,
10450 $ac_arg5);
ad6254c5
AK
10451 ;
10452 return 0;
10453}
10454_ACEOF
10455rm -f conftest.$ac_objext
7a197a62
AK
10456if { (ac_try="$ac_compile"
10457case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460esac
5556819a 10461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10462 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10463 ac_status=$?
8a2fc586
AK
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
5556819a 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10468 (exit $ac_status); } && {
10469 test -z "$ac_c_werror_flag" ||
10470 test ! -s conftest.err
10471 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10472 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10473else
5556819a 10474 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
7a197a62 10477
ad6254c5 10478fi
7a197a62
AK
10479
10480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10481 done
10482 done
10483done
10484# Provide a safe default value.
10485: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10486
26e7f2e0 10487fi
5556819a
AK
10488{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10489echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10490ac_save_IFS=$IFS; IFS=','
10491set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10492IFS=$ac_save_IFS
10493shift
10494
10495cat >>confdefs.h <<_ACEOF
10496#define SELECT_TYPE_ARG1 $1
10497_ACEOF
10498
10499
10500cat >>confdefs.h <<_ACEOF
10501#define SELECT_TYPE_ARG234 ($2)
10502_ACEOF
10503
10504
10505cat >>confdefs.h <<_ACEOF
10506#define SELECT_TYPE_ARG5 ($3)
10507_ACEOF
10508
80992638 10509rm -f conftest*
80992638 10510
8106cdd5 10511fi
ad6254c5 10512
ad6254c5
AK
10513if test x$CLUSTER != xnone; then
10514
10515
10516for ac_header in sys/socket.h sys/un.h
b896caa1 10517do
5556819a 10518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10523 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10524fi
5556819a
AK
10525ac_res=`eval echo '${'$as_ac_Header'}'`
10526 { echo "$as_me:$LINENO: result: $ac_res" >&5
10527echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10528else
10529 # Is the header compilable?
5556819a
AK
10530{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10532cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h. */
10538$ac_includes_default
10539#include <$ac_header>
10540_ACEOF
10541rm -f conftest.$ac_objext
7a197a62
AK
10542if { (ac_try="$ac_compile"
10543case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546esac
5556819a 10547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10548 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10549 ac_status=$?
8a2fc586
AK
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
5556819a 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10558 ac_header_compiler=yes
10559else
5556819a 10560 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10561sed 's/^/| /' conftest.$ac_ext >&5
10562
7a197a62 10563 ac_header_compiler=no
ad6254c5 10564fi
7a197a62
AK
10565
10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10567{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10568echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10569
10570# Is the header present?
5556819a
AK
10571{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10573cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
10579#include <$ac_header>
10580_ACEOF
7a197a62
AK
10581if { (ac_try="$ac_cpp conftest.$ac_ext"
10582case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
5556819a 10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
5556819a 10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10593 (exit $ac_status); } >/dev/null && {
10594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10596 }; then
ad6254c5
AK
10597 ac_header_preproc=yes
10598else
5556819a 10599 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_header_preproc=no
10603fi
7a197a62 10604
ad6254c5 10605rm -f conftest.err conftest.$ac_ext
5556819a
AK
10606{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10608
10609# So? What about this header?
8a2fc586
AK
10610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 yes:no: )
5556819a
AK
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10616 ac_header_preproc=yes
ad6254c5 10617 ;;
8a2fc586 10618 no:yes:* )
5556819a
AK
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10631
ad6254c5
AK
10632 ;;
10633esac
5556819a
AK
10634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10637 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10638else
8a2fc586 10639 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10640fi
5556819a
AK
10641ac_res=`eval echo '${'$as_ac_Header'}'`
10642 { echo "$as_me:$LINENO: result: $ac_res" >&5
10643echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10644
10645fi
5556819a 10646if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10647 cat >>confdefs.h <<_ACEOF
5556819a 10648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10649_ACEOF
10650
80992638 10651else
5556819a
AK
10652 { { echo "$as_me:$LINENO: error: bailing out" >&5
10653echo "$as_me: error: bailing out" >&2;}
ad6254c5 10654 { (exit 1); exit 1; }; }
b896caa1 10655fi
ad6254c5 10656
b896caa1
AK
10657done
10658
10659
ad6254c5
AK
10660for ac_func in socket
10661do
5556819a
AK
10662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10663{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10665if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10666 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10667else
ad6254c5 10668 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
8a2fc586
AK
10674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10676#define $ac_func innocuous_$ac_func
10677
ad6254c5
AK
10678/* System header to define __stub macros and hopefully few prototypes,
10679 which can conflict with char $ac_func (); below.
10680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10681 <limits.h> exists even on freestanding compilers. */
8a2fc586 10682
ad6254c5
AK
10683#ifdef __STDC__
10684# include <limits.h>
10685#else
10686# include <assert.h>
10687#endif
8a2fc586
AK
10688
10689#undef $ac_func
10690
7a197a62
AK
10691/* Override any GCC internal prototype to avoid an error.
10692 Use char because int might match the return type of a GCC
10693 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10694#ifdef __cplusplus
10695extern "C"
ad6254c5 10696#endif
ad6254c5
AK
10697char $ac_func ();
10698/* The GNU C library defines this for functions which it implements
10699 to always fail with ENOSYS. Some functions are actually named
10700 something starting with __ and the normal name is an alias. */
7a197a62 10701#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10702choke me
ad6254c5
AK
10703#endif
10704
10705int
10706main ()
10707{
7a197a62 10708return $ac_func ();
ad6254c5
AK
10709 ;
10710 return 0;
10711}
10712_ACEOF
10713rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10714if { (ac_try="$ac_link"
10715case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
5556819a 10719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10720 (eval "$ac_link") 2>conftest.er1
ad6254c5 10721 ac_status=$?
8a2fc586
AK
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
5556819a 10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
5556819a
AK
10729 } && test -s conftest$ac_exeext &&
10730 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10731 eval "$as_ac_var=yes"
10732else
5556819a 10733 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10734sed 's/^/| /' conftest.$ac_ext >&5
10735
7a197a62 10736 eval "$as_ac_var=no"
ad6254c5 10737fi
7a197a62 10738
25fbec5b 10739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10740 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10741fi
5556819a
AK
10742ac_res=`eval echo '${'$as_ac_var'}'`
10743 { echo "$as_me:$LINENO: result: $ac_res" >&5
10744echo "${ECHO_T}$ac_res" >&6; }
10745if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10746 cat >>confdefs.h <<_ACEOF
5556819a 10747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10748_ACEOF
10749
10750else
5556819a
AK
10751 { { echo "$as_me:$LINENO: error: bailing out" >&5
10752echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10753 { (exit 1); exit 1; }; }
10754fi
10755done
10756
10757fi
10758
10759if test x$HAVE_LIBDL = xyes; then
10760
10761for ac_header in dlfcn.h
10762do
5556819a 10763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10768 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10769fi
5556819a
AK
10770ac_res=`eval echo '${'$as_ac_Header'}'`
10771 { echo "$as_me:$LINENO: result: $ac_res" >&5
10772echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10773else
10774 # Is the header compilable?
5556819a
AK
10775{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10776echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10777cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10778/* confdefs.h. */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h. */
10783$ac_includes_default
10784#include <$ac_header>
10785_ACEOF
10786rm -f conftest.$ac_objext
7a197a62
AK
10787if { (ac_try="$ac_compile"
10788case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
5556819a 10792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10793 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10794 ac_status=$?
8a2fc586
AK
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
5556819a 10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10803 ac_header_compiler=yes
10804else
5556819a 10805 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10806sed 's/^/| /' conftest.$ac_ext >&5
10807
7a197a62 10808 ac_header_compiler=no
ad6254c5 10809fi
7a197a62
AK
10810
10811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10812{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10814
10815# Is the header present?
5556819a
AK
10816{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10818cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824#include <$ac_header>
10825_ACEOF
7a197a62
AK
10826if { (ac_try="$ac_cpp conftest.$ac_ext"
10827case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
5556819a 10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
5556819a 10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10838 (exit $ac_status); } >/dev/null && {
10839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 }; then
ad6254c5
AK
10842 ac_header_preproc=yes
10843else
5556819a 10844 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_header_preproc=no
10848fi
7a197a62 10849
ad6254c5 10850rm -f conftest.err conftest.$ac_ext
5556819a
AK
10851{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10852echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10853
10854# So? What about this header?
8a2fc586
AK
10855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856 yes:no: )
5556819a
AK
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10861 ac_header_preproc=yes
ad6254c5 10862 ;;
8a2fc586 10863 no:yes:* )
5556819a
AK
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10876
ad6254c5
AK
10877 ;;
10878esac
5556819a
AK
10879{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10882 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10883else
8a2fc586 10884 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10885fi
5556819a
AK
10886ac_res=`eval echo '${'$as_ac_Header'}'`
10887 { echo "$as_me:$LINENO: result: $ac_res" >&5
10888echo "${ECHO_T}$ac_res" >&6; }
80992638 10889
8106cdd5 10890fi
5556819a 10891if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10892 cat >>confdefs.h <<_ACEOF
5556819a 10893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10894_ACEOF
795ca3e5
AK
10895
10896else
5556819a
AK
10897 { { echo "$as_me:$LINENO: error: bailing out" >&5
10898echo "$as_me: error: bailing out" >&2;}
ad6254c5 10899 { (exit 1); exit 1; }; }
795ca3e5
AK
10900fi
10901
ad6254c5 10902done
80992638 10903
ad6254c5 10904fi
80992638 10905
ad6254c5 10906if test x$INTL = xyes; then
83912faa 10907
ad6254c5
AK
10908for ac_header in libintl.h
10909do
5556819a 10910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10915 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10916fi
5556819a
AK
10917ac_res=`eval echo '${'$as_ac_Header'}'`
10918 { echo "$as_me:$LINENO: result: $ac_res" >&5
10919echo "${ECHO_T}$ac_res" >&6; }
83912faa 10920else
ad6254c5 10921 # Is the header compilable?
5556819a
AK
10922{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10924cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10925/* confdefs.h. */
10926_ACEOF
10927cat confdefs.h >>conftest.$ac_ext
10928cat >>conftest.$ac_ext <<_ACEOF
10929/* end confdefs.h. */
10930$ac_includes_default
10931#include <$ac_header>
10932_ACEOF
10933rm -f conftest.$ac_objext
7a197a62
AK
10934if { (ac_try="$ac_compile"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
5556819a 10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10940 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10941 ac_status=$?
8a2fc586
AK
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
5556819a 10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10946 (exit $ac_status); } && {
10947 test -z "$ac_c_werror_flag" ||
10948 test ! -s conftest.err
10949 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10950 ac_header_compiler=yes
10951else
5556819a 10952 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
7a197a62 10955 ac_header_compiler=no
ad6254c5 10956fi
7a197a62
AK
10957
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10959{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10960echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10961
10962# Is the header present?
5556819a
AK
10963{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10964echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10965cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971#include <$ac_header>
10972_ACEOF
7a197a62
AK
10973if { (ac_try="$ac_cpp conftest.$ac_ext"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
5556819a 10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
5556819a 10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10985 (exit $ac_status); } >/dev/null && {
10986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 }; then
ad6254c5
AK
10989 ac_header_preproc=yes
10990else
5556819a 10991 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_header_preproc=no
10995fi
7a197a62 10996
ad6254c5 10997rm -f conftest.err conftest.$ac_ext
5556819a
AK
10998{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11000
11001# So? What about this header?
8a2fc586
AK
11002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11003 yes:no: )
5556819a
AK
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11008 ac_header_preproc=yes
ad6254c5 11009 ;;
8a2fc586 11010 no:yes:* )
5556819a
AK
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11014echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11018echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11023
ad6254c5
AK
11024 ;;
11025esac
5556819a
AK
11026{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11029 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11030else
8a2fc586 11031 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11032fi
5556819a
AK
11033ac_res=`eval echo '${'$as_ac_Header'}'`
11034 { echo "$as_me:$LINENO: result: $ac_res" >&5
11035echo "${ECHO_T}$ac_res" >&6; }
83912faa 11036
69792976 11037fi
5556819a 11038if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11039 cat >>confdefs.h <<_ACEOF
5556819a 11040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11041_ACEOF
69792976 11042
69792976 11043else
5556819a
AK
11044 { { echo "$as_me:$LINENO: error: bailing out" >&5
11045echo "$as_me: error: bailing out" >&2;}
ad6254c5 11046 { (exit 1); exit 1; }; }
80992638
AK
11047fi
11048
ad6254c5 11049done
69792976 11050
ad6254c5
AK
11051fi
11052
ad6254c5
AK
11053
11054for ac_header in libdevmapper.h
11055do
5556819a 11056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
11058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11061 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11062fi
5556819a
AK
11063ac_res=`eval echo '${'$as_ac_Header'}'`
11064 { echo "$as_me:$LINENO: result: $ac_res" >&5
11065echo "${ECHO_T}$ac_res" >&6; }
69792976 11066else
ad6254c5 11067 # Is the header compilable?
5556819a
AK
11068{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11070cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076$ac_includes_default
11077#include <$ac_header>
11078_ACEOF
11079rm -f conftest.$ac_objext
7a197a62
AK
11080if { (ac_try="$ac_compile"
11081case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084esac
5556819a 11085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11086 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11087 ac_status=$?
8a2fc586
AK
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
5556819a 11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11092 (exit $ac_status); } && {
11093 test -z "$ac_c_werror_flag" ||
11094 test ! -s conftest.err
11095 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11096 ac_header_compiler=yes
11097else
5556819a 11098 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11099sed 's/^/| /' conftest.$ac_ext >&5
11100
7a197a62 11101 ac_header_compiler=no
ad6254c5 11102fi
7a197a62
AK
11103
11104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
11105{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11106echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11107
11108# Is the header present?
5556819a
AK
11109{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11110echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11111cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
11117#include <$ac_header>
11118_ACEOF
7a197a62
AK
11119if { (ac_try="$ac_cpp conftest.$ac_ext"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
5556819a 11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
5556819a 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11131 (exit $ac_status); } >/dev/null && {
11132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11133 test ! -s conftest.err
11134 }; then
ad6254c5
AK
11135 ac_header_preproc=yes
11136else
5556819a 11137 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_header_preproc=no
11141fi
7a197a62 11142
ad6254c5 11143rm -f conftest.err conftest.$ac_ext
5556819a
AK
11144{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11145echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11146
11147# So? What about this header?
8a2fc586
AK
11148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11149 yes:no: )
5556819a
AK
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11153echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11154 ac_header_preproc=yes
ad6254c5 11155 ;;
8a2fc586 11156 no:yes:* )
5556819a
AK
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11158echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11160echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11162echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11164echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11168echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11169
ad6254c5
AK
11170 ;;
11171esac
5556819a
AK
11172{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11175 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11176else
8a2fc586 11177 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11178fi
5556819a
AK
11179ac_res=`eval echo '${'$as_ac_Header'}'`
11180 { echo "$as_me:$LINENO: result: $ac_res" >&5
11181echo "${ECHO_T}$ac_res" >&6; }
69792976 11182
ad6254c5 11183fi
5556819a 11184if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11185 cat >>confdefs.h <<_ACEOF
5556819a 11186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11187_ACEOF
69792976 11188
69792976 11189else
5556819a
AK
11190 { { echo "$as_me:$LINENO: error: bailing out" >&5
11191echo "$as_me: error: bailing out" >&2;}
ad6254c5 11192 { (exit 1); exit 1; }; }
83912faa
AK
11193fi
11194
ad6254c5
AK
11195done
11196
4a7f3eb2 11197
ad6254c5
AK
11198if test x$HAVE_SELINUX = xyes; then
11199
11200for ac_header in selinux/selinux.h
11201do
5556819a 11202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
11204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11207 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11208fi
5556819a
AK
11209ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11212else
ad6254c5 11213 # Is the header compilable?
5556819a
AK
11214{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11216cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11217/* confdefs.h. */
11218_ACEOF
11219cat confdefs.h >>conftest.$ac_ext
11220cat >>conftest.$ac_ext <<_ACEOF
11221/* end confdefs.h. */
11222$ac_includes_default
11223#include <$ac_header>
11224_ACEOF
11225rm -f conftest.$ac_objext
7a197a62
AK
11226if { (ac_try="$ac_compile"
11227case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230esac
5556819a 11231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11232 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11233 ac_status=$?
8a2fc586
AK
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
5556819a 11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11238 (exit $ac_status); } && {
11239 test -z "$ac_c_werror_flag" ||
11240 test ! -s conftest.err
11241 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11242 ac_header_compiler=yes
11243else
5556819a 11244 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
7a197a62 11247 ac_header_compiler=no
ad6254c5 11248fi
7a197a62
AK
11249
11250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
11251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11252echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11253
11254# Is the header present?
5556819a
AK
11255{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11257cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
11263#include <$ac_header>
11264_ACEOF
7a197a62
AK
11265if { (ac_try="$ac_cpp conftest.$ac_ext"
11266case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
5556819a 11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11272 ac_status=$?
11273 grep -v '^ *+' conftest.er1 >conftest.err
11274 rm -f conftest.er1
11275 cat conftest.err >&5
5556819a 11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11277 (exit $ac_status); } >/dev/null && {
11278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 }; then
ad6254c5
AK
11281 ac_header_preproc=yes
11282else
5556819a 11283 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 ac_header_preproc=no
11287fi
7a197a62 11288
ad6254c5 11289rm -f conftest.err conftest.$ac_ext
5556819a
AK
11290{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11291echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11292
11293# So? What about this header?
8a2fc586
AK
11294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11295 yes:no: )
5556819a
AK
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11300 ac_header_preproc=yes
ad6254c5 11301 ;;
8a2fc586 11302 no:yes:* )
5556819a
AK
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11315
ad6254c5
AK
11316 ;;
11317esac
5556819a
AK
11318{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11321 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11322else
8a2fc586 11323 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11324fi
5556819a
AK
11325ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11328
ad6254c5 11329fi
5556819a 11330if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11331 cat >>confdefs.h <<_ACEOF
5556819a 11332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11333_ACEOF
0a62c911 11334
0a62c911 11335else
5556819a
AK
11336 { { echo "$as_me:$LINENO: error: bailing out" >&5
11337echo "$as_me: error: bailing out" >&2;}
ad6254c5 11338 { (exit 1); exit 1; }; }
80992638
AK
11339fi
11340
ad6254c5 11341done
0a62c911 11342
ad6254c5 11343fi
0a62c911 11344
a653923f
AK
11345################################################################################
11346# Extract the first word of "modprobe", so it can be a program name with args.
11347set dummy modprobe; ac_word=$2
5556819a
AK
11348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11350if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
5556819a 11351 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11352else
11353 case $MODPROBE_CMD in
11354 [\\/]* | ?:[\\/]*)
11355 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11356 ;;
11357 *)
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11365 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
5556819a 11366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11367 break 2
11368 fi
11369done
11370done
7a197a62 11371IFS=$as_save_IFS
72b2cb61
AK
11372
11373 ;;
11374esac
11375fi
11376MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11377if test -n "$MODPROBE_CMD"; then
5556819a
AK
11378 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11379echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11380else
5556819a
AK
11381 { echo "$as_me:$LINENO: result: no" >&5
11382echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11383fi
11384
a653923f 11385
7a197a62 11386
a653923f 11387if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11388
11389cat >>confdefs.h <<_ACEOF
11390#define MODPROBE_CMD "$MODPROBE_CMD"
11391_ACEOF
11392
a653923f
AK
11393fi
11394
80992638 11395################################################################################
d0191583 11396LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11397
80992638 11398################################################################################
fae0c576 11399
83912faa 11400
795ca3e5
AK
11401
11402
11403
11404
11405
11406
5a52dca9 11407
8ef2b021 11408
199e490e 11409
69792976
AK
11410
11411
11412
d0191583
JM
11413# FIXME: rename to LVM_USE_DMEVENTD
11414
69792976 11415
8106cdd5
AK
11416
11417
11418
11419
11420
d68a82ec 11421
036f273a 11422
7d1552c9 11423
8106cdd5 11424
0a62c911 11425
8106cdd5 11426
4a7f3eb2 11427
4922197a
AK
11428
11429
d8ac0fbc 11430
1a9ea74d 11431
8a2fc586
AK
11432
11433
d0191583
JM
11434
11435# FIXME: rename to LVM_CONF_DIR
11436
11437
11438
11439
11440
8a2fc586 11441
8ce0cbda 11442
8b1a3214 11443
33f732c5 11444
66e941e8 11445
d3c8211f
AK
11446
11447
80992638 11448################################################################################
d0191583 11449ac_config_files="$ac_config_files Makefile make.tmpl include/Makefile lib/Makefile man/Makefile po/Makefile dmeventd/Makefile daemons/Makefile daemons/clvmd/Makefile dmeventd/mirror/Makefile dmeventd/snapshot/Makefile doc/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile test/Makefile scripts/Makefile tools/Makefile tools/version.h"
7a197a62 11450
ad6254c5 11451cat >confcache <<\_ACEOF
795ca3e5
AK
11452# This file is a shell script that caches the results of configure
11453# tests run on this system so they can be shared between configure
ad6254c5
AK
11454# scripts and configure runs, see configure's option --config-cache.
11455# It is not useful on other systems. If it contains results you don't
11456# want to keep, you may remove or edit it.
795ca3e5 11457#
ad6254c5
AK
11458# config.status only pays attention to the cache file if you give it
11459# the --recheck option to rerun configure.
795ca3e5 11460#
ad6254c5
AK
11461# `ac_cv_env_foo' variables (set or unset) will be overridden when
11462# loading this file, other *unset* `ac_cv_foo' will be assigned the
11463# following values.
11464
11465_ACEOF
11466
795ca3e5
AK
11467# The following way of writing the cache mishandles newlines in values,
11468# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11469# So, we kill variables containing newlines.
795ca3e5
AK
11470# Ultrix sh set writes to stderr and can't be redirected directly,
11471# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11472(
11473 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11474 eval ac_val=\$$ac_var
11475 case $ac_val in #(
11476 *${as_nl}*)
11477 case $ac_var in #(
5556819a
AK
11478 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11479echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11480 esac
11481 case $ac_var in #(
11482 _ | IFS | as_nl) ;; #(
11483 *) $as_unset $ac_var ;;
11484 esac ;;
11485 esac
11486 done
11487
ad6254c5 11488 (set) 2>&1 |
7a197a62
AK
11489 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11490 *${as_nl}ac_space=\ *)
ad6254c5
AK
11491 # `set' does not quote correctly, so add quotes (double-quote
11492 # substitution turns \\\\ into \\, and sed turns \\ into \).
11493 sed -n \
8a2fc586
AK
11494 "s/'/'\\\\''/g;
11495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11496 ;; #(
ad6254c5
AK
11497 *)
11498 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11500 ;;
7a197a62
AK
11501 esac |
11502 sort
11503) |
ad6254c5 11504 sed '
7a197a62 11505 /^ac_cv_env_/b end
ad6254c5 11506 t clear
7a197a62 11507 :clear
ad6254c5
AK
11508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11509 t end
7a197a62
AK
11510 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11511 :end' >>confcache
11512if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11513 if test -w "$cache_file"; then
11514 test "x$cache_file" != "x/dev/null" &&
5556819a
AK
11515 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11516echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11517 cat confcache >$cache_file
795ca3e5 11518 else
5556819a
AK
11519 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11520echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11521 fi
11522fi
11523rm -f confcache
11524
795ca3e5
AK
11525test "x$prefix" = xNONE && prefix=$ac_default_prefix
11526# Let make expand exec_prefix.
11527test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11528
72b2cb61 11529DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11530
11531ac_libobjs=
11532ac_ltlibobjs=
11533for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11534 # 1. Remove the extension, and $U if already installed.
7a197a62 11535 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5556819a 11536 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11537 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11538 # will be set to the directory where LIBOBJS objects are built.
11539 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11540 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11541done
11542LIBOBJS=$ac_libobjs
80992638 11543
ad6254c5
AK
11544LTLIBOBJS=$ac_ltlibobjs
11545
11546
11547
11548: ${CONFIG_STATUS=./config.status}
11549ac_clean_files_save=$ac_clean_files
11550ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5556819a
AK
11551{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11552echo "$as_me: creating $CONFIG_STATUS" >&6;}
11553cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11554#! $SHELL
11555# Generated by $as_me.
795ca3e5 11556# Run this file to recreate the current configuration.
795ca3e5 11557# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11558# configure, is in config.log if it exists.
11559
11560debug=false
11561ac_cs_recheck=false
11562ac_cs_silent=false
11563SHELL=\${CONFIG_SHELL-$SHELL}
11564_ACEOF
11565
5556819a 11566cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11567## --------------------- ##
11568## M4sh Initialization. ##
11569## --------------------- ##
11570
25fbec5b
AK
11571# Be more Bourne compatible
11572DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11573if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11574 emulate sh
11575 NULLCMD=:
5556819a 11576 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11577 # is contrary to our usage. Disable this feature.
11578 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11579 setopt NO_GLOB_SUBST
11580else
25fbec5b
AK
11581 case `(set -o) 2>/dev/null` in
11582 *posix*) set -o posix ;;
11583esac
11584
7a197a62 11585fi
25fbec5b
AK
11586
11587
7a197a62
AK
11588
11589
11590# PATH needs CR
11591# Avoid depending upon Character Ranges.
11592as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11593as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11594as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11595as_cr_digits='0123456789'
11596as_cr_alnum=$as_cr_Letters$as_cr_digits
11597
fddafd51
ZK
11598# The user is always right.
11599if test "${PATH_SEPARATOR+set}" != set; then
5556819a
AK
11600 echo "#! /bin/sh" >conf$$.sh
11601 echo "exit 0" >>conf$$.sh
11602 chmod +x conf$$.sh
11603 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11604 PATH_SEPARATOR=';'
11605 else
11606 PATH_SEPARATOR=:
11607 fi
11608 rm -f conf$$.sh
ad6254c5
AK
11609fi
11610
11611# Support unset when possible.
8a2fc586 11612if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11613 as_unset=unset
11614else
11615 as_unset=false
11616fi
8106cdd5 11617
ad6254c5 11618
7a197a62
AK
11619# IFS
11620# We need space, tab and new line, in precisely that order. Quoting is
11621# there to prevent editors from complaining about space-tab.
11622# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11623# splitting by setting IFS to empty value.)
5556819a
AK
11624as_nl='
11625'
7a197a62
AK
11626IFS=" "" $as_nl"
11627
11628# Find who we are. Look in the path if we contain no directory separator.
11629case $0 in
11630 *[\\/]* ) as_myself=$0 ;;
11631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11637done
11638IFS=$as_save_IFS
11639
11640 ;;
11641esac
11642# We did not find ourselves, most probably we were run as `sh COMMAND'
11643# in which case we are not to be found in the path.
11644if test "x$as_myself" = x; then
11645 as_myself=$0
11646fi
11647if test ! -f "$as_myself"; then
5556819a 11648 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11649 { (exit 1); exit 1; }
11650fi
11651
ad6254c5 11652# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11653for as_var in ENV MAIL MAILPATH
11654do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11655done
ad6254c5
AK
11656PS1='$ '
11657PS2='> '
11658PS4='+ '
11659
11660# NLS nuisances.
5556819a
AK
11661for as_var in \
11662 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11663 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11664 LC_TELEPHONE LC_TIME
11665do
11666 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11667 eval $as_var=C; export $as_var
11668 else
11669 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11670 fi
11671done
8106cdd5 11672
ad6254c5 11673# Required to use basename.
7a197a62
AK
11674if expr a : '\(a\)' >/dev/null 2>&1 &&
11675 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11676 as_expr=expr
11677else
11678 as_expr=false
11679fi
8106cdd5 11680
7a197a62 11681if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11682 as_basename=basename
11683else
11684 as_basename=false
11685fi
11686
11687
11688# Name of the executable.
7a197a62 11689as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11691 X"$0" : 'X\(//\)$' \| \
7a197a62 11692 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 11693echo X/"$0" |
7a197a62
AK
11694 sed '/^.*\/\([^/][^/]*\)\/*$/{
11695 s//\1/
11696 q
11697 }
11698 /^X\/\(\/\/\)$/{
11699 s//\1/
11700 q
11701 }
11702 /^X\/\(\/\).*/{
11703 s//\1/
11704 q
11705 }
11706 s/.*/./; q'`
ad6254c5 11707
7a197a62
AK
11708# CDPATH.
11709$as_unset CDPATH
ad6254c5
AK
11710
11711
ad6254c5 11712
ad6254c5
AK
11713 as_lineno_1=$LINENO
11714 as_lineno_2=$LINENO
ad6254c5 11715 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11716 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11717
ad6254c5
AK
11718 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11719 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11720 # line-number line after each line using $LINENO; the second 'sed'
11721 # does the real work. The second script uses 'N' to pair each
11722 # line-number line with the line containing $LINENO, and appends
11723 # trailing '-' during substitution so that $LINENO is not a special
11724 # case at line end.
ad6254c5 11725 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11726 # scripts with optimization help from Paolo Bonzini. Blame Lee
11727 # E. McMahon (1931-1989) for sed's syntax. :-)
11728 sed -n '
11729 p
11730 /[$]LINENO/=
11731 ' <$as_myself |
ad6254c5 11732 sed '
7a197a62
AK
11733 s/[$]LINENO.*/&-/
11734 t lineno
11735 b
11736 :lineno
ad6254c5 11737 N
7a197a62
AK
11738 :loop
11739 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11740 t loop
7a197a62 11741 s/-\n.*//
ad6254c5 11742 ' >$as_me.lineno &&
7a197a62 11743 chmod +x "$as_me.lineno" ||
5556819a 11744 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11745 { (exit 1); exit 1; }; }
11746
11747 # Don't try to exec as it changes $[0], causing all sort of problems
11748 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11749 # original and so on. Autoconf is especially sensitive to this).
11750 . "./$as_me.lineno"
ad6254c5
AK
11751 # Exit status is that of the last command.
11752 exit
11753}
11754
11755
7a197a62
AK
11756if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11757 as_dirname=dirname
11758else
11759 as_dirname=false
11760fi
11761
11762ECHO_C= ECHO_N= ECHO_T=
11763case `echo -n x` in
11764-n*)
11765 case `echo 'x\c'` in
11766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11767 *) ECHO_C='\c';;
11768 esac;;
11769*)
11770 ECHO_N='-n';;
ad6254c5 11771esac
5556819a 11772
7a197a62
AK
11773if expr a : '\(a\)' >/dev/null 2>&1 &&
11774 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11775 as_expr=expr
11776else
11777 as_expr=false
11778fi
80992638 11779
ad6254c5 11780rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11781if test -d conf$$.dir; then
11782 rm -f conf$$.dir/conf$$.file
11783else
11784 rm -f conf$$.dir
5556819a
AK
11785 mkdir conf$$.dir
11786fi
11787echo >conf$$.file
11788if ln -s conf$$.file conf$$ 2>/dev/null; then
11789 as_ln_s='ln -s'
11790 # ... but there are two gotchas:
11791 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11792 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11793 # In both cases, we have to default to `cp -p'.
11794 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11795 as_ln_s='cp -p'
5556819a
AK
11796elif ln conf$$.file conf$$ 2>/dev/null; then
11797 as_ln_s=ln
ad6254c5
AK
11798else
11799 as_ln_s='cp -p'
11800fi
7a197a62
AK
11801rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11802rmdir conf$$.dir 2>/dev/null
8106cdd5 11803
ad6254c5
AK
11804if mkdir -p . 2>/dev/null; then
11805 as_mkdir_p=:
11806else
8a2fc586 11807 test -d ./-p && rmdir ./-p
ad6254c5
AK
11808 as_mkdir_p=false
11809fi
11810
25fbec5b
AK
11811if test -x / >/dev/null 2>&1; then
11812 as_test_x='test -x'
7a197a62 11813else
25fbec5b
AK
11814 if ls -dL / >/dev/null 2>&1; then
11815 as_ls_L_option=L
11816 else
11817 as_ls_L_option=
11818 fi
11819 as_test_x='
11820 eval sh -c '\''
11821 if test -d "$1"; then
5556819a 11822 test -d "$1/.";
25fbec5b
AK
11823 else
11824 case $1 in
5556819a 11825 -*)set "./$1";;
25fbec5b
AK
11826 esac;
11827 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11828 ???[sx]*):;;*)false;;esac;fi
11829 '\'' sh
11830 '
7a197a62 11831fi
25fbec5b 11832as_executable_p=$as_test_x
ad6254c5
AK
11833
11834# Sed expression to map a string onto a valid CPP name.
8a2fc586 11835as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11836
11837# Sed expression to map a string onto a valid variable name.
8a2fc586 11838as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11839
11840
ad6254c5
AK
11841exec 6>&1
11842
7a197a62 11843# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 11844# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11845# values after options handling.
11846ac_log="
ad6254c5 11847This file was extended by $as_me, which was
5556819a 11848generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
11849
11850 CONFIG_FILES = $CONFIG_FILES
11851 CONFIG_HEADERS = $CONFIG_HEADERS
11852 CONFIG_LINKS = $CONFIG_LINKS
11853 CONFIG_COMMANDS = $CONFIG_COMMANDS
11854 $ $0 $@
11855
7a197a62
AK
11856on `(hostname || uname -n) 2>/dev/null | sed 1q`
11857"
11858
ad6254c5
AK
11859_ACEOF
11860
5556819a 11861cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11862# Files that config.status was made for.
7a197a62
AK
11863config_files="$ac_config_files"
11864config_headers="$ac_config_headers"
ad6254c5 11865
7a197a62 11866_ACEOF
ad6254c5 11867
5556819a 11868cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11869ac_cs_usage="\
11870\`$as_me' instantiates files from templates according to the
11871current configuration.
11872
11873Usage: $0 [OPTIONS] [FILE]...
11874
11875 -h, --help print this help, then exit
25fbec5b 11876 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
11877 -q, --quiet do not print progress messages
11878 -d, --debug don't remove temporary files
11879 --recheck update $as_me by reconfiguring in the same conditions
11880 --file=FILE[:TEMPLATE]
5556819a 11881 instantiate the configuration file FILE
72b2cb61 11882 --header=FILE[:TEMPLATE]
5556819a 11883 instantiate the configuration header FILE
ad6254c5
AK
11884
11885Configuration files:
11886$config_files
11887
72b2cb61
AK
11888Configuration headers:
11889$config_headers
11890
ad6254c5 11891Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 11892
7a197a62 11893_ACEOF
5556819a 11894cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11895ac_cs_version="\\
11896config.status
5556819a
AK
11897configured by $0, generated by GNU Autoconf 2.61,
11898 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 11899
5556819a 11900Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
11901This config.status script is free software; the Free Software Foundation
11902gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11903
11904ac_pwd='$ac_pwd'
11905srcdir='$srcdir'
11906INSTALL='$INSTALL'
fddafd51 11907MKDIR_P='$MKDIR_P'
ad6254c5
AK
11908_ACEOF
11909
5556819a
AK
11910cat >>$CONFIG_STATUS <<\_ACEOF
11911# If no file are specified by the user, then we need to provide default
11912# value. By we need to know if files were specified by the user.
ad6254c5
AK
11913ac_need_defaults=:
11914while test $# != 0
11915do
11916 case $1 in
11917 --*=*)
7a197a62
AK
11918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11920 ac_shift=:
11921 ;;
7a197a62 11922 *)
ad6254c5
AK
11923 ac_option=$1
11924 ac_optarg=$2
11925 ac_shift=shift
11926 ;;
ad6254c5
AK
11927 esac
11928
11929 case $ac_option in
11930 # Handling of the options.
ad6254c5
AK
11931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11932 ac_cs_recheck=: ;;
7a197a62 11933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5556819a 11934 echo "$ac_cs_version"; exit ;;
7a197a62 11935 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11936 debug=: ;;
11937 --file | --fil | --fi | --f )
11938 $ac_shift
5556819a 11939 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
11940 ac_need_defaults=false;;
11941 --header | --heade | --head | --hea )
11942 $ac_shift
5556819a 11943 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 11944 ac_need_defaults=false;;
7a197a62
AK
11945 --he | --h)
11946 # Conflict between --help and --header
5556819a 11947 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
11948Try \`$0 --help' for more information." >&2
11949 { (exit 1); exit 1; }; };;
11950 --help | --hel | -h )
5556819a 11951 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11954 ac_cs_silent=: ;;
11955
11956 # This is an error.
5556819a 11957 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 11958Try \`$0 --help' for more information." >&2
ad6254c5
AK
11959 { (exit 1); exit 1; }; } ;;
11960
7a197a62
AK
11961 *) ac_config_targets="$ac_config_targets $1"
11962 ac_need_defaults=false ;;
ad6254c5
AK
11963
11964 esac
11965 shift
11966done
11967
11968ac_configure_extra_args=
11969
11970if $ac_cs_silent; then
11971 exec 6>/dev/null
11972 ac_configure_extra_args="$ac_configure_extra_args --silent"
11973fi
11974
11975_ACEOF
5556819a 11976cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11977if \$ac_cs_recheck; then
5556819a
AK
11978 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11979 CONFIG_SHELL=$SHELL
7a197a62 11980 export CONFIG_SHELL
5556819a 11981 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
11982fi
11983
11984_ACEOF
5556819a 11985cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11986exec 5>>config.log
11987{
11988 echo
11989 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11990## Running $as_me. ##
11991_ASBOX
5556819a 11992 echo "$ac_log"
7a197a62 11993} >&5
ad6254c5 11994
7a197a62 11995_ACEOF
5556819a 11996cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 11997_ACEOF
ad6254c5 11998
5556819a 11999cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12000
12001# Handling of arguments.
ad6254c5
AK
12002for ac_config_target in $ac_config_targets
12003do
7a197a62
AK
12004 case $ac_config_target in
12005 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12007 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d0191583
JM
12008 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12009 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12010 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12011 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12012 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
7a197a62
AK
12013 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12014 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
7a197a62 12015 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
d0191583 12016 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62 12017 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7a197a62
AK
12018 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12019 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12020 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12021 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12022 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12023 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12024 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12025 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12026 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12027
5556819a
AK
12028 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12029echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12030 { (exit 1); exit 1; }; };;
80992638 12031 esac
ad6254c5
AK
12032done
12033
7a197a62 12034
ad6254c5
AK
12035# If the user did not use the arguments to specify the items to instantiate,
12036# then the envvar interface is used. Set only those that are not.
12037# We use the long form for the default assignment because of an extremely
12038# bizarre bug on SunOS 4.1.3.
12039if $ac_need_defaults; then
12040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12042fi
12043
12044# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12045# simply because there is no reason against having it here, and in addition,
ad6254c5 12046# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12047# Hook for its removal unless debugging.
12048# Note that there is a small window in which the directory will not be cleaned:
12049# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12050$debug ||
12051{
7a197a62
AK
12052 tmp=
12053 trap 'exit_status=$?
12054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12055' 0
ad6254c5
AK
12056 trap '{ (exit 1); exit 1; }' 1 2 13 15
12057}
ad6254c5
AK
12058# Create a (secure) tmp directory for tmp files.
12059
12060{
7a197a62 12061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12062 test -n "$tmp" && test -d "$tmp"
12063} ||
12064{
7a197a62
AK
12065 tmp=./conf$$-$RANDOM
12066 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12067} ||
12068{
5556819a 12069 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12070 { (exit 1); exit 1; }
12071}
12072
5556819a
AK
12073#
12074# Set up the sed scripts for CONFIG_FILES section.
12075#
12076
12077# No need to generate the scripts if there are no CONFIG_FILES.
12078# This happens for instance when ./config.status config.h
1995c9ff 12079if test -n "$CONFIG_FILES"; then
7a197a62 12080
5556819a 12081_ACEOF
7a197a62 12082
5556819a
AK
12083
12084
12085ac_delim='%!_!# '
12086for ac_last_try in false false false false false :; do
12087 cat >conf$$subs.sed <<_ACEOF
12088SHELL!$SHELL$ac_delim
12089PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12090PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12091PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12092PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12093PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12094PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12095exec_prefix!$exec_prefix$ac_delim
12096prefix!$prefix$ac_delim
12097program_transform_name!$program_transform_name$ac_delim
12098bindir!$bindir$ac_delim
12099sbindir!$sbindir$ac_delim
12100libexecdir!$libexecdir$ac_delim
12101datarootdir!$datarootdir$ac_delim
12102datadir!$datadir$ac_delim
12103sysconfdir!$sysconfdir$ac_delim
12104sharedstatedir!$sharedstatedir$ac_delim
12105localstatedir!$localstatedir$ac_delim
12106includedir!$includedir$ac_delim
12107oldincludedir!$oldincludedir$ac_delim
12108docdir!$docdir$ac_delim
12109infodir!$infodir$ac_delim
12110htmldir!$htmldir$ac_delim
12111dvidir!$dvidir$ac_delim
12112pdfdir!$pdfdir$ac_delim
12113psdir!$psdir$ac_delim
12114libdir!$libdir$ac_delim
12115localedir!$localedir$ac_delim
12116mandir!$mandir$ac_delim
12117DEFS!$DEFS$ac_delim
12118ECHO_C!$ECHO_C$ac_delim
12119ECHO_N!$ECHO_N$ac_delim
12120ECHO_T!$ECHO_T$ac_delim
12121LIBS!$LIBS$ac_delim
12122build_alias!$build_alias$ac_delim
12123host_alias!$host_alias$ac_delim
12124target_alias!$target_alias$ac_delim
12125build!$build$ac_delim
12126build_cpu!$build_cpu$ac_delim
12127build_vendor!$build_vendor$ac_delim
12128build_os!$build_os$ac_delim
12129host!$host$ac_delim
12130host_cpu!$host_cpu$ac_delim
12131host_vendor!$host_vendor$ac_delim
12132host_os!$host_os$ac_delim
12133target!$target$ac_delim
12134target_cpu!$target_cpu$ac_delim
12135target_vendor!$target_vendor$ac_delim
12136target_os!$target_os$ac_delim
12137AWK!$AWK$ac_delim
12138CC!$CC$ac_delim
12139CFLAGS!$CFLAGS$ac_delim
12140LDFLAGS!$LDFLAGS$ac_delim
12141CPPFLAGS!$CPPFLAGS$ac_delim
12142ac_ct_CC!$ac_ct_CC$ac_delim
12143EXEEXT!$EXEEXT$ac_delim
12144OBJEXT!$OBJEXT$ac_delim
12145CPP!$CPP$ac_delim
12146GREP!$GREP$ac_delim
12147EGREP!$EGREP$ac_delim
12148INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12149INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12150INSTALL_DATA!$INSTALL_DATA$ac_delim
12151LN_S!$LN_S$ac_delim
12152SET_MAKE!$SET_MAKE$ac_delim
12153RANLIB!$RANLIB$ac_delim
12154CFLOW_CMD!$CFLOW_CMD$ac_delim
12155CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12156ALLOCA!$ALLOCA$ac_delim
12157LIBOBJS!$LIBOBJS$ac_delim
12158POW_LIB!$POW_LIB$ac_delim
12159LCOV!$LCOV$ac_delim
12160GENHTML!$GENHTML$ac_delim
12161LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12162MSGFMT!$MSGFMT$ac_delim
12163MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12164BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12165CLDFLAGS!$CLDFLAGS$ac_delim
12166CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12167CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12168CLUSTER!$CLUSTER$ac_delim
12169CLVMD!$CLVMD$ac_delim
12170CMDLIB!$CMDLIB$ac_delim
12171COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12172DEBUG!$DEBUG$ac_delim
12173DEVMAPPER!$DEVMAPPER$ac_delim
12174DMDIR!$DMDIR$ac_delim
12175DMEVENTD!$DMEVENTD$ac_delim
12176DM_COMPAT!$DM_COMPAT$ac_delim
12177DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12178DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12179DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12180DM_IOCTLS!$DM_IOCTLS$ac_delim
12181DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12182FSADM!$FSADM$ac_delim
12183GROUP!$GROUP$ac_delim
12184HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12185_ACEOF
12186
12187 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12188 break
12189 elif $ac_last_try; then
12190 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12191echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12192 { (exit 1); exit 1; }; }
12193 else
12194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12195 fi
12196done
12197
12198ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12199if test -n "$ac_eof"; then
12200 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12201 ac_eof=`expr $ac_eof + 1`
1995c9ff 12202fi
7a197a62 12203
5556819a
AK
12204cat >>$CONFIG_STATUS <<_ACEOF
12205cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12206/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12207_ACEOF
12208sed '
12209s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12210s/^/s,@/; s/!/@,|#_!!_#|/
12211:n
12212t n
12213s/'"$ac_delim"'$/,g/; t
12214s/$/\\/; p
12215N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12216' >>$CONFIG_STATUS <conf$$subs.sed
12217rm -f conf$$subs.sed
12218cat >>$CONFIG_STATUS <<_ACEOF
12219CEOF$ac_eof
1995c9ff 12220_ACEOF
7a197a62 12221
8106cdd5 12222
1995c9ff
AK
12223ac_delim='%!_!# '
12224for ac_last_try in false false false false false :; do
5556819a
AK
12225 cat >conf$$subs.sed <<_ACEOF
12226HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12227HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12228INTL!$INTL$ac_delim
12229INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12230JOBS!$JOBS$ac_delim
12231LDDEPS!$LDDEPS$ac_delim
12232LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12233LOCALEDIR!$LOCALEDIR$ac_delim
12234LVM1!$LVM1$ac_delim
12235LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12236CONFDIR!$CONFDIR$ac_delim
12237LVM_VERSION!$LVM_VERSION$ac_delim
12238MIRRORS!$MIRRORS$ac_delim
12239OWNER!$OWNER$ac_delim
12240PKGCONFIG!$PKGCONFIG$ac_delim
12241POOL!$POOL$ac_delim
12242SNAPSHOTS!$SNAPSHOTS$ac_delim
12243STATICDIR!$STATICDIR$ac_delim
12244STATIC_LINK!$STATIC_LINK$ac_delim
12245LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12246LTLIBOBJS!$LTLIBOBJS$ac_delim
12247_ACEOF
12248
12249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
1995c9ff
AK
12250 break
12251 elif $ac_last_try; then
5556819a
AK
12252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12253echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12254 { (exit 1); exit 1; }; }
12255 else
12256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12257 fi
12258done
7a197a62 12259
5556819a
AK
12260ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12261if test -n "$ac_eof"; then
12262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12263 ac_eof=`expr $ac_eof + 1`
12264fi
fddafd51 12265
5556819a
AK
12266cat >>$CONFIG_STATUS <<_ACEOF
12267cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12269_ACEOF
5556819a
AK
12270sed '
12271s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12272s/^/s,@/; s/!/@,|#_!!_#|/
12273:n
12274t n
12275s/'"$ac_delim"'$/,g/; t
12276s/$/\\/; p
12277N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12278' >>$CONFIG_STATUS <conf$$subs.sed
12279rm -f conf$$subs.sed
12280cat >>$CONFIG_STATUS <<_ACEOF
12281:end
12282s/|#_!!_#|//g
12283CEOF$ac_eof
7a197a62
AK
12284_ACEOF
12285
5556819a 12286
7a197a62
AK
12287# VPATH may cause trouble with some makes, so we remove $(srcdir),
12288# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12289# trailing colons and then remove the whole line if VPATH becomes empty
12290# (actually we leave an empty line to preserve line numbers).
12291if test "x$srcdir" = x.; then
12292 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12293s/:*\$(srcdir):*/:/
12294s/:*\${srcdir}:*/:/
12295s/:*@srcdir@:*/:/
12296s/^\([^=]*=[ ]*\):*/\1/
12297s/:*$//
12298s/^[^=]*=[ ]*$//
12299}'
12300fi
12301
5556819a 12302cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12303fi # test -n "$CONFIG_FILES"
12304
12305
5556819a 12306for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12307do
12308 case $ac_tag in
12309 :[FHLC]) ac_mode=$ac_tag; continue;;
12310 esac
12311 case $ac_mode$ac_tag in
12312 :[FHL]*:*);;
5556819a
AK
12313 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12314echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12315 { (exit 1); exit 1; }; };;
12316 :[FH]-) ac_tag=-:-;;
12317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12318 esac
12319 ac_save_IFS=$IFS
12320 IFS=:
12321 set x $ac_tag
12322 IFS=$ac_save_IFS
12323 shift
12324 ac_file=$1
12325 shift
12326
12327 case $ac_mode in
12328 :L) ac_source=$1;;
12329 :[FH])
12330 ac_file_inputs=
12331 for ac_f
12332 do
12333 case $ac_f in
12334 -) ac_f="$tmp/stdin";;
12335 *) # Look for the file first in the build tree, then in the source tree
12336 # (if the path is not absolute). The absolute path cannot be DOS-style,
12337 # because $ac_f cannot contain `:'.
12338 test -f "$ac_f" ||
12339 case $ac_f in
12340 [\\/$]*) false;;
12341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12342 esac ||
5556819a
AK
12343 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12344echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12345 { (exit 1); exit 1; }; };;
12346 esac
5556819a 12347 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12348 done
12349
12350 # Let's still pretend it is `configure' which instantiates (i.e., don't
12351 # use $as_me), people would be surprised to read:
12352 # /* config.h. Generated by config.status. */
5556819a
AK
12353 configure_input="Generated from "`IFS=:
12354 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12355 if test x"$ac_file" != x-; then
12356 configure_input="$ac_file. $configure_input"
5556819a
AK
12357 { echo "$as_me:$LINENO: creating $ac_file" >&5
12358echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12359 fi
12360
12361 case $ac_tag in
5556819a 12362 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12363 esac
12364 ;;
80992638 12365 esac
8106cdd5 12366
7a197a62 12367 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12368$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12369 X"$ac_file" : 'X\(//\)[^/]' \| \
12370 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 12372echo X"$ac_file" |
7a197a62
AK
12373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12374 s//\1/
12375 q
12376 }
12377 /^X\(\/\/\)[^/].*/{
12378 s//\1/
12379 q
12380 }
12381 /^X\(\/\/\)$/{
12382 s//\1/
12383 q
12384 }
12385 /^X\(\/\).*/{
12386 s//\1/
12387 q
12388 }
12389 s/.*/./; q'`
12390 { as_dir="$ac_dir"
12391 case $as_dir in #(
12392 -*) as_dir=./$as_dir;;
12393 esac
12394 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12395 as_dirs=
7a197a62
AK
12396 while :; do
12397 case $as_dir in #(
5556819a 12398 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12399 *) as_qdir=$as_dir;;
12400 esac
12401 as_dirs="'$as_qdir' $as_dirs"
12402 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12403$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12404 X"$as_dir" : 'X\(//\)[^/]' \| \
12405 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 12407echo X"$as_dir" |
7a197a62
AK
12408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12409 s//\1/
12410 q
12411 }
12412 /^X\(\/\/\)[^/].*/{
12413 s//\1/
12414 q
12415 }
12416 /^X\(\/\/\)$/{
12417 s//\1/
12418 q
12419 }
12420 /^X\(\/\).*/{
12421 s//\1/
12422 q
12423 }
12424 s/.*/./; q'`
12425 test -d "$as_dir" && break
ad6254c5 12426 done
7a197a62 12427 test -z "$as_dirs" || eval "mkdir $as_dirs"
5556819a
AK
12428 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12429echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12430 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12431 ac_builddir=.
12432
7a197a62
AK
12433case "$ac_dir" in
12434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12435*)
5556819a 12436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12437 # A ".." for each directory in $ac_dir_suffix.
5556819a 12438 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12439 case $ac_top_builddir_sub in
12440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12442 esac ;;
12443esac
12444ac_abs_top_builddir=$ac_pwd
12445ac_abs_builddir=$ac_pwd$ac_dir_suffix
12446# for backward compatibility:
12447ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12448
12449case $srcdir in
7a197a62 12450 .) # We are building in place.
ad6254c5 12451 ac_srcdir=.
7a197a62
AK
12452 ac_top_srcdir=$ac_top_builddir_sub
12453 ac_abs_top_srcdir=$ac_pwd ;;
12454 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12455 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12456 ac_top_srcdir=$srcdir
12457 ac_abs_top_srcdir=$srcdir ;;
12458 *) # Relative name.
12459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12460 ac_top_srcdir=$ac_top_build_prefix$srcdir
12461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12462esac
7a197a62 12463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12464
ad6254c5 12465
7a197a62
AK
12466 case $ac_mode in
12467 :F)
12468 #
12469 # CONFIG_FILE
12470 #
ad6254c5
AK
12471
12472 case $INSTALL in
12473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12475 esac
fddafd51
ZK
12476 ac_MKDIR_P=$MKDIR_P
12477 case $MKDIR_P in
12478 [\\/$]* | ?:[\\/]* ) ;;
12479 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12480 esac
7a197a62 12481_ACEOF
795ca3e5 12482
5556819a 12483cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12484# If the template does not know about datarootdir, expand it.
12485# FIXME: This hack should be removed a few years after 2.60.
12486ac_datarootdir_hack=; ac_datarootdir_seen=
12487
5556819a 12488case `sed -n '/datarootdir/ {
7a197a62
AK
12489 p
12490 q
12491}
12492/@datadir@/p
12493/@docdir@/p
12494/@infodir@/p
12495/@localedir@/p
12496/@mandir@/p
5556819a 12497' $ac_file_inputs` in
7a197a62
AK
12498*datarootdir*) ac_datarootdir_seen=yes;;
12499*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5556819a
AK
12500 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12501echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12502_ACEOF
5556819a 12503cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12504 ac_datarootdir_hack='
12505 s&@datadir@&$datadir&g
12506 s&@docdir@&$docdir&g
12507 s&@infodir@&$infodir&g
12508 s&@localedir@&$localedir&g
12509 s&@mandir@&$mandir&g
12510 s&\\\${datarootdir}&$datarootdir&g' ;;
12511esac
12512_ACEOF
12513
12514# Neutralize VPATH when `$srcdir' = `.'.
12515# Shell code in configure.ac might set extrasub.
12516# FIXME: do we really want to maintain this feature?
5556819a
AK
12517cat >>$CONFIG_STATUS <<_ACEOF
12518 sed "$ac_vpsub
ad6254c5
AK
12519$extrasub
12520_ACEOF
5556819a 12521cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12522:t
12523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5556819a 12524s&@configure_input@&$configure_input&;t t
7a197a62
AK
12525s&@top_builddir@&$ac_top_builddir_sub&;t t
12526s&@srcdir@&$ac_srcdir&;t t
12527s&@abs_srcdir@&$ac_abs_srcdir&;t t
12528s&@top_srcdir@&$ac_top_srcdir&;t t
12529s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12530s&@builddir@&$ac_builddir&;t t
12531s&@abs_builddir@&$ac_abs_builddir&;t t
12532s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12533s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12534s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12535$ac_datarootdir_hack
5556819a 12536" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12537
12538test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12539 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5556819a 12541 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12542which seems to be undefined. Please make sure it is defined." >&5
5556819a 12543echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12544which seems to be undefined. Please make sure it is defined." >&2;}
12545
12546 rm -f "$tmp/stdin"
72b2cb61 12547 case $ac_file in
5556819a
AK
12548 -) cat "$tmp/out"; rm -f "$tmp/out";;
12549 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12550 esac
7a197a62
AK
12551 ;;
12552 :H)
12553 #
12554 # CONFIG_HEADER
12555 #
5556819a
AK
12556_ACEOF
12557
12558# Transform confdefs.h into a sed script `conftest.defines', that
12559# substitutes the proper values into config.h.in to produce config.h.
12560rm -f conftest.defines conftest.tail
12561# First, append a space to every undef/define line, to ease matching.
12562echo 's/$/ /' >conftest.defines
12563# Then, protect against being on the right side of a sed subst, or in
12564# an unquoted here document, in config.status. If some macros were
12565# called several times there might be several #defines for the same
12566# symbol, which is useless. But do not sort them, since the last
12567# AC_DEFINE must be honored.
12568ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12569# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12570# NAME is the cpp macro being defined, VALUE is the value it is being given.
12571# PARAMS is the parameter list in the macro definition--in most cases, it's
12572# just an empty string.
12573ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12574ac_dB='\\)[ (].*,\\1define\\2'
12575ac_dC=' '
12576ac_dD=' ,'
12577
12578uniq confdefs.h |
12579 sed -n '
12580 t rset
12581 :rset
12582 s/^[ ]*#[ ]*define[ ][ ]*//
12583 t ok
12584 d
12585 :ok
12586 s/[\\&,]/\\&/g
12587 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12588 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12589 ' >>conftest.defines
12590
12591# Remove the space that was appended to ease matching.
12592# Then replace #undef with comments. This is necessary, for
12593# example, in the case of _POSIX_SOURCE, which is predefined and required
12594# on some systems where configure will not decide to define it.
12595# (The regexp can be short, since the line contains either #define or #undef.)
12596echo 's/ $//
12597s,^[ #]*u.*,/* & */,' >>conftest.defines
12598
12599# Break up conftest.defines:
12600ac_max_sed_lines=50
12601
12602# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12603# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12604# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12605# et cetera.
12606ac_in='$ac_file_inputs'
12607ac_out='"$tmp/out1"'
12608ac_nxt='"$tmp/out2"'
12609
12610while :
12611do
12612 # Write a here document:
12613 cat >>$CONFIG_STATUS <<_ACEOF
12614 # First, check the format of the line:
12615 cat >"\$tmp/defines.sed" <<\\CEOF
12616/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12617/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12618b
12619:def
12620_ACEOF
12621 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12622 echo 'CEOF
12623 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12624 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12625 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12626 grep . conftest.tail >/dev/null || break
12627 rm -f conftest.defines
12628 mv conftest.tail conftest.defines
12629done
12630rm -f conftest.defines conftest.tail
12631
12632echo "ac_result=$ac_in" >>$CONFIG_STATUS
12633cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12634 if test x"$ac_file" != x-; then
5556819a
AK
12635 echo "/* $configure_input */" >"$tmp/config.h"
12636 cat "$ac_result" >>"$tmp/config.h"
12637 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12639echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12640 else
5556819a
AK
12641 rm -f $ac_file
12642 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12643 fi
12644 else
5556819a
AK
12645 echo "/* $configure_input */"
12646 cat "$ac_result"
72b2cb61 12647 fi
5556819a 12648 rm -f "$tmp/out12"
7a197a62
AK
12649 ;;
12650
12651
12652 esac
12653
12654done # for ac_tag
795ca3e5 12655
795ca3e5 12656
ad6254c5
AK
12657{ (exit 0); exit 0; }
12658_ACEOF
795ca3e5 12659chmod +x $CONFIG_STATUS
ad6254c5
AK
12660ac_clean_files=$ac_clean_files_save
12661
12662
12663# configure is writing to config.log, and then calls config.status.
12664# config.status does its own redirection, appending to config.log.
12665# Unfortunately, on DOS this fails, as config.log is still kept open
12666# by configure, so config.status won't be able to write to it; its
12667# output is simply discarded. So we exec the FD to /dev/null,
12668# effectively closing config.log, so it can be properly (re)opened and
12669# appended to by config.status. When coming back to configure, we
12670# need to make the FD available again.
12671if test "$no_create" != yes; then
12672 ac_cs_success=:
12673 ac_config_status_args=
12674 test "$silent" = yes &&
12675 ac_config_status_args="$ac_config_status_args --quiet"
12676 exec 5>/dev/null
12677 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12678 exec 5>>config.log
12679 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12680 # would make configure fail if this is the last instruction.
12681 $ac_cs_success || { (exit 1); exit 1; }
12682fi
795ca3e5 12683
2dc95e1c
AK
12684
12685if test x$ODIRECT != xyes; then
5556819a
AK
12686 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12687echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12688fi
809fae91
AK
12689
12690if test x$FSADM == xyes; then
5556819a
AK
12691 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12692echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12693fi
06f62ad1
AK
12694
12695if test x$DMEVENTD == xyes; then
5556819a
AK
12696 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12697echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 12698fi
This page took 1.579077 seconds and 5 git commands to generate.