]> sourceware.org Git - lvm2.git/blame - configure
Avoid compiler warnings (provoked by new configure.in bug) on RHEL5.
[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
06e459df 8512 READLINE=maybe
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################################################################################
06e459df 8786if test x$READLINE != xno; 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"
06e459df 8867 tg_found=yes
ad6254c5 8868else
06e459df
JM
8869 tg_found=no
8870fi
8871
8872 test x$READLINE:$tg_found = xyes:no &&
8873 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
8874--enable-readline option (which is enabled by default). Either disable readline
8875support with --disable-readline or download and install termcap from:
8876 ftp.gnu.org/gnu/termcap
8877Note: if you are using precompiled packages you will also need the development
8878 package as well (which may be called termcap-devel or something similar).
8879Note: (n)curses also seems to work as a substitute for termcap. This was
8880 not found either - but you could try installing that as well.
8881" >&5
5556819a 8882echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
8883--enable-readline option (which is enabled by default). Either disable readline
8884support with --disable-readline or download and install termcap from:
8885 ftp.gnu.org/gnu/termcap
8886Note: if you are using precompiled packages you will also need the development
8887 package as well (which may be called termcap-devel or something similar).
8888Note: (n)curses also seems to work as a substitute for termcap. This was
8889 not found either - but you could try installing that as well.
8890" >&2;}
8891 { (exit 1); exit 1; }; }
ad6254c5
AK
8892fi
8893
8894################################################################################
5556819a
AK
8895{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8896echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 8897if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5556819a 8898 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8899else
8900 ac_check_lib_save_LIBS=$LIBS
8901LIBS="-ldl $LIBS"
8902cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8903/* confdefs.h. */
8904_ACEOF
8905cat confdefs.h >>conftest.$ac_ext
8906cat >>conftest.$ac_ext <<_ACEOF
8907/* end confdefs.h. */
8908
7a197a62
AK
8909/* Override any GCC internal prototype to avoid an error.
8910 Use char because int might match the return type of a GCC
8911 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8912#ifdef __cplusplus
8913extern "C"
8914#endif
ad6254c5
AK
8915char dlopen ();
8916int
8917main ()
8918{
7a197a62 8919return dlopen ();
ad6254c5
AK
8920 ;
8921 return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8925if { (ac_try="$ac_link"
8926case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929esac
5556819a 8930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8931 (eval "$ac_link") 2>conftest.er1
ad6254c5 8932 ac_status=$?
8a2fc586
AK
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
5556819a 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
5556819a
AK
8940 } && test -s conftest$ac_exeext &&
8941 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8942 ac_cv_lib_dl_dlopen=yes
8943else
5556819a 8944 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
7a197a62 8947 ac_cv_lib_dl_dlopen=no
ad6254c5 8948fi
7a197a62 8949
25fbec5b 8950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8951 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8952LIBS=$ac_check_lib_save_LIBS
8953fi
5556819a
AK
8954{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8955echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
8956if test $ac_cv_lib_dl_dlopen = yes; then
8957 HAVE_LIBDL=yes
8958else
8959 HAVE_LIBDL=no
8960fi
8961
8962
7e9e9502 8963if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8964
8965cat >>confdefs.h <<\_ACEOF
8966#define HAVE_LIBDL 1
8967_ACEOF
8968
ad6254c5
AK
8969 LIBS="-ldl $LIBS"
8970else
8971 HAVE_LIBDL=no
8972fi
8973
8974################################################################################
8975if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8976 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8977 \) -a "x$STATIC_LINK" = xyes ];
5556819a 8978 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 8979" >&5
5556819a 8980echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
8981" >&2;}
8982 { (exit 1); exit 1; }; }
8983fi
8984
d0191583 8985################################################################################
5556819a
AK
8986{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
8987echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
8988# Check whether --enable-static_link was given.
8989if test "${enable_static_link+set}" = set; then
8990 enableval=$enable_static_link; STATIC_LINK=$enableval
8991else
8992 STATIC_LINK=no
8993fi
8994
5556819a
AK
8995{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8996echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
8997
8998################################################################################
5556819a
AK
8999{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9000echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9001# Check whether --enable-selinux was given.
9002if test "${enable_selinux+set}" = set; then
9003 enableval=$enable_selinux; SELINUX=$enableval
9004fi
9005
5556819a
AK
9006{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9007echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9008
ad6254c5
AK
9009################################################################################
9010if test x$SELINUX = xyes; then
5556819a
AK
9011 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9012echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9013if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
5556819a 9014 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9015else
9016 ac_check_lib_save_LIBS=$LIBS
9017LIBS="-lsepol $LIBS"
9018cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h. */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h. */
9024
7a197a62
AK
9025/* Override any GCC internal prototype to avoid an error.
9026 Use char because int might match the return type of a GCC
9027 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9028#ifdef __cplusplus
9029extern "C"
9030#endif
8a2fc586
AK
9031char sepol_check_context ();
9032int
9033main ()
9034{
7a197a62 9035return sepol_check_context ();
8a2fc586
AK
9036 ;
9037 return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9041if { (ac_try="$ac_link"
9042case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045esac
5556819a 9046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9047 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
5556819a 9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9053 (exit $ac_status); } && {
9054 test -z "$ac_c_werror_flag" ||
9055 test ! -s conftest.err
5556819a
AK
9056 } && test -s conftest$ac_exeext &&
9057 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9058 ac_cv_lib_sepol_sepol_check_context=yes
9059else
5556819a 9060 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9061sed 's/^/| /' conftest.$ac_ext >&5
9062
7a197a62 9063 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9064fi
7a197a62 9065
25fbec5b 9066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9067 conftest$ac_exeext conftest.$ac_ext
9068LIBS=$ac_check_lib_save_LIBS
9069fi
5556819a
AK
9070{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9071echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9072if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9073 HAVE_SEPOL=yes
9074else
9075 HAVE_SEPOL=no
9076fi
9077
8a2fc586
AK
9078
9079 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9080
9081cat >>confdefs.h <<\_ACEOF
9082#define HAVE_SEPOL 1
9083_ACEOF
9084
8a2fc586
AK
9085 LIBS="-lsepol $LIBS"
9086 fi
9087
5556819a
AK
9088 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9089echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9090if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
5556819a 9091 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9092else
9093 ac_check_lib_save_LIBS=$LIBS
9094LIBS="-lselinux $LIBS"
9095cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101
7a197a62
AK
9102/* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9105#ifdef __cplusplus
9106extern "C"
9107#endif
ad6254c5
AK
9108char is_selinux_enabled ();
9109int
9110main ()
9111{
7a197a62 9112return is_selinux_enabled ();
ad6254c5
AK
9113 ;
9114 return 0;
9115}
9116_ACEOF
9117rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9118if { (ac_try="$ac_link"
9119case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122esac
5556819a 9123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9124 (eval "$ac_link") 2>conftest.er1
ad6254c5 9125 ac_status=$?
8a2fc586
AK
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
5556819a 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9130 (exit $ac_status); } && {
9131 test -z "$ac_c_werror_flag" ||
9132 test ! -s conftest.err
5556819a
AK
9133 } && test -s conftest$ac_exeext &&
9134 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9135 ac_cv_lib_selinux_is_selinux_enabled=yes
9136else
5556819a 9137 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9138sed 's/^/| /' conftest.$ac_ext >&5
9139
7a197a62 9140 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9141fi
7a197a62 9142
25fbec5b 9143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9144 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9145LIBS=$ac_check_lib_save_LIBS
9146fi
5556819a
AK
9147{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9148echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9149if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9150 HAVE_SELINUX=yes
9151else
9152 HAVE_SELINUX=no
9153fi
9154
ad6254c5
AK
9155
9156 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9157
9158cat >>confdefs.h <<\_ACEOF
9159#define HAVE_SELINUX 1
9160_ACEOF
9161
ad6254c5
AK
9162 LIBS="-lselinux $LIBS"
9163 else
5556819a
AK
9164 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9165echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9166 fi
9167
d0191583 9168 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9169 # fails on at least Debian unstable due to unsatisfied references
9170 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9171 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9172 lvm_saved_libs=$LIBS
9173 LIBS="$LIBS -static"
5556819a
AK
9174 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9175echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9176if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
5556819a 9177 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9178else
9179 ac_func_search_save_LIBS=$LIBS
9180cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h. */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h. */
9186
9187/* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9190#ifdef __cplusplus
9191extern "C"
9192#endif
9193char pthread_mutex_lock ();
9194int
9195main ()
9196{
9197return pthread_mutex_lock ();
9198 ;
9199 return 0;
9200}
9201_ACEOF
9202for ac_lib in '' pthread; do
9203 if test -z "$ac_lib"; then
9204 ac_res="none required"
9205 else
9206 ac_res=-l$ac_lib
9207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9208 fi
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210if { (ac_try="$ac_link"
9211case "(($ac_try" in
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9214esac
5556819a 9215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9216 (eval "$ac_link") 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
5556819a 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
5556819a
AK
9225 } && test -s conftest$ac_exeext &&
9226 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9227 ac_cv_search_pthread_mutex_lock=$ac_res
9228else
5556819a 9229 echo "$as_me: failed program was:" >&5
66e941e8
JM
9230sed 's/^/| /' conftest.$ac_ext >&5
9231
9232
9233fi
9234
25fbec5b 9235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9236 conftest$ac_exeext
9237 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9238 break
9239fi
9240done
9241if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9242 :
9243else
9244 ac_cv_search_pthread_mutex_lock=no
9245fi
9246rm conftest.$ac_ext
9247LIBS=$ac_func_search_save_LIBS
9248fi
5556819a
AK
9249{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9250echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9251ac_res=$ac_cv_search_pthread_mutex_lock
9252if test "$ac_res" != no; then
9253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9254 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9255 LIB_PTHREAD=-lpthread
9256fi
9257
9258 LIBS=$lvm_saved_libs
ad6254c5
AK
9259 fi
9260fi
9261
8b1a3214
AK
9262################################################################################
9263if test x$REALTIME = xyes; then
5556819a
AK
9264 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9265echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9266if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5556819a 9267 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9268else
9269 ac_check_lib_save_LIBS=$LIBS
9270LIBS="-lrt $LIBS"
9271cat >conftest.$ac_ext <<_ACEOF
9272/* confdefs.h. */
9273_ACEOF
9274cat confdefs.h >>conftest.$ac_ext
9275cat >>conftest.$ac_ext <<_ACEOF
9276/* end confdefs.h. */
9277
7a197a62
AK
9278/* Override any GCC internal prototype to avoid an error.
9279 Use char because int might match the return type of a GCC
9280 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9281#ifdef __cplusplus
9282extern "C"
9283#endif
8b1a3214
AK
9284char clock_gettime ();
9285int
9286main ()
9287{
7a197a62 9288return clock_gettime ();
8b1a3214
AK
9289 ;
9290 return 0;
9291}
9292_ACEOF
9293rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9294if { (ac_try="$ac_link"
9295case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298esac
5556819a 9299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9300 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
5556819a 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
5556819a
AK
9309 } && test -s conftest$ac_exeext &&
9310 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9311 ac_cv_lib_rt_clock_gettime=yes
9312else
5556819a 9313 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
7a197a62 9316 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9317fi
7a197a62 9318
25fbec5b 9319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9320 conftest$ac_exeext conftest.$ac_ext
9321LIBS=$ac_check_lib_save_LIBS
9322fi
5556819a
AK
9323{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9324echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9325if test $ac_cv_lib_rt_clock_gettime = yes; then
9326 HAVE_REALTIME=yes
9327else
9328 HAVE_REALTIME=no
9329fi
9330
8b1a3214
AK
9331
9332 if test x$HAVE_REALTIME = xyes; then
9333
9334cat >>confdefs.h <<\_ACEOF
9335#define HAVE_REALTIME 1
9336_ACEOF
9337
9338 LIBS="-lrt $LIBS"
9339 else
5556819a
AK
9340 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9341echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9342 fi
9343fi
9344
ad6254c5
AK
9345################################################################################
9346
9347for ac_header in getopt.h
9348do
5556819a 9349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
9351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9354 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9355fi
5556819a
AK
9356ac_res=`eval echo '${'$as_ac_Header'}'`
9357 { echo "$as_me:$LINENO: result: $ac_res" >&5
9358echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9359else
9360 # Is the header compilable?
5556819a
AK
9361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9363cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9364/* confdefs.h. */
9365_ACEOF
9366cat confdefs.h >>conftest.$ac_ext
9367cat >>conftest.$ac_ext <<_ACEOF
9368/* end confdefs.h. */
9369$ac_includes_default
9370#include <$ac_header>
9371_ACEOF
9372rm -f conftest.$ac_objext
7a197a62
AK
9373if { (ac_try="$ac_compile"
9374case "(($ac_try" in
9375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9377esac
5556819a 9378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9379 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9380 ac_status=$?
8a2fc586
AK
9381 grep -v '^ *+' conftest.er1 >conftest.err
9382 rm -f conftest.er1
9383 cat conftest.err >&5
5556819a 9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9385 (exit $ac_status); } && {
9386 test -z "$ac_c_werror_flag" ||
9387 test ! -s conftest.err
9388 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9389 ac_header_compiler=yes
9390else
5556819a 9391 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9392sed 's/^/| /' conftest.$ac_ext >&5
9393
7a197a62 9394 ac_header_compiler=no
ad6254c5 9395fi
7a197a62
AK
9396
9397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
9398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9399echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9400
9401# Is the header present?
5556819a
AK
9402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9404cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9405/* confdefs.h. */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h. */
9410#include <$ac_header>
9411_ACEOF
7a197a62
AK
9412if { (ac_try="$ac_cpp conftest.$ac_ext"
9413case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416esac
5556819a 9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9419 ac_status=$?
9420 grep -v '^ *+' conftest.er1 >conftest.err
9421 rm -f conftest.er1
9422 cat conftest.err >&5
5556819a 9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9424 (exit $ac_status); } >/dev/null && {
9425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9426 test ! -s conftest.err
9427 }; then
ad6254c5
AK
9428 ac_header_preproc=yes
9429else
5556819a 9430 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433 ac_header_preproc=no
9434fi
7a197a62 9435
ad6254c5 9436rm -f conftest.err conftest.$ac_ext
5556819a
AK
9437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9438echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9439
9440# So? What about this header?
8a2fc586
AK
9441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9442 yes:no: )
5556819a
AK
9443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9447 ac_header_preproc=yes
ad6254c5 9448 ;;
8a2fc586 9449 no:yes:* )
5556819a
AK
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9462
ad6254c5
AK
9463 ;;
9464esac
5556819a
AK
9465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9468 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9469else
8a2fc586 9470 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9471fi
5556819a
AK
9472ac_res=`eval echo '${'$as_ac_Header'}'`
9473 { echo "$as_me:$LINENO: result: $ac_res" >&5
9474echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9475
9476fi
5556819a 9477if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9478 cat >>confdefs.h <<_ACEOF
5556819a 9479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9480_ACEOF
72b2cb61
AK
9481
9482cat >>confdefs.h <<\_ACEOF
9483#define HAVE_GETOPTLONG 1
9484_ACEOF
9485
ad6254c5
AK
9486fi
9487
9488done
9489
9490
9491################################################################################
06e459df
JM
9492if test x$READLINE != xno; then
9493 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
5556819a 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 9554if test $ac_cv_lib_readline_readline = yes; then
06e459df 9555 rl_found=yes
ad6254c5 9556else
06e459df
JM
9557 rl_found=no
9558fi
9559
9560 test x$READLINE:$rl_found = xyes:no &&
9561 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9562--enable-readline option (which is enabled by default). Either disable readline
9563support with --disable-readline or download and install readline from:
9564 ftp.gnu.org/gnu/readline
9565Note: if you are using precompiled packages you will also need the development
9566package as well (which may be called readline-devel or something similar).
9567" >&5
5556819a 9568echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9569--enable-readline option (which is enabled by default). Either disable readline
9570support with --disable-readline or download and install readline from:
9571 ftp.gnu.org/gnu/readline
9572Note: if you are using precompiled packages you will also need the development
9573package as well (which may be called readline-devel or something similar).
9574" >&2;}
9575 { (exit 1); exit 1; }; }
06e459df
JM
9576 if test $rl_found = yes; then
9577 { echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
5556819a 9578echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6; }
ad6254c5 9579if test "${ac_cv_func_rl_completion_matches+set}" = set; then
5556819a 9580 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9581else
9582 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9583/* confdefs.h. */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h. */
8a2fc586
AK
9588/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
9589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9590#define rl_completion_matches innocuous_rl_completion_matches
9591
ad6254c5
AK
9592/* System header to define __stub macros and hopefully few prototypes,
9593 which can conflict with char rl_completion_matches (); below.
9594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9595 <limits.h> exists even on freestanding compilers. */
8a2fc586 9596
ad6254c5
AK
9597#ifdef __STDC__
9598# include <limits.h>
9599#else
9600# include <assert.h>
9601#endif
8a2fc586
AK
9602
9603#undef rl_completion_matches
9604
7a197a62
AK
9605/* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9608#ifdef __cplusplus
9609extern "C"
ad6254c5 9610#endif
ad6254c5
AK
9611char rl_completion_matches ();
9612/* The GNU C library defines this for functions which it implements
9613 to always fail with ENOSYS. Some functions are actually named
9614 something starting with __ and the normal name is an alias. */
7a197a62 9615#if defined __stub_rl_completion_matches || defined __stub___rl_completion_matches
ad6254c5 9616choke me
ad6254c5
AK
9617#endif
9618
9619int
9620main ()
9621{
7a197a62 9622return rl_completion_matches ();
ad6254c5
AK
9623 ;
9624 return 0;
9625}
9626_ACEOF
9627rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9628if { (ac_try="$ac_link"
9629case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632esac
5556819a 9633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9634 (eval "$ac_link") 2>conftest.er1
ad6254c5 9635 ac_status=$?
8a2fc586
AK
9636 grep -v '^ *+' conftest.er1 >conftest.err
9637 rm -f conftest.er1
9638 cat conftest.err >&5
5556819a 9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9640 (exit $ac_status); } && {
9641 test -z "$ac_c_werror_flag" ||
9642 test ! -s conftest.err
5556819a
AK
9643 } && test -s conftest$ac_exeext &&
9644 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9645 ac_cv_func_rl_completion_matches=yes
9646else
5556819a 9647 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9648sed 's/^/| /' conftest.$ac_ext >&5
9649
7a197a62 9650 ac_cv_func_rl_completion_matches=no
ad6254c5 9651fi
7a197a62 9652
25fbec5b 9653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9654 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9655fi
5556819a
AK
9656{ echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
9657echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6; }
ad6254c5 9658if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 9659
72b2cb61
AK
9660cat >>confdefs.h <<\_ACEOF
9661#define HAVE_RL_COMPLETION_MATCHES 1
9662_ACEOF
9663
9664fi
ad6254c5 9665
d179cc7a
JM
9666
9667cat >>confdefs.h <<\_ACEOF
9668#define READLINE_SUPPORT 1
9669_ACEOF
9670
06e459df 9671 fi
ad6254c5
AK
9672fi
9673
9674################################################################################
5556819a
AK
9675{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9676echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9677# Check whether --enable-nls was given.
ad6254c5 9678if test "${enable_nls+set}" = set; then
7a197a62 9679 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9680else
9681 INTL=no
7a197a62
AK
9682fi
9683
5556819a
AK
9684{ echo "$as_me:$LINENO: result: $INTL" >&5
9685echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9686
9687if test x$INTL = xyes; then
9688 INTL_PACKAGE="lvm2"
9689 # Extract the first word of "msgfmt", so it can be a program name with args.
9690set dummy msgfmt; ac_word=$2
5556819a
AK
9691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 9693if test "${ac_cv_path_MSGFMT+set}" = set; then
5556819a 9694 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9695else
9696 case $MSGFMT in
9697 [\\/]* | ?:[\\/]*)
9698 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9699 ;;
9700 *)
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 9708 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
5556819a 9709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
9710 break 2
9711 fi
9712done
9713done
7a197a62 9714IFS=$as_save_IFS
ad6254c5
AK
9715
9716 ;;
9717esac
9718fi
9719MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9720if test -n "$MSGFMT"; then
5556819a
AK
9721 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9722echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 9723else
5556819a
AK
9724 { echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6; }
ad6254c5
AK
9726fi
9727
7a197a62 9728
ad6254c5 9729 if [ "x$MSGFMT" == x ];
5556819a 9730 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 9731 " >&5
5556819a 9732echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
9733 " >&2;}
9734 { (exit 1); exit 1; }; }
9735 fi;
9736
9737
7a197a62 9738# Check whether --with-localedir was given.
ad6254c5 9739if test "${with_localedir+set}" = set; then
7a197a62 9740 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9741else
9742 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9743fi
9744
ad6254c5
AK
9745fi
9746
9747################################################################################
9748
7a197a62 9749# Check whether --with-confdir was given.
ad6254c5 9750if test "${with_confdir+set}" = set; then
7a197a62 9751 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9752else
9753 CONFDIR='/etc'
7a197a62
AK
9754fi
9755
ad6254c5
AK
9756
9757
7a197a62 9758# Check whether --with-staticdir was given.
ad6254c5 9759if test "${with_staticdir+set}" = set; then
7a197a62 9760 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9761else
9762 STATICDIR='${exec_prefix}/sbin'
7a197a62 9763fi
ad6254c5 9764
33f732c5 9765
7a197a62
AK
9766
9767# Check whether --with-dmdir was given.
33f732c5 9768if test "${with_dmdir+set}" = set; then
7a197a62 9769 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9770else
9771 DMDIR=
7a197a62
AK
9772fi
9773
33f732c5 9774
09339e2b 9775# Convert a relative dir name to absolute.
25fbec5b
AK
9776case $DMDIR in
9777 /*) ;;
9778 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
9779esac
9780
ad6254c5
AK
9781################################################################################
9782if test x$READLINE = xyes; then
9783
9784
9785for ac_header in readline/readline.h readline/history.h
9786do
5556819a 9787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
9789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9792 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9793fi
5556819a
AK
9794ac_res=`eval echo '${'$as_ac_Header'}'`
9795 { echo "$as_me:$LINENO: result: $ac_res" >&5
9796echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9797else
9798 # Is the header compilable?
5556819a
AK
9799{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9801cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9802/* confdefs.h. */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h. */
9807$ac_includes_default
9808#include <$ac_header>
9809_ACEOF
9810rm -f conftest.$ac_objext
7a197a62
AK
9811if { (ac_try="$ac_compile"
9812case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815esac
5556819a 9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9817 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9818 ac_status=$?
8a2fc586
AK
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
5556819a 9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9827 ac_header_compiler=yes
9828else
5556819a 9829 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9830sed 's/^/| /' conftest.$ac_ext >&5
9831
7a197a62 9832 ac_header_compiler=no
ad6254c5 9833fi
7a197a62
AK
9834
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
9836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9837echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9838
9839# Is the header present?
5556819a
AK
9840{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9842cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848#include <$ac_header>
9849_ACEOF
7a197a62
AK
9850if { (ac_try="$ac_cpp conftest.$ac_ext"
9851case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854esac
5556819a 9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
5556819a 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9862 (exit $ac_status); } >/dev/null && {
9863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 }; then
ad6254c5
AK
9866 ac_header_preproc=yes
9867else
5556819a 9868 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 ac_header_preproc=no
9872fi
7a197a62 9873
ad6254c5 9874rm -f conftest.err conftest.$ac_ext
5556819a
AK
9875{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9876echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9877
9878# So? What about this header?
8a2fc586
AK
9879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9880 yes:no: )
5556819a
AK
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9885 ac_header_preproc=yes
ad6254c5 9886 ;;
8a2fc586 9887 no:yes:* )
5556819a
AK
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9900
ad6254c5
AK
9901 ;;
9902esac
5556819a
AK
9903{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9906 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9907else
8a2fc586 9908 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9909fi
5556819a
AK
9910ac_res=`eval echo '${'$as_ac_Header'}'`
9911 { echo "$as_me:$LINENO: result: $ac_res" >&5
9912echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9913
9914fi
5556819a 9915if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9916 cat >>confdefs.h <<_ACEOF
5556819a 9917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9918_ACEOF
9919
9920else
5556819a
AK
9921 { { echo "$as_me:$LINENO: error: bailing out" >&5
9922echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
9923 { (exit 1); exit 1; }; }
9924fi
9925
9926done
9927
9928fi
9929
5c7fc7c4 9930if test x$CLVMD != xnone; then
ad6254c5
AK
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941for 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
9942do
5556819a 9943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
9945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 9948 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9949fi
5556819a
AK
9950ac_res=`eval echo '${'$as_ac_Header'}'`
9951 { echo "$as_me:$LINENO: result: $ac_res" >&5
9952echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9953else
9954 # Is the header compilable?
5556819a
AK
9955{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9956echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9957cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963$ac_includes_default
9964#include <$ac_header>
9965_ACEOF
9966rm -f conftest.$ac_objext
7a197a62
AK
9967if { (ac_try="$ac_compile"
9968case "(($ac_try" in
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9971esac
5556819a 9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9973 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9974 ac_status=$?
8a2fc586
AK
9975 grep -v '^ *+' conftest.er1 >conftest.err
9976 rm -f conftest.er1
9977 cat conftest.err >&5
5556819a 9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9983 ac_header_compiler=yes
9984else
5556819a 9985 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9986sed 's/^/| /' conftest.$ac_ext >&5
9987
7a197a62 9988 ac_header_compiler=no
ad6254c5 9989fi
7a197a62
AK
9990
9991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
9992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9993echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9994
9995# Is the header present?
5556819a
AK
9996{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9998cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004#include <$ac_header>
10005_ACEOF
7a197a62
AK
10006if { (ac_try="$ac_cpp conftest.$ac_ext"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
5556819a 10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
5556819a 10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10018 (exit $ac_status); } >/dev/null && {
10019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 }; then
ad6254c5
AK
10022 ac_header_preproc=yes
10023else
5556819a 10024 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10025sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_header_preproc=no
10028fi
7a197a62 10029
ad6254c5 10030rm -f conftest.err conftest.$ac_ext
5556819a
AK
10031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10033
10034# So? What about this header?
8a2fc586
AK
10035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 yes:no: )
5556819a
AK
10037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10041 ac_header_preproc=yes
ad6254c5 10042 ;;
8a2fc586 10043 no:yes:* )
5556819a
AK
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10056
ad6254c5
AK
10057 ;;
10058esac
5556819a
AK
10059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10062 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10063else
8a2fc586 10064 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10065fi
5556819a
AK
10066ac_res=`eval echo '${'$as_ac_Header'}'`
10067 { echo "$as_me:$LINENO: result: $ac_res" >&5
10068echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10069
10070fi
5556819a 10071if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10072 cat >>confdefs.h <<_ACEOF
5556819a 10073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10074_ACEOF
10075
10076else
5556819a
AK
10077 { { echo "$as_me:$LINENO: error: bailing out" >&5
10078echo "$as_me: error: bailing out" >&2;}
ad6254c5 10079 { (exit 1); exit 1; }; }
795ca3e5
AK
10080fi
10081
ad6254c5
AK
10082done
10083
10084
795ca3e5 10085
8106cdd5 10086
ad6254c5
AK
10087
10088
10089for ac_func in dup2 getmntent memmove select socket
10090do
5556819a
AK
10091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10092{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10094if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10095 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10096else
ad6254c5 10097 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
8a2fc586
AK
10103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105#define $ac_func innocuous_$ac_func
10106
795ca3e5 10107/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10108 which can conflict with char $ac_func (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
8a2fc586 10111
ad6254c5
AK
10112#ifdef __STDC__
10113# include <limits.h>
10114#else
10115# include <assert.h>
10116#endif
8a2fc586
AK
10117
10118#undef $ac_func
10119
7a197a62
AK
10120/* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10123#ifdef __cplusplus
10124extern "C"
ad6254c5 10125#endif
ad6254c5 10126char $ac_func ();
795ca3e5
AK
10127/* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
7a197a62 10130#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10131choke me
795ca3e5
AK
10132#endif
10133
ad6254c5
AK
10134int
10135main ()
10136{
7a197a62 10137return $ac_func ();
ad6254c5
AK
10138 ;
10139 return 0;
10140}
10141_ACEOF
10142rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10143if { (ac_try="$ac_link"
10144case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
5556819a 10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10149 (eval "$ac_link") 2>conftest.er1
ad6254c5 10150 ac_status=$?
8a2fc586
AK
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
5556819a 10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10155 (exit $ac_status); } && {
10156 test -z "$ac_c_werror_flag" ||
10157 test ! -s conftest.err
5556819a
AK
10158 } && test -s conftest$ac_exeext &&
10159 $as_test_x conftest$ac_exeext; then
ad6254c5 10160 eval "$as_ac_var=yes"
795ca3e5 10161else
5556819a 10162 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
7a197a62 10165 eval "$as_ac_var=no"
80992638 10166fi
7a197a62 10167
25fbec5b 10168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10169 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10170fi
5556819a
AK
10171ac_res=`eval echo '${'$as_ac_var'}'`
10172 { echo "$as_me:$LINENO: result: $ac_res" >&5
10173echo "${ECHO_T}$ac_res" >&6; }
10174if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10175 cat >>confdefs.h <<_ACEOF
5556819a 10176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10177_ACEOF
80992638
AK
10178
10179else
5556819a
AK
10180 { { echo "$as_me:$LINENO: error: bailing out" >&5
10181echo "$as_me: error: bailing out" >&2;}
ad6254c5 10182 { (exit 1); exit 1; }; }
8106cdd5 10183fi
ad6254c5 10184done
795ca3e5 10185
25fbec5b
AK
10186 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10187# -lseq on Dynix/PTX, -lgen on Unixware.
5556819a
AK
10188{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10189echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10190if test "${ac_cv_search_getmntent+set}" = set; then
5556819a 10191 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10192else
10193 ac_func_search_save_LIBS=$LIBS
10194cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h. */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h. */
80992638 10200
7a197a62
AK
10201/* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
ad6254c5 10203 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10204#ifdef __cplusplus
10205extern "C"
10206#endif
25fbec5b 10207char getmntent ();
ad6254c5
AK
10208int
10209main ()
10210{
25fbec5b 10211return getmntent ();
ad6254c5
AK
10212 ;
10213 return 0;
10214}
10215_ACEOF
25fbec5b
AK
10216for ac_lib in '' sun seq gen; do
10217 if test -z "$ac_lib"; then
10218 ac_res="none required"
10219 else
10220 ac_res=-l$ac_lib
10221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10222 fi
10223 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10224if { (ac_try="$ac_link"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
5556819a 10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10230 (eval "$ac_link") 2>conftest.er1
ad6254c5 10231 ac_status=$?
8a2fc586
AK
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
5556819a 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
5556819a
AK
10239 } && test -s conftest$ac_exeext &&
10240 $as_test_x conftest$ac_exeext; then
25fbec5b 10241 ac_cv_search_getmntent=$ac_res
80992638 10242else
5556819a 10243 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
25fbec5b 10246
795ca3e5
AK
10247fi
10248
25fbec5b
AK
10249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext
10251 if test "${ac_cv_search_getmntent+set}" = set; then
10252 break
795ca3e5 10253fi
25fbec5b
AK
10254done
10255if test "${ac_cv_search_getmntent+set}" = set; then
10256 :
10257else
10258 ac_cv_search_getmntent=no
10259fi
10260rm conftest.$ac_ext
10261LIBS=$ac_func_search_save_LIBS
10262fi
5556819a
AK
10263{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10264echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10265ac_res=$ac_cv_search_getmntent
10266if test "$ac_res" != no; then
10267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10268 ac_cv_func_getmntent=yes
10269
10270cat >>confdefs.h <<\_ACEOF
2a9a80c9 10271#define HAVE_GETMNTENT 1
ad6254c5 10272_ACEOF
795ca3e5 10273
25fbec5b
AK
10274else
10275 ac_cv_func_getmntent=no
795ca3e5 10276fi
795ca3e5
AK
10277
10278
ad6254c5
AK
10279# AC_FUNC_REALLOC
10280
10281
10282for ac_header in sys/select.h sys/socket.h
10283do
5556819a 10284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10289 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10290fi
5556819a
AK
10291ac_res=`eval echo '${'$as_ac_Header'}'`
10292 { echo "$as_me:$LINENO: result: $ac_res" >&5
10293echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10294else
ad6254c5 10295 # Is the header compilable?
5556819a
AK
10296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10298cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10299/* confdefs.h. */
10300_ACEOF
10301cat confdefs.h >>conftest.$ac_ext
10302cat >>conftest.$ac_ext <<_ACEOF
10303/* end confdefs.h. */
10304$ac_includes_default
10305#include <$ac_header>
10306_ACEOF
10307rm -f conftest.$ac_objext
7a197a62
AK
10308if { (ac_try="$ac_compile"
10309case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
5556819a 10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10314 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10315 ac_status=$?
8a2fc586
AK
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
5556819a 10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
ad6254c5 10324 ac_header_compiler=yes
80992638 10325else
5556819a 10326 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
7a197a62 10329 ac_header_compiler=no
ad6254c5 10330fi
7a197a62
AK
10331
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10335
10336# Is the header present?
5556819a
AK
10337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10339cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10340/* confdefs.h. */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */
10345#include <$ac_header>
10346_ACEOF
7a197a62
AK
10347if { (ac_try="$ac_cpp conftest.$ac_ext"
10348case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351esac
5556819a 10352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
5556819a 10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10359 (exit $ac_status); } >/dev/null && {
10360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 }; then
ad6254c5
AK
10363 ac_header_preproc=yes
10364else
5556819a 10365 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10366sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 ac_header_preproc=no
10369fi
7a197a62 10370
ad6254c5 10371rm -f conftest.err conftest.$ac_ext
5556819a
AK
10372{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10373echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10374
10375# So? What about this header?
8a2fc586
AK
10376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10377 yes:no: )
5556819a
AK
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10379echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10381echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10382 ac_header_preproc=yes
ad6254c5 10383 ;;
8a2fc586 10384 no:yes:* )
5556819a
AK
10385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10386echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10388echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10390echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10392echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10394echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10396echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10397
ad6254c5
AK
10398 ;;
10399esac
5556819a
AK
10400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10403 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10404else
8a2fc586 10405 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10406fi
5556819a
AK
10407ac_res=`eval echo '${'$as_ac_Header'}'`
10408 { echo "$as_me:$LINENO: result: $ac_res" >&5
10409echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10410
795ca3e5 10411fi
5556819a 10412if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10413 cat >>confdefs.h <<_ACEOF
5556819a 10414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10415_ACEOF
10416
795ca3e5
AK
10417fi
10418
ad6254c5
AK
10419done
10420
5556819a
AK
10421{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10422echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10423if test "${ac_cv_func_select_args+set}" = set; then
5556819a 10424 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10425else
ad6254c5 10426 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10427 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10428 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10429 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10430/* confdefs.h. */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h. */
10435$ac_includes_default
25fbec5b 10436#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10437# include <sys/select.h>
10438#endif
25fbec5b 10439#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10440# include <sys/socket.h>
10441#endif
10442
10443int
10444main ()
10445{
10446extern int select ($ac_arg1,
8a2fc586
AK
10447 $ac_arg234, $ac_arg234, $ac_arg234,
10448 $ac_arg5);
ad6254c5
AK
10449 ;
10450 return 0;
10451}
10452_ACEOF
10453rm -f conftest.$ac_objext
7a197a62
AK
10454if { (ac_try="$ac_compile"
10455case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458esac
5556819a 10459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10460 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10461 ac_status=$?
8a2fc586
AK
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
5556819a 10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10470 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10471else
5556819a 10472 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10473sed 's/^/| /' conftest.$ac_ext >&5
10474
7a197a62 10475
ad6254c5 10476fi
7a197a62
AK
10477
10478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10479 done
10480 done
10481done
10482# Provide a safe default value.
10483: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10484
26e7f2e0 10485fi
5556819a
AK
10486{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10487echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10488ac_save_IFS=$IFS; IFS=','
10489set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10490IFS=$ac_save_IFS
10491shift
10492
10493cat >>confdefs.h <<_ACEOF
10494#define SELECT_TYPE_ARG1 $1
10495_ACEOF
10496
10497
10498cat >>confdefs.h <<_ACEOF
10499#define SELECT_TYPE_ARG234 ($2)
10500_ACEOF
10501
10502
10503cat >>confdefs.h <<_ACEOF
10504#define SELECT_TYPE_ARG5 ($3)
10505_ACEOF
10506
80992638 10507rm -f conftest*
80992638 10508
8106cdd5 10509fi
ad6254c5 10510
ad6254c5
AK
10511if test x$CLUSTER != xnone; then
10512
10513
10514for ac_header in sys/socket.h sys/un.h
b896caa1 10515do
5556819a 10516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10521 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10522fi
5556819a
AK
10523ac_res=`eval echo '${'$as_ac_Header'}'`
10524 { echo "$as_me:$LINENO: result: $ac_res" >&5
10525echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10526else
10527 # Is the header compilable?
5556819a
AK
10528{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10530cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10531/* confdefs.h. */
10532_ACEOF
10533cat confdefs.h >>conftest.$ac_ext
10534cat >>conftest.$ac_ext <<_ACEOF
10535/* end confdefs.h. */
10536$ac_includes_default
10537#include <$ac_header>
10538_ACEOF
10539rm -f conftest.$ac_objext
7a197a62
AK
10540if { (ac_try="$ac_compile"
10541case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
5556819a 10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10546 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10547 ac_status=$?
8a2fc586
AK
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
5556819a 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10556 ac_header_compiler=yes
10557else
5556819a 10558 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10559sed 's/^/| /' conftest.$ac_ext >&5
10560
7a197a62 10561 ac_header_compiler=no
ad6254c5 10562fi
7a197a62
AK
10563
10564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10565{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10566echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10567
10568# Is the header present?
5556819a
AK
10569{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10571cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10572/* confdefs.h. */
10573_ACEOF
10574cat confdefs.h >>conftest.$ac_ext
10575cat >>conftest.$ac_ext <<_ACEOF
10576/* end confdefs.h. */
10577#include <$ac_header>
10578_ACEOF
7a197a62
AK
10579if { (ac_try="$ac_cpp conftest.$ac_ext"
10580case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583esac
5556819a 10584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10586 ac_status=$?
10587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
5556819a 10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10591 (exit $ac_status); } >/dev/null && {
10592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 }; then
ad6254c5
AK
10595 ac_header_preproc=yes
10596else
5556819a 10597 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600 ac_header_preproc=no
10601fi
7a197a62 10602
ad6254c5 10603rm -f conftest.err conftest.$ac_ext
5556819a
AK
10604{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10605echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10606
10607# So? What about this header?
8a2fc586
AK
10608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10609 yes:no: )
5556819a
AK
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10614 ac_header_preproc=yes
ad6254c5 10615 ;;
8a2fc586 10616 no:yes:* )
5556819a
AK
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10629
ad6254c5
AK
10630 ;;
10631esac
5556819a
AK
10632{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10635 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10636else
8a2fc586 10637 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10638fi
5556819a
AK
10639ac_res=`eval echo '${'$as_ac_Header'}'`
10640 { echo "$as_me:$LINENO: result: $ac_res" >&5
10641echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10642
10643fi
5556819a 10644if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10645 cat >>confdefs.h <<_ACEOF
5556819a 10646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10647_ACEOF
10648
80992638 10649else
5556819a
AK
10650 { { echo "$as_me:$LINENO: error: bailing out" >&5
10651echo "$as_me: error: bailing out" >&2;}
ad6254c5 10652 { (exit 1); exit 1; }; }
b896caa1 10653fi
ad6254c5 10654
b896caa1
AK
10655done
10656
10657
ad6254c5
AK
10658for ac_func in socket
10659do
5556819a
AK
10660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10661{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10664 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10665else
ad6254c5 10666 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
8a2fc586
AK
10672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10674#define $ac_func innocuous_$ac_func
10675
ad6254c5
AK
10676/* System header to define __stub macros and hopefully few prototypes,
10677 which can conflict with char $ac_func (); below.
10678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10679 <limits.h> exists even on freestanding compilers. */
8a2fc586 10680
ad6254c5
AK
10681#ifdef __STDC__
10682# include <limits.h>
10683#else
10684# include <assert.h>
10685#endif
8a2fc586
AK
10686
10687#undef $ac_func
10688
7a197a62
AK
10689/* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10692#ifdef __cplusplus
10693extern "C"
ad6254c5 10694#endif
ad6254c5
AK
10695char $ac_func ();
10696/* The GNU C library defines this for functions which it implements
10697 to always fail with ENOSYS. Some functions are actually named
10698 something starting with __ and the normal name is an alias. */
7a197a62 10699#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10700choke me
ad6254c5
AK
10701#endif
10702
10703int
10704main ()
10705{
7a197a62 10706return $ac_func ();
ad6254c5
AK
10707 ;
10708 return 0;
10709}
10710_ACEOF
10711rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10712if { (ac_try="$ac_link"
10713case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716esac
5556819a 10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10718 (eval "$ac_link") 2>conftest.er1
ad6254c5 10719 ac_status=$?
8a2fc586
AK
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
5556819a 10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
5556819a
AK
10727 } && test -s conftest$ac_exeext &&
10728 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10729 eval "$as_ac_var=yes"
10730else
5556819a 10731 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
7a197a62 10734 eval "$as_ac_var=no"
ad6254c5 10735fi
7a197a62 10736
25fbec5b 10737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10738 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10739fi
5556819a
AK
10740ac_res=`eval echo '${'$as_ac_var'}'`
10741 { echo "$as_me:$LINENO: result: $ac_res" >&5
10742echo "${ECHO_T}$ac_res" >&6; }
10743if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10744 cat >>confdefs.h <<_ACEOF
5556819a 10745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10746_ACEOF
10747
10748else
5556819a
AK
10749 { { echo "$as_me:$LINENO: error: bailing out" >&5
10750echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10751 { (exit 1); exit 1; }; }
10752fi
10753done
10754
10755fi
10756
10757if test x$HAVE_LIBDL = xyes; then
10758
10759for ac_header in dlfcn.h
10760do
5556819a 10761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10766 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10767fi
5556819a
AK
10768ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10771else
10772 # Is the header compilable?
5556819a
AK
10773{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10775cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10781$ac_includes_default
10782#include <$ac_header>
10783_ACEOF
10784rm -f conftest.$ac_objext
7a197a62
AK
10785if { (ac_try="$ac_compile"
10786case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10789esac
5556819a 10790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10791 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10792 ac_status=$?
8a2fc586
AK
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
5556819a 10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10797 (exit $ac_status); } && {
10798 test -z "$ac_c_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10801 ac_header_compiler=yes
10802else
5556819a 10803 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
7a197a62 10806 ac_header_compiler=no
ad6254c5 10807fi
7a197a62
AK
10808
10809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10812
10813# Is the header present?
5556819a
AK
10814{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10816cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h. */
10822#include <$ac_header>
10823_ACEOF
7a197a62
AK
10824if { (ac_try="$ac_cpp conftest.$ac_ext"
10825case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
5556819a 10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10831 ac_status=$?
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
5556819a 10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10836 (exit $ac_status); } >/dev/null && {
10837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10838 test ! -s conftest.err
10839 }; then
ad6254c5
AK
10840 ac_header_preproc=yes
10841else
5556819a 10842 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10843sed 's/^/| /' conftest.$ac_ext >&5
10844
10845 ac_header_preproc=no
10846fi
7a197a62 10847
ad6254c5 10848rm -f conftest.err conftest.$ac_ext
5556819a
AK
10849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10850echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10851
10852# So? What about this header?
8a2fc586
AK
10853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10854 yes:no: )
5556819a
AK
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10859 ac_header_preproc=yes
ad6254c5 10860 ;;
8a2fc586 10861 no:yes:* )
5556819a
AK
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10869echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10874
ad6254c5
AK
10875 ;;
10876esac
5556819a
AK
10877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10880 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10881else
8a2fc586 10882 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10883fi
5556819a
AK
10884ac_res=`eval echo '${'$as_ac_Header'}'`
10885 { echo "$as_me:$LINENO: result: $ac_res" >&5
10886echo "${ECHO_T}$ac_res" >&6; }
80992638 10887
8106cdd5 10888fi
5556819a 10889if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10890 cat >>confdefs.h <<_ACEOF
5556819a 10891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10892_ACEOF
795ca3e5
AK
10893
10894else
5556819a
AK
10895 { { echo "$as_me:$LINENO: error: bailing out" >&5
10896echo "$as_me: error: bailing out" >&2;}
ad6254c5 10897 { (exit 1); exit 1; }; }
795ca3e5
AK
10898fi
10899
ad6254c5 10900done
80992638 10901
ad6254c5 10902fi
80992638 10903
ad6254c5 10904if test x$INTL = xyes; then
83912faa 10905
ad6254c5
AK
10906for ac_header in libintl.h
10907do
5556819a 10908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
10910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 10913 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10914fi
5556819a
AK
10915ac_res=`eval echo '${'$as_ac_Header'}'`
10916 { echo "$as_me:$LINENO: result: $ac_res" >&5
10917echo "${ECHO_T}$ac_res" >&6; }
83912faa 10918else
ad6254c5 10919 # Is the header compilable?
5556819a
AK
10920{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10922cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
10928$ac_includes_default
10929#include <$ac_header>
10930_ACEOF
10931rm -f conftest.$ac_objext
7a197a62
AK
10932if { (ac_try="$ac_compile"
10933case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
5556819a 10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10938 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10939 ac_status=$?
8a2fc586
AK
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
5556819a 10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10944 (exit $ac_status); } && {
10945 test -z "$ac_c_werror_flag" ||
10946 test ! -s conftest.err
10947 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10948 ac_header_compiler=yes
10949else
5556819a 10950 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
7a197a62 10953 ac_header_compiler=no
ad6254c5 10954fi
7a197a62
AK
10955
10956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
10957{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10958echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10959
10960# Is the header present?
5556819a
AK
10961{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10963cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10968/* end confdefs.h. */
10969#include <$ac_header>
10970_ACEOF
7a197a62
AK
10971if { (ac_try="$ac_cpp conftest.$ac_ext"
10972case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
5556819a 10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
5556819a 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10983 (exit $ac_status); } >/dev/null && {
10984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 }; then
ad6254c5
AK
10987 ac_header_preproc=yes
10988else
5556819a 10989 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10990sed 's/^/| /' conftest.$ac_ext >&5
10991
10992 ac_header_preproc=no
10993fi
7a197a62 10994
ad6254c5 10995rm -f conftest.err conftest.$ac_ext
5556819a
AK
10996{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10997echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10998
10999# So? What about this header?
8a2fc586
AK
11000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11001 yes:no: )
5556819a
AK
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11006 ac_header_preproc=yes
ad6254c5 11007 ;;
8a2fc586 11008 no:yes:* )
5556819a
AK
11009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11021
ad6254c5
AK
11022 ;;
11023esac
5556819a
AK
11024{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11027 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11028else
8a2fc586 11029 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11030fi
5556819a
AK
11031ac_res=`eval echo '${'$as_ac_Header'}'`
11032 { echo "$as_me:$LINENO: result: $ac_res" >&5
11033echo "${ECHO_T}$ac_res" >&6; }
83912faa 11034
69792976 11035fi
5556819a 11036if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11037 cat >>confdefs.h <<_ACEOF
5556819a 11038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11039_ACEOF
69792976 11040
69792976 11041else
5556819a
AK
11042 { { echo "$as_me:$LINENO: error: bailing out" >&5
11043echo "$as_me: error: bailing out" >&2;}
ad6254c5 11044 { (exit 1); exit 1; }; }
80992638
AK
11045fi
11046
ad6254c5 11047done
69792976 11048
ad6254c5
AK
11049fi
11050
ad6254c5
AK
11051
11052for ac_header in libdevmapper.h
11053do
5556819a 11054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11059 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11060fi
5556819a
AK
11061ac_res=`eval echo '${'$as_ac_Header'}'`
11062 { echo "$as_me:$LINENO: result: $ac_res" >&5
11063echo "${ECHO_T}$ac_res" >&6; }
69792976 11064else
ad6254c5 11065 # Is the header compilable?
5556819a
AK
11066{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11068cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
11074$ac_includes_default
11075#include <$ac_header>
11076_ACEOF
11077rm -f conftest.$ac_objext
7a197a62
AK
11078if { (ac_try="$ac_compile"
11079case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082esac
5556819a 11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11084 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11085 ac_status=$?
8a2fc586
AK
11086 grep -v '^ *+' conftest.er1 >conftest.err
11087 rm -f conftest.er1
11088 cat conftest.err >&5
5556819a 11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11090 (exit $ac_status); } && {
11091 test -z "$ac_c_werror_flag" ||
11092 test ! -s conftest.err
11093 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11094 ac_header_compiler=yes
11095else
5556819a 11096 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
7a197a62 11099 ac_header_compiler=no
ad6254c5 11100fi
7a197a62
AK
11101
11102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
11103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11105
11106# Is the header present?
5556819a
AK
11107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11109cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115#include <$ac_header>
11116_ACEOF
7a197a62
AK
11117if { (ac_try="$ac_cpp conftest.$ac_ext"
11118case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
5556819a 11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
5556819a 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11129 (exit $ac_status); } >/dev/null && {
11130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 }; then
ad6254c5
AK
11133 ac_header_preproc=yes
11134else
5556819a 11135 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_header_preproc=no
11139fi
7a197a62 11140
ad6254c5 11141rm -f conftest.err conftest.$ac_ext
5556819a
AK
11142{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11143echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11144
11145# So? What about this header?
8a2fc586
AK
11146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11147 yes:no: )
5556819a
AK
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11149echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11151echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11152 ac_header_preproc=yes
ad6254c5 11153 ;;
8a2fc586 11154 no:yes:* )
5556819a
AK
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11156echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11158echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11160echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11162echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11164echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11166echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11167
ad6254c5
AK
11168 ;;
11169esac
5556819a
AK
11170{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11173 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11174else
8a2fc586 11175 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11176fi
5556819a
AK
11177ac_res=`eval echo '${'$as_ac_Header'}'`
11178 { echo "$as_me:$LINENO: result: $ac_res" >&5
11179echo "${ECHO_T}$ac_res" >&6; }
69792976 11180
ad6254c5 11181fi
5556819a 11182if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11183 cat >>confdefs.h <<_ACEOF
5556819a 11184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11185_ACEOF
69792976 11186
69792976 11187else
5556819a
AK
11188 { { echo "$as_me:$LINENO: error: bailing out" >&5
11189echo "$as_me: error: bailing out" >&2;}
ad6254c5 11190 { (exit 1); exit 1; }; }
83912faa
AK
11191fi
11192
ad6254c5
AK
11193done
11194
4a7f3eb2 11195
ad6254c5
AK
11196if test x$HAVE_SELINUX = xyes; then
11197
11198for ac_header in selinux/selinux.h
11199do
5556819a 11200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a
AK
11202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11205 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11206fi
5556819a
AK
11207ac_res=`eval echo '${'$as_ac_Header'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11210else
ad6254c5 11211 # Is the header compilable?
5556819a
AK
11212{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11213echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11214cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220$ac_includes_default
11221#include <$ac_header>
11222_ACEOF
11223rm -f conftest.$ac_objext
7a197a62
AK
11224if { (ac_try="$ac_compile"
11225case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228esac
5556819a 11229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11230 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11231 ac_status=$?
8a2fc586
AK
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
5556819a 11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11240 ac_header_compiler=yes
11241else
5556819a 11242 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
7a197a62 11245 ac_header_compiler=no
ad6254c5 11246fi
7a197a62
AK
11247
11248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556819a
AK
11249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11250echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11251
11252# Is the header present?
5556819a
AK
11253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11255cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261#include <$ac_header>
11262_ACEOF
7a197a62
AK
11263if { (ac_try="$ac_cpp conftest.$ac_ext"
11264case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
5556819a 11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
5556819a 11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11275 (exit $ac_status); } >/dev/null && {
11276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 }; then
ad6254c5
AK
11279 ac_header_preproc=yes
11280else
5556819a 11281 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 ac_header_preproc=no
11285fi
7a197a62 11286
ad6254c5 11287rm -f conftest.err conftest.$ac_ext
5556819a
AK
11288{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11290
11291# So? What about this header?
8a2fc586
AK
11292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11293 yes:no: )
5556819a
AK
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11298 ac_header_preproc=yes
ad6254c5 11299 ;;
8a2fc586 11300 no:yes:* )
5556819a
AK
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11313
ad6254c5
AK
11314 ;;
11315esac
5556819a
AK
11316{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5556819a 11319 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11320else
8a2fc586 11321 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11322fi
5556819a
AK
11323ac_res=`eval echo '${'$as_ac_Header'}'`
11324 { echo "$as_me:$LINENO: result: $ac_res" >&5
11325echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11326
ad6254c5 11327fi
5556819a 11328if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11329 cat >>confdefs.h <<_ACEOF
5556819a 11330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11331_ACEOF
0a62c911 11332
0a62c911 11333else
5556819a
AK
11334 { { echo "$as_me:$LINENO: error: bailing out" >&5
11335echo "$as_me: error: bailing out" >&2;}
ad6254c5 11336 { (exit 1); exit 1; }; }
80992638
AK
11337fi
11338
ad6254c5 11339done
0a62c911 11340
ad6254c5 11341fi
0a62c911 11342
a653923f
AK
11343################################################################################
11344# Extract the first word of "modprobe", so it can be a program name with args.
11345set dummy modprobe; ac_word=$2
5556819a
AK
11346{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11348if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
5556819a 11349 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11350else
11351 case $MODPROBE_CMD in
11352 [\\/]* | ?:[\\/]*)
11353 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11354 ;;
11355 *)
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11363 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
5556819a 11364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11365 break 2
11366 fi
11367done
11368done
7a197a62 11369IFS=$as_save_IFS
72b2cb61
AK
11370
11371 ;;
11372esac
11373fi
11374MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11375if test -n "$MODPROBE_CMD"; then
5556819a
AK
11376 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11377echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11378else
5556819a
AK
11379 { echo "$as_me:$LINENO: result: no" >&5
11380echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11381fi
11382
a653923f 11383
7a197a62 11384
a653923f 11385if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11386
11387cat >>confdefs.h <<_ACEOF
11388#define MODPROBE_CMD "$MODPROBE_CMD"
11389_ACEOF
11390
a653923f
AK
11391fi
11392
80992638 11393################################################################################
d0191583 11394LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11395
80992638 11396################################################################################
fae0c576 11397
83912faa 11398
795ca3e5
AK
11399
11400
11401
11402
11403
11404
5a52dca9 11405
8ef2b021 11406
199e490e 11407
69792976
AK
11408
11409
11410
d0191583
JM
11411# FIXME: rename to LVM_USE_DMEVENTD
11412
69792976 11413
8106cdd5
AK
11414
11415
11416
11417
11418
d68a82ec 11419
036f273a 11420
7d1552c9 11421
8106cdd5 11422
0a62c911 11423
8106cdd5 11424
4a7f3eb2 11425
4922197a
AK
11426
11427
d8ac0fbc 11428
1a9ea74d 11429
8a2fc586
AK
11430
11431
d0191583
JM
11432
11433# FIXME: rename to LVM_CONF_DIR
11434
11435
11436
11437
11438
8a2fc586 11439
8ce0cbda 11440
8b1a3214 11441
33f732c5 11442
66e941e8 11443
d3c8211f
AK
11444
11445
80992638 11446################################################################################
d0191583 11447ac_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 11448
ad6254c5 11449cat >confcache <<\_ACEOF
795ca3e5
AK
11450# This file is a shell script that caches the results of configure
11451# tests run on this system so they can be shared between configure
ad6254c5
AK
11452# scripts and configure runs, see configure's option --config-cache.
11453# It is not useful on other systems. If it contains results you don't
11454# want to keep, you may remove or edit it.
795ca3e5 11455#
ad6254c5
AK
11456# config.status only pays attention to the cache file if you give it
11457# the --recheck option to rerun configure.
795ca3e5 11458#
ad6254c5
AK
11459# `ac_cv_env_foo' variables (set or unset) will be overridden when
11460# loading this file, other *unset* `ac_cv_foo' will be assigned the
11461# following values.
11462
11463_ACEOF
11464
795ca3e5
AK
11465# The following way of writing the cache mishandles newlines in values,
11466# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11467# So, we kill variables containing newlines.
795ca3e5
AK
11468# Ultrix sh set writes to stderr and can't be redirected directly,
11469# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11470(
11471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11472 eval ac_val=\$$ac_var
11473 case $ac_val in #(
11474 *${as_nl}*)
11475 case $ac_var in #(
5556819a
AK
11476 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11477echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11478 esac
11479 case $ac_var in #(
11480 _ | IFS | as_nl) ;; #(
11481 *) $as_unset $ac_var ;;
11482 esac ;;
11483 esac
11484 done
11485
ad6254c5 11486 (set) 2>&1 |
7a197a62
AK
11487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11488 *${as_nl}ac_space=\ *)
ad6254c5
AK
11489 # `set' does not quote correctly, so add quotes (double-quote
11490 # substitution turns \\\\ into \\, and sed turns \\ into \).
11491 sed -n \
8a2fc586
AK
11492 "s/'/'\\\\''/g;
11493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11494 ;; #(
ad6254c5
AK
11495 *)
11496 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11498 ;;
7a197a62
AK
11499 esac |
11500 sort
11501) |
ad6254c5 11502 sed '
7a197a62 11503 /^ac_cv_env_/b end
ad6254c5 11504 t clear
7a197a62 11505 :clear
ad6254c5
AK
11506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11507 t end
7a197a62
AK
11508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11509 :end' >>confcache
11510if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11511 if test -w "$cache_file"; then
11512 test "x$cache_file" != "x/dev/null" &&
5556819a
AK
11513 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11514echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11515 cat confcache >$cache_file
795ca3e5 11516 else
5556819a
AK
11517 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11518echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11519 fi
11520fi
11521rm -f confcache
11522
795ca3e5
AK
11523test "x$prefix" = xNONE && prefix=$ac_default_prefix
11524# Let make expand exec_prefix.
11525test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11526
72b2cb61 11527DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11528
11529ac_libobjs=
11530ac_ltlibobjs=
11531for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11532 # 1. Remove the extension, and $U if already installed.
7a197a62 11533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5556819a 11534 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11536 # will be set to the directory where LIBOBJS objects are built.
11537 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11538 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11539done
11540LIBOBJS=$ac_libobjs
80992638 11541
ad6254c5
AK
11542LTLIBOBJS=$ac_ltlibobjs
11543
11544
11545
11546: ${CONFIG_STATUS=./config.status}
11547ac_clean_files_save=$ac_clean_files
11548ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5556819a
AK
11549{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11550echo "$as_me: creating $CONFIG_STATUS" >&6;}
11551cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11552#! $SHELL
11553# Generated by $as_me.
795ca3e5 11554# Run this file to recreate the current configuration.
795ca3e5 11555# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11556# configure, is in config.log if it exists.
11557
11558debug=false
11559ac_cs_recheck=false
11560ac_cs_silent=false
11561SHELL=\${CONFIG_SHELL-$SHELL}
11562_ACEOF
11563
5556819a 11564cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11565## --------------------- ##
11566## M4sh Initialization. ##
11567## --------------------- ##
11568
25fbec5b
AK
11569# Be more Bourne compatible
11570DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11571if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11572 emulate sh
11573 NULLCMD=:
5556819a 11574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11575 # is contrary to our usage. Disable this feature.
11576 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11577 setopt NO_GLOB_SUBST
11578else
25fbec5b
AK
11579 case `(set -o) 2>/dev/null` in
11580 *posix*) set -o posix ;;
11581esac
11582
7a197a62 11583fi
25fbec5b
AK
11584
11585
7a197a62
AK
11586
11587
11588# PATH needs CR
11589# Avoid depending upon Character Ranges.
11590as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11591as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11592as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11593as_cr_digits='0123456789'
11594as_cr_alnum=$as_cr_Letters$as_cr_digits
11595
fddafd51
ZK
11596# The user is always right.
11597if test "${PATH_SEPARATOR+set}" != set; then
5556819a
AK
11598 echo "#! /bin/sh" >conf$$.sh
11599 echo "exit 0" >>conf$$.sh
11600 chmod +x conf$$.sh
11601 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11602 PATH_SEPARATOR=';'
11603 else
11604 PATH_SEPARATOR=:
11605 fi
11606 rm -f conf$$.sh
ad6254c5
AK
11607fi
11608
11609# Support unset when possible.
8a2fc586 11610if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11611 as_unset=unset
11612else
11613 as_unset=false
11614fi
8106cdd5 11615
ad6254c5 11616
7a197a62
AK
11617# IFS
11618# We need space, tab and new line, in precisely that order. Quoting is
11619# there to prevent editors from complaining about space-tab.
11620# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11621# splitting by setting IFS to empty value.)
5556819a
AK
11622as_nl='
11623'
7a197a62
AK
11624IFS=" "" $as_nl"
11625
11626# Find who we are. Look in the path if we contain no directory separator.
11627case $0 in
11628 *[\\/]* ) as_myself=$0 ;;
11629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630for as_dir in $PATH
11631do
11632 IFS=$as_save_IFS
11633 test -z "$as_dir" && as_dir=.
11634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11635done
11636IFS=$as_save_IFS
11637
11638 ;;
11639esac
11640# We did not find ourselves, most probably we were run as `sh COMMAND'
11641# in which case we are not to be found in the path.
11642if test "x$as_myself" = x; then
11643 as_myself=$0
11644fi
11645if test ! -f "$as_myself"; then
5556819a 11646 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11647 { (exit 1); exit 1; }
11648fi
11649
ad6254c5 11650# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11651for as_var in ENV MAIL MAILPATH
11652do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11653done
ad6254c5
AK
11654PS1='$ '
11655PS2='> '
11656PS4='+ '
11657
11658# NLS nuisances.
5556819a
AK
11659for as_var in \
11660 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11661 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11662 LC_TELEPHONE LC_TIME
11663do
11664 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11665 eval $as_var=C; export $as_var
11666 else
11667 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11668 fi
11669done
8106cdd5 11670
ad6254c5 11671# Required to use basename.
7a197a62
AK
11672if expr a : '\(a\)' >/dev/null 2>&1 &&
11673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11674 as_expr=expr
11675else
11676 as_expr=false
11677fi
8106cdd5 11678
7a197a62 11679if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11680 as_basename=basename
11681else
11682 as_basename=false
11683fi
11684
11685
11686# Name of the executable.
7a197a62 11687as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11689 X"$0" : 'X\(//\)$' \| \
7a197a62 11690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 11691echo X/"$0" |
7a197a62
AK
11692 sed '/^.*\/\([^/][^/]*\)\/*$/{
11693 s//\1/
11694 q
11695 }
11696 /^X\/\(\/\/\)$/{
11697 s//\1/
11698 q
11699 }
11700 /^X\/\(\/\).*/{
11701 s//\1/
11702 q
11703 }
11704 s/.*/./; q'`
ad6254c5 11705
7a197a62
AK
11706# CDPATH.
11707$as_unset CDPATH
ad6254c5
AK
11708
11709
ad6254c5 11710
ad6254c5
AK
11711 as_lineno_1=$LINENO
11712 as_lineno_2=$LINENO
ad6254c5 11713 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11714 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11715
ad6254c5
AK
11716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11717 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11718 # line-number line after each line using $LINENO; the second 'sed'
11719 # does the real work. The second script uses 'N' to pair each
11720 # line-number line with the line containing $LINENO, and appends
11721 # trailing '-' during substitution so that $LINENO is not a special
11722 # case at line end.
ad6254c5 11723 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11724 # scripts with optimization help from Paolo Bonzini. Blame Lee
11725 # E. McMahon (1931-1989) for sed's syntax. :-)
11726 sed -n '
11727 p
11728 /[$]LINENO/=
11729 ' <$as_myself |
ad6254c5 11730 sed '
7a197a62
AK
11731 s/[$]LINENO.*/&-/
11732 t lineno
11733 b
11734 :lineno
ad6254c5 11735 N
7a197a62
AK
11736 :loop
11737 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11738 t loop
7a197a62 11739 s/-\n.*//
ad6254c5 11740 ' >$as_me.lineno &&
7a197a62 11741 chmod +x "$as_me.lineno" ||
5556819a 11742 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11743 { (exit 1); exit 1; }; }
11744
11745 # Don't try to exec as it changes $[0], causing all sort of problems
11746 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11747 # original and so on. Autoconf is especially sensitive to this).
11748 . "./$as_me.lineno"
ad6254c5
AK
11749 # Exit status is that of the last command.
11750 exit
11751}
11752
11753
7a197a62
AK
11754if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11755 as_dirname=dirname
11756else
11757 as_dirname=false
11758fi
11759
11760ECHO_C= ECHO_N= ECHO_T=
11761case `echo -n x` in
11762-n*)
11763 case `echo 'x\c'` in
11764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11765 *) ECHO_C='\c';;
11766 esac;;
11767*)
11768 ECHO_N='-n';;
ad6254c5 11769esac
5556819a 11770
7a197a62
AK
11771if expr a : '\(a\)' >/dev/null 2>&1 &&
11772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11773 as_expr=expr
11774else
11775 as_expr=false
11776fi
80992638 11777
ad6254c5 11778rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11779if test -d conf$$.dir; then
11780 rm -f conf$$.dir/conf$$.file
11781else
11782 rm -f conf$$.dir
5556819a
AK
11783 mkdir conf$$.dir
11784fi
11785echo >conf$$.file
11786if ln -s conf$$.file conf$$ 2>/dev/null; then
11787 as_ln_s='ln -s'
11788 # ... but there are two gotchas:
11789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11791 # In both cases, we have to default to `cp -p'.
11792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11793 as_ln_s='cp -p'
5556819a
AK
11794elif ln conf$$.file conf$$ 2>/dev/null; then
11795 as_ln_s=ln
ad6254c5
AK
11796else
11797 as_ln_s='cp -p'
11798fi
7a197a62
AK
11799rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11800rmdir conf$$.dir 2>/dev/null
8106cdd5 11801
ad6254c5
AK
11802if mkdir -p . 2>/dev/null; then
11803 as_mkdir_p=:
11804else
8a2fc586 11805 test -d ./-p && rmdir ./-p
ad6254c5
AK
11806 as_mkdir_p=false
11807fi
11808
25fbec5b
AK
11809if test -x / >/dev/null 2>&1; then
11810 as_test_x='test -x'
7a197a62 11811else
25fbec5b
AK
11812 if ls -dL / >/dev/null 2>&1; then
11813 as_ls_L_option=L
11814 else
11815 as_ls_L_option=
11816 fi
11817 as_test_x='
11818 eval sh -c '\''
11819 if test -d "$1"; then
5556819a 11820 test -d "$1/.";
25fbec5b
AK
11821 else
11822 case $1 in
5556819a 11823 -*)set "./$1";;
25fbec5b
AK
11824 esac;
11825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11826 ???[sx]*):;;*)false;;esac;fi
11827 '\'' sh
11828 '
7a197a62 11829fi
25fbec5b 11830as_executable_p=$as_test_x
ad6254c5
AK
11831
11832# Sed expression to map a string onto a valid CPP name.
8a2fc586 11833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11834
11835# Sed expression to map a string onto a valid variable name.
8a2fc586 11836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11837
11838
ad6254c5
AK
11839exec 6>&1
11840
7a197a62 11841# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 11842# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11843# values after options handling.
11844ac_log="
ad6254c5 11845This file was extended by $as_me, which was
5556819a 11846generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
11847
11848 CONFIG_FILES = $CONFIG_FILES
11849 CONFIG_HEADERS = $CONFIG_HEADERS
11850 CONFIG_LINKS = $CONFIG_LINKS
11851 CONFIG_COMMANDS = $CONFIG_COMMANDS
11852 $ $0 $@
11853
7a197a62
AK
11854on `(hostname || uname -n) 2>/dev/null | sed 1q`
11855"
11856
ad6254c5
AK
11857_ACEOF
11858
5556819a 11859cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11860# Files that config.status was made for.
7a197a62
AK
11861config_files="$ac_config_files"
11862config_headers="$ac_config_headers"
ad6254c5 11863
7a197a62 11864_ACEOF
ad6254c5 11865
5556819a 11866cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11867ac_cs_usage="\
11868\`$as_me' instantiates files from templates according to the
11869current configuration.
11870
11871Usage: $0 [OPTIONS] [FILE]...
11872
11873 -h, --help print this help, then exit
25fbec5b 11874 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
11875 -q, --quiet do not print progress messages
11876 -d, --debug don't remove temporary files
11877 --recheck update $as_me by reconfiguring in the same conditions
11878 --file=FILE[:TEMPLATE]
5556819a 11879 instantiate the configuration file FILE
72b2cb61 11880 --header=FILE[:TEMPLATE]
5556819a 11881 instantiate the configuration header FILE
ad6254c5
AK
11882
11883Configuration files:
11884$config_files
11885
72b2cb61
AK
11886Configuration headers:
11887$config_headers
11888
ad6254c5 11889Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 11890
7a197a62 11891_ACEOF
5556819a 11892cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11893ac_cs_version="\\
11894config.status
5556819a
AK
11895configured by $0, generated by GNU Autoconf 2.61,
11896 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 11897
5556819a 11898Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
11899This config.status script is free software; the Free Software Foundation
11900gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11901
11902ac_pwd='$ac_pwd'
11903srcdir='$srcdir'
11904INSTALL='$INSTALL'
fddafd51 11905MKDIR_P='$MKDIR_P'
ad6254c5
AK
11906_ACEOF
11907
5556819a
AK
11908cat >>$CONFIG_STATUS <<\_ACEOF
11909# If no file are specified by the user, then we need to provide default
11910# value. By we need to know if files were specified by the user.
ad6254c5
AK
11911ac_need_defaults=:
11912while test $# != 0
11913do
11914 case $1 in
11915 --*=*)
7a197a62
AK
11916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11917 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11918 ac_shift=:
11919 ;;
7a197a62 11920 *)
ad6254c5
AK
11921 ac_option=$1
11922 ac_optarg=$2
11923 ac_shift=shift
11924 ;;
ad6254c5
AK
11925 esac
11926
11927 case $ac_option in
11928 # Handling of the options.
ad6254c5
AK
11929 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11930 ac_cs_recheck=: ;;
7a197a62 11931 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5556819a 11932 echo "$ac_cs_version"; exit ;;
7a197a62 11933 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11934 debug=: ;;
11935 --file | --fil | --fi | --f )
11936 $ac_shift
5556819a 11937 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
11938 ac_need_defaults=false;;
11939 --header | --heade | --head | --hea )
11940 $ac_shift
5556819a 11941 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 11942 ac_need_defaults=false;;
7a197a62
AK
11943 --he | --h)
11944 # Conflict between --help and --header
5556819a 11945 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
11946Try \`$0 --help' for more information." >&2
11947 { (exit 1); exit 1; }; };;
11948 --help | --hel | -h )
5556819a 11949 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11952 ac_cs_silent=: ;;
11953
11954 # This is an error.
5556819a 11955 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 11956Try \`$0 --help' for more information." >&2
ad6254c5
AK
11957 { (exit 1); exit 1; }; } ;;
11958
7a197a62
AK
11959 *) ac_config_targets="$ac_config_targets $1"
11960 ac_need_defaults=false ;;
ad6254c5
AK
11961
11962 esac
11963 shift
11964done
11965
11966ac_configure_extra_args=
11967
11968if $ac_cs_silent; then
11969 exec 6>/dev/null
11970 ac_configure_extra_args="$ac_configure_extra_args --silent"
11971fi
11972
11973_ACEOF
5556819a 11974cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11975if \$ac_cs_recheck; then
5556819a
AK
11976 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11977 CONFIG_SHELL=$SHELL
7a197a62 11978 export CONFIG_SHELL
5556819a 11979 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
11980fi
11981
11982_ACEOF
5556819a 11983cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11984exec 5>>config.log
11985{
11986 echo
11987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11988## Running $as_me. ##
11989_ASBOX
5556819a 11990 echo "$ac_log"
7a197a62 11991} >&5
ad6254c5 11992
7a197a62 11993_ACEOF
5556819a 11994cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 11995_ACEOF
ad6254c5 11996
5556819a 11997cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
11998
11999# Handling of arguments.
ad6254c5
AK
12000for ac_config_target in $ac_config_targets
12001do
7a197a62
AK
12002 case $ac_config_target in
12003 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12005 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d0191583
JM
12006 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12007 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12008 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12009 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12010 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
7a197a62
AK
12011 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12012 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
7a197a62 12013 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
d0191583 12014 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62 12015 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7a197a62
AK
12016 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12017 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12018 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12019 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12020 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12021 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12022 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12023 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12024 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12025
5556819a
AK
12026 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12027echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12028 { (exit 1); exit 1; }; };;
80992638 12029 esac
ad6254c5
AK
12030done
12031
7a197a62 12032
ad6254c5
AK
12033# If the user did not use the arguments to specify the items to instantiate,
12034# then the envvar interface is used. Set only those that are not.
12035# We use the long form for the default assignment because of an extremely
12036# bizarre bug on SunOS 4.1.3.
12037if $ac_need_defaults; then
12038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12040fi
12041
12042# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12043# simply because there is no reason against having it here, and in addition,
ad6254c5 12044# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12045# Hook for its removal unless debugging.
12046# Note that there is a small window in which the directory will not be cleaned:
12047# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12048$debug ||
12049{
7a197a62
AK
12050 tmp=
12051 trap 'exit_status=$?
12052 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12053' 0
ad6254c5
AK
12054 trap '{ (exit 1); exit 1; }' 1 2 13 15
12055}
ad6254c5
AK
12056# Create a (secure) tmp directory for tmp files.
12057
12058{
7a197a62 12059 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12060 test -n "$tmp" && test -d "$tmp"
12061} ||
12062{
7a197a62
AK
12063 tmp=./conf$$-$RANDOM
12064 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12065} ||
12066{
5556819a 12067 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12068 { (exit 1); exit 1; }
12069}
12070
5556819a
AK
12071#
12072# Set up the sed scripts for CONFIG_FILES section.
12073#
12074
12075# No need to generate the scripts if there are no CONFIG_FILES.
12076# This happens for instance when ./config.status config.h
1995c9ff 12077if test -n "$CONFIG_FILES"; then
7a197a62 12078
5556819a 12079_ACEOF
7a197a62 12080
5556819a
AK
12081
12082
12083ac_delim='%!_!# '
12084for ac_last_try in false false false false false :; do
12085 cat >conf$$subs.sed <<_ACEOF
12086SHELL!$SHELL$ac_delim
12087PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12088PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12089PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12090PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12091PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12092PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12093exec_prefix!$exec_prefix$ac_delim
12094prefix!$prefix$ac_delim
12095program_transform_name!$program_transform_name$ac_delim
12096bindir!$bindir$ac_delim
12097sbindir!$sbindir$ac_delim
12098libexecdir!$libexecdir$ac_delim
12099datarootdir!$datarootdir$ac_delim
12100datadir!$datadir$ac_delim
12101sysconfdir!$sysconfdir$ac_delim
12102sharedstatedir!$sharedstatedir$ac_delim
12103localstatedir!$localstatedir$ac_delim
12104includedir!$includedir$ac_delim
12105oldincludedir!$oldincludedir$ac_delim
12106docdir!$docdir$ac_delim
12107infodir!$infodir$ac_delim
12108htmldir!$htmldir$ac_delim
12109dvidir!$dvidir$ac_delim
12110pdfdir!$pdfdir$ac_delim
12111psdir!$psdir$ac_delim
12112libdir!$libdir$ac_delim
12113localedir!$localedir$ac_delim
12114mandir!$mandir$ac_delim
12115DEFS!$DEFS$ac_delim
12116ECHO_C!$ECHO_C$ac_delim
12117ECHO_N!$ECHO_N$ac_delim
12118ECHO_T!$ECHO_T$ac_delim
12119LIBS!$LIBS$ac_delim
12120build_alias!$build_alias$ac_delim
12121host_alias!$host_alias$ac_delim
12122target_alias!$target_alias$ac_delim
12123build!$build$ac_delim
12124build_cpu!$build_cpu$ac_delim
12125build_vendor!$build_vendor$ac_delim
12126build_os!$build_os$ac_delim
12127host!$host$ac_delim
12128host_cpu!$host_cpu$ac_delim
12129host_vendor!$host_vendor$ac_delim
12130host_os!$host_os$ac_delim
12131target!$target$ac_delim
12132target_cpu!$target_cpu$ac_delim
12133target_vendor!$target_vendor$ac_delim
12134target_os!$target_os$ac_delim
12135AWK!$AWK$ac_delim
12136CC!$CC$ac_delim
12137CFLAGS!$CFLAGS$ac_delim
12138LDFLAGS!$LDFLAGS$ac_delim
12139CPPFLAGS!$CPPFLAGS$ac_delim
12140ac_ct_CC!$ac_ct_CC$ac_delim
12141EXEEXT!$EXEEXT$ac_delim
12142OBJEXT!$OBJEXT$ac_delim
12143CPP!$CPP$ac_delim
12144GREP!$GREP$ac_delim
12145EGREP!$EGREP$ac_delim
12146INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12147INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12148INSTALL_DATA!$INSTALL_DATA$ac_delim
12149LN_S!$LN_S$ac_delim
12150SET_MAKE!$SET_MAKE$ac_delim
12151RANLIB!$RANLIB$ac_delim
12152CFLOW_CMD!$CFLOW_CMD$ac_delim
12153CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12154ALLOCA!$ALLOCA$ac_delim
12155LIBOBJS!$LIBOBJS$ac_delim
12156POW_LIB!$POW_LIB$ac_delim
12157LCOV!$LCOV$ac_delim
12158GENHTML!$GENHTML$ac_delim
12159LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12160MSGFMT!$MSGFMT$ac_delim
12161MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12162BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12163CLDFLAGS!$CLDFLAGS$ac_delim
12164CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12165CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12166CLUSTER!$CLUSTER$ac_delim
12167CLVMD!$CLVMD$ac_delim
12168CMDLIB!$CMDLIB$ac_delim
12169COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12170DEBUG!$DEBUG$ac_delim
12171DEVMAPPER!$DEVMAPPER$ac_delim
12172DMDIR!$DMDIR$ac_delim
12173DMEVENTD!$DMEVENTD$ac_delim
12174DM_COMPAT!$DM_COMPAT$ac_delim
12175DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12176DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12177DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12178DM_IOCTLS!$DM_IOCTLS$ac_delim
12179DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12180FSADM!$FSADM$ac_delim
12181GROUP!$GROUP$ac_delim
12182HAVE_LIBDL!$HAVE_LIBDL$ac_delim
12183_ACEOF
12184
12185 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12186 break
12187 elif $ac_last_try; then
12188 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12189echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12190 { (exit 1); exit 1; }; }
12191 else
12192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12193 fi
12194done
12195
12196ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12197if test -n "$ac_eof"; then
12198 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12199 ac_eof=`expr $ac_eof + 1`
1995c9ff 12200fi
7a197a62 12201
5556819a
AK
12202cat >>$CONFIG_STATUS <<_ACEOF
12203cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12204/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12205_ACEOF
12206sed '
12207s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12208s/^/s,@/; s/!/@,|#_!!_#|/
12209:n
12210t n
12211s/'"$ac_delim"'$/,g/; t
12212s/$/\\/; p
12213N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12214' >>$CONFIG_STATUS <conf$$subs.sed
12215rm -f conf$$subs.sed
12216cat >>$CONFIG_STATUS <<_ACEOF
12217CEOF$ac_eof
1995c9ff 12218_ACEOF
7a197a62 12219
8106cdd5 12220
1995c9ff
AK
12221ac_delim='%!_!# '
12222for ac_last_try in false false false false false :; do
5556819a
AK
12223 cat >conf$$subs.sed <<_ACEOF
12224HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12225HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12226INTL!$INTL$ac_delim
12227INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12228JOBS!$JOBS$ac_delim
12229LDDEPS!$LDDEPS$ac_delim
12230LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12231LOCALEDIR!$LOCALEDIR$ac_delim
12232LVM1!$LVM1$ac_delim
12233LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12234CONFDIR!$CONFDIR$ac_delim
12235LVM_VERSION!$LVM_VERSION$ac_delim
12236MIRRORS!$MIRRORS$ac_delim
12237OWNER!$OWNER$ac_delim
12238PKGCONFIG!$PKGCONFIG$ac_delim
12239POOL!$POOL$ac_delim
12240SNAPSHOTS!$SNAPSHOTS$ac_delim
12241STATICDIR!$STATICDIR$ac_delim
12242STATIC_LINK!$STATIC_LINK$ac_delim
12243LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12244LTLIBOBJS!$LTLIBOBJS$ac_delim
12245_ACEOF
12246
12247 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
1995c9ff
AK
12248 break
12249 elif $ac_last_try; then
5556819a
AK
12250 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12251echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12252 { (exit 1); exit 1; }; }
12253 else
12254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12255 fi
12256done
7a197a62 12257
5556819a
AK
12258ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12259if test -n "$ac_eof"; then
12260 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12261 ac_eof=`expr $ac_eof + 1`
12262fi
fddafd51 12263
5556819a
AK
12264cat >>$CONFIG_STATUS <<_ACEOF
12265cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12267_ACEOF
5556819a
AK
12268sed '
12269s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12270s/^/s,@/; s/!/@,|#_!!_#|/
12271:n
12272t n
12273s/'"$ac_delim"'$/,g/; t
12274s/$/\\/; p
12275N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12276' >>$CONFIG_STATUS <conf$$subs.sed
12277rm -f conf$$subs.sed
12278cat >>$CONFIG_STATUS <<_ACEOF
12279:end
12280s/|#_!!_#|//g
12281CEOF$ac_eof
7a197a62
AK
12282_ACEOF
12283
5556819a 12284
7a197a62
AK
12285# VPATH may cause trouble with some makes, so we remove $(srcdir),
12286# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12287# trailing colons and then remove the whole line if VPATH becomes empty
12288# (actually we leave an empty line to preserve line numbers).
12289if test "x$srcdir" = x.; then
12290 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12291s/:*\$(srcdir):*/:/
12292s/:*\${srcdir}:*/:/
12293s/:*@srcdir@:*/:/
12294s/^\([^=]*=[ ]*\):*/\1/
12295s/:*$//
12296s/^[^=]*=[ ]*$//
12297}'
12298fi
12299
5556819a 12300cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12301fi # test -n "$CONFIG_FILES"
12302
12303
5556819a 12304for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12305do
12306 case $ac_tag in
12307 :[FHLC]) ac_mode=$ac_tag; continue;;
12308 esac
12309 case $ac_mode$ac_tag in
12310 :[FHL]*:*);;
5556819a
AK
12311 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12312echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12313 { (exit 1); exit 1; }; };;
12314 :[FH]-) ac_tag=-:-;;
12315 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12316 esac
12317 ac_save_IFS=$IFS
12318 IFS=:
12319 set x $ac_tag
12320 IFS=$ac_save_IFS
12321 shift
12322 ac_file=$1
12323 shift
12324
12325 case $ac_mode in
12326 :L) ac_source=$1;;
12327 :[FH])
12328 ac_file_inputs=
12329 for ac_f
12330 do
12331 case $ac_f in
12332 -) ac_f="$tmp/stdin";;
12333 *) # Look for the file first in the build tree, then in the source tree
12334 # (if the path is not absolute). The absolute path cannot be DOS-style,
12335 # because $ac_f cannot contain `:'.
12336 test -f "$ac_f" ||
12337 case $ac_f in
12338 [\\/$]*) false;;
12339 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12340 esac ||
5556819a
AK
12341 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12342echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12343 { (exit 1); exit 1; }; };;
12344 esac
5556819a 12345 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12346 done
12347
12348 # Let's still pretend it is `configure' which instantiates (i.e., don't
12349 # use $as_me), people would be surprised to read:
12350 # /* config.h. Generated by config.status. */
5556819a
AK
12351 configure_input="Generated from "`IFS=:
12352 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12353 if test x"$ac_file" != x-; then
12354 configure_input="$ac_file. $configure_input"
5556819a
AK
12355 { echo "$as_me:$LINENO: creating $ac_file" >&5
12356echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12357 fi
12358
12359 case $ac_tag in
5556819a 12360 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12361 esac
12362 ;;
80992638 12363 esac
8106cdd5 12364
7a197a62 12365 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12367 X"$ac_file" : 'X\(//\)[^/]' \| \
12368 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12369 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 12370echo X"$ac_file" |
7a197a62
AK
12371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12372 s//\1/
12373 q
12374 }
12375 /^X\(\/\/\)[^/].*/{
12376 s//\1/
12377 q
12378 }
12379 /^X\(\/\/\)$/{
12380 s//\1/
12381 q
12382 }
12383 /^X\(\/\).*/{
12384 s//\1/
12385 q
12386 }
12387 s/.*/./; q'`
12388 { as_dir="$ac_dir"
12389 case $as_dir in #(
12390 -*) as_dir=./$as_dir;;
12391 esac
12392 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12393 as_dirs=
7a197a62
AK
12394 while :; do
12395 case $as_dir in #(
5556819a 12396 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12397 *) as_qdir=$as_dir;;
12398 esac
12399 as_dirs="'$as_qdir' $as_dirs"
12400 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12401$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12402 X"$as_dir" : 'X\(//\)[^/]' \| \
12403 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12404 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5556819a 12405echo X"$as_dir" |
7a197a62
AK
12406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12407 s//\1/
12408 q
12409 }
12410 /^X\(\/\/\)[^/].*/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\/\)$/{
12415 s//\1/
12416 q
12417 }
12418 /^X\(\/\).*/{
12419 s//\1/
12420 q
12421 }
12422 s/.*/./; q'`
12423 test -d "$as_dir" && break
ad6254c5 12424 done
7a197a62 12425 test -z "$as_dirs" || eval "mkdir $as_dirs"
5556819a
AK
12426 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12427echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12428 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12429 ac_builddir=.
12430
7a197a62
AK
12431case "$ac_dir" in
12432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12433*)
5556819a 12434 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12435 # A ".." for each directory in $ac_dir_suffix.
5556819a 12436 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12437 case $ac_top_builddir_sub in
12438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12440 esac ;;
12441esac
12442ac_abs_top_builddir=$ac_pwd
12443ac_abs_builddir=$ac_pwd$ac_dir_suffix
12444# for backward compatibility:
12445ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12446
12447case $srcdir in
7a197a62 12448 .) # We are building in place.
ad6254c5 12449 ac_srcdir=.
7a197a62
AK
12450 ac_top_srcdir=$ac_top_builddir_sub
12451 ac_abs_top_srcdir=$ac_pwd ;;
12452 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12453 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12454 ac_top_srcdir=$srcdir
12455 ac_abs_top_srcdir=$srcdir ;;
12456 *) # Relative name.
12457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12458 ac_top_srcdir=$ac_top_build_prefix$srcdir
12459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12460esac
7a197a62 12461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12462
ad6254c5 12463
7a197a62
AK
12464 case $ac_mode in
12465 :F)
12466 #
12467 # CONFIG_FILE
12468 #
ad6254c5
AK
12469
12470 case $INSTALL in
12471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12473 esac
fddafd51
ZK
12474 ac_MKDIR_P=$MKDIR_P
12475 case $MKDIR_P in
12476 [\\/$]* | ?:[\\/]* ) ;;
12477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12478 esac
7a197a62 12479_ACEOF
795ca3e5 12480
5556819a 12481cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12482# If the template does not know about datarootdir, expand it.
12483# FIXME: This hack should be removed a few years after 2.60.
12484ac_datarootdir_hack=; ac_datarootdir_seen=
12485
5556819a 12486case `sed -n '/datarootdir/ {
7a197a62
AK
12487 p
12488 q
12489}
12490/@datadir@/p
12491/@docdir@/p
12492/@infodir@/p
12493/@localedir@/p
12494/@mandir@/p
5556819a 12495' $ac_file_inputs` in
7a197a62
AK
12496*datarootdir*) ac_datarootdir_seen=yes;;
12497*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5556819a
AK
12498 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12499echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12500_ACEOF
5556819a 12501cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12502 ac_datarootdir_hack='
12503 s&@datadir@&$datadir&g
12504 s&@docdir@&$docdir&g
12505 s&@infodir@&$infodir&g
12506 s&@localedir@&$localedir&g
12507 s&@mandir@&$mandir&g
12508 s&\\\${datarootdir}&$datarootdir&g' ;;
12509esac
12510_ACEOF
12511
12512# Neutralize VPATH when `$srcdir' = `.'.
12513# Shell code in configure.ac might set extrasub.
12514# FIXME: do we really want to maintain this feature?
5556819a
AK
12515cat >>$CONFIG_STATUS <<_ACEOF
12516 sed "$ac_vpsub
ad6254c5
AK
12517$extrasub
12518_ACEOF
5556819a 12519cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12520:t
12521/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5556819a 12522s&@configure_input@&$configure_input&;t t
7a197a62
AK
12523s&@top_builddir@&$ac_top_builddir_sub&;t t
12524s&@srcdir@&$ac_srcdir&;t t
12525s&@abs_srcdir@&$ac_abs_srcdir&;t t
12526s&@top_srcdir@&$ac_top_srcdir&;t t
12527s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12528s&@builddir@&$ac_builddir&;t t
12529s&@abs_builddir@&$ac_abs_builddir&;t t
12530s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12531s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12532s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12533$ac_datarootdir_hack
5556819a 12534" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12535
12536test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5556819a 12539 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12540which seems to be undefined. Please make sure it is defined." >&5
5556819a 12541echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12542which seems to be undefined. Please make sure it is defined." >&2;}
12543
12544 rm -f "$tmp/stdin"
72b2cb61 12545 case $ac_file in
5556819a
AK
12546 -) cat "$tmp/out"; rm -f "$tmp/out";;
12547 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12548 esac
7a197a62
AK
12549 ;;
12550 :H)
12551 #
12552 # CONFIG_HEADER
12553 #
5556819a
AK
12554_ACEOF
12555
12556# Transform confdefs.h into a sed script `conftest.defines', that
12557# substitutes the proper values into config.h.in to produce config.h.
12558rm -f conftest.defines conftest.tail
12559# First, append a space to every undef/define line, to ease matching.
12560echo 's/$/ /' >conftest.defines
12561# Then, protect against being on the right side of a sed subst, or in
12562# an unquoted here document, in config.status. If some macros were
12563# called several times there might be several #defines for the same
12564# symbol, which is useless. But do not sort them, since the last
12565# AC_DEFINE must be honored.
12566ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12567# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12568# NAME is the cpp macro being defined, VALUE is the value it is being given.
12569# PARAMS is the parameter list in the macro definition--in most cases, it's
12570# just an empty string.
12571ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12572ac_dB='\\)[ (].*,\\1define\\2'
12573ac_dC=' '
12574ac_dD=' ,'
12575
12576uniq confdefs.h |
12577 sed -n '
12578 t rset
12579 :rset
12580 s/^[ ]*#[ ]*define[ ][ ]*//
12581 t ok
12582 d
12583 :ok
12584 s/[\\&,]/\\&/g
12585 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12586 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12587 ' >>conftest.defines
12588
12589# Remove the space that was appended to ease matching.
12590# Then replace #undef with comments. This is necessary, for
12591# example, in the case of _POSIX_SOURCE, which is predefined and required
12592# on some systems where configure will not decide to define it.
12593# (The regexp can be short, since the line contains either #define or #undef.)
12594echo 's/ $//
12595s,^[ #]*u.*,/* & */,' >>conftest.defines
12596
12597# Break up conftest.defines:
12598ac_max_sed_lines=50
12599
12600# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12601# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12602# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12603# et cetera.
12604ac_in='$ac_file_inputs'
12605ac_out='"$tmp/out1"'
12606ac_nxt='"$tmp/out2"'
12607
12608while :
12609do
12610 # Write a here document:
12611 cat >>$CONFIG_STATUS <<_ACEOF
12612 # First, check the format of the line:
12613 cat >"\$tmp/defines.sed" <<\\CEOF
12614/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12615/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12616b
12617:def
12618_ACEOF
12619 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12620 echo 'CEOF
12621 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12622 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12623 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12624 grep . conftest.tail >/dev/null || break
12625 rm -f conftest.defines
12626 mv conftest.tail conftest.defines
12627done
12628rm -f conftest.defines conftest.tail
12629
12630echo "ac_result=$ac_in" >>$CONFIG_STATUS
12631cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12632 if test x"$ac_file" != x-; then
5556819a
AK
12633 echo "/* $configure_input */" >"$tmp/config.h"
12634 cat "$ac_result" >>"$tmp/config.h"
12635 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12636 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12637echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12638 else
5556819a
AK
12639 rm -f $ac_file
12640 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12641 fi
12642 else
5556819a
AK
12643 echo "/* $configure_input */"
12644 cat "$ac_result"
72b2cb61 12645 fi
5556819a 12646 rm -f "$tmp/out12"
7a197a62
AK
12647 ;;
12648
12649
12650 esac
12651
12652done # for ac_tag
795ca3e5 12653
795ca3e5 12654
ad6254c5
AK
12655{ (exit 0); exit 0; }
12656_ACEOF
795ca3e5 12657chmod +x $CONFIG_STATUS
ad6254c5
AK
12658ac_clean_files=$ac_clean_files_save
12659
12660
12661# configure is writing to config.log, and then calls config.status.
12662# config.status does its own redirection, appending to config.log.
12663# Unfortunately, on DOS this fails, as config.log is still kept open
12664# by configure, so config.status won't be able to write to it; its
12665# output is simply discarded. So we exec the FD to /dev/null,
12666# effectively closing config.log, so it can be properly (re)opened and
12667# appended to by config.status. When coming back to configure, we
12668# need to make the FD available again.
12669if test "$no_create" != yes; then
12670 ac_cs_success=:
12671 ac_config_status_args=
12672 test "$silent" = yes &&
12673 ac_config_status_args="$ac_config_status_args --quiet"
12674 exec 5>/dev/null
12675 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12676 exec 5>>config.log
12677 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12678 # would make configure fail if this is the last instruction.
12679 $ac_cs_success || { (exit 1); exit 1; }
12680fi
795ca3e5 12681
2dc95e1c
AK
12682
12683if test x$ODIRECT != xyes; then
5556819a
AK
12684 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12685echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12686fi
809fae91
AK
12687
12688if test x$FSADM == xyes; then
5556819a
AK
12689 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12690echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12691fi
06f62ad1
AK
12692
12693if test x$DMEVENTD == xyes; then
5556819a
AK
12694 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12695echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 12696fi
This page took 1.510659 seconds and 5 git commands to generate.