]> sourceware.org Git - lvm2.git/blame - configure
first attempt at merging configure
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
68f2de6d 3# Generated by GNU Autoconf 2.61.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 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=:
68f2de6d 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
b145d876
ZK
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
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.)
68f2de6d
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
68f2de6d 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.
68f2de6d
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 ||
68f2de6d 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
68f2de6d 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=:
68f2de6d 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=:
68f2de6d 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
68f2de6d
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.
68f2de6d
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" ||
68f2de6d 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
68f2de6d 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
68f2de6d
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'
68f2de6d
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
68f2de6d 532 test -d "$1/.";
25fbec5b
AK
533 else
534 case $1 in
68f2de6d 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
5951ef33 666SED
7a197a62
AK
667AWK
668CC
669CFLAGS
670LDFLAGS
671CPPFLAGS
672ac_ct_CC
673EXEEXT
674OBJEXT
d0191583
JM
675CPP
676GREP
677EGREP
7a197a62
AK
678INSTALL_PROGRAM
679INSTALL_SCRIPT
680INSTALL_DATA
681LN_S
682SET_MAKE
683RANLIB
684CFLOW_CMD
685CSCOPE_CMD
7a197a62
AK
686ALLOCA
687LIBOBJS
688POW_LIB
fddafd51
ZK
689LCOV
690GENHTML
d179cc7a 691LVM2CMD_LIB
7a197a62
AK
692MSGFMT
693MODPROBE_CMD
d0191583 694BUILD_DMEVENTD
7a197a62 695CLDFLAGS
7a197a62 696CLDNOWHOLEARCHIVE
d0191583
JM
697CLDWHOLEARCHIVE
698CLUSTER
699CLVMD
700CMDLIB
701COPTIMISE_FLAG
7a197a62
AK
702DEBUG
703DEVMAPPER
d0191583
JM
704DMDIR
705DMEVENTD
706DM_COMPAT
707DM_DEVICE_GID
708DM_DEVICE_MODE
709DM_DEVICE_UID
710DM_IOCTLS
711DM_LIB_VERSION
712FSADM
713GROUP
7a197a62 714HAVE_LIBDL
7a197a62 715HAVE_REALTIME
d0191583
JM
716HAVE_SELINUX
717INTL
718INTL_PACKAGE
719JOBS
720LDDEPS
721LIB_SUFFIX
7a197a62 722LOCALEDIR
d0191583
JM
723LVM1
724LVM1_FALLBACK
7a197a62 725CONFDIR
d0191583
JM
726LVM_VERSION
727MIRRORS
728OWNER
729PKGCONFIG
730POOL
731SNAPSHOTS
7a197a62 732STATICDIR
d0191583 733STATIC_LINK
66e941e8 734LIB_PTHREAD
68f2de6d
AK
735usrlibdir
736usrsbindir
7a197a62 737LTLIBOBJS'
ad6254c5 738ac_subst_files=''
7a197a62
AK
739 ac_precious_vars='build_alias
740host_alias
741target_alias
742CC
743CFLAGS
744LDFLAGS
25fbec5b 745LIBS
7a197a62
AK
746CPPFLAGS
747CPP'
748
795ca3e5
AK
749
750# Initialize some variables set by options.
ad6254c5
AK
751ac_init_help=
752ac_init_version=false
795ca3e5
AK
753# The variables have the same names as the options, with
754# dashes changed to underlines.
ad6254c5 755cache_file=/dev/null
795ca3e5 756exec_prefix=NONE
795ca3e5 757no_create=
795ca3e5
AK
758no_recursion=
759prefix=NONE
760program_prefix=NONE
761program_suffix=NONE
762program_transform_name=s,x,x,
763silent=
764site=
765srcdir=
795ca3e5
AK
766verbose=
767x_includes=NONE
768x_libraries=NONE
ad6254c5
AK
769
770# Installation directory options.
771# These are left unexpanded so users can "make install exec_prefix=/foo"
772# and all the variables that are supposed to be based on exec_prefix
773# by default will actually change.
774# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 775# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
776bindir='${exec_prefix}/bin'
777sbindir='${exec_prefix}/sbin'
778libexecdir='${exec_prefix}/libexec'
7a197a62
AK
779datarootdir='${prefix}/share'
780datadir='${datarootdir}'
795ca3e5
AK
781sysconfdir='${prefix}/etc'
782sharedstatedir='${prefix}/com'
783localstatedir='${prefix}/var'
795ca3e5
AK
784includedir='${prefix}/include'
785oldincludedir='/usr/include'
7a197a62
AK
786docdir='${datarootdir}/doc/${PACKAGE}'
787infodir='${datarootdir}/info'
788htmldir='${docdir}'
789dvidir='${docdir}'
790pdfdir='${docdir}'
791psdir='${docdir}'
792libdir='${exec_prefix}/lib'
793localedir='${datarootdir}/locale'
794mandir='${datarootdir}/man'
795ca3e5 795
795ca3e5 796ac_prev=
7a197a62 797ac_dashdash=
795ca3e5
AK
798for ac_option
799do
795ca3e5
AK
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
7a197a62 802 eval $ac_prev=\$ac_option
795ca3e5
AK
803 ac_prev=
804 continue
805 fi
806
7a197a62
AK
807 case $ac_option in
808 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 *) ac_optarg=yes ;;
810 esac
795ca3e5
AK
811
812 # Accept the important Cygnus configure options, so we can diagnose typos.
813
7a197a62
AK
814 case $ac_dashdash$ac_option in
815 --)
816 ac_dashdash=yes ;;
795ca3e5
AK
817
818 -bindir | --bindir | --bindi | --bind | --bin | --bi)
819 ac_prev=bindir ;;
820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 821 bindir=$ac_optarg ;;
795ca3e5
AK
822
823 -build | --build | --buil | --bui | --bu)
ad6254c5 824 ac_prev=build_alias ;;
795ca3e5 825 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 826 build_alias=$ac_optarg ;;
795ca3e5
AK
827
828 -cache-file | --cache-file | --cache-fil | --cache-fi \
829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
830 ac_prev=cache_file ;;
831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
833 cache_file=$ac_optarg ;;
834
835 --config-cache | -C)
836 cache_file=config.cache ;;
795ca3e5 837
7a197a62 838 -datadir | --datadir | --datadi | --datad)
795ca3e5 839 ac_prev=datadir ;;
7a197a62 840 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 841 datadir=$ac_optarg ;;
795ca3e5 842
7a197a62
AK
843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
844 | --dataroo | --dataro | --datar)
845 ac_prev=datarootdir ;;
846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
848 datarootdir=$ac_optarg ;;
849
795ca3e5 850 -disable-* | --disable-*)
68f2de6d 851 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 852 # Reject names that are not valid shell variable names.
68f2de6d
AK
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 855 { (exit 1); exit 1; }; }
68f2de6d
AK
856 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_$ac_feature=no ;;
7a197a62
AK
858
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
863
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
795ca3e5
AK
868
869 -enable-* | --enable-*)
68f2de6d 870 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 871 # Reject names that are not valid shell variable names.
68f2de6d
AK
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
ad6254c5 874 { (exit 1); exit 1; }; }
68f2de6d
AK
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=\$ac_optarg ;;
795ca3e5
AK
877
878 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
879 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
880 | --exec | --exe | --ex)
881 ac_prev=exec_prefix ;;
882 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
883 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
884 | --exec=* | --exe=* | --ex=*)
ad6254c5 885 exec_prefix=$ac_optarg ;;
795ca3e5
AK
886
887 -gas | --gas | --ga | --g)
888 # Obsolete; use --with-gas.
889 with_gas=yes ;;
890
ad6254c5
AK
891 -help | --help | --hel | --he | -h)
892 ac_init_help=long ;;
893 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
894 ac_init_help=recursive ;;
895 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
896 ac_init_help=short ;;
795ca3e5
AK
897
898 -host | --host | --hos | --ho)
ad6254c5 899 ac_prev=host_alias ;;
795ca3e5 900 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 901 host_alias=$ac_optarg ;;
795ca3e5 902
7a197a62
AK
903 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
904 ac_prev=htmldir ;;
905 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
906 | --ht=*)
907 htmldir=$ac_optarg ;;
908
795ca3e5
AK
909 -includedir | --includedir | --includedi | --included | --include \
910 | --includ | --inclu | --incl | --inc)
911 ac_prev=includedir ;;
912 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
913 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 914 includedir=$ac_optarg ;;
795ca3e5
AK
915
916 -infodir | --infodir | --infodi | --infod | --info | --inf)
917 ac_prev=infodir ;;
918 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 919 infodir=$ac_optarg ;;
795ca3e5
AK
920
921 -libdir | --libdir | --libdi | --libd)
922 ac_prev=libdir ;;
923 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 924 libdir=$ac_optarg ;;
795ca3e5
AK
925
926 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
927 | --libexe | --libex | --libe)
928 ac_prev=libexecdir ;;
929 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
930 | --libexe=* | --libex=* | --libe=*)
ad6254c5 931 libexecdir=$ac_optarg ;;
795ca3e5 932
7a197a62
AK
933 -localedir | --localedir | --localedi | --localed | --locale)
934 ac_prev=localedir ;;
935 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
936 localedir=$ac_optarg ;;
937
795ca3e5 938 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 939 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
940 ac_prev=localstatedir ;;
941 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 942 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 943 localstatedir=$ac_optarg ;;
795ca3e5
AK
944
945 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
946 ac_prev=mandir ;;
947 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 948 mandir=$ac_optarg ;;
795ca3e5
AK
949
950 -nfp | --nfp | --nf)
951 # Obsolete; use --without-fp.
952 with_fp=no ;;
953
954 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 955 | --no-cr | --no-c | -n)
795ca3e5
AK
956 no_create=yes ;;
957
958 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
959 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
960 no_recursion=yes ;;
961
962 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
963 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
964 | --oldin | --oldi | --old | --ol | --o)
965 ac_prev=oldincludedir ;;
966 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
967 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
968 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 969 oldincludedir=$ac_optarg ;;
795ca3e5
AK
970
971 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
972 ac_prev=prefix ;;
973 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 974 prefix=$ac_optarg ;;
795ca3e5
AK
975
976 -program-prefix | --program-prefix | --program-prefi | --program-pref \
977 | --program-pre | --program-pr | --program-p)
978 ac_prev=program_prefix ;;
979 -program-prefix=* | --program-prefix=* | --program-prefi=* \
980 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 981 program_prefix=$ac_optarg ;;
795ca3e5
AK
982
983 -program-suffix | --program-suffix | --program-suffi | --program-suff \
984 | --program-suf | --program-su | --program-s)
985 ac_prev=program_suffix ;;
986 -program-suffix=* | --program-suffix=* | --program-suffi=* \
987 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 988 program_suffix=$ac_optarg ;;
795ca3e5
AK
989
990 -program-transform-name | --program-transform-name \
991 | --program-transform-nam | --program-transform-na \
992 | --program-transform-n | --program-transform- \
993 | --program-transform | --program-transfor \
994 | --program-transfo | --program-transf \
995 | --program-trans | --program-tran \
996 | --progr-tra | --program-tr | --program-t)
997 ac_prev=program_transform_name ;;
998 -program-transform-name=* | --program-transform-name=* \
999 | --program-transform-nam=* | --program-transform-na=* \
1000 | --program-transform-n=* | --program-transform-=* \
1001 | --program-transform=* | --program-transfor=* \
1002 | --program-transfo=* | --program-transf=* \
1003 | --program-trans=* | --program-tran=* \
1004 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1005 program_transform_name=$ac_optarg ;;
795ca3e5 1006
7a197a62
AK
1007 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1008 ac_prev=pdfdir ;;
1009 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1010 pdfdir=$ac_optarg ;;
1011
1012 -psdir | --psdir | --psdi | --psd | --ps)
1013 ac_prev=psdir ;;
1014 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1015 psdir=$ac_optarg ;;
1016
795ca3e5
AK
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 silent=yes ;;
1020
1021 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1022 ac_prev=sbindir ;;
1023 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1024 | --sbi=* | --sb=*)
ad6254c5 1025 sbindir=$ac_optarg ;;
795ca3e5
AK
1026
1027 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1028 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1029 | --sharedst | --shareds | --shared | --share | --shar \
1030 | --sha | --sh)
1031 ac_prev=sharedstatedir ;;
1032 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1033 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1034 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1035 | --sha=* | --sh=*)
ad6254c5 1036 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1037
1038 -site | --site | --sit)
1039 ac_prev=site ;;
1040 -site=* | --site=* | --sit=*)
ad6254c5 1041 site=$ac_optarg ;;
795ca3e5
AK
1042
1043 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1044 ac_prev=srcdir ;;
1045 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1046 srcdir=$ac_optarg ;;
795ca3e5
AK
1047
1048 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1049 | --syscon | --sysco | --sysc | --sys | --sy)
1050 ac_prev=sysconfdir ;;
1051 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1052 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1053 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1054
1055 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1056 ac_prev=target_alias ;;
795ca3e5 1057 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1058 target_alias=$ac_optarg ;;
795ca3e5
AK
1059
1060 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1061 verbose=yes ;;
1062
ad6254c5
AK
1063 -version | --version | --versio | --versi | --vers | -V)
1064 ac_init_version=: ;;
795ca3e5
AK
1065
1066 -with-* | --with-*)
68f2de6d 1067 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1068 # Reject names that are not valid shell variable names.
68f2de6d
AK
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1071 { (exit 1); exit 1; }; }
68f2de6d
AK
1072 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_$ac_package=\$ac_optarg ;;
795ca3e5
AK
1074
1075 -without-* | --without-*)
68f2de6d 1076 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1077 # Reject names that are not valid shell variable names.
68f2de6d
AK
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
ad6254c5 1080 { (exit 1); exit 1; }; }
68f2de6d
AK
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=no ;;
795ca3e5
AK
1083
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1093 x_includes=$ac_optarg ;;
795ca3e5
AK
1094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1100 x_libraries=$ac_optarg ;;
795ca3e5 1101
68f2de6d 1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1103Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
795ca3e5
AK
1105 ;;
1106
ad6254c5
AK
1107 *=*)
1108 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
68f2de6d 1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1112 { (exit 1); exit 1; }; }
7a197a62 1113 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1114 export $ac_envvar ;;
1115
795ca3e5 1116 *)
ad6254c5 1117 # FIXME: should be removed in autoconf 3.0.
68f2de6d 1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
68f2de6d 1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1122 ;;
1123
1124 esac
1125done
1126
1127if test -n "$ac_prev"; then
ad6254c5 1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
68f2de6d 1129 { echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1130 { (exit 1); exit 1; }; }
795ca3e5 1131fi
795ca3e5 1132
68f2de6d 1133# Be sure to have absolute directory names.
7a197a62
AK
1134for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
795ca3e5 1138do
7a197a62 1139 eval ac_val=\$$ac_var
ad6254c5 1140 case $ac_val in
7a197a62
AK
1141 [\\/$]* | ?:[\\/]* ) continue;;
1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1143 esac
68f2de6d 1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1145 { (exit 1); exit 1; }; }
795ca3e5
AK
1146done
1147
ad6254c5
AK
1148# There might be people who depend on the old broken behavior: `$host'
1149# used to hold the argument of --host etc.
1150# FIXME: To remove some day.
1151build=$build_alias
1152host=$host_alias
1153target=$target_alias
1154
1155# FIXME: To remove some day.
1156if test "x$host_alias" != x; then
1157 if test "x$build_alias" = x; then
1158 cross_compiling=maybe
68f2de6d 1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1162 cross_compiling=yes
1163 fi
1164fi
8106cdd5 1165
ad6254c5
AK
1166ac_tool_prefix=
1167test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168
1169test "$silent" = yes && exec 6>/dev/null
795ca3e5 1170
795ca3e5 1171
7a197a62
AK
1172ac_pwd=`pwd` && test -n "$ac_pwd" &&
1173ac_ls_di=`ls -di .` &&
1174ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
68f2de6d 1175 { echo "$as_me: error: Working directory cannot be determined" >&2
7a197a62
AK
1176 { (exit 1); exit 1; }; }
1177test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
68f2de6d 1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1179 { (exit 1); exit 1; }; }
1180
1181
795ca3e5
AK
1182# Find the source files, if location was not specified.
1183if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
7a197a62 1185 # Try the directory containing this script, then the parent directory.
68f2de6d
AK
1186 ac_confdir=`$as_dirname -- "$0" ||
1187$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191echo X"$0" |
7a197a62
AK
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\/\)[^/].*/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\/\)$/{
1201 s//\1/
1202 q
1203 }
1204 /^X\(\/\).*/{
1205 s//\1/
1206 q
1207 }
1208 s/.*/./; q'`
795ca3e5 1209 srcdir=$ac_confdir
7a197a62 1210 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1211 srcdir=..
1212 fi
1213else
1214 ac_srcdir_defaulted=no
1215fi
7a197a62
AK
1216if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
68f2de6d 1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1219 { (exit 1); exit 1; }; }
795ca3e5 1220fi
7a197a62
AK
1221ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222ac_abs_confdir=`(
68f2de6d 1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
ad6254c5 1224 { (exit 1); exit 1; }; }
7a197a62
AK
1225 pwd)`
1226# When building in place, set srcdir=.
1227if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 srcdir=.
1229fi
1230# Remove unnecessary trailing slashes from srcdir.
1231# Double slashes in file names in object file debugging info
1232# mess up M-x gdb in Emacs.
1233case $srcdir in
1234*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235esac
1236for ac_var in $ac_precious_vars; do
1237 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_${ac_var}_value=\$${ac_var}
1239 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241done
ad6254c5
AK
1242
1243#
1244# Report the --help message.
1245#
1246if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1249 cat <<_ACEOF
1250\`configure' configures this package to adapt to many kinds of systems.
1251
1252Usage: $0 [OPTION]... [VAR=VALUE]...
1253
1254To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255VAR=VALUE. See below for descriptions of some of the useful variables.
1256
1257Defaults for the options are specified in brackets.
1258
1259Configuration:
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269
ad6254c5
AK
1270Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
68f2de6d 1272 [$ac_default_prefix]
ad6254c5 1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
68f2de6d 1274 [PREFIX]
ad6254c5
AK
1275
1276By default, \`make install' will install all the files in
1277\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279for instance \`--prefix=\$HOME'.
1280
1281For better control, use the options below.
1282
1283Fine tuning of the installation directories:
68f2de6d
AK
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1303_ACEOF
1304
1305 cat <<\_ACEOF
1306
1307System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 --target=TARGET configure for building compilers for TARGET [HOST]
1311_ACEOF
1312fi
1313
1314if test -n "$ac_init_help"; then
1315
1316 cat <<\_ACEOF
1317
1318Optional Features:
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ad6254c5
AK
1321 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
1322 device-mapper is missing from the kernel
1b523347 1323 --disable-readline Disable readline support
3d978351 1324 --disable-realtime Disable realtime clock support
ad6254c5 1325 --enable-debug Enable debugging
5556819a 1326 --enable-profiling Gather gcov profiling data
ad6254c5
AK
1327 --disable-devmapper Disable device-mapper interaction
1328 --disable-o_direct Disable O_DIRECT
1329 --enable-cmdlib Build shared command library
1330 --enable-fsadm Enable fsadm
15d91f5a 1331 --enable-dmeventd Enable the device-mapper event daemon
d0191583
JM
1332 --enable-static_link Use this to link the tools to their libraries
1333 statically. Default is dynamic linking
1334 --disable-selinux Disable selinux support
ad6254c5
AK
1335 --enable-nls Enable Native Language Support
1336
1337Optional Packages:
1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d0191583
JM
1340 --with-user=USER Set the owner of installed files [USER=root]
1341 --with-group=GROUP Set the group owner of installed files [GROUP=root]
ad6254c5
AK
1342 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1343 TYPE=internal
1344 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1345 TYPE=internal
1346 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
1347 TYPE=internal
1348 --with-snapshots=TYPE Snapshot support: internal/shared/none
1349 TYPE=internal
1350 --with-mirrors=TYPE Mirror support: internal/shared/none
1351 TYPE=internal
5c7fc7c4 1352 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 1353 TYPE=none
d0191583
JM
1354 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1355 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]
ad6254c5
AK
1356 --with-confdir=DIR Configuration files in DIR /etc
1357 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
33f732c5 1358 --with-dmdir=DIR Build against device-mapper source tree in DIR
68f2de6d
AK
1359 --with-usrlibdir=DIR
1360 --with-usrsbindir=DIR
ad6254c5
AK
1361
1362Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
25fbec5b 1367 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
ad6254c5
AK
1370 CPP C preprocessor
1371
1372Use these variables to override the choices made by `configure' or to help
1373it to find libraries and programs with nonstandard names/locations.
1374
1375_ACEOF
7a197a62 1376ac_status=$?
ad6254c5
AK
1377fi
1378
1379if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
ad6254c5 1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
68f2de6d 1382 test -d "$ac_dir" || continue
ad6254c5
AK
1383 ac_builddir=.
1384
7a197a62
AK
1385case "$ac_dir" in
1386.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387*)
68f2de6d 1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 1389 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395esac
1396ac_abs_top_builddir=$ac_pwd
1397ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398# for backward compatibility:
1399ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1400
1401case $srcdir in
7a197a62 1402 .) # We are building in place.
ad6254c5 1403 ac_srcdir=.
7a197a62
AK
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1407 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1414esac
7a197a62
AK
1415ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1425 else
68f2de6d 1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1429 done
1430fi
1431
7a197a62 1432test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1433if $ac_init_version; then
1434 cat <<\_ACEOF
7a197a62 1435configure
68f2de6d 1436generated by GNU Autoconf 2.61
ad6254c5 1437
7a197a62 1438Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
68f2de6d 14392002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
ad6254c5
AK
1440This configure script is free software; the Free Software Foundation
1441gives unlimited permission to copy, distribute and modify it.
1442_ACEOF
7a197a62 1443 exit
ad6254c5 1444fi
7a197a62 1445cat >config.log <<_ACEOF
ad6254c5
AK
1446This file contains any messages produced by compilers while
1447running configure, to aid debugging if configure makes a mistake.
1448
1449It was created by $as_me, which was
68f2de6d 1450generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
1451
1452 $ $0 $@
1453
1454_ACEOF
7a197a62 1455exec 5>>config.log
ad6254c5
AK
1456{
1457cat <<_ASUNAME
1458## --------- ##
1459## Platform. ##
1460## --------- ##
1461
1462hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1474/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1475/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479_ASUNAME
1480
1481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482for as_dir in $PATH
1483do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
68f2de6d 1486 echo "PATH: $as_dir"
ad6254c5 1487done
7a197a62 1488IFS=$as_save_IFS
ad6254c5
AK
1489
1490} >&5
1491
1492cat >&5 <<_ACEOF
1493
1494
1495## ----------- ##
1496## Core tests. ##
1497## ----------- ##
1498
1499_ACEOF
1500
1501
1502# Keep a trace of the command line.
1503# Strip out --no-create and --no-recursion so they do not pile up.
1504# Strip out --silent because we don't want to record it for future runs.
1505# Also quote any args containing shell meta-characters.
1506# Make two passes to allow for proper duplicate-argument suppression.
1507ac_configure_args=
1508ac_configure_args0=
1509ac_configure_args1=
ad6254c5
AK
1510ac_must_keep_next=false
1511for ac_pass in 1 2
1512do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
7a197a62 1520 *\'*)
68f2de6d 1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
8a2fc586 1528 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1529 else
8a2fc586
AK
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
ad6254c5 1541 fi
7a197a62 1542 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1543 ;;
1544 esac
1545 done
1546done
1547$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550# When interrupted or exit'd, cleanup temporary files, and complete
1551# config.log. We remove comments because anyway the quotes in there
1552# would cause problems or look ugly.
7a197a62
AK
1553# WARNING: Use '\'' to represent an apostrophe within the trap.
1554# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1555trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561## ---------------- ##
1562## Cache variables. ##
1563## ---------------- ##
1564_ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1567(
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
68f2de6d
AK
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
ad6254c5 1582 (set) 2>&1 |
7a197a62
AK
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
ad6254c5 1585 sed -n \
7a197a62
AK
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
ad6254c5 1589 *)
7a197a62 1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1591 ;;
7a197a62
AK
1592 esac |
1593 sort
1594)
ad6254c5
AK
1595 echo
1596
1597 cat <<\_ASBOX
1598## ----------------- ##
1599## Output variables. ##
1600## ----------------- ##
1601_ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
7a197a62
AK
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
68f2de6d 1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1608 esac
68f2de6d 1609 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
7a197a62
AK
1615## ------------------- ##
1616## File substitutions. ##
1617## ------------------- ##
ad6254c5
AK
1618_ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
7a197a62
AK
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
68f2de6d 1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1625 esac
68f2de6d 1626 echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633## ----------- ##
1634## confdefs.h. ##
1635## ----------- ##
1636_ASBOX
1637 echo
7a197a62 1638 cat confdefs.h
ad6254c5
AK
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
68f2de6d
AK
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
ad6254c5 1644 } >&5
7a197a62
AK
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1647 exit $exit_status
7a197a62 1648' 0
ad6254c5
AK
1649for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651done
1652ac_signal=0
1653
1654# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1655rm -f -r conftest* confdefs.h
ad6254c5
AK
1656
1657# Predefined preprocessor variables.
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_NAME "$PACKAGE_NAME"
1661_ACEOF
1662
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_VERSION "$PACKAGE_VERSION"
1671_ACEOF
8106cdd5 1672
ad6254c5
AK
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_STRING "$PACKAGE_STRING"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681_ACEOF
1682
1683
1684# Let the site file select an alternate cache file if it wants to.
68f2de6d 1685# Prefer explicitly selected file to automatically selected ones.
7a197a62 1686if test -n "$CONFIG_SITE"; then
68f2de6d 1687 set x "$CONFIG_SITE"
7a197a62 1688elif test "x$prefix" != xNONE; then
68f2de6d 1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
7a197a62 1690else
68f2de6d
AK
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
795ca3e5 1693fi
68f2de6d
AK
1694shift
1695for ac_site_file
7a197a62 1696do
795ca3e5 1697 if test -r "$ac_site_file"; then
68f2de6d
AK
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1700 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1701 . "$ac_site_file"
1702 fi
1703done
1704
1705if test -r "$cache_file"; then
ad6254c5
AK
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
68f2de6d
AK
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 1711 case $cache_file in
7a197a62
AK
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
ad6254c5
AK
1714 esac
1715 fi
795ca3e5 1716else
68f2de6d
AK
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
1719 >$cache_file
1720fi
1721
1722# Check that the precious variables saved in the cache have kept the same
1723# value.
1724ac_cache_corrupted=false
7a197a62 1725for ac_var in $ac_precious_vars; do
ad6254c5
AK
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
1730 case $ac_old_set,$ac_new_set in
1731 set,)
68f2de6d
AK
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
1734 ac_cache_corrupted=: ;;
1735 ,set)
68f2de6d
AK
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1737echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
1738 ac_cache_corrupted=: ;;
1739 ,);;
1740 *)
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
68f2de6d
AK
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1744 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1745echo "$as_me: former value: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1747echo "$as_me: current value: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
ad6254c5
AK
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
68f2de6d 1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1761 fi
1762done
1763if $ac_cache_corrupted; then
68f2de6d
AK
1764 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1765echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1767echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 1768 { (exit 1); exit 1; }; }
795ca3e5
AK
1769fi
1770
ad6254c5
AK
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
7a197a62
AK
1787ac_ext=c
1788ac_cpp='$CPP $CPPFLAGS'
1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 1792
795ca3e5
AK
1793
1794
7a197a62 1795ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
1796
1797
80992638 1798################################################################################
795ca3e5 1799ac_aux_dir=
7a197a62
AK
1800for ac_dir in autoconf "$srcdir"/autoconf; do
1801 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/install-sh -c"
1804 break
7a197a62 1805 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
1806 ac_aux_dir=$ac_dir
1807 ac_install_sh="$ac_aux_dir/install.sh -c"
1808 break
7a197a62 1809 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
1810 ac_aux_dir=$ac_dir
1811 ac_install_sh="$ac_aux_dir/shtool install -c"
1812 break
795ca3e5
AK
1813 fi
1814done
1815if test -z "$ac_aux_dir"; then
68f2de6d
AK
1816 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1817echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 1818 { (exit 1); exit 1; }; }
795ca3e5 1819fi
7a197a62
AK
1820
1821# These three variables are undocumented and unsupported,
1822# and are intended to be withdrawn in a future Autoconf release.
1823# They can cause serious problems if a builder's source tree is in a directory
1824# whose full name contains unusual characters.
1825ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1826ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1827ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1828
8ce0cbda
AK
1829
1830
ad6254c5 1831################################################################################
8ce0cbda 1832# Make sure we can run config.sub.
7a197a62 1833$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
68f2de6d
AK
1834 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1835echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
1836 { (exit 1); exit 1; }; }
1837
68f2de6d
AK
1838{ echo "$as_me:$LINENO: checking build system type" >&5
1839echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
ad6254c5 1840if test "${ac_cv_build+set}" = set; then
68f2de6d 1841 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1842else
7a197a62
AK
1843 ac_build_alias=$build_alias
1844test "x$ac_build_alias" = x &&
1845 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1846test "x$ac_build_alias" = x &&
68f2de6d
AK
1847 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1848echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 1849 { (exit 1); exit 1; }; }
7a197a62 1850ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
68f2de6d
AK
1851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1852echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
1853 { (exit 1); exit 1; }; }
1854
1855fi
68f2de6d
AK
1856{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1857echo "${ECHO_T}$ac_cv_build" >&6; }
7a197a62
AK
1858case $ac_cv_build in
1859*-*-*) ;;
68f2de6d
AK
1860*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1861echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
1862 { (exit 1); exit 1; }; };;
1863esac
ad6254c5 1864build=$ac_cv_build
7a197a62
AK
1865ac_save_IFS=$IFS; IFS='-'
1866set x $ac_cv_build
1867shift
1868build_cpu=$1
1869build_vendor=$2
1870shift; shift
1871# Remember, the first character of IFS is used to create $*,
1872# except with old shells:
1873build_os=$*
1874IFS=$ac_save_IFS
1875case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1876
1877
68f2de6d
AK
1878{ echo "$as_me:$LINENO: checking host system type" >&5
1879echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
ad6254c5 1880if test "${ac_cv_host+set}" = set; then
68f2de6d 1881 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1882else
7a197a62
AK
1883 if test "x$host_alias" = x; then
1884 ac_cv_host=$ac_cv_build
1885else
1886 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
68f2de6d
AK
1887 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1888echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 1889 { (exit 1); exit 1; }; }
7a197a62 1890fi
ad6254c5
AK
1891
1892fi
68f2de6d
AK
1893{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1894echo "${ECHO_T}$ac_cv_host" >&6; }
7a197a62
AK
1895case $ac_cv_host in
1896*-*-*) ;;
68f2de6d
AK
1897*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1898echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
1899 { (exit 1); exit 1; }; };;
1900esac
ad6254c5 1901host=$ac_cv_host
7a197a62
AK
1902ac_save_IFS=$IFS; IFS='-'
1903set x $ac_cv_host
1904shift
1905host_cpu=$1
1906host_vendor=$2
1907shift; shift
1908# Remember, the first character of IFS is used to create $*,
1909# except with old shells:
1910host_os=$*
1911IFS=$ac_save_IFS
1912case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
1913
1914
68f2de6d
AK
1915{ echo "$as_me:$LINENO: checking target system type" >&5
1916echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
ad6254c5 1917if test "${ac_cv_target+set}" = set; then
68f2de6d 1918 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 1919else
7a197a62
AK
1920 if test "x$target_alias" = x; then
1921 ac_cv_target=$ac_cv_host
1922else
1923 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
68f2de6d
AK
1924 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1925echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 1926 { (exit 1); exit 1; }; }
7a197a62 1927fi
8ce0cbda 1928
ad6254c5 1929fi
68f2de6d
AK
1930{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1931echo "${ECHO_T}$ac_cv_target" >&6; }
7a197a62
AK
1932case $ac_cv_target in
1933*-*-*) ;;
68f2de6d
AK
1934*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1935echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
1936 { (exit 1); exit 1; }; };;
1937esac
ad6254c5 1938target=$ac_cv_target
7a197a62
AK
1939ac_save_IFS=$IFS; IFS='-'
1940set x $ac_cv_target
1941shift
1942target_cpu=$1
1943target_vendor=$2
1944shift; shift
1945# Remember, the first character of IFS is used to create $*,
1946# except with old shells:
1947target_os=$*
1948IFS=$ac_save_IFS
1949case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 1950
8ce0cbda 1951
ad6254c5
AK
1952# The aliases save the names the user supplied, while $host etc.
1953# will get canonicalized.
1954test -n "$target_alias" &&
8ce0cbda
AK
1955 test "$program_prefix$program_suffix$program_transform_name" = \
1956 NONENONEs,x,x, &&
1957 program_prefix=${target_alias}-
1958
8ce0cbda
AK
1959case "$host_os" in
1960 linux*)
8ce0cbda
AK
1961 COPTIMISE_FLAG="-O2"
1962 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1963 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1964 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1965 LDDEPS="$LDDEPS .export.sym"
1966 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 1967 LIB_SUFFIX=so
8ce0cbda
AK
1968 DEVMAPPER=yes
1969 ODIRECT=yes
d0191583 1970 DM_IOCTLS=yes
8ce0cbda 1971 SELINUX=yes
8b1a3214 1972 REALTIME=yes
8ce0cbda 1973 CLUSTER=internal
d0191583
JM
1974 FSADM=no
1975 ;;
8ce0cbda
AK
1976 darwin*)
1977 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1978 COPTIMISE_FLAG="-O2"
1979 CLDFLAGS="$CLDFLAGS"
1980 CLDWHOLEARCHIVE="-all_load"
1981 CLDNOWHOLEARCHIVE=
d0191583 1982 LIB_SUFFIX=dylib
a653923f 1983 DEVMAPPER=yes
8ce0cbda 1984 ODIRECT=no
d0191583 1985 DM_IOCTLS=no
8ce0cbda 1986 SELINUX=no
8b1a3214 1987 REALTIME=no
8ce0cbda 1988 CLUSTER=none
d0191583
JM
1989 FSADM=no
1990 ;;
8ce0cbda
AK
1991esac
1992
80992638 1993################################################################################
5951ef33
AK
1994{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
1995echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1996if test "${ac_cv_path_SED+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2000 for ac_i in 1 2 3 4 5 6 7; do
2001 ac_script="$ac_script$as_nl$ac_script"
2002 done
2003 echo "$ac_script" | sed 99q >conftest.sed
2004 $as_unset ac_script || ac_script=
2005 # Extract the first word of "sed gsed" to use in msg output
2006if test -z "$SED"; then
2007set dummy sed gsed; ac_prog_name=$2
2008if test "${ac_cv_path_SED+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011 ac_path_SED_found=false
2012# Loop through the user's path and test for each of PROGNAME-LIST
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_prog in sed gsed; do
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2021 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2022 # Check for GNU ac_path_SED and select it if it is found.
2023 # Check for GNU $ac_path_SED
2024case `"$ac_path_SED" --version 2>&1` in
2025*GNU*)
2026 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2027*)
2028 ac_count=0
2029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2030 while :
2031 do
2032 cat "conftest.in" "conftest.in" >"conftest.tmp"
2033 mv "conftest.tmp" "conftest.in"
2034 cp "conftest.in" "conftest.nl"
2035 echo '' >> "conftest.nl"
2036 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2038 ac_count=`expr $ac_count + 1`
2039 if test $ac_count -gt ${ac_path_SED_max-0}; then
2040 # Best one so far, save it but keep looking for a better one
2041 ac_cv_path_SED="$ac_path_SED"
2042 ac_path_SED_max=$ac_count
2043 fi
2044 # 10*(2^10) chars as input seems more than enough
2045 test $ac_count -gt 10 && break
2046 done
2047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2048esac
2049
2050
2051 $ac_path_SED_found && break 3
2052 done
2053done
2054
2055done
2056IFS=$as_save_IFS
2057
2058
2059fi
2060
2061SED="$ac_cv_path_SED"
2062if test -z "$SED"; then
2063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
2064echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
2065 { (exit 1); exit 1; }; }
2066fi
2067
2068else
2069 ac_cv_path_SED=$SED
2070fi
2071
2072fi
2073{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2074echo "${ECHO_T}$ac_cv_path_SED" >&6; }
2075 SED="$ac_cv_path_SED"
2076 rm -f conftest.sed
2077
ad6254c5 2078for ac_prog in gawk mawk nawk awk
795ca3e5 2079do
ad6254c5 2080 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2081set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2084if test "${ac_cv_prog_AWK+set}" = set; then
68f2de6d 2085 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2086else
2087 if test -n "$AWK"; then
2088 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2089else
ad6254c5
AK
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093 IFS=$as_save_IFS
2094 test -z "$as_dir" && as_dir=.
2095 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2097 ac_cv_prog_AWK="$ac_prog"
68f2de6d 2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2099 break 2
2100 fi
2101done
2102done
7a197a62 2103IFS=$as_save_IFS
ad6254c5 2104
795ca3e5
AK
2105fi
2106fi
ad6254c5 2107AWK=$ac_cv_prog_AWK
795ca3e5 2108if test -n "$AWK"; then
68f2de6d
AK
2109 { echo "$as_me:$LINENO: result: $AWK" >&5
2110echo "${ECHO_T}$AWK" >&6; }
795ca3e5 2111else
68f2de6d
AK
2112 { echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2114fi
2115
7a197a62 2116
ad6254c5
AK
2117 test -n "$AWK" && break
2118done
2119
2120ac_ext=c
2121ac_cpp='$CPP $CPPFLAGS'
2122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2124ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2127set dummy ${ac_tool_prefix}gcc; ac_word=$2
68f2de6d
AK
2128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2130if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2131 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2132else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
68f2de6d 2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2145 break 2
2146 fi
2147done
8106cdd5 2148done
7a197a62 2149IFS=$as_save_IFS
8106cdd5 2150
ad6254c5
AK
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
68f2de6d
AK
2155 { echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6; }
ad6254c5 2157else
68f2de6d
AK
2158 { echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2160fi
2161
7a197a62 2162
ad6254c5
AK
2163fi
2164if test -z "$ac_cv_prog_CC"; then
2165 ac_ct_CC=$CC
2166 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2167set dummy gcc; ac_word=$2
68f2de6d
AK
2168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2170if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2171 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2172else
2173 if test -n "$ac_ct_CC"; then
2174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175else
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2183 ac_cv_prog_ac_ct_CC="gcc"
68f2de6d 2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2185 break 2
2186 fi
2187done
2188done
7a197a62 2189IFS=$as_save_IFS
ad6254c5
AK
2190
2191fi
2192fi
2193ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194if test -n "$ac_ct_CC"; then
68f2de6d
AK
2195 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2197else
68f2de6d
AK
2198 { echo "$as_me:$LINENO: result: no" >&5
2199echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2200fi
2201
7a197a62
AK
2202 if test "x$ac_ct_CC" = x; then
2203 CC=""
2204 else
2205 case $cross_compiling:$ac_tool_warned in
2206yes:)
68f2de6d 2207{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2208whose name does not start with the host triplet. If you think this
2209configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2210echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2211whose name does not start with the host triplet. If you think this
2212configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2213ac_tool_warned=yes ;;
2214esac
2215 CC=$ac_ct_CC
2216 fi
ad6254c5
AK
2217else
2218 CC="$ac_cv_prog_CC"
2219fi
2220
2221if test -z "$CC"; then
7a197a62
AK
2222 if test -n "$ac_tool_prefix"; then
2223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2224set dummy ${ac_tool_prefix}cc; ac_word=$2
68f2de6d
AK
2225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2227if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2228 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
2229else
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2232else
ad6254c5
AK
2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234for as_dir in $PATH
2235do
2236 IFS=$as_save_IFS
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2240 ac_cv_prog_CC="${ac_tool_prefix}cc"
68f2de6d 2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2242 break 2
2243 fi
2244done
2245done
7a197a62 2246IFS=$as_save_IFS
ad6254c5 2247
8106cdd5
AK
2248fi
2249fi
ad6254c5 2250CC=$ac_cv_prog_CC
8106cdd5 2251if test -n "$CC"; then
68f2de6d
AK
2252 { echo "$as_me:$LINENO: result: $CC" >&5
2253echo "${ECHO_T}$CC" >&6; }
ad6254c5 2254else
68f2de6d
AK
2255 { echo "$as_me:$LINENO: result: no" >&5
2256echo "${ECHO_T}no" >&6; }
ad6254c5
AK
2257fi
2258
8106cdd5 2259
7a197a62 2260 fi
ad6254c5 2261fi
795ca3e5
AK
2262if test -z "$CC"; then
2263 # Extract the first word of "cc", so it can be a program name with args.
2264set dummy cc; ac_word=$2
68f2de6d
AK
2265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2267if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2268 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2269else
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2272else
795ca3e5 2273 ac_prog_rejected=no
ad6254c5
AK
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2282 ac_prog_rejected=yes
2283 continue
2284 fi
2285 ac_cv_prog_CC="cc"
68f2de6d 2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2287 break 2
2288 fi
2289done
2290done
7a197a62 2291IFS=$as_save_IFS
ad6254c5 2292
795ca3e5
AK
2293if test $ac_prog_rejected = yes; then
2294 # We found a bogon in the path, so make sure we never use it.
2295 set dummy $ac_cv_prog_CC
2296 shift
ad6254c5 2297 if test $# != 0; then
795ca3e5
AK
2298 # We chose a different compiler from the bogus one.
2299 # However, it has the same basename, so the bogon will be chosen
2300 # first if we set CC to just the basename; use the full file name.
2301 shift
ad6254c5 2302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2303 fi
2304fi
2305fi
2306fi
ad6254c5 2307CC=$ac_cv_prog_CC
795ca3e5 2308if test -n "$CC"; then
68f2de6d
AK
2309 { echo "$as_me:$LINENO: result: $CC" >&5
2310echo "${ECHO_T}$CC" >&6; }
795ca3e5 2311else
68f2de6d
AK
2312 { echo "$as_me:$LINENO: result: no" >&5
2313echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2314fi
2315
7a197a62 2316
ad6254c5
AK
2317fi
2318if test -z "$CC"; then
2319 if test -n "$ac_tool_prefix"; then
7a197a62 2320 for ac_prog in cl.exe
ad6254c5
AK
2321 do
2322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
68f2de6d
AK
2324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2326if test "${ac_cv_prog_CC+set}" = set; then
68f2de6d 2327 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2328else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331else
ad6254c5
AK
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
68f2de6d 2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2341 break 2
2342 fi
2343done
2344done
7a197a62 2345IFS=$as_save_IFS
ad6254c5 2346
795ca3e5
AK
2347fi
2348fi
ad6254c5 2349CC=$ac_cv_prog_CC
795ca3e5 2350if test -n "$CC"; then
68f2de6d
AK
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352echo "${ECHO_T}$CC" >&6; }
795ca3e5 2353else
68f2de6d
AK
2354 { echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6; }
795ca3e5 2356fi
ad6254c5 2357
7a197a62 2358
ad6254c5
AK
2359 test -n "$CC" && break
2360 done
2361fi
2362if test -z "$CC"; then
2363 ac_ct_CC=$CC
7a197a62 2364 for ac_prog in cl.exe
ad6254c5
AK
2365do
2366 # Extract the first word of "$ac_prog", so it can be a program name with args.
2367set dummy $ac_prog; ac_word=$2
68f2de6d
AK
2368{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 2370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
68f2de6d 2371 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2372else
2373 if test -n "$ac_ct_CC"; then
2374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2383 ac_cv_prog_ac_ct_CC="$ac_prog"
68f2de6d 2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2385 break 2
795ca3e5 2386 fi
ad6254c5
AK
2387done
2388done
7a197a62 2389IFS=$as_save_IFS
ad6254c5
AK
2390
2391fi
2392fi
2393ac_ct_CC=$ac_cv_prog_ac_ct_CC
2394if test -n "$ac_ct_CC"; then
68f2de6d
AK
2395 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2396echo "${ECHO_T}$ac_ct_CC" >&6; }
ad6254c5 2397else
68f2de6d
AK
2398 { echo "$as_me:$LINENO: result: no" >&5
2399echo "${ECHO_T}no" >&6; }
795ca3e5
AK
2400fi
2401
7a197a62 2402
ad6254c5
AK
2403 test -n "$ac_ct_CC" && break
2404done
795ca3e5 2405
7a197a62
AK
2406 if test "x$ac_ct_CC" = x; then
2407 CC=""
2408 else
2409 case $cross_compiling:$ac_tool_warned in
2410yes:)
68f2de6d 2411{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2412whose name does not start with the host triplet. If you think this
2413configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 2414echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7a197a62
AK
2415whose name does not start with the host triplet. If you think this
2416configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417ac_tool_warned=yes ;;
2418esac
2419 CC=$ac_ct_CC
2420 fi
ad6254c5
AK
2421fi
2422
2423fi
2424
2425
68f2de6d 2426test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2427See \`config.log' for more details." >&5
68f2de6d 2428echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5
AK
2429See \`config.log' for more details." >&2;}
2430 { (exit 1); exit 1; }; }
2431
2432# Provide some information about the compiler.
68f2de6d
AK
2433echo "$as_me:$LINENO: checking for C compiler version" >&5
2434ac_compiler=`set X $ac_compile; echo $2`
7a197a62
AK
2435{ (ac_try="$ac_compiler --version >&5"
2436case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439esac
68f2de6d 2440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2441 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2442 ac_status=$?
68f2de6d 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2444 (exit $ac_status); }
7a197a62
AK
2445{ (ac_try="$ac_compiler -v >&5"
2446case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2449esac
68f2de6d 2450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2451 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2452 ac_status=$?
68f2de6d 2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2454 (exit $ac_status); }
7a197a62
AK
2455{ (ac_try="$ac_compiler -V >&5"
2456case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459esac
68f2de6d 2460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2461 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2462 ac_status=$?
68f2de6d 2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2464 (exit $ac_status); }
2465
2466cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2467/* confdefs.h. */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
2471/* end confdefs.h. */
2472
2473int
2474main ()
2475{
2476
2477 ;
2478 return 0;
2479}
2480_ACEOF
2481ac_clean_files_save=$ac_clean_files
68f2de6d 2482ac_clean_files="$ac_clean_files a.out a.exe b.out"
ad6254c5
AK
2483# Try to create an executable without -o first, disregard a.out.
2484# It will help us diagnose broken compilers, and finding out an intuition
2485# of exeext.
68f2de6d
AK
2486{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2487echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2488ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2489#
2490# List of possible output files, starting from the most likely.
2491# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2492# only as a last resort. b.out is created by i960 compilers.
2493ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2494#
2495# The IRIX 6 linker writes into existing files which may not be
2496# executable, retaining their permissions. Remove them first so a
2497# subsequent execution test works.
7a197a62
AK
2498ac_rmfiles=
2499for ac_file in $ac_files
2500do
2501 case $ac_file in
68f2de6d 2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
7a197a62
AK
2503 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2504 esac
2505done
2506rm -f $ac_rmfiles
2507
2508if { (ac_try="$ac_link_default"
2509case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512esac
68f2de6d 2513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2514 (eval "$ac_link_default") 2>&5
ad6254c5 2515 ac_status=$?
68f2de6d 2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2517 (exit $ac_status); }; then
7a197a62
AK
2518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2519# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2520# in a Makefile. We should not override ac_cv_exeext if it was cached,
2521# so that the user can short-circuit this test for compilers unknown to
2522# Autoconf.
25fbec5b 2523for ac_file in $ac_files ''
ad6254c5
AK
2524do
2525 test -f "$ac_file" || continue
2526 case $ac_file in
68f2de6d 2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
8a2fc586 2528 ;;
ad6254c5 2529 [ab].out )
8a2fc586
AK
2530 # We found the default executable, but exeext='' is most
2531 # certainly right.
2532 break;;
ad6254c5 2533 *.* )
7a197a62
AK
2534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2535 then :; else
2536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537 fi
2538 # We set ac_cv_exeext here because the later test for it is not
2539 # safe: cross compilers may not add the suffix if given an `-o'
2540 # argument, so we may need to know it at that point already.
2541 # Even if this section looks crufty: it has the advantage of
2542 # actually working.
8a2fc586 2543 break;;
ad6254c5 2544 * )
8a2fc586 2545 break;;
ad6254c5
AK
2546 esac
2547done
7a197a62
AK
2548test "$ac_cv_exeext" = no && ac_cv_exeext=
2549
ad6254c5 2550else
25fbec5b
AK
2551 ac_file=''
2552fi
2553
68f2de6d
AK
2554{ echo "$as_me:$LINENO: result: $ac_file" >&5
2555echo "${ECHO_T}$ac_file" >&6; }
25fbec5b 2556if test -z "$ac_file"; then
68f2de6d 2557 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
68f2de6d 2560{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2561See \`config.log' for more details." >&5
68f2de6d 2562echo "$as_me: error: C compiler cannot create executables
ad6254c5
AK
2563See \`config.log' for more details." >&2;}
2564 { (exit 77); exit 77; }; }
2565fi
2566
2567ac_exeext=$ac_cv_exeext
ad6254c5 2568
7a197a62 2569# Check that the compiler produces executables we can run. If not, either
ad6254c5 2570# the compiler is broken, or we cross compile.
68f2de6d
AK
2571{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2572echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
ad6254c5
AK
2573# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2574# If not cross compiling, check that we can run a simple program.
2575if test "$cross_compiling" != yes; then
2576 if { ac_try='./$ac_file'
7a197a62
AK
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
68f2de6d 2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2582 (eval "$ac_try") 2>&5
ad6254c5 2583 ac_status=$?
68f2de6d 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2585 (exit $ac_status); }; }; then
2586 cross_compiling=no
795ca3e5 2587 else
ad6254c5
AK
2588 if test "$cross_compiling" = maybe; then
2589 cross_compiling=yes
2590 else
68f2de6d 2591 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2592If you meant to cross compile, use \`--host'.
2593See \`config.log' for more details." >&5
68f2de6d 2594echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2595If you meant to cross compile, use \`--host'.
2596See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2598 fi
795ca3e5 2599 fi
80992638 2600fi
68f2de6d
AK
2601{ echo "$as_me:$LINENO: result: yes" >&5
2602echo "${ECHO_T}yes" >&6; }
ad6254c5 2603
68f2de6d 2604rm -f a.out a.exe conftest$ac_cv_exeext b.out
ad6254c5 2605ac_clean_files=$ac_clean_files_save
7a197a62 2606# Check that the compiler produces executables we can run. If not, either
ad6254c5 2607# the compiler is broken, or we cross compile.
68f2de6d
AK
2608{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2610{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611echo "${ECHO_T}$cross_compiling" >&6; }
7a197a62 2612
68f2de6d
AK
2613{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
7a197a62
AK
2615if { (ac_try="$ac_link"
2616case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619esac
68f2de6d 2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2621 (eval "$ac_link") 2>&5
ad6254c5 2622 ac_status=$?
68f2de6d 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2624 (exit $ac_status); }; then
2625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2626# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2627# work properly (i.e., refer to `conftest.exe'), while it won't with
2628# `rm'.
2629for ac_file in conftest.exe conftest conftest.*; do
2630 test -f "$ac_file" || continue
2631 case $ac_file in
68f2de6d 2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
ad6254c5 2633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2634 break;;
ad6254c5
AK
2635 * ) break;;
2636 esac
2637done
80992638 2638else
68f2de6d 2639 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2640See \`config.log' for more details." >&5
68f2de6d 2641echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5
AK
2642See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2644fi
2645
2646rm -f conftest$ac_cv_exeext
68f2de6d
AK
2647{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648echo "${ECHO_T}$ac_cv_exeext" >&6; }
ad6254c5
AK
2649
2650rm -f conftest.$ac_ext
2651EXEEXT=$ac_cv_exeext
2652ac_exeext=$EXEEXT
68f2de6d
AK
2653{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2654echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
ad6254c5 2655if test "${ac_cv_objext+set}" = set; then
68f2de6d 2656 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2657else
ad6254c5 2658 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2659/* confdefs.h. */
2660_ACEOF
2661cat confdefs.h >>conftest.$ac_ext
2662cat >>conftest.$ac_ext <<_ACEOF
2663/* end confdefs.h. */
2664
2665int
2666main ()
2667{
2668
2669 ;
2670 return 0;
2671}
2672_ACEOF
2673rm -f conftest.o conftest.obj
7a197a62
AK
2674if { (ac_try="$ac_compile"
2675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
68f2de6d 2679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2680 (eval "$ac_compile") 2>&5
ad6254c5 2681 ac_status=$?
68f2de6d 2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2683 (exit $ac_status); }; then
7a197a62
AK
2684 for ac_file in conftest.o conftest.obj conftest.*; do
2685 test -f "$ac_file" || continue;
ad6254c5 2686 case $ac_file in
68f2de6d 2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
ad6254c5
AK
2688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2689 break;;
2690 esac
2691done
2692else
68f2de6d 2693 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
68f2de6d 2696{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2697See \`config.log' for more details." >&5
68f2de6d 2698echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5
AK
2699See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }
2701fi
2702
2703rm -f conftest.$ac_cv_objext conftest.$ac_ext
2704fi
68f2de6d
AK
2705{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2706echo "${ECHO_T}$ac_cv_objext" >&6; }
ad6254c5
AK
2707OBJEXT=$ac_cv_objext
2708ac_objext=$OBJEXT
68f2de6d
AK
2709{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2710echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
ad6254c5 2711if test "${ac_cv_c_compiler_gnu+set}" = set; then
68f2de6d 2712 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
2713else
2714 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724#ifndef __GNUC__
2725 choke me
2726#endif
80992638 2727
ad6254c5
AK
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732rm -f conftest.$ac_objext
7a197a62
AK
2733if { (ac_try="$ac_compile"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
68f2de6d 2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2739 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2740 ac_status=$?
8a2fc586
AK
2741 grep -v '^ *+' conftest.er1 >conftest.err
2742 rm -f conftest.er1
2743 cat conftest.err >&5
68f2de6d 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
ad6254c5 2749 ac_compiler_gnu=yes
80992638 2750else
68f2de6d 2751 echo "$as_me: failed program was:" >&5
ad6254c5
AK
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
7a197a62 2754 ac_compiler_gnu=no
8106cdd5 2755fi
7a197a62
AK
2756
2757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2758ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2759
ad6254c5 2760fi
68f2de6d
AK
2761{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2762echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2763GCC=`test $ac_compiler_gnu = yes && echo yes`
ad6254c5
AK
2764ac_test_CFLAGS=${CFLAGS+set}
2765ac_save_CFLAGS=$CFLAGS
68f2de6d
AK
2766{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
ad6254c5 2768if test "${ac_cv_prog_cc_g+set}" = set; then
68f2de6d 2769 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2770else
7a197a62
AK
2771 ac_save_c_werror_flag=$ac_c_werror_flag
2772 ac_c_werror_flag=yes
2773 ac_cv_prog_cc_g=no
2774 CFLAGS="-g"
2775 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
2781
2782int
2783main ()
2784{
2785
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790rm -f conftest.$ac_objext
7a197a62
AK
2791if { (ac_try="$ac_compile"
2792case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795esac
68f2de6d 2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2797 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2798 ac_status=$?
8a2fc586
AK
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
68f2de6d 2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2803 (exit $ac_status); } && {
2804 test -z "$ac_c_werror_flag" ||
2805 test ! -s conftest.err
2806 } && test -s conftest.$ac_objext; then
7a197a62
AK
2807 ac_cv_prog_cc_g=yes
2808else
68f2de6d 2809 echo "$as_me: failed program was:" >&5
7a197a62
AK
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812 CFLAGS=""
2813 cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
2819
2820int
2821main ()
2822{
2823
2824 ;
2825 return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (ac_try="$ac_compile"
2830case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833esac
68f2de6d 2834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2835 (eval "$ac_compile") 2>conftest.er1
8a2fc586 2836 ac_status=$?
7a197a62
AK
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
68f2de6d 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
7a197a62
AK
2845 :
2846else
68f2de6d 2847 echo "$as_me: failed program was:" >&5
7a197a62
AK
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 ac_c_werror_flag=$ac_save_c_werror_flag
2851 CFLAGS="-g"
2852 cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858
2859int
2860main ()
2861{
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext
2868if { (ac_try="$ac_compile"
2869case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
68f2de6d 2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2874 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2875 ac_status=$?
7a197a62
AK
2876 grep -v '^ *+' conftest.er1 >conftest.err
2877 rm -f conftest.er1
2878 cat conftest.err >&5
68f2de6d 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2880 (exit $ac_status); } && {
2881 test -z "$ac_c_werror_flag" ||
2882 test ! -s conftest.err
2883 } && test -s conftest.$ac_objext; then
795ca3e5
AK
2884 ac_cv_prog_cc_g=yes
2885else
68f2de6d 2886 echo "$as_me: failed program was:" >&5
ad6254c5 2887sed 's/^/| /' conftest.$ac_ext >&5
80992638 2888
7a197a62
AK
2889
2890fi
2891
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893fi
2894
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 2896fi
7a197a62
AK
2897
2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 2900fi
68f2de6d
AK
2901{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
795ca3e5 2903if test "$ac_test_CFLAGS" = set; then
ad6254c5 2904 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2905elif test $ac_cv_prog_cc_g = yes; then
2906 if test "$GCC" = yes; then
2907 CFLAGS="-g -O2"
2908 else
2909 CFLAGS="-g"
2910 fi
2911else
2912 if test "$GCC" = yes; then
2913 CFLAGS="-O2"
2914 else
2915 CFLAGS=
2916 fi
2917fi
68f2de6d
AK
2918{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2919echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
7a197a62 2920if test "${ac_cv_prog_cc_c89+set}" = set; then
68f2de6d 2921 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 2922else
7a197a62 2923 ac_cv_prog_cc_c89=no
ad6254c5
AK
2924ac_save_CC=$CC
2925cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
2931#include <stdarg.h>
2932#include <stdio.h>
2933#include <sys/types.h>
2934#include <sys/stat.h>
2935/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2936struct buf { int x; };
2937FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938static char *e (p, i)
2939 char **p;
2940 int i;
2941{
2942 return p[i];
2943}
2944static char *f (char * (*g) (char **, int), char **p, ...)
2945{
2946 char *s;
2947 va_list v;
2948 va_start (v,p);
2949 s = g (p, va_arg (v,int));
2950 va_end (v);
2951 return s;
2952}
8a2fc586
AK
2953
2954/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2955 function prototypes and stuff, but not '\xHH' hex character constants.
2956 These don't provoke an error unfortunately, instead are silently treated
7a197a62 2957 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
2958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2959 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 2960 that's true only with -std. */
8a2fc586
AK
2961int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2962
7a197a62
AK
2963/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2964 inside strings and character constants. */
2965#define FOO(x) 'x'
2966int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2967
ad6254c5
AK
2968int test (int i, double x);
2969struct s1 {int (*f) (int a);};
2970struct s2 {int (*f) (double a);};
2971int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2972int argc;
2973char **argv;
2974int
2975main ()
2976{
2977return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2978 ;
2979 return 0;
2980}
2981_ACEOF
7a197a62
AK
2982for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
2984do
2985 CC="$ac_save_CC $ac_arg"
2986 rm -f conftest.$ac_objext
7a197a62
AK
2987if { (ac_try="$ac_compile"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
68f2de6d 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 2993 (eval "$ac_compile") 2>conftest.er1
ad6254c5 2994 ac_status=$?
8a2fc586
AK
2995 grep -v '^ *+' conftest.er1 >conftest.err
2996 rm -f conftest.er1
2997 cat conftest.err >&5
68f2de6d 2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
7a197a62 3003 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3004else
68f2de6d 3005 echo "$as_me: failed program was:" >&5
ad6254c5
AK
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
7a197a62 3008
ad6254c5 3009fi
7a197a62
AK
3010
3011rm -f core conftest.err conftest.$ac_objext
3012 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3013done
7a197a62 3014rm -f conftest.$ac_ext
ad6254c5
AK
3015CC=$ac_save_CC
3016
3017fi
7a197a62
AK
3018# AC_CACHE_VAL
3019case "x$ac_cv_prog_cc_c89" in
3020 x)
68f2de6d
AK
3021 { echo "$as_me:$LINENO: result: none needed" >&5
3022echo "${ECHO_T}none needed" >&6; } ;;
7a197a62 3023 xno)
68f2de6d
AK
3024 { echo "$as_me:$LINENO: result: unsupported" >&5
3025echo "${ECHO_T}unsupported" >&6; } ;;
ad6254c5 3026 *)
7a197a62 3027 CC="$CC $ac_cv_prog_cc_c89"
68f2de6d
AK
3028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3029echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3030esac
3031
ad6254c5 3032
ad6254c5
AK
3033ac_ext=c
3034ac_cpp='$CPP $CPPFLAGS'
3035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3038
d0191583
JM
3039
3040
3041ac_ext=c
3042ac_cpp='$CPP $CPPFLAGS'
3043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045ac_compiler_gnu=$ac_cv_c_compiler_gnu
68f2de6d
AK
3046{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3047echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d0191583
JM
3048# On Suns, sometimes $CPP names a directory.
3049if test -n "$CPP" && test -d "$CPP"; then
3050 CPP=
3051fi
3052if test -z "$CPP"; then
3053 if test "${ac_cv_prog_CPP+set}" = set; then
68f2de6d 3054 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3055else
d0191583
JM
3056 # Double quotes because CPP needs to be expanded
3057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3058 do
3059 ac_preproc_ok=false
3060for ac_c_preproc_warn_flag in '' yes
ad6254c5 3061do
d0191583
JM
3062 # Use a header file that comes with gcc, so configuring glibc
3063 # with a fresh cross-compiler works.
3064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3065 # <limits.h> exists even on freestanding compilers.
3066 # On the NeXT, cc -E runs the code through the compiler's parser,
3067 # not just through cpp. "Syntax error" is here to catch this case.
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074#ifdef __STDC__
3075# include <limits.h>
3076#else
3077# include <assert.h>
3078#endif
3079 Syntax error
3080_ACEOF
3081if { (ac_try="$ac_cpp conftest.$ac_ext"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
ad6254c5 3085esac
68f2de6d 3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
68f2de6d 3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3093 (exit $ac_status); } >/dev/null && {
3094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 }; then
3097 :
3098else
68f2de6d 3099 echo "$as_me: failed program was:" >&5
d0191583 3100sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3101
d0191583
JM
3102 # Broken: fails on valid input.
3103continue
795ca3e5 3104fi
795ca3e5 3105
d0191583 3106rm -f conftest.err conftest.$ac_ext
795ca3e5 3107
d0191583
JM
3108 # OK, works on sane cases. Now check whether nonexistent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116#include <ac_nonexistent.h>
3117_ACEOF
3118if { (ac_try="$ac_cpp conftest.$ac_ext"
3119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
68f2de6d 3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
68f2de6d 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3130 (exit $ac_status); } >/dev/null && {
3131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3132 test ! -s conftest.err
3133 }; then
3134 # Broken: success on invalid input.
3135continue
3136else
68f2de6d 3137 echo "$as_me: failed program was:" >&5
d0191583 3138sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3139
d0191583
JM
3140 # Passes both tests.
3141ac_preproc_ok=:
3142break
3143fi
795ca3e5 3144
d0191583
JM
3145rm -f conftest.err conftest.$ac_ext
3146
3147done
3148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149rm -f conftest.err conftest.$ac_ext
3150if $ac_preproc_ok; then
3151 break
795ca3e5
AK
3152fi
3153
d0191583
JM
3154 done
3155 ac_cv_prog_CPP=$CPP
3156
3157fi
3158 CPP=$ac_cv_prog_CPP
795ca3e5 3159else
d0191583
JM
3160 ac_cv_prog_CPP=$CPP
3161fi
68f2de6d
AK
3162{ echo "$as_me:$LINENO: result: $CPP" >&5
3163echo "${ECHO_T}$CPP" >&6; }
d0191583
JM
3164ac_preproc_ok=false
3165for ac_c_preproc_warn_flag in '' yes
3166do
3167 # Use a header file that comes with gcc, so configuring glibc
3168 # with a fresh cross-compiler works.
3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170 # <limits.h> exists even on freestanding compilers.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp. "Syntax error" is here to catch this case.
3173 cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h. */
ad6254c5 3175_ACEOF
d0191583
JM
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179#ifdef __STDC__
3180# include <limits.h>
3181#else
3182# include <assert.h>
3183#endif
3184 Syntax error
3185_ACEOF
3186if { (ac_try="$ac_cpp conftest.$ac_ext"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
7a197a62 3190esac
68f2de6d 3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
68f2de6d 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3198 (exit $ac_status); } >/dev/null && {
3199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 }; then
3202 :
795ca3e5 3203else
68f2de6d 3204 echo "$as_me: failed program was:" >&5
d0191583
JM
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 # Broken: fails on valid input.
3208continue
795ca3e5
AK
3209fi
3210
d0191583
JM
3211rm -f conftest.err conftest.$ac_ext
3212
3213 # OK, works on sane cases. Now check whether nonexistent headers
3214 # can be detected and how.
3215 cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h. */
3221#include <ac_nonexistent.h>
3222_ACEOF
3223if { (ac_try="$ac_cpp conftest.$ac_ext"
3224case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227esac
68f2de6d 3228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
68f2de6d 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3235 (exit $ac_status); } >/dev/null && {
3236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 }; then
3239 # Broken: success on invalid input.
3240continue
795ca3e5 3241else
68f2de6d 3242 echo "$as_me: failed program was:" >&5
d0191583 3243sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3244
d0191583
JM
3245 # Passes both tests.
3246ac_preproc_ok=:
3247break
795ca3e5 3248fi
d0191583
JM
3249
3250rm -f conftest.err conftest.$ac_ext
3251
3252done
3253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254rm -f conftest.err conftest.$ac_ext
3255if $ac_preproc_ok; then
3256 :
8106cdd5 3257else
68f2de6d 3258 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3259See \`config.log' for more details." >&5
68f2de6d 3260echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583
JM
3261See \`config.log' for more details." >&2;}
3262 { (exit 1); exit 1; }; }
8106cdd5
AK
3263fi
3264
d0191583
JM
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
7a197a62 3271
68f2de6d
AK
3272{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3273echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3274if test "${ac_cv_path_GREP+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277 # Extract the first word of "grep ggrep" to use in msg output
3278if test -z "$GREP"; then
3279set dummy grep ggrep; ac_prog_name=$2
5556819a 3280if test "${ac_cv_path_GREP+set}" = set; then
68f2de6d 3281 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3282else
d0191583 3283 ac_path_GREP_found=false
68f2de6d
AK
3284# Loop through the user's path and test for each of PROGNAME-LIST
3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3286for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3287do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
d0191583 3290 for ac_prog in grep ggrep; do
68f2de6d
AK
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3293 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3294 # Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3295 # Check for GNU $ac_path_GREP
3296case `"$ac_path_GREP" --version 2>&1` in
3297*GNU*)
3298 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3299*)
3300 ac_count=0
68f2de6d 3301 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3302 while :
3303 do
3304 cat "conftest.in" "conftest.in" >"conftest.tmp"
3305 mv "conftest.tmp" "conftest.in"
3306 cp "conftest.in" "conftest.nl"
68f2de6d 3307 echo 'GREP' >> "conftest.nl"
d0191583
JM
3308 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3310 ac_count=`expr $ac_count + 1`
3311 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3312 # Best one so far, save it but keep looking for a better one
3313 ac_cv_path_GREP="$ac_path_GREP"
3314 ac_path_GREP_max=$ac_count
3315 fi
3316 # 10*(2^10) chars as input seems more than enough
3317 test $ac_count -gt 10 && break
3318 done
3319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3320esac
3321
68f2de6d
AK
3322
3323 $ac_path_GREP_found && break 3
d0191583 3324 done
ad6254c5 3325done
68f2de6d
AK
3326
3327done
7a197a62 3328IFS=$as_save_IFS
68f2de6d
AK
3329
3330
3331fi
3332
3333GREP="$ac_cv_path_GREP"
3334if test -z "$GREP"; then
3335 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3336echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3337 { (exit 1); exit 1; }; }
68f2de6d
AK
3338fi
3339
80992638 3340else
d0191583 3341 ac_cv_path_GREP=$GREP
8106cdd5 3342fi
8106cdd5 3343
68f2de6d 3344
80992638 3345fi
68f2de6d
AK
3346{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3347echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
d0191583 3348 GREP="$ac_cv_path_GREP"
795ca3e5 3349
d0191583 3350
68f2de6d
AK
3351{ echo "$as_me:$LINENO: checking for egrep" >&5
3352echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
d0191583 3353if test "${ac_cv_path_EGREP+set}" = set; then
68f2de6d 3354 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586 3355else
d0191583
JM
3356 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3357 then ac_cv_path_EGREP="$GREP -E"
3358 else
68f2de6d
AK
3359 # Extract the first word of "egrep" to use in msg output
3360if test -z "$EGREP"; then
3361set dummy egrep; ac_prog_name=$2
3362if test "${ac_cv_path_EGREP+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
d0191583 3365 ac_path_EGREP_found=false
68f2de6d
AK
3366# Loop through the user's path and test for each of PROGNAME-LIST
3367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
d0191583 3372 for ac_prog in egrep; do
68f2de6d
AK
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3375 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3376 # Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3377 # Check for GNU $ac_path_EGREP
3378case `"$ac_path_EGREP" --version 2>&1` in
3379*GNU*)
3380 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3381*)
3382 ac_count=0
68f2de6d 3383 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
d0191583
JM
3384 while :
3385 do
3386 cat "conftest.in" "conftest.in" >"conftest.tmp"
3387 mv "conftest.tmp" "conftest.in"
3388 cp "conftest.in" "conftest.nl"
68f2de6d 3389 echo 'EGREP' >> "conftest.nl"
d0191583
JM
3390 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3392 ac_count=`expr $ac_count + 1`
3393 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3394 # Best one so far, save it but keep looking for a better one
3395 ac_cv_path_EGREP="$ac_path_EGREP"
3396 ac_path_EGREP_max=$ac_count
3397 fi
3398 # 10*(2^10) chars as input seems more than enough
3399 test $ac_count -gt 10 && break
3400 done
3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3402esac
8a2fc586 3403
68f2de6d
AK
3404
3405 $ac_path_EGREP_found && break 3
d0191583 3406 done
8a2fc586 3407done
68f2de6d
AK
3408
3409done
7a197a62 3410IFS=$as_save_IFS
68f2de6d
AK
3411
3412
3413fi
3414
3415EGREP="$ac_cv_path_EGREP"
3416if test -z "$EGREP"; then
3417 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3418echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3419 { (exit 1); exit 1; }; }
68f2de6d
AK
3420fi
3421
d0191583
JM
3422else
3423 ac_cv_path_EGREP=$EGREP
3424fi
ad6254c5 3425
68f2de6d 3426
d0191583
JM
3427 fi
3428fi
68f2de6d
AK
3429{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3430echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
d0191583 3431 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3432
3433
d0191583 3434if test $ac_cv_c_compiler_gnu = yes; then
68f2de6d
AK
3435 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3436echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
d0191583 3437if test "${ac_cv_prog_gcc_traditional+set}" = set; then
68f2de6d 3438 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3439else
d0191583 3440 ac_pattern="Autoconf.*'x'"
ad6254c5 3441 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
d0191583
JM
3447#include <sgtty.h>
3448Autoconf TIOCGETP
ad6254c5 3449_ACEOF
d0191583
JM
3450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3452 ac_cv_prog_gcc_traditional=yes
8106cdd5 3453else
d0191583 3454 ac_cv_prog_gcc_traditional=no
80992638 3455fi
d0191583 3456rm -f conftest*
ad6254c5 3457
8106cdd5 3458
d0191583
JM
3459 if test $ac_cv_prog_gcc_traditional = no; then
3460 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
d0191583
JM
3466#include <termio.h>
3467Autoconf TCGETA
ad6254c5 3468_ACEOF
d0191583
JM
3469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3470 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3471 ac_cv_prog_gcc_traditional=yes
7a197a62 3472fi
d0191583 3473rm -f conftest*
795ca3e5 3474
d0191583 3475 fi
795ca3e5 3476fi
68f2de6d
AK
3477{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3478echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3479 if test $ac_cv_prog_gcc_traditional = yes; then
3480 CC="$CC -traditional"
3481 fi
795ca3e5
AK
3482fi
3483
d0191583
JM
3484# Find a good install program. We prefer a C program (faster),
3485# so one script is as good as another. But avoid the broken or
3486# incompatible versions:
3487# SysV /etc/install, /usr/sbin/install
3488# SunOS /usr/etc/install
3489# IRIX /sbin/install
3490# AIX /bin/install
3491# AmigaOS /C/install, which installs bootblocks on floppy discs
3492# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3493# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3494# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3495# OS/2's system install, which has a completely different semantic
3496# ./install, which can be erroneously created by make from ./install.sh.
68f2de6d
AK
3497{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3498echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d0191583
JM
3499if test -z "$INSTALL"; then
3500if test "${ac_cv_path_install+set}" = set; then
68f2de6d 3501 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3502else
d0191583
JM
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 # Account for people who put trailing slashes in PATH elements.
3509case $as_dir/ in
3510 ./ | .// | /cC/* | \
3511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3512 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3513 /usr/ucb/* ) ;;
3514 *)
3515 # OSF1 and SCO ODT 3.0 have their own names for install.
3516 # Don't use installbsd from OSF since it installs stuff as root
3517 # by default.
3518 for ac_prog in ginstall scoinst install; do
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3521 if test $ac_prog = install &&
3522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3523 # AIX install. It has an incompatible calling convention.
3524 :
3525 elif test $ac_prog = install &&
3526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527 # program-specific install script used by HP pwplus--don't use.
3528 :
3529 else
68f2de6d
AK
3530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3531 break 3
d0191583
JM
3532 fi
3533 fi
3534 done
3535 done
3536 ;;
3537esac
3538done
3539IFS=$as_save_IFS
80992638 3540
d0191583
JM
3541
3542fi
3543 if test "${ac_cv_path_install+set}" = set; then
3544 INSTALL=$ac_cv_path_install
7a197a62 3545 else
d0191583
JM
3546 # As a last resort, use the slow shell script. Don't cache a
3547 # value for INSTALL within a source directory, because that will
3548 # break other packages using the cache if that directory is
3549 # removed, or if the value is a relative name.
3550 INSTALL=$ac_install_sh
7a197a62 3551 fi
d0191583 3552fi
68f2de6d
AK
3553{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3554echo "${ECHO_T}$INSTALL" >&6; }
ad6254c5 3555
d0191583
JM
3556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3557# It thinks the first close brace ends the variable substitution.
3558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3559
d0191583 3560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3561
d0191583
JM
3562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3563
68f2de6d
AK
3564{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3565echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d0191583
JM
3566LN_S=$as_ln_s
3567if test "$LN_S" = "ln -s"; then
68f2de6d
AK
3568 { echo "$as_me:$LINENO: result: yes" >&5
3569echo "${ECHO_T}yes" >&6; }
d0191583 3570else
68f2de6d
AK
3571 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3572echo "${ECHO_T}no, using $LN_S" >&6; }
795ca3e5 3573fi
d0191583 3574
68f2de6d
AK
3575{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3576echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3577set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3578if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3579 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3580else
d0191583
JM
3581 cat >conftest.make <<\_ACEOF
3582SHELL = /bin/sh
3583all:
3584 @echo '@@@%%%=$(MAKE)=@@@%%%'
3585_ACEOF
3586# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3587case `${MAKE-make} -f conftest.make 2>/dev/null` in
3588 *@@@%%%=?*=@@@%%%*)
3589 eval ac_cv_prog_make_${ac_make}_set=yes;;
3590 *)
3591 eval ac_cv_prog_make_${ac_make}_set=no;;
3592esac
3593rm -f conftest.make
ad6254c5 3594fi
d0191583 3595if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
68f2de6d
AK
3596 { echo "$as_me:$LINENO: result: yes" >&5
3597echo "${ECHO_T}yes" >&6; }
d0191583
JM
3598 SET_MAKE=
3599else
68f2de6d
AK
3600 { echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6; }
d0191583 3602 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3603fi
8106cdd5 3604
68f2de6d
AK
3605{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3606echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
5556819a
AK
3607if test -z "$MKDIR_P"; then
3608 if test "${ac_cv_path_mkdir+set}" = set; then
68f2de6d 3609 echo $ECHO_N "(cached) $ECHO_C" >&6
5556819a
AK
3610else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3613do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in mkdir gmkdir; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3619 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3620 'mkdir (GNU coreutils) '* | \
3621 'mkdir (coreutils) '* | \
3622 'mkdir (fileutils) '4.1*)
3623 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3624 break 3;;
3625 esac
3626 done
3627 done
3628done
3629IFS=$as_save_IFS
3630
3631fi
3632
3633 if test "${ac_cv_path_mkdir+set}" = set; then
3634 MKDIR_P="$ac_cv_path_mkdir -p"
3635 else
3636 # As a last resort, use the slow shell script. Don't cache a
3637 # value for MKDIR_P within a source directory, because that will
3638 # break other packages using the cache if that directory is
3639 # removed, or if the value is a relative name.
3640 test -d ./--version && rmdir ./--version
3641 MKDIR_P="$ac_install_sh -d"
3642 fi
3643fi
68f2de6d
AK
3644{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3645echo "${ECHO_T}$MKDIR_P" >&6; }
5556819a 3646
d0191583
JM
3647if test -n "$ac_tool_prefix"; then
3648 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3649set dummy ${ac_tool_prefix}ranlib; ac_word=$2
68f2de6d
AK
3650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3652if test "${ac_cv_prog_RANLIB+set}" = set; then
68f2de6d 3653 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3654else
3655 if test -n "$RANLIB"; then
3656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
68f2de6d 3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3667 break 2
3668 fi
3669done
3670done
3671IFS=$as_save_IFS
8106cdd5 3672
795ca3e5 3673fi
d0191583
JM
3674fi
3675RANLIB=$ac_cv_prog_RANLIB
3676if test -n "$RANLIB"; then
68f2de6d
AK
3677 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3678echo "${ECHO_T}$RANLIB" >&6; }
d0191583 3679else
68f2de6d
AK
3680 { echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6; }
d0191583
JM
3682fi
3683
8106cdd5 3684
ad6254c5 3685fi
d0191583
JM
3686if test -z "$ac_cv_prog_RANLIB"; then
3687 ac_ct_RANLIB=$RANLIB
3688 # Extract the first word of "ranlib", so it can be a program name with args.
3689set dummy ranlib; ac_word=$2
68f2de6d
AK
3690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3692if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
68f2de6d 3693 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3694else
d0191583
JM
3695 if test -n "$ac_ct_RANLIB"; then
3696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3697else
3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699for as_dir in $PATH
8106cdd5 3700do
d0191583
JM
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_RANLIB="ranlib"
68f2de6d 3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3707 break 2
3708 fi
3709done
3710done
3711IFS=$as_save_IFS
3712
3713fi
3714fi
3715ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3716if test -n "$ac_ct_RANLIB"; then
68f2de6d
AK
3717 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3718echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
ad6254c5 3719else
68f2de6d
AK
3720 { echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6; }
d0191583 3722fi
ad6254c5 3723
d0191583
JM
3724 if test "x$ac_ct_RANLIB" = x; then
3725 RANLIB=":"
3726 else
3727 case $cross_compiling:$ac_tool_warned in
3728yes:)
68f2de6d 3729{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3730whose name does not start with the host triplet. If you think this
3731configuration is useful to you, please write to autoconf@gnu.org." >&5
68f2de6d 3732echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
d0191583
JM
3733whose name does not start with the host triplet. If you think this
3734configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3735ac_tool_warned=yes ;;
3736esac
3737 RANLIB=$ac_ct_RANLIB
3738 fi
3739else
3740 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 3741fi
7a197a62 3742
d0191583
JM
3743# Extract the first word of "cflow", so it can be a program name with args.
3744set dummy cflow; ac_word=$2
68f2de6d
AK
3745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3747if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
68f2de6d 3748 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3749else
3750 case $CFLOW_CMD in
3751 [\\/]* | ?:[\\/]*)
3752 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3753 ;;
3754 *)
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3764 break 2
3765 fi
3766done
3767done
3768IFS=$as_save_IFS
ad6254c5 3769
d0191583 3770 ;;
7a197a62 3771esac
d0191583
JM
3772fi
3773CFLOW_CMD=$ac_cv_path_CFLOW_CMD
3774if test -n "$CFLOW_CMD"; then
68f2de6d
AK
3775 { echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3776echo "${ECHO_T}$CFLOW_CMD" >&6; }
80992638 3777else
68f2de6d
AK
3778 { echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6; }
795ca3e5 3780fi
7a197a62 3781
ad6254c5 3782
d0191583
JM
3783# Extract the first word of "cscope", so it can be a program name with args.
3784set dummy cscope; ac_word=$2
68f2de6d
AK
3785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d0191583 3787if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
68f2de6d 3788 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
3789else
3790 case $CSCOPE_CMD in
3791 [\\/]* | ?:[\\/]*)
3792 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
3793 ;;
3794 *)
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3804 break 2
3805 fi
795ca3e5 3806done
d0191583
JM
3807done
3808IFS=$as_save_IFS
795ca3e5 3809
d0191583
JM
3810 ;;
3811esac
ad6254c5 3812fi
d0191583
JM
3813CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
3814if test -n "$CSCOPE_CMD"; then
68f2de6d
AK
3815 { echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3816echo "${ECHO_T}$CSCOPE_CMD" >&6; }
795ca3e5 3817else
68f2de6d
AK
3818 { echo "$as_me:$LINENO: result: no" >&5
3819echo "${ECHO_T}no" >&6; }
795ca3e5 3820fi
ad6254c5 3821
7a197a62 3822
ad6254c5 3823
d0191583
JM
3824################################################################################
3825
3826
3827
3828
3829
3830ac_header_dirent=no
3831for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
68f2de6d
AK
3832 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3833{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3834echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
d0191583 3835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 3836 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 3837else
ad6254c5 3838 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
d0191583
JM
3844#include <sys/types.h>
3845#include <$ac_hdr>
3846
3847int
3848main ()
3849{
3850if ((DIR *) 0)
3851return 0;
3852 ;
3853 return 0;
3854}
ad6254c5 3855_ACEOF
d0191583
JM
3856rm -f conftest.$ac_objext
3857if { (ac_try="$ac_compile"
7a197a62
AK
3858case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
68f2de6d 3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583 3863 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
68f2de6d 3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
25fbec5b 3871 test ! -s conftest.err
d0191583
JM
3872 } && test -s conftest.$ac_objext; then
3873 eval "$as_ac_Header=yes"
ad6254c5 3874else
68f2de6d 3875 echo "$as_me: failed program was:" >&5
ad6254c5 3876sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3877
d0191583 3878 eval "$as_ac_Header=no"
795ca3e5 3879fi
7a197a62 3880
d0191583 3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3882fi
68f2de6d
AK
3883ac_res=`eval echo '${'$as_ac_Header'}'`
3884 { echo "$as_me:$LINENO: result: $ac_res" >&5
3885echo "${ECHO_T}$ac_res" >&6; }
3886if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 3887 cat >>confdefs.h <<_ACEOF
68f2de6d 3888#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 3889_ACEOF
795ca3e5 3890
d0191583
JM
3891ac_header_dirent=$ac_hdr; break
3892fi
ad6254c5 3893
d0191583
JM
3894done
3895# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3896if test $ac_header_dirent = dirent.h; then
68f2de6d
AK
3897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3898echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3899if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3900 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 3901else
d0191583
JM
3902 ac_func_search_save_LIBS=$LIBS
3903cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
ad6254c5 3909
d0191583
JM
3910/* Override any GCC internal prototype to avoid an error.
3911 Use char because int might match the return type of a GCC
3912 builtin and then its argument prototype would still apply. */
3913#ifdef __cplusplus
3914extern "C"
3915#endif
3916char opendir ();
3917int
3918main ()
3919{
3920return opendir ();
3921 ;
3922 return 0;
3923}
3924_ACEOF
3925for ac_lib in '' dir; do
3926 if test -z "$ac_lib"; then
3927 ac_res="none required"
3928 else
3929 ac_res=-l$ac_lib
3930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3931 fi
3932 rm -f conftest.$ac_objext conftest$ac_exeext
3933if { (ac_try="$ac_link"
3934case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937esac
68f2de6d 3938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
3939 (eval "$ac_link") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
68f2de6d 3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
68f2de6d
AK
3948 } && test -s conftest$ac_exeext &&
3949 $as_test_x conftest$ac_exeext; then
d0191583
JM
3950 ac_cv_search_opendir=$ac_res
3951else
68f2de6d 3952 echo "$as_me: failed program was:" >&5
d0191583 3953sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3954
ad6254c5 3955
795ca3e5 3956fi
ad6254c5 3957
d0191583
JM
3958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3959 conftest$ac_exeext
3960 if test "${ac_cv_search_opendir+set}" = set; then
3961 break
7a197a62 3962fi
d0191583
JM
3963done
3964if test "${ac_cv_search_opendir+set}" = set; then
3965 :
7a197a62 3966else
d0191583 3967 ac_cv_search_opendir=no
7a197a62 3968fi
d0191583
JM
3969rm conftest.$ac_ext
3970LIBS=$ac_func_search_save_LIBS
7a197a62 3971fi
68f2de6d
AK
3972{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3973echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
3974ac_res=$ac_cv_search_opendir
3975if test "$ac_res" != no; then
3976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 3977
d0191583 3978fi
7a197a62 3979
7a197a62 3980else
68f2de6d
AK
3981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
d0191583 3983if test "${ac_cv_search_opendir+set}" = set; then
68f2de6d 3984 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62 3985else
d0191583
JM
3986 ac_func_search_save_LIBS=$LIBS
3987cat >conftest.$ac_ext <<_ACEOF
3988/* confdefs.h. */
3989_ACEOF
3990cat confdefs.h >>conftest.$ac_ext
3991cat >>conftest.$ac_ext <<_ACEOF
3992/* end confdefs.h. */
7a197a62 3993
d0191583
JM
3994/* Override any GCC internal prototype to avoid an error.
3995 Use char because int might match the return type of a GCC
3996 builtin and then its argument prototype would still apply. */
3997#ifdef __cplusplus
3998extern "C"
3999#endif
4000char opendir ();
4001int
4002main ()
4003{
4004return opendir ();
4005 ;
4006 return 0;
4007}
4008_ACEOF
4009for ac_lib in '' x; do
4010 if test -z "$ac_lib"; then
4011 ac_res="none required"
4012 else
4013 ac_res=-l$ac_lib
4014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4015 fi
4016 rm -f conftest.$ac_objext conftest$ac_exeext
4017if { (ac_try="$ac_link"
4018case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
68f2de6d 4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4023 (eval "$ac_link") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
68f2de6d 4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4029 (exit $ac_status); } && {
4030 test -z "$ac_c_werror_flag" ||
4031 test ! -s conftest.err
68f2de6d
AK
4032 } && test -s conftest$ac_exeext &&
4033 $as_test_x conftest$ac_exeext; then
d0191583
JM
4034 ac_cv_search_opendir=$ac_res
4035else
68f2de6d 4036 echo "$as_me: failed program was:" >&5
d0191583 4037sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4038
4039
4040fi
4041
d0191583
JM
4042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4043 conftest$ac_exeext
4044 if test "${ac_cv_search_opendir+set}" = set; then
4045 break
7a197a62 4046fi
d0191583
JM
4047done
4048if test "${ac_cv_search_opendir+set}" = set; then
4049 :
7a197a62 4050else
d0191583 4051 ac_cv_search_opendir=no
7a197a62 4052fi
d0191583
JM
4053rm conftest.$ac_ext
4054LIBS=$ac_func_search_save_LIBS
4055fi
68f2de6d
AK
4056{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4057echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
d0191583
JM
4058ac_res=$ac_cv_search_opendir
4059if test "$ac_res" != no; then
4060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4061
7a197a62 4062fi
7a197a62 4063
d0191583 4064fi
7a197a62 4065
68f2de6d
AK
4066{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4067echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7a197a62 4068if test "${ac_cv_header_stdc+set}" = set; then
68f2de6d 4069 echo $ECHO_N "(cached) $ECHO_C" >&6
7a197a62
AK
4070else
4071 cat >conftest.$ac_ext <<_ACEOF
4072/* confdefs.h. */
4073_ACEOF
4074cat confdefs.h >>conftest.$ac_ext
4075cat >>conftest.$ac_ext <<_ACEOF
4076/* end confdefs.h. */
4077#include <stdlib.h>
4078#include <stdarg.h>
4079#include <string.h>
4080#include <float.h>
4081
4082int
4083main ()
4084{
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (ac_try="$ac_compile"
4092case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
68f2de6d 4096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62
AK
4097 (eval "$ac_compile") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
68f2de6d 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4103 (exit $ac_status); } && {
4104 test -z "$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 } && test -s conftest.$ac_objext; then
7a197a62
AK
4107 ac_cv_header_stdc=yes
4108else
68f2de6d 4109 echo "$as_me: failed program was:" >&5
7a197a62
AK
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 ac_cv_header_stdc=no
4113fi
4114
4115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116
4117if test $ac_cv_header_stdc = yes; then
4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4119 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
4124/* end confdefs.h. */
4125#include <string.h>
8106cdd5 4126
ad6254c5
AK
4127_ACEOF
4128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 $EGREP "memchr" >/dev/null 2>&1; then
4130 :
4131else
4132 ac_cv_header_stdc=no
80992638 4133fi
ad6254c5 4134rm -f conftest*
795ca3e5
AK
4135
4136fi
4137
ad6254c5
AK
4138if test $ac_cv_header_stdc = yes; then
4139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
80992638 4146#include <stdlib.h>
ad6254c5
AK
4147
4148_ACEOF
80992638 4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4150 $EGREP "free" >/dev/null 2>&1; then
4151 :
795ca3e5 4152else
ad6254c5 4153 ac_cv_header_stdc=no
795ca3e5 4154fi
80992638 4155rm -f conftest*
8106cdd5 4156
795ca3e5
AK
4157fi
4158
ad6254c5
AK
4159if test $ac_cv_header_stdc = yes; then
4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161 if test "$cross_compiling" = yes; then
4162 :
795ca3e5 4163else
ad6254c5 4164 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
4170#include <ctype.h>
7a197a62 4171#include <stdlib.h>
ad6254c5
AK
4172#if ((' ' & 0x0FF) == 0x020)
4173# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4174# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4175#else
4176# define ISLOWER(c) \
8a2fc586
AK
4177 (('a' <= (c) && (c) <= 'i') \
4178 || ('j' <= (c) && (c) <= 'r') \
4179 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4180# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4181#endif
ad6254c5
AK
4182
4183#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184int
4185main ()
4186{
4187 int i;
4188 for (i = 0; i < 256; i++)
4189 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4190 || toupper (i) != TOUPPER (i))
7a197a62
AK
4191 return 2;
4192 return 0;
ad6254c5
AK
4193}
4194_ACEOF
4195rm -f conftest$ac_exeext
7a197a62
AK
4196if { (ac_try="$ac_link"
4197case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
68f2de6d 4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4202 (eval "$ac_link") 2>&5
ad6254c5 4203 ac_status=$?
68f2de6d 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4206 { (case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
68f2de6d 4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4211 (eval "$ac_try") 2>&5
ad6254c5 4212 ac_status=$?
68f2de6d 4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4214 (exit $ac_status); }; }; then
4215 :
795ca3e5 4216else
68f2de6d
AK
4217 echo "$as_me: program exited with status $ac_status" >&5
4218echo "$as_me: failed program was:" >&5
ad6254c5 4219sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4220
ad6254c5
AK
4221( exit $ac_status )
4222ac_cv_header_stdc=no
80992638 4223fi
7a197a62 4224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4225fi
7a197a62
AK
4226
4227
ad6254c5
AK
4228fi
4229fi
68f2de6d
AK
4230{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4231echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4232if test $ac_cv_header_stdc = yes; then
4233
4234cat >>confdefs.h <<\_ACEOF
4235#define STDC_HEADERS 1
4236_ACEOF
795ca3e5
AK
4237
4238fi
4239
68f2de6d
AK
4240{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4241echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
ad6254c5 4242if test "${ac_cv_header_sys_wait_h+set}" = set; then
68f2de6d 4243 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4244else
ad6254c5 4245 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
80992638 4251#include <sys/types.h>
ad6254c5
AK
4252#include <sys/wait.h>
4253#ifndef WEXITSTATUS
7a197a62 4254# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
ad6254c5
AK
4255#endif
4256#ifndef WIFEXITED
4257# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4258#endif
4259
4260int
4261main ()
4262{
4263 int s;
4264 wait (&s);
4265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext
7a197a62
AK
4271if { (ac_try="$ac_compile"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
68f2de6d 4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4277 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4278 ac_status=$?
8a2fc586
AK
4279 grep -v '^ *+' conftest.er1 >conftest.err
4280 rm -f conftest.er1
4281 cat conftest.err >&5
68f2de6d 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4283 (exit $ac_status); } && {
4284 test -z "$ac_c_werror_flag" ||
4285 test ! -s conftest.err
4286 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4287 ac_cv_header_sys_wait_h=yes
4288else
68f2de6d 4289 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
7a197a62 4292 ac_cv_header_sys_wait_h=no
8106cdd5 4293fi
7a197a62
AK
4294
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4296fi
68f2de6d
AK
4297{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4298echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
ad6254c5 4299if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 4300
ad6254c5
AK
4301cat >>confdefs.h <<\_ACEOF
4302#define HAVE_SYS_WAIT_H 1
4303_ACEOF
795ca3e5
AK
4304
4305fi
4306
68f2de6d
AK
4307{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4308echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
ad6254c5 4309if test "${ac_cv_header_time+set}" = set; then
68f2de6d 4310 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4311else
ad6254c5 4312 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
795ca3e5
AK
4318#include <sys/types.h>
4319#include <sys/time.h>
4320#include <time.h>
ad6254c5
AK
4321
4322int
4323main ()
4324{
4325if ((struct tm *) 0)
4326return 0;
4327 ;
4328 return 0;
4329}
4330_ACEOF
4331rm -f conftest.$ac_objext
7a197a62
AK
4332if { (ac_try="$ac_compile"
4333case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
68f2de6d 4337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4338 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4339 ac_status=$?
8a2fc586
AK
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
68f2de6d 4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest.$ac_objext; then
795ca3e5
AK
4348 ac_cv_header_time=yes
4349else
68f2de6d 4350 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
7a197a62 4353 ac_cv_header_time=no
795ca3e5 4354fi
7a197a62
AK
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4357fi
68f2de6d
AK
4358{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4359echo "${ECHO_T}$ac_cv_header_time" >&6; }
80992638 4360if test $ac_cv_header_time = yes; then
ad6254c5
AK
4361
4362cat >>confdefs.h <<\_ACEOF
795ca3e5 4363#define TIME_WITH_SYS_TIME 1
ad6254c5 4364_ACEOF
b896caa1 4365
8106cdd5 4366fi
b896caa1 4367
b896caa1 4368
d0191583
JM
4369# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4380 inttypes.h stdint.h unistd.h
4381do
68f2de6d
AK
4382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4386 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4387else
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394$ac_includes_default
4395
4396#include <$ac_header>
4397_ACEOF
4398rm -f conftest.$ac_objext
4399if { (ac_try="$ac_compile"
4400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
68f2de6d 4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4405 (eval "$ac_compile") 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
68f2de6d 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4415 eval "$as_ac_Header=yes"
4416else
68f2de6d 4417 echo "$as_me: failed program was:" >&5
d0191583
JM
4418sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 eval "$as_ac_Header=no"
4421fi
4422
4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424fi
68f2de6d
AK
4425ac_res=`eval echo '${'$as_ac_Header'}'`
4426 { echo "$as_me:$LINENO: result: $ac_res" >&5
4427echo "${ECHO_T}$ac_res" >&6; }
4428if test `eval echo '${'$as_ac_Header'}'` = yes; then
d0191583 4429 cat >>confdefs.h <<_ACEOF
68f2de6d 4430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
d0191583
JM
4431_ACEOF
4432
4433fi
4434
4435done
4436
b896caa1 4437
b896caa1
AK
4438
4439
795ca3e5 4440
8106cdd5 4441
80992638 4442
795ca3e5 4443
a38df97f 4444
80992638 4445
d0191583
JM
4446
4447
4448
4449
4450
4451for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4452 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
ad6254c5 4453do
68f2de6d 4454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0191583 4455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4459 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583 4460fi
68f2de6d
AK
4461ac_res=`eval echo '${'$as_ac_Header'}'`
4462 { echo "$as_me:$LINENO: result: $ac_res" >&5
4463echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 4464else
d0191583 4465 # Is the header compilable?
68f2de6d
AK
4466{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d0191583 4468cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4469/* confdefs.h. */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h. */
4474$ac_includes_default
ad6254c5
AK
4475#include <$ac_header>
4476_ACEOF
4477rm -f conftest.$ac_objext
7a197a62
AK
4478if { (ac_try="$ac_compile"
4479case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
68f2de6d 4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4484 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4485 ac_status=$?
8a2fc586
AK
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
68f2de6d 4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
d0191583 4494 ac_header_compiler=yes
ad6254c5 4495else
68f2de6d 4496 echo "$as_me: failed program was:" >&5
ad6254c5 4497sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4498
d0191583 4499 ac_header_compiler=no
ad6254c5 4500fi
7a197a62
AK
4501
4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4504echo "${ECHO_T}$ac_header_compiler" >&6; }
d0191583
JM
4505
4506# Is the header present?
68f2de6d
AK
4507{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d0191583
JM
4509cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h. */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h. */
4515#include <$ac_header>
4516_ACEOF
4517if { (ac_try="$ac_cpp conftest.$ac_ext"
4518case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521esac
68f2de6d 4522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
4523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
68f2de6d 4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4529 (exit $ac_status); } >/dev/null && {
4530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 }; then
4533 ac_header_preproc=yes
4534else
68f2de6d 4535 echo "$as_me: failed program was:" >&5
d0191583
JM
4536sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ac_header_preproc=no
4539fi
4540
4541rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4543echo "${ECHO_T}$ac_header_preproc" >&6; }
d0191583
JM
4544
4545# So? What about this header?
4546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4547 yes:no: )
68f2de6d
AK
4548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
d0191583
JM
4552 ac_header_preproc=yes
4553 ;;
4554 no:yes:* )
68f2de6d
AK
4555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4567
4568 ;;
4569esac
68f2de6d
AK
4570{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
d0191583 4572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4573 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
4574else
4575 eval "$as_ac_Header=\$ac_header_preproc"
a38df97f 4576fi
68f2de6d
AK
4577ac_res=`eval echo '${'$as_ac_Header'}'`
4578 { echo "$as_me:$LINENO: result: $ac_res" >&5
4579echo "${ECHO_T}$ac_res" >&6; }
d0191583
JM
4580
4581fi
68f2de6d 4582if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4583 cat >>confdefs.h <<_ACEOF
68f2de6d 4584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4585_ACEOF
a38df97f 4586
d0191583 4587else
68f2de6d
AK
4588 { { echo "$as_me:$LINENO: error: bailing out" >&5
4589echo "$as_me: error: bailing out" >&2;}
d0191583 4590 { (exit 1); exit 1; }; }
80992638
AK
4591fi
4592
ad6254c5
AK
4593done
4594
7d1552c9 4595
d0191583
JM
4596case "$host_os" in
4597 linux*)
7d1552c9 4598
80992638 4599
5a52dca9 4600
d0191583 4601for ac_header in asm/byteorder.h linux/fs.h malloc.h
ad6254c5 4602do
68f2de6d 4603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4608 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4609fi
68f2de6d
AK
4610ac_res=`eval echo '${'$as_ac_Header'}'`
4611 { echo "$as_me:$LINENO: result: $ac_res" >&5
4612echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4613else
4614 # Is the header compilable?
68f2de6d
AK
4615{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4617cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4618/* confdefs.h. */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h. */
4623$ac_includes_default
4624#include <$ac_header>
4625_ACEOF
4626rm -f conftest.$ac_objext
7a197a62
AK
4627if { (ac_try="$ac_compile"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
68f2de6d 4632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4633 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4634 ac_status=$?
8a2fc586
AK
4635 grep -v '^ *+' conftest.er1 >conftest.err
4636 rm -f conftest.er1
4637 cat conftest.err >&5
68f2de6d 4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4639 (exit $ac_status); } && {
4640 test -z "$ac_c_werror_flag" ||
4641 test ! -s conftest.err
4642 } && test -s conftest.$ac_objext; then
fc54be10
AK
4643 ac_header_compiler=yes
4644else
68f2de6d 4645 echo "$as_me: failed program was:" >&5
fc54be10
AK
4646sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_header_compiler=no
4649fi
4650
4651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4653echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4654
4655# Is the header present?
68f2de6d
AK
4656{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4657echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4658cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4659/* confdefs.h. */
4660_ACEOF
4661cat confdefs.h >>conftest.$ac_ext
4662cat >>conftest.$ac_ext <<_ACEOF
4663/* end confdefs.h. */
4664#include <$ac_header>
4665_ACEOF
7a197a62
AK
4666if { (ac_try="$ac_cpp conftest.$ac_ext"
4667case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670esac
68f2de6d 4671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
68f2de6d 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4678 (exit $ac_status); } >/dev/null && {
4679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4681 }; then
ad6254c5
AK
4682 ac_header_preproc=yes
4683else
68f2de6d 4684 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 ac_header_preproc=no
4688fi
7a197a62 4689
ad6254c5 4690rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4692echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4693
4694# So? What about this header?
8a2fc586
AK
4695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4696 yes:no: )
68f2de6d
AK
4697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4701 ac_header_preproc=yes
ad6254c5 4702 ;;
8a2fc586 4703 no:yes:* )
68f2de6d
AK
4704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4716
ad6254c5
AK
4717 ;;
4718esac
68f2de6d
AK
4719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4722 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4723else
8a2fc586 4724 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4725fi
68f2de6d
AK
4726ac_res=`eval echo '${'$as_ac_Header'}'`
4727 { echo "$as_me:$LINENO: result: $ac_res" >&5
4728echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4729
4730fi
68f2de6d 4731if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4732 cat >>confdefs.h <<_ACEOF
68f2de6d 4733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4734_ACEOF
b896caa1 4735
d8ac0fbc 4736else
68f2de6d
AK
4737 { { echo "$as_me:$LINENO: error: bailing out" >&5
4738echo "$as_me: error: bailing out" >&2;}
ad6254c5 4739 { (exit 1); exit 1; }; }
80992638
AK
4740fi
4741
ad6254c5 4742done
d0191583
JM
4743 ;;
4744 darwin*)
d8ac0fbc 4745
d8ac0fbc 4746
d0191583 4747for ac_header in machine/endian.h sys/disk.h
ad6254c5 4748do
68f2de6d 4749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4754 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4755fi
68f2de6d
AK
4756ac_res=`eval echo '${'$as_ac_Header'}'`
4757 { echo "$as_me:$LINENO: result: $ac_res" >&5
4758echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4759else
4760 # Is the header compilable?
68f2de6d
AK
4761{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4763cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4764/* confdefs.h. */
4765_ACEOF
4766cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */
4769$ac_includes_default
4770#include <$ac_header>
4771_ACEOF
4772rm -f conftest.$ac_objext
7a197a62
AK
4773if { (ac_try="$ac_compile"
4774case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777esac
68f2de6d 4778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4779 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4780 ac_status=$?
8a2fc586
AK
4781 grep -v '^ *+' conftest.er1 >conftest.err
4782 rm -f conftest.er1
4783 cat conftest.err >&5
68f2de6d 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4785 (exit $ac_status); } && {
4786 test -z "$ac_c_werror_flag" ||
4787 test ! -s conftest.err
4788 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4789 ac_header_compiler=yes
4790else
68f2de6d 4791 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
7a197a62 4794 ac_header_compiler=no
ad6254c5 4795fi
7a197a62
AK
4796
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4798{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4799echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4800
4801# Is the header present?
68f2de6d
AK
4802{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4804cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4805/* confdefs.h. */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h. */
4810#include <$ac_header>
4811_ACEOF
7a197a62
AK
4812if { (ac_try="$ac_cpp conftest.$ac_ext"
4813case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816esac
68f2de6d 4817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
68f2de6d 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4824 (exit $ac_status); } >/dev/null && {
4825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 }; then
ad6254c5
AK
4828 ac_header_preproc=yes
4829else
68f2de6d 4830 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_header_preproc=no
4834fi
7a197a62 4835
ad6254c5 4836rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
4837{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4838echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
4839
4840# So? What about this header?
8a2fc586
AK
4841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4842 yes:no: )
68f2de6d
AK
4843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 4847 ac_header_preproc=yes
ad6254c5 4848 ;;
8a2fc586 4849 no:yes:* )
68f2de6d
AK
4850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4853echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4857echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 4862
ad6254c5
AK
4863 ;;
4864esac
68f2de6d
AK
4865{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4868 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4869else
8a2fc586 4870 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 4871fi
68f2de6d
AK
4872ac_res=`eval echo '${'$as_ac_Header'}'`
4873 { echo "$as_me:$LINENO: result: $ac_res" >&5
4874echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
4875
4876fi
68f2de6d 4877if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 4878 cat >>confdefs.h <<_ACEOF
68f2de6d 4879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4880_ACEOF
4922197a 4881
4922197a 4882else
68f2de6d
AK
4883 { { echo "$as_me:$LINENO: error: bailing out" >&5
4884echo "$as_me: error: bailing out" >&2;}
ad6254c5 4885 { (exit 1); exit 1; }; }
80992638
AK
4886fi
4887
ad6254c5 4888done
d0191583
JM
4889 ;;
4890esac
4922197a 4891
4922197a 4892
4922197a 4893
ad6254c5
AK
4894
4895
d0191583
JM
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4909 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4910 sys/types.h unistd.h
ad6254c5 4911do
68f2de6d 4912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 4913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
4914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 4916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 4917 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 4918fi
68f2de6d
AK
4919ac_res=`eval echo '${'$as_ac_Header'}'`
4920 { echo "$as_me:$LINENO: result: $ac_res" >&5
4921echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 4922else
ad6254c5 4923 # Is the header compilable?
68f2de6d
AK
4924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 4926cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932$ac_includes_default
4933#include <$ac_header>
4934_ACEOF
4935rm -f conftest.$ac_objext
7a197a62
AK
4936if { (ac_try="$ac_compile"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
68f2de6d 4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4942 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4943 ac_status=$?
8a2fc586
AK
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
68f2de6d 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
ad6254c5
AK
4952 ac_header_compiler=yes
4953else
68f2de6d 4954 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
7a197a62 4957 ac_header_compiler=no
ad6254c5 4958fi
7a197a62
AK
4959
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
4961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4962echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
4963
4964# Is the header present?
68f2de6d
AK
4965{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 4967cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973#include <$ac_header>
4974_ACEOF
7a197a62
AK
4975if { (ac_try="$ac_cpp conftest.$ac_ext"
4976case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979esac
68f2de6d 4980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 4981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
68f2de6d 4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4987 (exit $ac_status); } >/dev/null && {
4988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 }; then
ad6254c5
AK
4991 ac_header_preproc=yes
4992else
68f2de6d 4993 echo "$as_me: failed program was:" >&5
ad6254c5
AK
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 ac_header_preproc=no
4997fi
7a197a62 4998
ad6254c5 4999rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5001echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5002
5003# So? What about this header?
8a2fc586
AK
5004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5005 yes:no: )
68f2de6d
AK
5006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5010 ac_header_preproc=yes
ad6254c5 5011 ;;
8a2fc586 5012 no:yes:* )
68f2de6d
AK
5013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5025
ad6254c5
AK
5026 ;;
5027esac
68f2de6d
AK
5028{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5031 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5032else
8a2fc586 5033 eval "$as_ac_Header=\$ac_header_preproc"
80992638 5034fi
68f2de6d
AK
5035ac_res=`eval echo '${'$as_ac_Header'}'`
5036 { echo "$as_me:$LINENO: result: $ac_res" >&5
5037echo "${ECHO_T}$ac_res" >&6; }
80992638 5038
ad6254c5 5039fi
68f2de6d 5040if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5041 cat >>confdefs.h <<_ACEOF
68f2de6d 5042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 5043_ACEOF
795ca3e5 5044
795ca3e5 5045else
68f2de6d
AK
5046 { { echo "$as_me:$LINENO: error: bailing out" >&5
5047echo "$as_me: error: bailing out" >&2;}
ad6254c5 5048 { (exit 1); exit 1; }; }
80992638
AK
5049fi
5050
ad6254c5 5051done
ad6254c5 5052
795ca3e5 5053
d0191583
JM
5054
5055for ac_header in termios.h sys/statvfs.h
ad6254c5 5056do
68f2de6d 5057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 5058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
5059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5062 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5063fi
68f2de6d
AK
5064ac_res=`eval echo '${'$as_ac_Header'}'`
5065 { echo "$as_me:$LINENO: result: $ac_res" >&5
5066echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
5067else
5068 # Is the header compilable?
68f2de6d
AK
5069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 5071cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077$ac_includes_default
5078#include <$ac_header>
5079_ACEOF
5080rm -f conftest.$ac_objext
7a197a62
AK
5081if { (ac_try="$ac_compile"
5082case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085esac
68f2de6d 5086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5087 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5088 ac_status=$?
8a2fc586
AK
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
68f2de6d 5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5097 ac_header_compiler=yes
5098else
68f2de6d 5099 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
7a197a62 5102 ac_header_compiler=no
ad6254c5 5103fi
7a197a62
AK
5104
5105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
5106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
5108
5109# Is the header present?
68f2de6d
AK
5110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 5112cat >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#include <$ac_header>
5119_ACEOF
7a197a62
AK
5120if { (ac_try="$ac_cpp conftest.$ac_ext"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
68f2de6d 5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
68f2de6d 5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5132 (exit $ac_status); } >/dev/null && {
5133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 }; then
ad6254c5
AK
5136 ac_header_preproc=yes
5137else
68f2de6d 5138 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_header_preproc=no
5142fi
7a197a62 5143
ad6254c5 5144rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
5145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5146echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
5147
5148# So? What about this header?
8a2fc586
AK
5149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5150 yes:no: )
68f2de6d
AK
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5155 ac_header_preproc=yes
ad6254c5 5156 ;;
8a2fc586 5157 no:yes:* )
68f2de6d
AK
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5170
ad6254c5
AK
5171 ;;
5172esac
68f2de6d
AK
5173{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 5175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5176 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5177else
8a2fc586 5178 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 5179fi
68f2de6d
AK
5180ac_res=`eval echo '${'$as_ac_Header'}'`
5181 { echo "$as_me:$LINENO: result: $ac_res" >&5
5182echo "${ECHO_T}$ac_res" >&6; }
b896caa1 5183
ad6254c5 5184fi
68f2de6d 5185if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 5186 cat >>confdefs.h <<_ACEOF
68f2de6d 5187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
5188_ACEOF
5189
80992638
AK
5190fi
5191
ad6254c5 5192done
d0191583 5193
d3c8211f 5194
80992638 5195################################################################################
68f2de6d
AK
5196{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5197echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
ad6254c5 5198if test "${ac_cv_c_const+set}" = set; then
68f2de6d 5199 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 5200else
ad6254c5 5201 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207
5208int
5209main ()
5210{
5211/* FIXME: Include the comments suggested by Paul. */
5212#ifndef __cplusplus
5213 /* Ultrix mips cc rejects this. */
5214 typedef int charset[2];
25fbec5b 5215 const charset cs;
ad6254c5 5216 /* SunOS 4.1.1 cc rejects this. */
25fbec5b
AK
5217 char const *const *pcpcc;
5218 char **ppc;
ad6254c5
AK
5219 /* NEC SVR4.0.2 mips cc rejects this. */
5220 struct point {int x, y;};
5221 static struct point const zero = {0,0};
5222 /* AIX XL C 1.02.0.0 rejects this.
5223 It does not let you subtract one const X* pointer from another in
5224 an arm of an if-expression whose if-part is not a constant
5225 expression */
5226 const char *g = "string";
25fbec5b 5227 pcpcc = &g + (g ? g-g : 0);
ad6254c5 5228 /* HPUX 7.0 cc rejects these. */
25fbec5b
AK
5229 ++pcpcc;
5230 ppc = (char**) pcpcc;
5231 pcpcc = (char const *const *) ppc;
ad6254c5
AK
5232 { /* SCO 3.2v4 cc rejects this. */
5233 char *t;
5234 char const *s = 0 ? (char *) 0 : (char const *) 0;
5235
5236 *t++ = 0;
7a197a62 5237 if (s) return 0;
ad6254c5
AK
5238 }
5239 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5240 int x[] = {25, 17};
5241 const int *foo = &x[0];
5242 ++foo;
5243 }
5244 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5245 typedef const int *iptr;
5246 iptr p = 0;
5247 ++p;
5248 }
5249 { /* AIX XL C 1.02.0.0 rejects this saying
5250 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5251 struct s { int j; const int *ap[3]; };
5252 struct s *b; b->j = 5;
5253 }
5254 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5255 const int foo = 10;
7a197a62 5256 if (!foo) return 0;
ad6254c5 5257 }
25fbec5b 5258 return !cs[0] && !zero.x;
ad6254c5
AK
5259#endif
5260
5261 ;
5262 return 0;
5263}
5264_ACEOF
5265rm -f conftest.$ac_objext
7a197a62
AK
5266if { (ac_try="$ac_compile"
5267case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270esac
68f2de6d 5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5272 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5273 ac_status=$?
8a2fc586
AK
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
68f2de6d 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5282 ac_cv_c_const=yes
5283else
68f2de6d 5284 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
7a197a62 5287 ac_cv_c_const=no
ad6254c5 5288fi
7a197a62
AK
5289
5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5291fi
68f2de6d
AK
5292{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5293echo "${ECHO_T}$ac_cv_c_const" >&6; }
ad6254c5 5294if test $ac_cv_c_const = no; then
80992638 5295
ad6254c5 5296cat >>confdefs.h <<\_ACEOF
68f2de6d 5297#define const
ad6254c5 5298_ACEOF
80992638 5299
d3c8211f 5300fi
d3c8211f 5301
68f2de6d
AK
5302{ echo "$as_me:$LINENO: checking for inline" >&5
5303echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
ad6254c5 5304if test "${ac_cv_c_inline+set}" = set; then
68f2de6d 5305 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 5306else
ad6254c5
AK
5307 ac_cv_c_inline=no
5308for ac_kw in inline __inline__ __inline; do
5309 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5310/* confdefs.h. */
5311_ACEOF
5312cat confdefs.h >>conftest.$ac_ext
5313cat >>conftest.$ac_ext <<_ACEOF
5314/* end confdefs.h. */
5315#ifndef __cplusplus
5316typedef int foo_t;
5317static $ac_kw foo_t static_foo () {return 0; }
5318$ac_kw foo_t foo () {return 0; }
5319#endif
80992638 5320
ad6254c5
AK
5321_ACEOF
5322rm -f conftest.$ac_objext
7a197a62
AK
5323if { (ac_try="$ac_compile"
5324case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327esac
68f2de6d 5328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5329 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5330 ac_status=$?
8a2fc586
AK
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
68f2de6d 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
7a197a62 5339 ac_cv_c_inline=$ac_kw
ad6254c5 5340else
68f2de6d 5341 echo "$as_me: failed program was:" >&5
ad6254c5 5342sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 5343
7a197a62 5344
8ce0cbda 5345fi
7a197a62
AK
5346
5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348 test "$ac_cv_c_inline" != no && break
ad6254c5 5349done
8ce0cbda 5350
8ce0cbda 5351fi
68f2de6d
AK
5352{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5353echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8a2fc586
AK
5354
5355
ad6254c5
AK
5356case $ac_cv_c_inline in
5357 inline | yes) ;;
8a2fc586
AK
5358 *)
5359 case $ac_cv_c_inline in
5360 no) ac_val=;;
5361 *) ac_val=$ac_cv_c_inline;;
5362 esac
5363 cat >>confdefs.h <<_ACEOF
5364#ifndef __cplusplus
5365#define inline $ac_val
5366#endif
c1c065a3 5367_ACEOF
d0191583
JM
5368 ;;
5369esac
5370
68f2de6d
AK
5371{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5372echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
d0191583 5373if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5374 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5375else
5376 cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382$ac_includes_default
5383int
5384main ()
5385{
5386static struct stat ac_aggr;
5387if (ac_aggr.st_rdev)
5388return 0;
5389 ;
5390 return 0;
5391}
5392_ACEOF
5393rm -f conftest.$ac_objext
5394if { (ac_try="$ac_compile"
5395case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398esac
68f2de6d 5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5400 (eval "$ac_compile") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
68f2de6d 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_cv_member_struct_stat_st_rdev=yes
5411else
68f2de6d 5412 echo "$as_me: failed program was:" >&5
d0191583
JM
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 cat >conftest.$ac_ext <<_ACEOF
5416/* confdefs.h. */
5417_ACEOF
5418cat confdefs.h >>conftest.$ac_ext
5419cat >>conftest.$ac_ext <<_ACEOF
5420/* end confdefs.h. */
5421$ac_includes_default
5422int
5423main ()
5424{
5425static struct stat ac_aggr;
5426if (sizeof ac_aggr.st_rdev)
5427return 0;
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (ac_try="$ac_compile"
5434case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437esac
68f2de6d 5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
68f2de6d 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_cv_member_struct_stat_st_rdev=yes
5450else
68f2de6d 5451 echo "$as_me: failed program was:" >&5
d0191583
JM
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_cv_member_struct_stat_st_rdev=no
5455fi
5456
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458fi
5459
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461fi
68f2de6d
AK
5462{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5463echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
d0191583
JM
5464if test $ac_cv_member_struct_stat_st_rdev = yes; then
5465
5466cat >>confdefs.h <<_ACEOF
5467#define HAVE_STRUCT_STAT_ST_RDEV 1
5468_ACEOF
5469
5470
5471fi
8ce0cbda 5472
68f2de6d
AK
5473{ echo "$as_me:$LINENO: checking for off_t" >&5
5474echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
ad6254c5 5475if test "${ac_cv_type_off_t+set}" = set; then
68f2de6d 5476 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5477else
b145d876
ZK
5478 cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484$ac_includes_default
68f2de6d 5485typedef off_t ac__type_new_;
b145d876
ZK
5486int
5487main ()
5488{
68f2de6d
AK
5489if ((ac__type_new_ *) 0)
5490 return 0;
5491if (sizeof (ac__type_new_))
5492 return 0;
ad6254c5
AK
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext
7a197a62
AK
5498if { (ac_try="$ac_compile"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
68f2de6d 5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5504 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5505 ac_status=$?
8a2fc586
AK
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
68f2de6d 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5510 (exit $ac_status); } && {
5511 test -z "$ac_c_werror_flag" ||
5512 test ! -s conftest.err
5513 } && test -s conftest.$ac_objext; then
68f2de6d 5514 ac_cv_type_off_t=yes
b145d876 5515else
68f2de6d 5516 echo "$as_me: failed program was:" >&5
b145d876
ZK
5517sed 's/^/| /' conftest.$ac_ext >&5
5518
68f2de6d 5519 ac_cv_type_off_t=no
ad6254c5 5520fi
b145d876
ZK
5521
5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523fi
68f2de6d
AK
5524{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5525echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
ad6254c5
AK
5526if test $ac_cv_type_off_t = yes; then
5527 :
5528else
80992638 5529
ad6254c5 5530cat >>confdefs.h <<_ACEOF
7a197a62 5531#define off_t long int
ad6254c5 5532_ACEOF
199e490e 5533
b896caa1
AK
5534fi
5535
68f2de6d
AK
5536{ echo "$as_me:$LINENO: checking for pid_t" >&5
5537echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
ad6254c5 5538if test "${ac_cv_type_pid_t+set}" = set; then
68f2de6d 5539 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5540else
b145d876
ZK
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
5547$ac_includes_default
68f2de6d 5548typedef pid_t ac__type_new_;
b145d876
ZK
5549int
5550main ()
5551{
68f2de6d
AK
5552if ((ac__type_new_ *) 0)
5553 return 0;
5554if (sizeof (ac__type_new_))
5555 return 0;
ad6254c5
AK
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext
7a197a62
AK
5561if { (ac_try="$ac_compile"
5562case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565esac
68f2de6d 5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5567 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5568 ac_status=$?
8a2fc586
AK
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
68f2de6d 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
68f2de6d 5577 ac_cv_type_pid_t=yes
ad6254c5 5578else
68f2de6d 5579 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
68f2de6d 5582 ac_cv_type_pid_t=no
ad6254c5 5583fi
7a197a62
AK
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 5586fi
68f2de6d
AK
5587{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5588echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
ad6254c5
AK
5589if test $ac_cv_type_pid_t = yes; then
5590 :
5591else
80992638 5592
ad6254c5
AK
5593cat >>confdefs.h <<_ACEOF
5594#define pid_t int
5595_ACEOF
2dc95e1c 5596
2dc95e1c
AK
5597fi
5598
68f2de6d
AK
5599{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5600echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d0191583 5601if test "${ac_cv_type_signal+set}" = set; then
68f2de6d 5602 echo $ECHO_N "(cached) $ECHO_C" >&6
d0191583
JM
5603else
5604 cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h. */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h. */
5610#include <sys/types.h>
5611#include <signal.h>
5612
5613int
5614main ()
5615{
5616return *(signal (0, 0)) (0) == 1;
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
68f2de6d 5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
68f2de6d 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.$ac_objext; then
5638 ac_cv_type_signal=int
5639else
68f2de6d 5640 echo "$as_me: failed program was:" >&5
d0191583
JM
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_cv_type_signal=void
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647fi
68f2de6d
AK
5648{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5649echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d0191583
JM
5650
5651cat >>confdefs.h <<_ACEOF
5652#define RETSIGTYPE $ac_cv_type_signal
5653_ACEOF
5654
5655
68f2de6d
AK
5656{ echo "$as_me:$LINENO: checking for size_t" >&5
5657echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
ad6254c5 5658if test "${ac_cv_type_size_t+set}" = set; then
68f2de6d 5659 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 5660else
b145d876
ZK
5661 cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h. */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h. */
5667$ac_includes_default
68f2de6d 5668typedef size_t ac__type_new_;
b145d876
ZK
5669int
5670main ()
5671{
68f2de6d
AK
5672if ((ac__type_new_ *) 0)
5673 return 0;
5674if (sizeof (ac__type_new_))
5675 return 0;
ad6254c5
AK
5676 ;
5677 return 0;
5678}
5679_ACEOF
5680rm -f conftest.$ac_objext
7a197a62
AK
5681if { (ac_try="$ac_compile"
5682case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685esac
68f2de6d 5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5687 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5688 ac_status=$?
8a2fc586
AK
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
68f2de6d 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
68f2de6d 5697 ac_cv_type_size_t=yes
b145d876 5698else
68f2de6d 5699 echo "$as_me: failed program was:" >&5
b145d876
ZK
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
68f2de6d 5702 ac_cv_type_size_t=no
ad6254c5 5703fi
b145d876
ZK
5704
5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706fi
68f2de6d
AK
5707{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5708echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
ad6254c5
AK
5709if test $ac_cv_type_size_t = yes; then
5710 :
5711else
80992638 5712
ad6254c5 5713cat >>confdefs.h <<_ACEOF
7a197a62 5714#define size_t unsigned int
ad6254c5 5715_ACEOF
8106cdd5 5716
8106cdd5
AK
5717fi
5718
68f2de6d
AK
5719{ echo "$as_me:$LINENO: checking for mode_t" >&5
5720echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
ad6254c5 5721if test "${ac_cv_type_mode_t+set}" = set; then
68f2de6d 5722 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 5723else
b145d876
ZK
5724 cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h. */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h. */
5730$ac_includes_default
68f2de6d 5731typedef mode_t ac__type_new_;
b145d876
ZK
5732int
5733main ()
5734{
68f2de6d
AK
5735if ((ac__type_new_ *) 0)
5736 return 0;
5737if (sizeof (ac__type_new_))
5738 return 0;
ad6254c5
AK
5739 ;
5740 return 0;
5741}
5742_ACEOF
5743rm -f conftest.$ac_objext
7a197a62
AK
5744if { (ac_try="$ac_compile"
5745case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
68f2de6d 5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5750 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5751 ac_status=$?
8a2fc586
AK
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
68f2de6d 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5756 (exit $ac_status); } && {
5757 test -z "$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest.$ac_objext; then
68f2de6d 5760 ac_cv_type_mode_t=yes
fddafd51 5761else
68f2de6d 5762 echo "$as_me: failed program was:" >&5
fddafd51
ZK
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
68f2de6d 5765 ac_cv_type_mode_t=no
80992638 5766fi
7a197a62
AK
5767
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5769fi
68f2de6d
AK
5770{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5771echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
ad6254c5
AK
5772if test $ac_cv_type_mode_t = yes; then
5773 :
5774else
80992638 5775
ad6254c5
AK
5776cat >>confdefs.h <<_ACEOF
5777#define mode_t int
5778_ACEOF
5779
5780fi
5781
68f2de6d
AK
5782{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5783echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
ad6254c5 5784if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
68f2de6d 5785 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5786else
5787 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793$ac_includes_default
5794int
5795main ()
5796{
5797static struct stat ac_aggr;
5798if (ac_aggr.st_rdev)
5799return 0;
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext
7a197a62
AK
5805if { (ac_try="$ac_compile"
5806case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809esac
68f2de6d 5810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5811 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5812 ac_status=$?
8a2fc586
AK
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
68f2de6d 5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5817 (exit $ac_status); } && {
5818 test -z "$ac_c_werror_flag" ||
5819 test ! -s conftest.err
5820 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5821 ac_cv_member_struct_stat_st_rdev=yes
5822else
68f2de6d 5823 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
7a197a62 5826 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
5832$ac_includes_default
5833int
5834main ()
5835{
5836static struct stat ac_aggr;
5837if (sizeof ac_aggr.st_rdev)
5838return 0;
5839 ;
5840 return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext
7a197a62
AK
5844if { (ac_try="$ac_compile"
5845case "(($ac_try" in
5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5848esac
68f2de6d 5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5850 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5851 ac_status=$?
8a2fc586
AK
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
68f2de6d 5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5860 ac_cv_member_struct_stat_st_rdev=yes
5861else
68f2de6d 5862 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
7a197a62 5865 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 5866fi
7a197a62
AK
5867
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5869fi
7a197a62
AK
5870
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5872fi
68f2de6d
AK
5873{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5874echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
ad6254c5
AK
5875if test $ac_cv_member_struct_stat_st_rdev = yes; then
5876
5877cat >>confdefs.h <<_ACEOF
5878#define HAVE_STRUCT_STAT_ST_RDEV 1
5879_ACEOF
5880
5881
ad6254c5
AK
5882fi
5883
68f2de6d
AK
5884{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5885echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
ad6254c5 5886if test "${ac_cv_struct_tm+set}" = set; then
68f2de6d 5887 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
5888else
5889 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5890/* confdefs.h. */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h. */
5895#include <sys/types.h>
5896#include <time.h>
5897
5898int
5899main ()
5900{
25fbec5b
AK
5901struct tm tm;
5902 int *p = &tm.tm_sec;
68f2de6d 5903 return !p;
ad6254c5
AK
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext
7a197a62
AK
5909if { (ac_try="$ac_compile"
5910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
68f2de6d 5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 5915 (eval "$ac_compile") 2>conftest.er1
ad6254c5 5916 ac_status=$?
8a2fc586
AK
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
68f2de6d 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
ad6254c5
AK
5925 ac_cv_struct_tm=time.h
5926else
68f2de6d 5927 echo "$as_me: failed program was:" >&5
ad6254c5
AK
5928sed 's/^/| /' conftest.$ac_ext >&5
5929
7a197a62 5930 ac_cv_struct_tm=sys/time.h
ad6254c5 5931fi
7a197a62
AK
5932
5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5934fi
68f2de6d
AK
5935{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5936echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
ad6254c5
AK
5937if test $ac_cv_struct_tm = sys/time.h; then
5938
5939cat >>confdefs.h <<\_ACEOF
5940#define TM_IN_SYS_TIME 1
5941_ACEOF
5942
5943fi
809fae91 5944
795ca3e5 5945
80992638 5946################################################################################
ad6254c5
AK
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
d0191583
JM
5961
5962
5963
5964for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
5965 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
5966 uname
ad6254c5 5967do
68f2de6d
AK
5968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 5971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 5972 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5973else
ad6254c5 5974 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5975/* confdefs.h. */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h. */
8a2fc586
AK
5980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5982#define $ac_func innocuous_$ac_func
5983
ad6254c5
AK
5984/* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func (); below.
5986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 <limits.h> exists even on freestanding compilers. */
8a2fc586 5988
ad6254c5
AK
5989#ifdef __STDC__
5990# include <limits.h>
5991#else
5992# include <assert.h>
5993#endif
8a2fc586
AK
5994
5995#undef $ac_func
5996
7a197a62
AK
5997/* Override any GCC internal prototype to avoid an error.
5998 Use char because int might match the return type of a GCC
5999 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6000#ifdef __cplusplus
6001extern "C"
ad6254c5 6002#endif
ad6254c5
AK
6003char $ac_func ();
6004/* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
7a197a62 6007#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6008choke me
ad6254c5
AK
6009#endif
6010
6011int
6012main ()
6013{
7a197a62 6014return $ac_func ();
ad6254c5
AK
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6020if { (ac_try="$ac_link"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
68f2de6d 6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6026 (eval "$ac_link") 2>conftest.er1
ad6254c5 6027 ac_status=$?
8a2fc586
AK
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
68f2de6d 6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
68f2de6d
AK
6035 } && test -s conftest$ac_exeext &&
6036 $as_test_x conftest$ac_exeext; then
fc54be10
AK
6037 eval "$as_ac_var=yes"
6038else
68f2de6d 6039 echo "$as_me: failed program was:" >&5
fc54be10
AK
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 eval "$as_ac_var=no"
6043fi
6044
25fbec5b 6045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
6046 conftest$ac_exeext conftest.$ac_ext
6047fi
68f2de6d
AK
6048ac_res=`eval echo '${'$as_ac_var'}'`
6049 { echo "$as_me:$LINENO: result: $ac_res" >&5
6050echo "${ECHO_T}$ac_res" >&6; }
6051if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6052 cat >>confdefs.h <<_ACEOF
68f2de6d 6053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6054_ACEOF
6055
6056else
68f2de6d
AK
6057 { { echo "$as_me:$LINENO: error: bailing out" >&5
6058echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
6059 { (exit 1); exit 1; }; }
6060fi
6061done
795ca3e5 6062
ad6254c5
AK
6063# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6064# for constant arguments. Useless!
68f2de6d
AK
6065{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
6066echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
ad6254c5 6067if test "${ac_cv_working_alloca_h+set}" = set; then
68f2de6d 6068 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6069else
6070 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
6076#include <alloca.h>
6077int
6078main ()
6079{
6080char *p = (char *) alloca (2 * sizeof (int));
7a197a62 6081 if (p) return 0;
ad6254c5
AK
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6087if { (ac_try="$ac_link"
6088case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
68f2de6d 6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6093 (eval "$ac_link") 2>conftest.er1
ad6254c5 6094 ac_status=$?
8a2fc586
AK
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
68f2de6d 6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
68f2de6d
AK
6102 } && test -s conftest$ac_exeext &&
6103 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6104 ac_cv_working_alloca_h=yes
6105else
68f2de6d 6106 echo "$as_me: failed program was:" >&5
ad6254c5 6107sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 6108
7a197a62 6109 ac_cv_working_alloca_h=no
ad6254c5 6110fi
7a197a62 6111
25fbec5b 6112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6113 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6114fi
68f2de6d
AK
6115{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6116echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
6117if test $ac_cv_working_alloca_h = yes; then
6118
6119cat >>confdefs.h <<\_ACEOF
6120#define HAVE_ALLOCA_H 1
6121_ACEOF
6122
6123fi
6124
68f2de6d
AK
6125{ echo "$as_me:$LINENO: checking for alloca" >&5
6126echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
ad6254c5 6127if test "${ac_cv_func_alloca_works+set}" = set; then
68f2de6d 6128 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6129else
6130 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6131/* confdefs.h. */
6132_ACEOF
6133cat confdefs.h >>conftest.$ac_ext
6134cat >>conftest.$ac_ext <<_ACEOF
6135/* end confdefs.h. */
6136#ifdef __GNUC__
6137# define alloca __builtin_alloca
6138#else
6139# ifdef _MSC_VER
6140# include <malloc.h>
6141# define alloca _alloca
6142# else
25fbec5b 6143# ifdef HAVE_ALLOCA_H
ad6254c5
AK
6144# include <alloca.h>
6145# else
6146# ifdef _AIX
6147 #pragma alloca
6148# else
6149# ifndef alloca /* predefined by HP cc +Olibcalls */
6150char *alloca ();
6151# endif
6152# endif
6153# endif
6154# endif
6155#endif
6156
6157int
6158main ()
6159{
6160char *p = (char *) alloca (1);
7a197a62 6161 if (p) return 0;
ad6254c5
AK
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6167if { (ac_try="$ac_link"
6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
68f2de6d 6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6173 (eval "$ac_link") 2>conftest.er1
ad6254c5 6174 ac_status=$?
8a2fc586
AK
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
68f2de6d 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6179 (exit $ac_status); } && {
6180 test -z "$ac_c_werror_flag" ||
6181 test ! -s conftest.err
68f2de6d
AK
6182 } && test -s conftest$ac_exeext &&
6183 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6184 ac_cv_func_alloca_works=yes
6185else
68f2de6d 6186 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
7a197a62 6189 ac_cv_func_alloca_works=no
ad6254c5 6190fi
7a197a62 6191
25fbec5b 6192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6193 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6194fi
68f2de6d
AK
6195{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6196echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
6197
6198if test $ac_cv_func_alloca_works = yes; then
6199
6200cat >>confdefs.h <<\_ACEOF
6201#define HAVE_ALLOCA 1
6202_ACEOF
6203
6204else
6205 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6206# that cause trouble. Some versions do not even contain alloca or
6207# contain a buggy version. If you still want to use their alloca,
6208# use ar to extract alloca.o from them instead of compiling alloca.c.
6209
7a197a62 6210ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
6211
6212cat >>confdefs.h <<\_ACEOF
6213#define C_ALLOCA 1
6214_ACEOF
6215
6216
68f2de6d
AK
6217{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6218echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
ad6254c5 6219if test "${ac_cv_os_cray+set}" = set; then
68f2de6d 6220 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6221else
6222 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
7a197a62 6228#if defined CRAY && ! defined CRAY2
ad6254c5
AK
6229webecray
6230#else
6231wenotbecray
6232#endif
6233
6234_ACEOF
795ca3e5 6235if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
6236 $EGREP "webecray" >/dev/null 2>&1; then
6237 ac_cv_os_cray=yes
6238else
6239 ac_cv_os_cray=no
795ca3e5
AK
6240fi
6241rm -f conftest*
6242
795ca3e5 6243fi
68f2de6d
AK
6244{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6245echo "${ECHO_T}$ac_cv_os_cray" >&6; }
ad6254c5
AK
6246if test $ac_cv_os_cray = yes; then
6247 for ac_func in _getb67 GETB67 getb67; do
68f2de6d
AK
6248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6249{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6250echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6251if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6252 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6253else
6254 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6255/* confdefs.h. */
6256_ACEOF
6257cat confdefs.h >>conftest.$ac_ext
6258cat >>conftest.$ac_ext <<_ACEOF
6259/* end confdefs.h. */
8a2fc586
AK
6260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6262#define $ac_func innocuous_$ac_func
6263
ad6254c5
AK
6264/* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char $ac_func (); below.
6266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 <limits.h> exists even on freestanding compilers. */
8a2fc586 6268
ad6254c5
AK
6269#ifdef __STDC__
6270# include <limits.h>
6271#else
6272# include <assert.h>
6273#endif
8a2fc586
AK
6274
6275#undef $ac_func
6276
7a197a62
AK
6277/* Override any GCC internal prototype to avoid an error.
6278 Use char because int might match the return type of a GCC
6279 builtin and then its argument prototype would still apply. */
ad6254c5
AK
6280#ifdef __cplusplus
6281extern "C"
ad6254c5 6282#endif
ad6254c5
AK
6283char $ac_func ();
6284/* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
7a197a62 6287#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6288choke me
ad6254c5
AK
6289#endif
6290
6291int
6292main ()
6293{
7a197a62 6294return $ac_func ();
ad6254c5
AK
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6300if { (ac_try="$ac_link"
6301case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304esac
68f2de6d 6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6306 (eval "$ac_link") 2>conftest.er1
ad6254c5 6307 ac_status=$?
8a2fc586
AK
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
68f2de6d 6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
68f2de6d
AK
6315 } && test -s conftest$ac_exeext &&
6316 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
6317 eval "$as_ac_var=yes"
6318else
68f2de6d 6319 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
7a197a62 6322 eval "$as_ac_var=no"
ad6254c5 6323fi
7a197a62 6324
25fbec5b 6325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6326 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6327fi
68f2de6d
AK
6328ac_res=`eval echo '${'$as_ac_var'}'`
6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
6330echo "${ECHO_T}$ac_res" >&6; }
6331if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 6332
ad6254c5
AK
6333cat >>confdefs.h <<_ACEOF
6334#define CRAY_STACKSEG_END $ac_func
6335_ACEOF
6336
6337 break
6338fi
6339
6340 done
6341fi
6342
68f2de6d
AK
6343{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6344echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
ad6254c5 6345if test "${ac_cv_c_stack_direction+set}" = set; then
68f2de6d 6346 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6347else
6348 if test "$cross_compiling" = yes; then
6349 ac_cv_c_stack_direction=0
6350else
6351 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6352/* confdefs.h. */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */
7a197a62 6357$ac_includes_default
ad6254c5
AK
6358int
6359find_stack_direction ()
6360{
6361 static char *addr = 0;
6362 auto char dummy;
6363 if (addr == 0)
6364 {
6365 addr = &dummy;
6366 return find_stack_direction ();
6367 }
6368 else
6369 return (&dummy > addr) ? 1 : -1;
6370}
6371
6372int
6373main ()
6374{
7a197a62 6375 return find_stack_direction () < 0;
ad6254c5
AK
6376}
6377_ACEOF
6378rm -f conftest$ac_exeext
7a197a62
AK
6379if { (ac_try="$ac_link"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
68f2de6d 6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6385 (eval "$ac_link") 2>&5
ad6254c5 6386 ac_status=$?
68f2de6d 6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6389 { (case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392esac
68f2de6d 6393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6394 (eval "$ac_try") 2>&5
ad6254c5 6395 ac_status=$?
68f2de6d 6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6397 (exit $ac_status); }; }; then
6398 ac_cv_c_stack_direction=1
6399else
68f2de6d
AK
6400 echo "$as_me: program exited with status $ac_status" >&5
6401echo "$as_me: failed program was:" >&5
ad6254c5
AK
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404( exit $ac_status )
6405ac_cv_c_stack_direction=-1
6406fi
7a197a62 6407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6408fi
7a197a62
AK
6409
6410
ad6254c5 6411fi
68f2de6d
AK
6412{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6413echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
ad6254c5
AK
6414
6415cat >>confdefs.h <<_ACEOF
6416#define STACK_DIRECTION $ac_cv_c_stack_direction
6417_ACEOF
6418
6419
6420fi
6421
68f2de6d
AK
6422{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6423echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
ad6254c5 6424if test "${ac_cv_func_closedir_void+set}" = set; then
68f2de6d 6425 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6426else
6427 if test "$cross_compiling" = yes; then
6428 ac_cv_func_closedir_void=yes
6429else
6430 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
6436$ac_includes_default
6437#include <$ac_header_dirent>
6438#ifndef __cplusplus
6439int closedir ();
6440#endif
6441
6442int
6443main ()
6444{
7a197a62 6445return closedir (opendir (".")) != 0;
ad6254c5
AK
6446 ;
6447 return 0;
6448}
6449_ACEOF
6450rm -f conftest$ac_exeext
7a197a62
AK
6451if { (ac_try="$ac_link"
6452case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6455esac
68f2de6d 6456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6457 (eval "$ac_link") 2>&5
ad6254c5 6458 ac_status=$?
68f2de6d 6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
68f2de6d 6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6466 (eval "$ac_try") 2>&5
ad6254c5 6467 ac_status=$?
68f2de6d 6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6469 (exit $ac_status); }; }; then
6470 ac_cv_func_closedir_void=no
6471else
68f2de6d
AK
6472 echo "$as_me: program exited with status $ac_status" >&5
6473echo "$as_me: failed program was:" >&5
ad6254c5
AK
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476( exit $ac_status )
6477ac_cv_func_closedir_void=yes
6478fi
7a197a62 6479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6480fi
7a197a62
AK
6481
6482
ad6254c5 6483fi
68f2de6d
AK
6484{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6485echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
ad6254c5
AK
6486if test $ac_cv_func_closedir_void = yes; then
6487
6488cat >>confdefs.h <<\_ACEOF
6489#define CLOSEDIR_VOID 1
6490_ACEOF
6491
6492fi
6493
6494
7a197a62 6495for ac_header in vfork.h
ad6254c5 6496do
68f2de6d 6497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 6498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
6499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6502 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6503fi
68f2de6d
AK
6504ac_res=`eval echo '${'$as_ac_Header'}'`
6505 { echo "$as_me:$LINENO: result: $ac_res" >&5
6506echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
6507else
6508 # Is the header compilable?
68f2de6d
AK
6509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 6511cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6512/* confdefs.h. */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h. */
6517$ac_includes_default
6518#include <$ac_header>
6519_ACEOF
6520rm -f conftest.$ac_objext
7a197a62
AK
6521if { (ac_try="$ac_compile"
6522case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525esac
68f2de6d 6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6527 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6528 ac_status=$?
8a2fc586
AK
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
68f2de6d 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest.$ac_objext; then
ad6254c5
AK
6537 ac_header_compiler=yes
6538else
68f2de6d 6539 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
7a197a62 6542 ac_header_compiler=no
ad6254c5 6543fi
7a197a62
AK
6544
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
6546{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6547echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
6548
6549# Is the header present?
68f2de6d
AK
6550{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 6552cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558#include <$ac_header>
6559_ACEOF
7a197a62
AK
6560if { (ac_try="$ac_cpp conftest.$ac_ext"
6561case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564esac
68f2de6d 6565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
68f2de6d 6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6572 (exit $ac_status); } >/dev/null && {
6573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 }; then
ad6254c5
AK
6576 ac_header_preproc=yes
6577else
68f2de6d 6578 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_header_preproc=no
6582fi
7a197a62 6583
ad6254c5 6584rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
6585{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6586echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
6587
6588# So? What about this header?
8a2fc586
AK
6589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6590 yes:no: )
68f2de6d
AK
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 6595 ac_header_preproc=yes
ad6254c5 6596 ;;
8a2fc586 6597 no:yes:* )
68f2de6d
AK
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 6610
ad6254c5
AK
6611 ;;
6612esac
68f2de6d
AK
6613{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 6615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6616 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 6617else
8a2fc586 6618 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 6619fi
68f2de6d
AK
6620ac_res=`eval echo '${'$as_ac_Header'}'`
6621 { echo "$as_me:$LINENO: result: $ac_res" >&5
6622echo "${ECHO_T}$ac_res" >&6; }
ad6254c5 6623
795ca3e5 6624fi
68f2de6d 6625if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 6626 cat >>confdefs.h <<_ACEOF
68f2de6d 6627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
6628_ACEOF
6629
6630fi
6631
6632done
795ca3e5 6633
ad6254c5
AK
6634
6635
6636for ac_func in fork vfork
6637do
68f2de6d
AK
6638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 6641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 6642 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 6643else
ad6254c5 6644 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6645/* confdefs.h. */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h. */
8a2fc586
AK
6650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6652#define $ac_func innocuous_$ac_func
6653
ad6254c5
AK
6654/* System header to define __stub macros and hopefully few prototypes,
6655 which can conflict with char $ac_func (); below.
6656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6657 <limits.h> exists even on freestanding compilers. */
8a2fc586 6658
ad6254c5
AK
6659#ifdef __STDC__
6660# include <limits.h>
6661#else
6662# include <assert.h>
795ca3e5 6663#endif
8a2fc586
AK
6664
6665#undef $ac_func
6666
7a197a62
AK
6667/* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
795ca3e5 6670#ifdef __cplusplus
ad6254c5 6671extern "C"
ad6254c5 6672#endif
ad6254c5
AK
6673char $ac_func ();
6674/* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
7a197a62 6677#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 6678choke me
795ca3e5
AK
6679#endif
6680
ad6254c5
AK
6681int
6682main ()
6683{
7a197a62 6684return $ac_func ();
ad6254c5
AK
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
6690if { (ac_try="$ac_link"
6691case "(($ac_try" in
6692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693 *) ac_try_echo=$ac_try;;
6694esac
68f2de6d 6695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6696 (eval "$ac_link") 2>conftest.er1
ad6254c5 6697 ac_status=$?
8a2fc586
AK
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
68f2de6d 6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6702 (exit $ac_status); } && {
6703 test -z "$ac_c_werror_flag" ||
6704 test ! -s conftest.err
68f2de6d
AK
6705 } && test -s conftest$ac_exeext &&
6706 $as_test_x conftest$ac_exeext; then
ad6254c5 6707 eval "$as_ac_var=yes"
795ca3e5 6708else
68f2de6d 6709 echo "$as_me: failed program was:" >&5
ad6254c5
AK
6710sed 's/^/| /' conftest.$ac_ext >&5
6711
7a197a62 6712 eval "$as_ac_var=no"
795ca3e5 6713fi
7a197a62 6714
25fbec5b 6715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 6716 conftest$ac_exeext conftest.$ac_ext
ad6254c5 6717fi
68f2de6d
AK
6718ac_res=`eval echo '${'$as_ac_var'}'`
6719 { echo "$as_me:$LINENO: result: $ac_res" >&5
6720echo "${ECHO_T}$ac_res" >&6; }
6721if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 6722 cat >>confdefs.h <<_ACEOF
68f2de6d 6723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
6724_ACEOF
6725
6726fi
6727done
6728
6729if test "x$ac_cv_func_fork" = xyes; then
68f2de6d
AK
6730 { echo "$as_me:$LINENO: checking for working fork" >&5
6731echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
ad6254c5 6732if test "${ac_cv_func_fork_works+set}" = set; then
68f2de6d 6733 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6734else
6735 if test "$cross_compiling" = yes; then
6736 ac_cv_func_fork_works=cross
6737else
6738 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
6739/* confdefs.h. */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h. */
6744$ac_includes_default
6745int
6746main ()
6747{
6748
6749 /* By Ruediger Kuhlmann. */
6750 return fork () < 0;
6751
6752 ;
6753 return 0;
6754}
ad6254c5
AK
6755_ACEOF
6756rm -f conftest$ac_exeext
7a197a62
AK
6757if { (ac_try="$ac_link"
6758case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761esac
68f2de6d 6762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6763 (eval "$ac_link") 2>&5
ad6254c5 6764 ac_status=$?
68f2de6d 6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770esac
68f2de6d 6771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6772 (eval "$ac_try") 2>&5
ad6254c5 6773 ac_status=$?
68f2de6d 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6775 (exit $ac_status); }; }; then
6776 ac_cv_func_fork_works=yes
6777else
68f2de6d
AK
6778 echo "$as_me: program exited with status $ac_status" >&5
6779echo "$as_me: failed program was:" >&5
ad6254c5
AK
6780sed 's/^/| /' conftest.$ac_ext >&5
6781
6782( exit $ac_status )
6783ac_cv_func_fork_works=no
6784fi
7a197a62 6785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6786fi
7a197a62
AK
6787
6788
ad6254c5 6789fi
68f2de6d
AK
6790{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6791echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
6792
6793else
6794 ac_cv_func_fork_works=$ac_cv_func_fork
6795fi
6796if test "x$ac_cv_func_fork_works" = xcross; then
6797 case $host in
6798 *-*-amigaos* | *-*-msdosdjgpp*)
6799 # Override, as these systems have only a dummy fork() stub
6800 ac_cv_func_fork_works=no
6801 ;;
6802 *)
6803 ac_cv_func_fork_works=yes
6804 ;;
6805 esac
68f2de6d
AK
6806 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6807echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6808fi
6809ac_cv_func_vfork_works=$ac_cv_func_vfork
6810if test "x$ac_cv_func_vfork" = xyes; then
68f2de6d
AK
6811 { echo "$as_me:$LINENO: checking for working vfork" >&5
6812echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
ad6254c5 6813if test "${ac_cv_func_vfork_works+set}" = set; then
68f2de6d 6814 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6815else
6816 if test "$cross_compiling" = yes; then
6817 ac_cv_func_vfork_works=cross
6818else
6819 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6820/* confdefs.h. */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h. */
6825/* Thanks to Paul Eggert for this test. */
7a197a62 6826$ac_includes_default
ad6254c5 6827#include <sys/wait.h>
25fbec5b 6828#ifdef HAVE_VFORK_H
ad6254c5
AK
6829# include <vfork.h>
6830#endif
6831/* On some sparc systems, changes by the child to local and incoming
6832 argument registers are propagated back to the parent. The compiler
6833 is told about this with #include <vfork.h>, but some compilers
6834 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6835 static variable whose address is put into a register that is
6836 clobbered by the vfork. */
6837static void
6838#ifdef __cplusplus
6839sparc_address_test (int arg)
6840# else
6841sparc_address_test (arg) int arg;
6842#endif
6843{
6844 static pid_t child;
6845 if (!child) {
6846 child = vfork ();
6847 if (child < 0) {
6848 perror ("vfork");
6849 _exit(2);
6850 }
6851 if (!child) {
6852 arg = getpid();
6853 write(-1, "", 0);
6854 _exit (arg);
6855 }
6856 }
6857}
6858
6859int
6860main ()
6861{
6862 pid_t parent = getpid ();
6863 pid_t child;
6864
6865 sparc_address_test (0);
6866
6867 child = vfork ();
6868
6869 if (child == 0) {
6870 /* Here is another test for sparc vfork register problems. This
6871 test uses lots of local variables, at least as many local
6872 variables as main has allocated so far including compiler
6873 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6874 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6875 reuse the register of parent for one of the local variables,
6876 since it will think that parent can't possibly be used any more
6877 in this routine. Assigning to the local variable will thus
6878 munge parent in the parent process. */
6879 pid_t
6880 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6881 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6882 /* Convince the compiler that p..p7 are live; otherwise, it might
6883 use the same hardware register for all 8 local variables. */
6884 if (p != p1 || p != p2 || p != p3 || p != p4
6885 || p != p5 || p != p6 || p != p7)
6886 _exit(1);
6887
6888 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6889 from child file descriptors. If the child closes a descriptor
6890 before it execs or exits, this munges the parent's descriptor
6891 as well. Test for this by closing stdout in the child. */
6892 _exit(close(fileno(stdout)) != 0);
6893 } else {
6894 int status;
6895 struct stat st;
6896
6897 while (wait(&status) != child)
6898 ;
7a197a62 6899 return (
ad6254c5
AK
6900 /* Was there some problem with vforking? */
6901 child < 0
6902
6903 /* Did the child fail? (This shouldn't happen.) */
6904 || status
6905
6906 /* Did the vfork/compiler bug occur? */
6907 || parent != getpid()
6908
6909 /* Did the file descriptor bug occur? */
6910 || fstat(fileno(stdout), &st) != 0
6911 );
6912 }
6913}
6914_ACEOF
6915rm -f conftest$ac_exeext
7a197a62
AK
6916if { (ac_try="$ac_link"
6917case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920esac
68f2de6d 6921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6922 (eval "$ac_link") 2>&5
ad6254c5 6923 ac_status=$?
68f2de6d 6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 6925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
6926 { (case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929esac
68f2de6d 6930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 6931 (eval "$ac_try") 2>&5
ad6254c5 6932 ac_status=$?
68f2de6d 6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
6934 (exit $ac_status); }; }; then
6935 ac_cv_func_vfork_works=yes
6936else
68f2de6d
AK
6937 echo "$as_me: program exited with status $ac_status" >&5
6938echo "$as_me: failed program was:" >&5
ad6254c5
AK
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941( exit $ac_status )
6942ac_cv_func_vfork_works=no
6943fi
7a197a62 6944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 6945fi
7a197a62
AK
6946
6947
ad6254c5 6948fi
68f2de6d
AK
6949{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6950echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
6951
6952fi;
6953if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 6954 ac_cv_func_vfork_works=$ac_cv_func_vfork
68f2de6d
AK
6955 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6956echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
6957fi
6958
6959if test "x$ac_cv_func_vfork_works" = xyes; then
6960
6961cat >>confdefs.h <<\_ACEOF
6962#define HAVE_WORKING_VFORK 1
6963_ACEOF
6964
6965else
6966
6967cat >>confdefs.h <<\_ACEOF
6968#define vfork fork
6969_ACEOF
6970
6971fi
6972if test "x$ac_cv_func_fork_works" = xyes; then
6973
6974cat >>confdefs.h <<\_ACEOF
6975#define HAVE_WORKING_FORK 1
6976_ACEOF
6977
6978fi
6979
68f2de6d
AK
6980{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6981echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
ad6254c5 6982if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
68f2de6d 6983 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
6984else
6985 rm -f conftest.sym conftest.file
6986echo >conftest.file
6987if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6988 if test "$cross_compiling" = yes; then
6989 ac_cv_func_lstat_dereferences_slashed_symlink=no
6990else
6991 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997$ac_includes_default
6998int
6999main ()
7000{
7001struct stat sbuf;
7002 /* Linux will dereference the symlink and fail.
8a2fc586
AK
7003 That is better in the sense that it means we will not
7004 have to compile and use the lstat wrapper. */
7a197a62 7005 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest$ac_exeext
7a197a62
AK
7011if { (ac_try="$ac_link"
7012case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015esac
68f2de6d 7016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7017 (eval "$ac_link") 2>&5
ad6254c5 7018 ac_status=$?
68f2de6d 7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7021 { (case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024esac
68f2de6d 7025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7026 (eval "$ac_try") 2>&5
ad6254c5 7027 ac_status=$?
68f2de6d 7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7029 (exit $ac_status); }; }; then
7030 ac_cv_func_lstat_dereferences_slashed_symlink=yes
7031else
68f2de6d
AK
7032 echo "$as_me: program exited with status $ac_status" >&5
7033echo "$as_me: failed program was:" >&5
ad6254c5
AK
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036( exit $ac_status )
7037ac_cv_func_lstat_dereferences_slashed_symlink=no
7038fi
7a197a62 7039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7040fi
7a197a62
AK
7041
7042
ad6254c5
AK
7043else
7044 # If the `ln -s' command failed, then we probably don't even
7045 # have an lstat function.
7046 ac_cv_func_lstat_dereferences_slashed_symlink=no
7047fi
7048rm -f conftest.sym conftest.file
7049
7050fi
68f2de6d
AK
7051{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7052echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
7053
7054test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7055
7056cat >>confdefs.h <<_ACEOF
7057#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7058_ACEOF
7059
7060
7061if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 7062 case " $LIBOBJS " in
8a2fc586 7063 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7064 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7065 ;;
8a2fc586
AK
7066esac
7067
ad6254c5
AK
7068fi
7069
68f2de6d
AK
7070{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7071echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7072if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
68f2de6d 7073 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7074else
7075 if test "$cross_compiling" = yes; then
7076 ac_cv_func_lstat_empty_string_bug=yes
7077else
7078 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7079/* confdefs.h. */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h. */
7084$ac_includes_default
7085int
7086main ()
7087{
7088struct stat sbuf;
7a197a62 7089 return lstat ("", &sbuf) == 0;
ad6254c5
AK
7090 ;
7091 return 0;
7092}
7093_ACEOF
7094rm -f conftest$ac_exeext
7a197a62
AK
7095if { (ac_try="$ac_link"
7096case "(($ac_try" in
7097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098 *) ac_try_echo=$ac_try;;
7099esac
68f2de6d 7100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7101 (eval "$ac_link") 2>&5
ad6254c5 7102 ac_status=$?
68f2de6d 7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7105 { (case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108esac
68f2de6d 7109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7110 (eval "$ac_try") 2>&5
ad6254c5 7111 ac_status=$?
68f2de6d 7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7113 (exit $ac_status); }; }; then
7a197a62 7114 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 7115else
68f2de6d
AK
7116 echo "$as_me: program exited with status $ac_status" >&5
7117echo "$as_me: failed program was:" >&5
ad6254c5
AK
7118sed 's/^/| /' conftest.$ac_ext >&5
7119
7120( exit $ac_status )
7a197a62 7121ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 7122fi
7a197a62 7123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7124fi
7a197a62
AK
7125
7126
ad6254c5 7127fi
68f2de6d
AK
7128{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7129echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 7130if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 7131 case " $LIBOBJS " in
8a2fc586 7132 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
7133 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7134 ;;
8a2fc586
AK
7135esac
7136
ad6254c5
AK
7137
7138cat >>confdefs.h <<_ACEOF
7139#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7140_ACEOF
7141
7142fi
7143
7144
7145for ac_header in stdlib.h
7146do
68f2de6d 7147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7152 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7153fi
68f2de6d
AK
7154ac_res=`eval echo '${'$as_ac_Header'}'`
7155 { echo "$as_me:$LINENO: result: $ac_res" >&5
7156echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7157else
7158 # Is the header compilable?
68f2de6d
AK
7159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7161cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167$ac_includes_default
7168#include <$ac_header>
7169_ACEOF
7170rm -f conftest.$ac_objext
7a197a62
AK
7171if { (ac_try="$ac_compile"
7172case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175esac
68f2de6d 7176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7177 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7178 ac_status=$?
8a2fc586
AK
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
68f2de6d 7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7187 ac_header_compiler=yes
7188else
68f2de6d 7189 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7a197a62 7192 ac_header_compiler=no
ad6254c5 7193fi
7a197a62
AK
7194
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7197echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7198
7199# Is the header present?
68f2de6d
AK
7200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7202cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7203/* confdefs.h. */
7204_ACEOF
7205cat confdefs.h >>conftest.$ac_ext
7206cat >>conftest.$ac_ext <<_ACEOF
7207/* end confdefs.h. */
7208#include <$ac_header>
7209_ACEOF
7a197a62
AK
7210if { (ac_try="$ac_cpp conftest.$ac_ext"
7211case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214esac
68f2de6d 7215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
68f2de6d 7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7222 (exit $ac_status); } >/dev/null && {
7223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 }; then
ad6254c5
AK
7226 ac_header_preproc=yes
7227else
68f2de6d 7228 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231 ac_header_preproc=no
7232fi
7a197a62 7233
ad6254c5 7234rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7235{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7236echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7237
7238# So? What about this header?
8a2fc586
AK
7239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7240 yes:no: )
68f2de6d
AK
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7245 ac_header_preproc=yes
ad6254c5 7246 ;;
8a2fc586 7247 no:yes:* )
68f2de6d
AK
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7255echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7260
ad6254c5
AK
7261 ;;
7262esac
68f2de6d
AK
7263{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7266 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7267else
8a2fc586 7268 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7269fi
68f2de6d
AK
7270ac_res=`eval echo '${'$as_ac_Header'}'`
7271 { echo "$as_me:$LINENO: result: $ac_res" >&5
7272echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7273
7274fi
68f2de6d 7275if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7276 cat >>confdefs.h <<_ACEOF
68f2de6d 7277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7278_ACEOF
7279
7280fi
7281
7282done
7283
68f2de6d
AK
7284{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7285echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
ad6254c5 7286if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
68f2de6d 7287 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7288else
7289 if test "$cross_compiling" = yes; then
7290 ac_cv_func_malloc_0_nonnull=no
7291else
7292 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7293/* confdefs.h. */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h. */
25fbec5b 7298#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
7299# include <stdlib.h>
7300#else
7301char *malloc ();
7302#endif
7303
7304int
7305main ()
7306{
7a197a62 7307return ! malloc (0);
ad6254c5
AK
7308 ;
7309 return 0;
7310}
7311_ACEOF
7312rm -f conftest$ac_exeext
7a197a62
AK
7313if { (ac_try="$ac_link"
7314case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317esac
68f2de6d 7318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7319 (eval "$ac_link") 2>&5
ad6254c5 7320 ac_status=$?
68f2de6d 7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7323 { (case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326esac
68f2de6d 7327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7328 (eval "$ac_try") 2>&5
ad6254c5 7329 ac_status=$?
68f2de6d 7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7331 (exit $ac_status); }; }; then
7332 ac_cv_func_malloc_0_nonnull=yes
7333else
68f2de6d
AK
7334 echo "$as_me: program exited with status $ac_status" >&5
7335echo "$as_me: failed program was:" >&5
ad6254c5
AK
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
7338( exit $ac_status )
7339ac_cv_func_malloc_0_nonnull=no
7340fi
7a197a62 7341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7342fi
7a197a62
AK
7343
7344
ad6254c5 7345fi
68f2de6d
AK
7346{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7347echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
7348if test $ac_cv_func_malloc_0_nonnull = yes; then
7349
7350cat >>confdefs.h <<\_ACEOF
7351#define HAVE_MALLOC 1
7352_ACEOF
7353
7354else
7355 cat >>confdefs.h <<\_ACEOF
7356#define HAVE_MALLOC 0
7357_ACEOF
7358
7a197a62 7359 case " $LIBOBJS " in
8a2fc586 7360 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
7361 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7362 ;;
8a2fc586
AK
7363esac
7364
ad6254c5
AK
7365
7366cat >>confdefs.h <<\_ACEOF
7367#define malloc rpl_malloc
7368_ACEOF
7369
7370fi
7371
7372
7373
68f2de6d
AK
7374{ echo "$as_me:$LINENO: checking for working memcmp" >&5
7375echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
ad6254c5 7376if test "${ac_cv_func_memcmp_working+set}" = set; then
68f2de6d 7377 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7378else
7379 if test "$cross_compiling" = yes; then
7380 ac_cv_func_memcmp_working=no
7381else
7382 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
8a2fc586 7388$ac_includes_default
ad6254c5
AK
7389int
7390main ()
7391{
7392
7393 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 7394 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 7395 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 7396 return 1;
ad6254c5
AK
7397
7398 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7399 or more and with at least one buffer not starting on a 4-byte boundary.
7400 William Lewis provided this test program. */
7401 {
7402 char foo[21];
7403 char bar[21];
7404 int i;
7405 for (i = 0; i < 4; i++)
7406 {
8a2fc586
AK
7407 char *a = foo + i;
7408 char *b = bar + i;
7409 strcpy (a, "--------01111111");
7410 strcpy (b, "--------10000000");
7411 if (memcmp (a, b, 16) >= 0)
7a197a62 7412 return 1;
ad6254c5 7413 }
7a197a62 7414 return 0;
ad6254c5
AK
7415 }
7416
7417 ;
7418 return 0;
7419}
7420_ACEOF
7421rm -f conftest$ac_exeext
7a197a62
AK
7422if { (ac_try="$ac_link"
7423case "(($ac_try" in
7424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 *) ac_try_echo=$ac_try;;
7426esac
68f2de6d 7427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7428 (eval "$ac_link") 2>&5
ad6254c5 7429 ac_status=$?
68f2de6d 7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7432 { (case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435esac
68f2de6d 7436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7437 (eval "$ac_try") 2>&5
ad6254c5 7438 ac_status=$?
68f2de6d 7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7440 (exit $ac_status); }; }; then
7441 ac_cv_func_memcmp_working=yes
7442else
68f2de6d
AK
7443 echo "$as_me: program exited with status $ac_status" >&5
7444echo "$as_me: failed program was:" >&5
ad6254c5
AK
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447( exit $ac_status )
7448ac_cv_func_memcmp_working=no
7449fi
7a197a62 7450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7451fi
7a197a62
AK
7452
7453
ad6254c5 7454fi
68f2de6d
AK
7455{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7456echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
7a197a62 7457test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 7458 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
7459 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7460 ;;
8a2fc586
AK
7461esac
7462
ad6254c5
AK
7463
7464
7465
7466for ac_header in stdlib.h unistd.h
7467do
68f2de6d 7468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 7469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
7470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7473 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7474fi
68f2de6d
AK
7475ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7478else
7479 # Is the header compilable?
68f2de6d
AK
7480{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 7482cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7483/* confdefs.h. */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h. */
7488$ac_includes_default
7489#include <$ac_header>
7490_ACEOF
7491rm -f conftest.$ac_objext
7a197a62
AK
7492if { (ac_try="$ac_compile"
7493case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496esac
68f2de6d 7497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7498 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7499 ac_status=$?
8a2fc586
AK
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
68f2de6d 7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7508 ac_header_compiler=yes
7509else
68f2de6d 7510 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7a197a62 7513 ac_header_compiler=no
ad6254c5 7514fi
7a197a62
AK
7515
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
7517{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7518echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
7519
7520# Is the header present?
68f2de6d
AK
7521{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 7523cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7524/* confdefs.h. */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h. */
7529#include <$ac_header>
7530_ACEOF
7a197a62
AK
7531if { (ac_try="$ac_cpp conftest.$ac_ext"
7532case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535esac
68f2de6d 7536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
68f2de6d 7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7543 (exit $ac_status); } >/dev/null && {
7544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7545 test ! -s conftest.err
7546 }; then
ad6254c5
AK
7547 ac_header_preproc=yes
7548else
68f2de6d 7549 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552 ac_header_preproc=no
7553fi
7a197a62 7554
ad6254c5 7555rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
7556{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7557echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
7558
7559# So? What about this header?
8a2fc586
AK
7560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7561 yes:no: )
68f2de6d
AK
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 7566 ac_header_preproc=yes
ad6254c5 7567 ;;
8a2fc586 7568 no:yes:* )
68f2de6d
AK
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 7581
ad6254c5
AK
7582 ;;
7583esac
68f2de6d
AK
7584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 7586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7587 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 7588else
8a2fc586 7589 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 7590fi
68f2de6d
AK
7591ac_res=`eval echo '${'$as_ac_Header'}'`
7592 { echo "$as_me:$LINENO: result: $ac_res" >&5
7593echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
7594
7595fi
68f2de6d 7596if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 7597 cat >>confdefs.h <<_ACEOF
68f2de6d 7598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
7599_ACEOF
7600
7601fi
7602
7603done
7604
7605
7606for ac_func in getpagesize
7607do
68f2de6d
AK
7608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7609{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 7611if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 7612 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7613else
7614 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7615/* confdefs.h. */
7616_ACEOF
7617cat confdefs.h >>conftest.$ac_ext
7618cat >>conftest.$ac_ext <<_ACEOF
7619/* end confdefs.h. */
8a2fc586
AK
7620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7622#define $ac_func innocuous_$ac_func
7623
ad6254c5
AK
7624/* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char $ac_func (); below.
7626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7627 <limits.h> exists even on freestanding compilers. */
8a2fc586 7628
ad6254c5
AK
7629#ifdef __STDC__
7630# include <limits.h>
7631#else
7632# include <assert.h>
7633#endif
8a2fc586
AK
7634
7635#undef $ac_func
7636
7a197a62
AK
7637/* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
ad6254c5
AK
7640#ifdef __cplusplus
7641extern "C"
ad6254c5 7642#endif
ad6254c5
AK
7643char $ac_func ();
7644/* The GNU C library defines this for functions which it implements
7645 to always fail with ENOSYS. Some functions are actually named
7646 something starting with __ and the normal name is an alias. */
7a197a62 7647#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 7648choke me
ad6254c5
AK
7649#endif
7650
7651int
7652main ()
7653{
7a197a62 7654return $ac_func ();
ad6254c5
AK
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
7660if { (ac_try="$ac_link"
7661case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664esac
68f2de6d 7665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7666 (eval "$ac_link") 2>conftest.er1
ad6254c5 7667 ac_status=$?
8a2fc586
AK
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
68f2de6d 7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
68f2de6d
AK
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
7677 eval "$as_ac_var=yes"
7678else
68f2de6d 7679 echo "$as_me: failed program was:" >&5
ad6254c5
AK
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
7a197a62 7682 eval "$as_ac_var=no"
ad6254c5 7683fi
7a197a62 7684
25fbec5b 7685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 7686 conftest$ac_exeext conftest.$ac_ext
ad6254c5 7687fi
68f2de6d
AK
7688ac_res=`eval echo '${'$as_ac_var'}'`
7689 { echo "$as_me:$LINENO: result: $ac_res" >&5
7690echo "${ECHO_T}$ac_res" >&6; }
7691if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 7692 cat >>confdefs.h <<_ACEOF
68f2de6d 7693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
7694_ACEOF
7695
7696fi
7697done
7698
68f2de6d
AK
7699{ echo "$as_me:$LINENO: checking for working mmap" >&5
7700echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
ad6254c5 7701if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
68f2de6d 7702 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7703else
7704 if test "$cross_compiling" = yes; then
7705 ac_cv_func_mmap_fixed_mapped=no
7706else
7707 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7708/* confdefs.h. */
7709_ACEOF
7710cat confdefs.h >>conftest.$ac_ext
7711cat >>conftest.$ac_ext <<_ACEOF
7712/* end confdefs.h. */
7713$ac_includes_default
7714/* malloc might have been renamed as rpl_malloc. */
7715#undef malloc
7716
7717/* Thanks to Mike Haertel and Jim Avera for this test.
7718 Here is a matrix of mmap possibilities:
7719 mmap private not fixed
7720 mmap private fixed at somewhere currently unmapped
7721 mmap private fixed at somewhere already mapped
7722 mmap shared not fixed
7723 mmap shared fixed at somewhere currently unmapped
7724 mmap shared fixed at somewhere already mapped
7725 For private mappings, we should verify that changes cannot be read()
7726 back from the file, nor mmap's back from the file at a different
7727 address. (There have been systems where private was not correctly
7728 implemented like the infamous i386 svr4.0, and systems where the
7729 VM page cache was not coherent with the file system buffer cache
7730 like early versions of FreeBSD and possibly contemporary NetBSD.)
7731 For shared mappings, we should conversely verify that changes get
7732 propagated back to all the places they're supposed to be.
7733
7734 Grep wants private fixed already mapped.
7735 The main things grep needs to know about mmap are:
7736 * does it exist and is it safe to write into the mmap'd area
7737 * how to use it (BSD variants) */
7738
7739#include <fcntl.h>
7740#include <sys/mman.h>
7741
25fbec5b 7742#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
7743char *malloc ();
7744#endif
7745
7746/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 7747#ifndef HAVE_GETPAGESIZE
ad6254c5 7748/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 7749# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
7750# define HAVE_SYS_PARAM_H 1
7751# endif
7752
7753# ifdef _SC_PAGESIZE
7754# define getpagesize() sysconf(_SC_PAGESIZE)
7755# else /* no _SC_PAGESIZE */
25fbec5b 7756# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
7757# include <sys/param.h>
7758# ifdef EXEC_PAGESIZE
7759# define getpagesize() EXEC_PAGESIZE
7760# else /* no EXEC_PAGESIZE */
7761# ifdef NBPG
7762# define getpagesize() NBPG * CLSIZE
7763# ifndef CLSIZE
7764# define CLSIZE 1
7765# endif /* no CLSIZE */
7766# else /* no NBPG */
7767# ifdef NBPC
7768# define getpagesize() NBPC
7769# else /* no NBPC */
7770# ifdef PAGESIZE
7771# define getpagesize() PAGESIZE
7772# endif /* PAGESIZE */
7773# endif /* no NBPC */
7774# endif /* no NBPG */
7775# endif /* no EXEC_PAGESIZE */
7776# else /* no HAVE_SYS_PARAM_H */
7777# define getpagesize() 8192 /* punt totally */
7778# endif /* no HAVE_SYS_PARAM_H */
7779# endif /* no _SC_PAGESIZE */
7780
7781#endif /* no HAVE_GETPAGESIZE */
7782
7783int
7784main ()
7785{
7786 char *data, *data2, *data3;
7787 int i, pagesize;
7788 int fd;
7789
7790 pagesize = getpagesize ();
7791
7792 /* First, make a file with some known garbage in it. */
7793 data = (char *) malloc (pagesize);
7794 if (!data)
7a197a62 7795 return 1;
ad6254c5
AK
7796 for (i = 0; i < pagesize; ++i)
7797 *(data + i) = rand ();
7798 umask (0);
7799 fd = creat ("conftest.mmap", 0600);
7800 if (fd < 0)
7a197a62 7801 return 1;
ad6254c5 7802 if (write (fd, data, pagesize) != pagesize)
7a197a62 7803 return 1;
ad6254c5
AK
7804 close (fd);
7805
7806 /* Next, try to mmap the file at a fixed address which already has
7807 something else allocated at it. If we can, also make sure that
7808 we see the same garbage. */
7809 fd = open ("conftest.mmap", O_RDWR);
7810 if (fd < 0)
7a197a62 7811 return 1;
ad6254c5
AK
7812 data2 = (char *) malloc (2 * pagesize);
7813 if (!data2)
7a197a62
AK
7814 return 1;
7815 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 7816 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 7817 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 7818 return 1;
ad6254c5
AK
7819 for (i = 0; i < pagesize; ++i)
7820 if (*(data + i) != *(data2 + i))
7a197a62 7821 return 1;
ad6254c5
AK
7822
7823 /* Finally, make sure that changes to the mapped area do not
7824 percolate back to the file as seen by read(). (This is a bug on
7825 some variants of i386 svr4.0.) */
7826 for (i = 0; i < pagesize; ++i)
7827 *(data2 + i) = *(data2 + i) + 1;
7828 data3 = (char *) malloc (pagesize);
7829 if (!data3)
7a197a62 7830 return 1;
ad6254c5 7831 if (read (fd, data3, pagesize) != pagesize)
7a197a62 7832 return 1;
ad6254c5
AK
7833 for (i = 0; i < pagesize; ++i)
7834 if (*(data + i) != *(data3 + i))
7a197a62 7835 return 1;
ad6254c5 7836 close (fd);
7a197a62 7837 return 0;
ad6254c5
AK
7838}
7839_ACEOF
7840rm -f conftest$ac_exeext
7a197a62
AK
7841if { (ac_try="$ac_link"
7842case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
68f2de6d 7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7847 (eval "$ac_link") 2>&5
ad6254c5 7848 ac_status=$?
68f2de6d 7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
68f2de6d 7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7856 (eval "$ac_try") 2>&5
ad6254c5 7857 ac_status=$?
68f2de6d 7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
7859 (exit $ac_status); }; }; then
7860 ac_cv_func_mmap_fixed_mapped=yes
7861else
68f2de6d
AK
7862 echo "$as_me: program exited with status $ac_status" >&5
7863echo "$as_me: failed program was:" >&5
ad6254c5
AK
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866( exit $ac_status )
7867ac_cv_func_mmap_fixed_mapped=no
7868fi
7a197a62 7869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7870fi
7a197a62
AK
7871
7872
ad6254c5 7873fi
68f2de6d
AK
7874{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7875echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
ad6254c5
AK
7876if test $ac_cv_func_mmap_fixed_mapped = yes; then
7877
7878cat >>confdefs.h <<\_ACEOF
7879#define HAVE_MMAP 1
7880_ACEOF
7881
7882fi
7883rm -f conftest.mmap
7884
68f2de6d
AK
7885{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7886echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
ad6254c5 7887if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
68f2de6d 7888 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7889else
7890 if test "$cross_compiling" = yes; then
7891 ac_cv_func_stat_empty_string_bug=yes
7892else
7893 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7894/* confdefs.h. */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h. */
7899$ac_includes_default
7900int
7901main ()
7902{
7903struct stat sbuf;
7a197a62 7904 return stat ("", &sbuf) == 0;
ad6254c5
AK
7905 ;
7906 return 0;
7907}
7908_ACEOF
7909rm -f conftest$ac_exeext
7a197a62
AK
7910if { (ac_try="$ac_link"
7911case "(($ac_try" in
7912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7913 *) ac_try_echo=$ac_try;;
7914esac
68f2de6d 7915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7916 (eval "$ac_link") 2>&5
ad6254c5 7917 ac_status=$?
68f2de6d 7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
7920 { (case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
68f2de6d 7924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 7925 (eval "$ac_try") 2>&5
ad6254c5 7926 ac_status=$?
68f2de6d 7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 7928 (exit $ac_status); }; }; then
7a197a62 7929 ac_cv_func_stat_empty_string_bug=no
ad6254c5 7930else
68f2de6d
AK
7931 echo "$as_me: program exited with status $ac_status" >&5
7932echo "$as_me: failed program was:" >&5
ad6254c5
AK
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935( exit $ac_status )
7a197a62 7936ac_cv_func_stat_empty_string_bug=yes
ad6254c5 7937fi
7a197a62 7938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 7939fi
7a197a62
AK
7940
7941
ad6254c5 7942fi
68f2de6d
AK
7943{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7944echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 7945if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 7946 case " $LIBOBJS " in
8a2fc586 7947 *" stat.$ac_objext "* ) ;;
7a197a62
AK
7948 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7949 ;;
8a2fc586
AK
7950esac
7951
ad6254c5
AK
7952
7953cat >>confdefs.h <<_ACEOF
7954#define HAVE_STAT_EMPTY_STRING_BUG 1
7955_ACEOF
7956
7957fi
7958
68f2de6d
AK
7959{ echo "$as_me:$LINENO: checking for working strtod" >&5
7960echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
ad6254c5 7961if test "${ac_cv_func_strtod+set}" = set; then
68f2de6d 7962 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
7963else
7964 if test "$cross_compiling" = yes; then
7965 ac_cv_func_strtod=no
7966else
7967 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
7973
7a197a62
AK
7974$ac_includes_default
7975#ifndef strtod
ad6254c5 7976double strtod ();
7a197a62 7977#endif
ad6254c5
AK
7978int
7979main()
7980{
7981 {
7982 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7983 char *string = " +69";
7984 char *term;
7985 double value;
7986 value = strtod (string, &term);
7987 if (value != 69 || term != (string + 4))
7a197a62 7988 return 1;
ad6254c5
AK
7989 }
7990
7991 {
7992 /* Under Solaris 2.4, strtod returns the wrong value for the
7993 terminating character under some conditions. */
7994 char *string = "NaN";
7995 char *term;
7996 strtod (string, &term);
7997 if (term != string && *(term - 1) == 0)
7a197a62 7998 return 1;
ad6254c5 7999 }
7a197a62 8000 return 0;
ad6254c5
AK
8001}
8002
8003_ACEOF
8004rm -f conftest$ac_exeext
7a197a62
AK
8005if { (ac_try="$ac_link"
8006case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009esac
68f2de6d 8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8011 (eval "$ac_link") 2>&5
ad6254c5 8012 ac_status=$?
68f2de6d 8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018esac
68f2de6d 8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8020 (eval "$ac_try") 2>&5
ad6254c5 8021 ac_status=$?
68f2de6d 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8023 (exit $ac_status); }; }; then
8024 ac_cv_func_strtod=yes
8025else
68f2de6d
AK
8026 echo "$as_me: program exited with status $ac_status" >&5
8027echo "$as_me: failed program was:" >&5
ad6254c5
AK
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
8030( exit $ac_status )
8031ac_cv_func_strtod=no
8032fi
7a197a62 8033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8034fi
7a197a62
AK
8035
8036
ad6254c5 8037fi
68f2de6d
AK
8038{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8039echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
ad6254c5 8040if test $ac_cv_func_strtod = no; then
7a197a62 8041 case " $LIBOBJS " in
8a2fc586 8042 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
8043 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8044 ;;
8a2fc586
AK
8045esac
8046
68f2de6d
AK
8047{ echo "$as_me:$LINENO: checking for pow" >&5
8048echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
ad6254c5 8049if test "${ac_cv_func_pow+set}" = set; then
68f2de6d 8050 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8051else
8052 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8a2fc586
AK
8058/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8060#define pow innocuous_pow
8061
ad6254c5
AK
8062/* System header to define __stub macros and hopefully few prototypes,
8063 which can conflict with char pow (); below.
8064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8065 <limits.h> exists even on freestanding compilers. */
8a2fc586 8066
ad6254c5
AK
8067#ifdef __STDC__
8068# include <limits.h>
8069#else
8070# include <assert.h>
8071#endif
8a2fc586
AK
8072
8073#undef pow
8074
7a197a62
AK
8075/* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8078#ifdef __cplusplus
8079extern "C"
ad6254c5 8080#endif
ad6254c5
AK
8081char pow ();
8082/* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
7a197a62 8085#if defined __stub_pow || defined __stub___pow
ad6254c5 8086choke me
ad6254c5
AK
8087#endif
8088
8089int
8090main ()
8091{
7a197a62 8092return pow ();
ad6254c5
AK
8093 ;
8094 return 0;
8095}
8096_ACEOF
8097rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8098if { (ac_try="$ac_link"
8099case "(($ac_try" in
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8102esac
68f2de6d 8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8104 (eval "$ac_link") 2>conftest.er1
ad6254c5 8105 ac_status=$?
8a2fc586
AK
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
68f2de6d 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
68f2de6d
AK
8113 } && test -s conftest$ac_exeext &&
8114 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8115 ac_cv_func_pow=yes
8116else
68f2de6d 8117 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
7a197a62 8120 ac_cv_func_pow=no
ad6254c5 8121fi
7a197a62 8122
25fbec5b 8123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8124 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8125fi
68f2de6d
AK
8126{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8127echo "${ECHO_T}$ac_cv_func_pow" >&6; }
ad6254c5
AK
8128
8129if test $ac_cv_func_pow = no; then
68f2de6d
AK
8130 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
8131echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
ad6254c5 8132if test "${ac_cv_lib_m_pow+set}" = set; then
68f2de6d 8133 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8134else
8135 ac_check_lib_save_LIBS=$LIBS
8136LIBS="-lm $LIBS"
8137cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143
7a197a62
AK
8144/* Override any GCC internal prototype to avoid an error.
8145 Use char because int might match the return type of a GCC
8146 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8147#ifdef __cplusplus
8148extern "C"
8149#endif
ad6254c5
AK
8150char pow ();
8151int
8152main ()
8153{
7a197a62 8154return pow ();
ad6254c5
AK
8155 ;
8156 return 0;
8157}
8158_ACEOF
8159rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8160if { (ac_try="$ac_link"
8161case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164esac
68f2de6d 8165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8166 (eval "$ac_link") 2>conftest.er1
ad6254c5 8167 ac_status=$?
8a2fc586
AK
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
68f2de6d 8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
68f2de6d
AK
8175 } && test -s conftest$ac_exeext &&
8176 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
8177 ac_cv_lib_m_pow=yes
8178else
68f2de6d 8179 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8180sed 's/^/| /' conftest.$ac_ext >&5
8181
7a197a62 8182 ac_cv_lib_m_pow=no
ad6254c5 8183fi
7a197a62 8184
25fbec5b 8185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8186 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8187LIBS=$ac_check_lib_save_LIBS
d0191583 8188fi
68f2de6d
AK
8189{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8190echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
d0191583
JM
8191if test $ac_cv_lib_m_pow = yes; then
8192 POW_LIB=-lm
8193else
68f2de6d
AK
8194 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8195echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 8196fi
72b2cb61 8197
d0191583 8198fi
72b2cb61 8199
ad6254c5
AK
8200fi
8201
ad6254c5 8202
d0191583
JM
8203for ac_func in vprintf
8204do
68f2de6d
AK
8205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8206{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
d0191583 8208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 8209 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8210else
d0191583
JM
8211 cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8219#define $ac_func innocuous_$ac_func
7a197a62 8220
d0191583
JM
8221/* System header to define __stub macros and hopefully few prototypes,
8222 which can conflict with char $ac_func (); below.
8223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224 <limits.h> exists even on freestanding compilers. */
ad6254c5 8225
d0191583
JM
8226#ifdef __STDC__
8227# include <limits.h>
8228#else
8229# include <assert.h>
8230#endif
ad6254c5 8231
d0191583 8232#undef $ac_func
72b2cb61 8233
d0191583
JM
8234/* Override any GCC internal prototype to avoid an error.
8235 Use char because int might match the return type of a GCC
8236 builtin and then its argument prototype would still apply. */
8237#ifdef __cplusplus
8238extern "C"
8239#endif
8240char $ac_func ();
8241/* The GNU C library defines this for functions which it implements
8242 to always fail with ENOSYS. Some functions are actually named
8243 something starting with __ and the normal name is an alias. */
8244#if defined __stub_$ac_func || defined __stub___$ac_func
8245choke me
8246#endif
8247
8248int
8249main ()
8250{
8251return $ac_func ();
8252 ;
8253 return 0;
8254}
72b2cb61 8255_ACEOF
d0191583
JM
8256rm -f conftest.$ac_objext conftest$ac_exeext
8257if { (ac_try="$ac_link"
8258case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261esac
68f2de6d 8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8263 (eval "$ac_link") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
68f2de6d 8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8269 (exit $ac_status); } && {
8270 test -z "$ac_c_werror_flag" ||
8271 test ! -s conftest.err
68f2de6d
AK
8272 } && test -s conftest$ac_exeext &&
8273 $as_test_x conftest$ac_exeext; then
d0191583
JM
8274 eval "$as_ac_var=yes"
8275else
68f2de6d 8276 echo "$as_me: failed program was:" >&5
d0191583 8277sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8278
d0191583 8279 eval "$as_ac_var=no"
ad6254c5
AK
8280fi
8281
d0191583
JM
8282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8283 conftest$ac_exeext conftest.$ac_ext
7a197a62 8284fi
68f2de6d
AK
8285ac_res=`eval echo '${'$as_ac_var'}'`
8286 { echo "$as_me:$LINENO: result: $ac_res" >&5
8287echo "${ECHO_T}$ac_res" >&6; }
8288if test `eval echo '${'$as_ac_var'}'` = yes; then
d0191583 8289 cat >>confdefs.h <<_ACEOF
68f2de6d 8290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 8291_ACEOF
7a197a62 8292
68f2de6d
AK
8293{ echo "$as_me:$LINENO: checking for _doprnt" >&5
8294echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
d0191583 8295if test "${ac_cv_func__doprnt+set}" = set; then
68f2de6d 8296 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 8297else
d0191583
JM
8298 cat >conftest.$ac_ext <<_ACEOF
8299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
8304/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8306#define _doprnt innocuous__doprnt
7a197a62 8307
d0191583
JM
8308/* System header to define __stub macros and hopefully few prototypes,
8309 which can conflict with char _doprnt (); below.
8310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8311 <limits.h> exists even on freestanding compilers. */
ad6254c5 8312
d0191583
JM
8313#ifdef __STDC__
8314# include <limits.h>
8315#else
8316# include <assert.h>
8317#endif
72b2cb61 8318
d0191583
JM
8319#undef _doprnt
8320
8321/* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324#ifdef __cplusplus
8325extern "C"
8326#endif
8327char _doprnt ();
8328/* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331#if defined __stub__doprnt || defined __stub____doprnt
8332choke me
8333#endif
8334
8335int
8336main ()
8337{
8338return _doprnt ();
8339 ;
8340 return 0;
8341}
72b2cb61 8342_ACEOF
d0191583
JM
8343rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (ac_try="$ac_link"
8345case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348esac
68f2de6d 8349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
d0191583
JM
8350 (eval "$ac_link") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
68f2de6d 8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
68f2de6d
AK
8359 } && test -s conftest$ac_exeext &&
8360 $as_test_x conftest$ac_exeext; then
d0191583
JM
8361 ac_cv_func__doprnt=yes
8362else
68f2de6d 8363 echo "$as_me: failed program was:" >&5
d0191583 8364sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 8365
d0191583 8366 ac_cv_func__doprnt=no
ad6254c5
AK
8367fi
8368
d0191583
JM
8369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8370 conftest$ac_exeext conftest.$ac_ext
7a197a62 8371fi
68f2de6d
AK
8372{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8373echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
d0191583 8374if test $ac_cv_func__doprnt = yes; then
7a197a62 8375
d0191583
JM
8376cat >>confdefs.h <<\_ACEOF
8377#define HAVE_DOPRNT 1
8378_ACEOF
ad6254c5 8379
7a197a62
AK
8380fi
8381
d0191583
JM
8382fi
8383done
8b1a3214 8384
ad6254c5 8385
7a197a62 8386
d0191583 8387################################################################################
ad6254c5 8388
ad6254c5
AK
8389
8390################################################################################
68f2de6d
AK
8391{ echo "$as_me:$LINENO: checking file owner" >&5
8392echo $ECHO_N "checking file owner... $ECHO_C" >&6; }
d0191583
JM
8393OWNER="root"
8394
8395
8396# Check whether --with-user was given.
8397if test "${with_user+set}" = set; then
8398 withval=$with_user; OWNER="$withval"
7a197a62
AK
8399fi
8400
68f2de6d
AK
8401{ echo "$as_me:$LINENO: result: $OWNER" >&5
8402echo "${ECHO_T}$OWNER" >&6; }
ad6254c5 8403
d0191583
JM
8404if test x$OWNER != x; then
8405 OWNER="-o $OWNER"
ad6254c5
AK
8406fi
8407
8408################################################################################
68f2de6d
AK
8409{ echo "$as_me:$LINENO: checking group owner" >&5
8410echo $ECHO_N "checking group owner... $ECHO_C" >&6; }
d0191583 8411GROUP="root"
ad6254c5 8412
d0191583
JM
8413# Check whether --with-group was given.
8414if test "${with_group+set}" = set; then
8415 withval=$with_group; GROUP="$withval"
7a197a62
AK
8416fi
8417
68f2de6d
AK
8418{ echo "$as_me:$LINENO: result: $GROUP" >&5
8419echo "${ECHO_T}$GROUP" >&6; }
d0191583
JM
8420
8421if test x$GROUP != x; then
8422 GROUP="-g $GROUP"
8423fi
ad6254c5
AK
8424
8425################################################################################
68f2de6d
AK
8426{ echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8427echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6; }
d0191583
JM
8428# Check whether --enable-lvm1_fallback was given.
8429if test "${enable_lvm1_fallback+set}" = set; then
8430 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8431else
8432 LVM1_FALLBACK=no
7a197a62
AK
8433fi
8434
68f2de6d
AK
8435{ echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8436echo "${ECHO_T}$LVM1_FALLBACK" >&6; }
ad6254c5 8437
d0191583 8438if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
8439
8440cat >>confdefs.h <<\_ACEOF
d0191583 8441#define LVM1_FALLBACK 1
72b2cb61
AK
8442_ACEOF
8443
ad6254c5
AK
8444fi
8445
8446################################################################################
68f2de6d
AK
8447{ echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8448echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6; }
d0191583
JM
8449
8450# Check whether --with-lvm1 was given.
8451if test "${with_lvm1+set}" = set; then
8452 withval=$with_lvm1; LVM1="$withval"
8453else
8454 LVM1="internal"
7a197a62
AK
8455fi
8456
68f2de6d
AK
8457{ echo "$as_me:$LINENO: result: $LVM1" >&5
8458echo "${ECHO_T}$LVM1" >&6; }
ad6254c5 8459
d0191583 8460if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
68f2de6d 8461 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 8462" >&5
68f2de6d 8463echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
8464" >&2;}
8465 { (exit 1); exit 1; }; }
8466fi;
8467
8468if test x$LVM1 = xinternal; then
72b2cb61
AK
8469
8470cat >>confdefs.h <<\_ACEOF
d0191583 8471#define LVM1_INTERNAL 1
72b2cb61
AK
8472_ACEOF
8473
ad6254c5
AK
8474fi
8475
8476################################################################################
68f2de6d
AK
8477{ echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
8478echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6; }
d0191583
JM
8479
8480# Check whether --with-pool was given.
8481if test "${with_pool+set}" = set; then
8482 withval=$with_pool; POOL="$withval"
ad6254c5 8483else
d0191583 8484 POOL="internal"
7a197a62
AK
8485fi
8486
68f2de6d
AK
8487{ echo "$as_me:$LINENO: result: $POOL" >&5
8488echo "${ECHO_T}$POOL" >&6; }
ad6254c5 8489
d0191583 8490if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
68f2de6d 8491 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 8492" >&5
68f2de6d 8493echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
8494" >&2;}
8495 { (exit 1); exit 1; }; }
8496fi;
7a197a62 8497
d0191583
JM
8498if test x$POOL = xinternal; then
8499
8500cat >>confdefs.h <<\_ACEOF
8501#define POOL_INTERNAL 1
8502_ACEOF
8503
8504fi
ad6254c5 8505
06f62ad1 8506################################################################################
68f2de6d
AK
8507{ echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
8508echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6; }
d0191583
JM
8509
8510# Check whether --with-cluster was given.
8511if test "${with_cluster+set}" = set; then
8512 withval=$with_cluster; CLUSTER="$withval"
7a197a62
AK
8513fi
8514
68f2de6d
AK
8515{ echo "$as_me:$LINENO: result: $CLUSTER" >&5
8516echo "${ECHO_T}$CLUSTER" >&6; }
06f62ad1 8517
d0191583 8518if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
68f2de6d 8519 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 8520" >&5
68f2de6d 8521echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
8522" >&2;}
8523 { (exit 1); exit 1; }; }
d0191583 8524fi;
06f62ad1 8525
d0191583 8526if test x$CLUSTER = xinternal; then
72b2cb61
AK
8527
8528cat >>confdefs.h <<\_ACEOF
d0191583 8529#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
8530_ACEOF
8531
15d91f5a 8532fi
ad6254c5
AK
8533
8534################################################################################
68f2de6d
AK
8535{ echo "$as_me:$LINENO: checking whether to include snapshots" >&5
8536echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6; }
ad6254c5 8537
d0191583
JM
8538# Check whether --with-snapshots was given.
8539if test "${with_snapshots+set}" = set; then
8540 withval=$with_snapshots; SNAPSHOTS="$withval"
8541else
8542 SNAPSHOTS="internal"
ad6254c5
AK
8543fi
8544
68f2de6d
AK
8545{ echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
8546echo "${ECHO_T}$SNAPSHOTS" >&6; }
ad6254c5 8547
d0191583 8548if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
68f2de6d 8549 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 8550" >&5
68f2de6d 8551echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
8552" >&2;}
8553 { (exit 1); exit 1; }; }
8554fi;
8555
8556if test x$SNAPSHOTS = xinternal; then
8557
8558cat >>confdefs.h <<\_ACEOF
8559#define SNAPSHOT_INTERNAL 1
8560_ACEOF
ad6254c5 8561
ad6254c5 8562fi
7a197a62 8563
d0191583 8564################################################################################
68f2de6d
AK
8565{ echo "$as_me:$LINENO: checking whether to include mirrors" >&5
8566echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6; }
d0191583
JM
8567
8568# Check whether --with-mirrors was given.
8569if test "${with_mirrors+set}" = set; then
8570 withval=$with_mirrors; MIRRORS="$withval"
8571else
8572 MIRRORS="internal"
ad6254c5 8573fi
ad6254c5 8574
68f2de6d
AK
8575{ echo "$as_me:$LINENO: result: $MIRRORS" >&5
8576echo "${ECHO_T}$MIRRORS" >&6; }
ad6254c5 8577
d0191583 8578if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
68f2de6d 8579 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 8580" >&5
68f2de6d 8581echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
8582" >&2;}
8583 { (exit 1); exit 1; }; }
8584fi;
ad6254c5 8585
d0191583 8586if test x$MIRRORS = xinternal; then
ad6254c5 8587
d0191583
JM
8588cat >>confdefs.h <<\_ACEOF
8589#define MIRRORED_INTERNAL 1
ad6254c5 8590_ACEOF
8a2fc586 8591
d0191583 8592fi
8a2fc586 8593
d0191583 8594################################################################################
68f2de6d
AK
8595{ echo "$as_me:$LINENO: checking whether to enable readline" >&5
8596echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6; }
d0191583
JM
8597# Check whether --enable-readline was given.
8598if test "${enable_readline+set}" = set; then
8599 enableval=$enable_readline; READLINE=$enableval
8600else
06e459df 8601 READLINE=maybe
d0191583 8602fi
8a2fc586 8603
68f2de6d
AK
8604{ echo "$as_me:$LINENO: result: $READLINE" >&5
8605echo "${ECHO_T}$READLINE" >&6; }
8a2fc586 8606
d0191583 8607################################################################################
68f2de6d
AK
8608{ echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
8609echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6; }
d0191583
JM
8610# Check whether --enable-realtime was given.
8611if test "${enable_realtime+set}" = set; then
8612 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 8613fi
ad6254c5 8614
68f2de6d
AK
8615{ echo "$as_me:$LINENO: result: $REALTIME" >&5
8616echo "${ECHO_T}$REALTIME" >&6; }
d0191583
JM
8617
8618################################################################################
68f2de6d
AK
8619{ echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
8620echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6; }
d0191583
JM
8621
8622# Check whether --with-clvmd was given.
8623if test "${with_clvmd+set}" = set; then
8624 withval=$with_clvmd; CLVMD="$withval"
ad6254c5 8625else
d0191583
JM
8626 CLVMD="none"
8627fi
8a2fc586 8628
d0191583
JM
8629if test x$CLVMD = xyes; then
8630 CLVMD=all
8631fi
68f2de6d
AK
8632{ echo "$as_me:$LINENO: result: $CLVMD" >&5
8633echo "${ECHO_T}$CLVMD" >&6; }
8a2fc586 8634
d0191583
JM
8635if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
8636 CLUSTER=internal
8637fi
8a2fc586 8638
d0191583 8639################################################################################
68f2de6d
AK
8640{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8641echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
d0191583
JM
8642# Check whether --enable-debug was given.
8643if test "${enable_debug+set}" = set; then
8644 enableval=$enable_debug; DEBUG=$enableval
8645else
8646 DEBUG=no
8647fi
8a2fc586 8648
68f2de6d
AK
8649{ echo "$as_me:$LINENO: result: $DEBUG" >&5
8650echo "${ECHO_T}$DEBUG" >&6; }
ad6254c5 8651
d0191583
JM
8652if test x$DEBUG = xyes; then
8653 COPTIMISE_FLAG=
fc54be10 8654else
d0191583
JM
8655 CSCOPE_CMD=
8656fi
fc54be10 8657
d0191583 8658################################################################################
68f2de6d
AK
8659{ echo "$as_me:$LINENO: checking for C optimisation flag" >&5
8660echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6; }
d0191583
JM
8661
8662# Check whether --with-optimisation was given.
8663if test "${with_optimisation+set}" = set; then
8664 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
8665fi
8666
68f2de6d
AK
8667{ echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
8668echo "${ECHO_T}$COPTIMISE_FLAG" >&6; }
fddafd51
ZK
8669
8670################################################################################
68f2de6d
AK
8671{ echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
8672echo $ECHO_N "checking whether to gather gcov profiling data... $ECHO_C" >&6; }
fddafd51
ZK
8673# Check whether --enable-profiling was given.
8674if test "${enable_profiling+set}" = set; then
5556819a 8675 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 8676else
5556819a 8677 PROFILING=no
fddafd51
ZK
8678fi
8679
68f2de6d
AK
8680{ echo "$as_me:$LINENO: result: $PROFILING" >&5
8681echo "${ECHO_T}$PROFILING" >&6; }
5556819a
AK
8682
8683if test "x$PROFILING" = xyes; then
8684 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8685 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 8686set dummy lcov; ac_word=$2
68f2de6d
AK
8687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8689if test "${ac_cv_path_LCOV+set}" = set; then
68f2de6d 8690 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8691else
8692 case $LCOV in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8695 ;;
8696 *)
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8706 break 2
8707 fi
8708done
8709done
8710IFS=$as_save_IFS
8711
b145d876 8712 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
fddafd51
ZK
8713 ;;
8714esac
8715fi
8716LCOV=$ac_cv_path_LCOV
8717if test -n "$LCOV"; then
68f2de6d
AK
8718 { echo "$as_me:$LINENO: result: $LCOV" >&5
8719echo "${ECHO_T}$LCOV" >&6; }
fddafd51 8720else
68f2de6d
AK
8721 { echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8723fi
8724
8725
5556819a 8726 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 8727set dummy genhtml; ac_word=$2
68f2de6d
AK
8728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fddafd51 8730if test "${ac_cv_path_GENHTML+set}" = set; then
68f2de6d 8731 echo $ECHO_N "(cached) $ECHO_C" >&6
fddafd51
ZK
8732else
8733 case $GENHTML in
8734 [\\/]* | ?:[\\/]*)
8735 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8736 ;;
8737 *)
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739for as_dir in $PATH
8740do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 8746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
8747 break 2
8748 fi
8749done
8750done
8751IFS=$as_save_IFS
8752
b145d876 8753 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
fddafd51
ZK
8754 ;;
8755esac
8756fi
8757GENHTML=$ac_cv_path_GENHTML
8758if test -n "$GENHTML"; then
68f2de6d
AK
8759 { echo "$as_me:$LINENO: result: $GENHTML" >&5
8760echo "${ECHO_T}$GENHTML" >&6; }
fddafd51 8761else
68f2de6d
AK
8762 { echo "$as_me:$LINENO: result: no" >&5
8763echo "${ECHO_T}no" >&6; }
fddafd51
ZK
8764fi
8765
8766
b145d876 8767 if test "$LCOV" = no -o "$GENHTML" = no ; then
68f2de6d
AK
8768 { { echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
8769echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
8770 { (exit 1); exit 1; }; }
8771 fi
5556819a 8772fi
d0191583
JM
8773
8774################################################################################
68f2de6d
AK
8775{ echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
8776echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6; }
d0191583
JM
8777# Check whether --enable-devmapper was given.
8778if test "${enable_devmapper+set}" = set; then
8779 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
8780fi
8781
68f2de6d
AK
8782{ echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
8783echo "${ECHO_T}$DEVMAPPER" >&6; }
d0191583
JM
8784
8785if test x$DEVMAPPER = xyes; then
ad6254c5
AK
8786
8787cat >>confdefs.h <<\_ACEOF
d0191583 8788#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
8789_ACEOF
8790
8791fi
8792
d0191583 8793################################################################################
68f2de6d
AK
8794{ echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
8795echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6; }
d0191583
JM
8796# Check whether --enable-o_direct was given.
8797if test "${enable_o_direct+set}" = set; then
8798 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 8799fi
ad6254c5 8800
68f2de6d
AK
8801{ echo "$as_me:$LINENO: result: $ODIRECT" >&5
8802echo "${ECHO_T}$ODIRECT" >&6; }
ad6254c5 8803
d0191583 8804if test x$ODIRECT = xyes; then
ad6254c5 8805
d0191583
JM
8806cat >>confdefs.h <<\_ACEOF
8807#define O_DIRECT_SUPPORT 1
8808_ACEOF
ad6254c5 8809
d0191583 8810fi
ad6254c5 8811
d0191583 8812################################################################################
68f2de6d
AK
8813{ echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
8814echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6; }
d0191583
JM
8815# Check whether --enable-cmdlib was given.
8816if test "${enable_cmdlib+set}" = set; then
8817 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 8818else
d0191583
JM
8819 CMDLIB=no
8820fi
8a2fc586 8821
68f2de6d
AK
8822{ echo "$as_me:$LINENO: result: $CMDLIB" >&5
8823echo "${ECHO_T}$CMDLIB" >&6; }
8a2fc586 8824
2a9a80c9 8825test x$CMDLIB = xyes \
d179cc7a
JM
8826 && LVM2CMD_LIB=-llvm2cmd \
8827 || LVM2CMD_LIB=
8828
2a9a80c9 8829
d0191583 8830################################################################################
68f2de6d
AK
8831{ echo "$as_me:$LINENO: checking whether to install fsadm" >&5
8832echo $ECHO_N "checking whether to install fsadm... $ECHO_C" >&6; }
d0191583
JM
8833# Check whether --enable-fsadm was given.
8834if test "${enable_fsadm+set}" = set; then
8835 enableval=$enable_fsadm; FSADM=$enableval
8836fi
8a2fc586 8837
68f2de6d
AK
8838{ echo "$as_me:$LINENO: result: $FSADM" >&5
8839echo "${ECHO_T}$FSADM" >&6; }
8a2fc586 8840
d0191583 8841################################################################################
68f2de6d
AK
8842{ echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
8843echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6; }
d0191583
JM
8844# Check whether --enable-dmeventd was given.
8845if test "${enable_dmeventd+set}" = set; then
8846 enableval=$enable_dmeventd; DMEVENTD=$enableval
8847fi
ad6254c5 8848
68f2de6d
AK
8849{ echo "$as_me:$LINENO: result: $DMEVENTD" >&5
8850echo "${ECHO_T}$DMEVENTD" >&6; }
ad6254c5 8851
2a9a80c9
PR
8852if test x$DMEVENTD = xyes; then
8853 if test x$MIRRORS != xinternal; then
68f2de6d 8854 { { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8855 " >&5
68f2de6d 8856echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 8857 " >&2;}
d0191583 8858 { (exit 1); exit 1; }; }
2a9a80c9
PR
8859 fi
8860 if test x$CMDLIB = xno; then
68f2de6d 8861 { { echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 8862 " >&5
68f2de6d 8863echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
8864 " >&2;}
8865 { (exit 1); exit 1; }; }
8866 fi
ad6254c5 8867fi
7a197a62 8868
d0191583
JM
8869if test x$DMEVENTD = xyes; then
8870
8871cat >>confdefs.h <<\_ACEOF
8872#define DMEVENTD 1
ad6254c5
AK
8873_ACEOF
8874
ad6254c5 8875fi
d0191583
JM
8876################################################################################
8877if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8878 then exec_prefix="";
8879fi;
ad6254c5
AK
8880
8881################################################################################
06e459df 8882if test x$READLINE != xno; then
68f2de6d
AK
8883 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8884echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
ad6254c5 8885if test "${ac_cv_search_tgetent+set}" = set; then
68f2de6d 8886 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8887else
8888 ac_func_search_save_LIBS=$LIBS
ad6254c5 8889cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h. */
8895
7a197a62
AK
8896/* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8899#ifdef __cplusplus
8900extern "C"
8901#endif
ad6254c5
AK
8902char tgetent ();
8903int
8904main ()
8905{
7a197a62 8906return tgetent ();
ad6254c5
AK
8907 ;
8908 return 0;
8909}
8910_ACEOF
7a197a62
AK
8911for ac_lib in '' ncurses curses termcap termlib; do
8912 if test -z "$ac_lib"; then
8913 ac_res="none required"
8914 else
8915 ac_res=-l$ac_lib
8916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8917 fi
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919if { (ac_try="$ac_link"
8920case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923esac
68f2de6d 8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 8925 (eval "$ac_link") 2>conftest.er1
ad6254c5 8926 ac_status=$?
8a2fc586
AK
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
68f2de6d 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
68f2de6d
AK
8934 } && test -s conftest$ac_exeext &&
8935 $as_test_x conftest$ac_exeext; then
7a197a62 8936 ac_cv_search_tgetent=$ac_res
ad6254c5 8937else
68f2de6d 8938 echo "$as_me: failed program was:" >&5
ad6254c5
AK
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
ad6254c5 8941
7a197a62 8942fi
ad6254c5 8943
25fbec5b 8944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7a197a62
AK
8945 conftest$ac_exeext
8946 if test "${ac_cv_search_tgetent+set}" = set; then
8947 break
ad6254c5 8948fi
7a197a62
AK
8949done
8950if test "${ac_cv_search_tgetent+set}" = set; then
8951 :
8952else
8953 ac_cv_search_tgetent=no
ad6254c5 8954fi
7a197a62 8955rm conftest.$ac_ext
ad6254c5
AK
8956LIBS=$ac_func_search_save_LIBS
8957fi
68f2de6d
AK
8958{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8959echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
7a197a62
AK
8960ac_res=$ac_cv_search_tgetent
8961if test "$ac_res" != no; then
8962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
06e459df 8963 tg_found=yes
ad6254c5 8964else
06e459df
JM
8965 tg_found=no
8966fi
8967
8968 test x$READLINE:$tg_found = xyes:no &&
68f2de6d 8969 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
ad6254c5
AK
8970--enable-readline option (which is enabled by default). Either disable readline
8971support with --disable-readline or download and install termcap from:
8972 ftp.gnu.org/gnu/termcap
8973Note: if you are using precompiled packages you will also need the development
8974 package as well (which may be called termcap-devel or something similar).
8975Note: (n)curses also seems to work as a substitute for termcap. This was
8976 not found either - but you could try installing that as well.
8977" >&5
68f2de6d 8978echo "$as_me: error: termcap could not be found which is required for the
ad6254c5
AK
8979--enable-readline option (which is enabled by default). Either disable readline
8980support with --disable-readline or download and install termcap from:
8981 ftp.gnu.org/gnu/termcap
8982Note: if you are using precompiled packages you will also need the development
8983 package as well (which may be called termcap-devel or something similar).
8984Note: (n)curses also seems to work as a substitute for termcap. This was
8985 not found either - but you could try installing that as well.
8986" >&2;}
8987 { (exit 1); exit 1; }; }
ad6254c5
AK
8988fi
8989
8990################################################################################
68f2de6d
AK
8991{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8992echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
ad6254c5 8993if test "${ac_cv_lib_dl_dlopen+set}" = set; then
68f2de6d 8994 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
8995else
8996 ac_check_lib_save_LIBS=$LIBS
8997LIBS="-ldl $LIBS"
8998cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8999/* confdefs.h. */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h. */
9004
7a197a62
AK
9005/* Override any GCC internal prototype to avoid an error.
9006 Use char because int might match the return type of a GCC
9007 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9008#ifdef __cplusplus
9009extern "C"
9010#endif
ad6254c5
AK
9011char dlopen ();
9012int
9013main ()
9014{
7a197a62 9015return dlopen ();
ad6254c5
AK
9016 ;
9017 return 0;
9018}
9019_ACEOF
9020rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9021if { (ac_try="$ac_link"
9022case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
68f2de6d 9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9027 (eval "$ac_link") 2>conftest.er1
ad6254c5 9028 ac_status=$?
8a2fc586
AK
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
68f2de6d 9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
68f2de6d
AK
9036 } && test -s conftest$ac_exeext &&
9037 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9038 ac_cv_lib_dl_dlopen=yes
9039else
68f2de6d 9040 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
7a197a62 9043 ac_cv_lib_dl_dlopen=no
ad6254c5 9044fi
7a197a62 9045
25fbec5b 9046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9047 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9048LIBS=$ac_check_lib_save_LIBS
9049fi
68f2de6d
AK
9050{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9051echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
ad6254c5
AK
9052if test $ac_cv_lib_dl_dlopen = yes; then
9053 HAVE_LIBDL=yes
9054else
9055 HAVE_LIBDL=no
9056fi
9057
9058
7e9e9502 9059if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
9060
9061cat >>confdefs.h <<\_ACEOF
9062#define HAVE_LIBDL 1
9063_ACEOF
9064
ad6254c5
AK
9065 LIBS="-ldl $LIBS"
9066else
9067 HAVE_LIBDL=no
9068fi
9069
9070################################################################################
9071if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9072 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9073 \) -a "x$STATIC_LINK" = xyes ];
68f2de6d 9074 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 9075" >&5
68f2de6d 9076echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
9077" >&2;}
9078 { (exit 1); exit 1; }; }
9079fi
9080
d0191583 9081################################################################################
68f2de6d
AK
9082{ echo "$as_me:$LINENO: checking whether to use static linking" >&5
9083echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6; }
d0191583
JM
9084# Check whether --enable-static_link was given.
9085if test "${enable_static_link+set}" = set; then
9086 enableval=$enable_static_link; STATIC_LINK=$enableval
9087else
9088 STATIC_LINK=no
9089fi
9090
68f2de6d
AK
9091{ echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9092echo "${ECHO_T}$STATIC_LINK" >&6; }
d0191583
JM
9093
9094################################################################################
68f2de6d
AK
9095{ echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
9096echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6; }
d0191583
JM
9097# Check whether --enable-selinux was given.
9098if test "${enable_selinux+set}" = set; then
9099 enableval=$enable_selinux; SELINUX=$enableval
9100fi
9101
68f2de6d
AK
9102{ echo "$as_me:$LINENO: result: $SELINUX" >&5
9103echo "${ECHO_T}$SELINUX" >&6; }
d0191583 9104
ad6254c5
AK
9105################################################################################
9106if test x$SELINUX = xyes; then
68f2de6d
AK
9107 { echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
9108echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6; }
8a2fc586 9109if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
68f2de6d 9110 echo $ECHO_N "(cached) $ECHO_C" >&6
8a2fc586
AK
9111else
9112 ac_check_lib_save_LIBS=$LIBS
9113LIBS="-lsepol $LIBS"
9114cat >conftest.$ac_ext <<_ACEOF
9115/* confdefs.h. */
9116_ACEOF
9117cat confdefs.h >>conftest.$ac_ext
9118cat >>conftest.$ac_ext <<_ACEOF
9119/* end confdefs.h. */
9120
7a197a62
AK
9121/* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
8a2fc586
AK
9124#ifdef __cplusplus
9125extern "C"
9126#endif
8a2fc586
AK
9127char sepol_check_context ();
9128int
9129main ()
9130{
7a197a62 9131return sepol_check_context ();
8a2fc586
AK
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9137if { (ac_try="$ac_link"
9138case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141esac
68f2de6d 9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9143 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
68f2de6d 9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
68f2de6d
AK
9152 } && test -s conftest$ac_exeext &&
9153 $as_test_x conftest$ac_exeext; then
8a2fc586
AK
9154 ac_cv_lib_sepol_sepol_check_context=yes
9155else
68f2de6d 9156 echo "$as_me: failed program was:" >&5
8a2fc586
AK
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
7a197a62 9159 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 9160fi
7a197a62 9161
25fbec5b 9162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
9163 conftest$ac_exeext conftest.$ac_ext
9164LIBS=$ac_check_lib_save_LIBS
9165fi
68f2de6d
AK
9166{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9167echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6; }
8a2fc586
AK
9168if test $ac_cv_lib_sepol_sepol_check_context = yes; then
9169 HAVE_SEPOL=yes
9170else
9171 HAVE_SEPOL=no
9172fi
9173
8a2fc586
AK
9174
9175 if test x$HAVE_SEPOL = xyes; then
d0191583
JM
9176
9177cat >>confdefs.h <<\_ACEOF
9178#define HAVE_SEPOL 1
9179_ACEOF
9180
8a2fc586
AK
9181 LIBS="-lsepol $LIBS"
9182 fi
9183
68f2de6d
AK
9184 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
9185echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
ad6254c5 9186if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
68f2de6d 9187 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9188else
9189 ac_check_lib_save_LIBS=$LIBS
9190LIBS="-lselinux $LIBS"
9191cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197
7a197a62
AK
9198/* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9201#ifdef __cplusplus
9202extern "C"
9203#endif
ad6254c5
AK
9204char is_selinux_enabled ();
9205int
9206main ()
9207{
7a197a62 9208return is_selinux_enabled ();
ad6254c5
AK
9209 ;
9210 return 0;
9211}
9212_ACEOF
9213rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9214if { (ac_try="$ac_link"
9215case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218esac
68f2de6d 9219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9220 (eval "$ac_link") 2>conftest.er1
ad6254c5 9221 ac_status=$?
8a2fc586
AK
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
68f2de6d 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
68f2de6d
AK
9229 } && test -s conftest$ac_exeext &&
9230 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9231 ac_cv_lib_selinux_is_selinux_enabled=yes
9232else
68f2de6d 9233 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9234sed 's/^/| /' conftest.$ac_ext >&5
9235
7a197a62 9236 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 9237fi
7a197a62 9238
25fbec5b 9239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9240 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9241LIBS=$ac_check_lib_save_LIBS
9242fi
68f2de6d
AK
9243{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9244echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
ad6254c5
AK
9245if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
9246 HAVE_SELINUX=yes
9247else
9248 HAVE_SELINUX=no
9249fi
9250
ad6254c5
AK
9251
9252 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
9253
9254cat >>confdefs.h <<\_ACEOF
9255#define HAVE_SELINUX 1
9256_ACEOF
9257
ad6254c5
AK
9258 LIBS="-lselinux $LIBS"
9259 else
68f2de6d
AK
9260 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
9261echo "$as_me: WARNING: Disabling selinux" >&2;}
66e941e8
JM
9262 fi
9263
d0191583 9264 # With --enable-static_link and selinux enabled, linking
66e941e8
JM
9265 # fails on at least Debian unstable due to unsatisfied references
9266 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
9267 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
9268 lvm_saved_libs=$LIBS
9269 LIBS="$LIBS -static"
68f2de6d
AK
9270 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9271echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
66e941e8 9272if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
68f2de6d 9273 echo $ECHO_N "(cached) $ECHO_C" >&6
66e941e8
JM
9274else
9275 ac_func_search_save_LIBS=$LIBS
9276cat >conftest.$ac_ext <<_ACEOF
9277/* confdefs.h. */
9278_ACEOF
9279cat confdefs.h >>conftest.$ac_ext
9280cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h. */
9282
9283/* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286#ifdef __cplusplus
9287extern "C"
9288#endif
9289char pthread_mutex_lock ();
9290int
9291main ()
9292{
9293return pthread_mutex_lock ();
9294 ;
9295 return 0;
9296}
9297_ACEOF
9298for ac_lib in '' pthread; do
9299 if test -z "$ac_lib"; then
9300 ac_res="none required"
9301 else
9302 ac_res=-l$ac_lib
9303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9304 fi
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306if { (ac_try="$ac_link"
9307case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310esac
68f2de6d 9311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66e941e8
JM
9312 (eval "$ac_link") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
68f2de6d 9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
68f2de6d
AK
9321 } && test -s conftest$ac_exeext &&
9322 $as_test_x conftest$ac_exeext; then
66e941e8
JM
9323 ac_cv_search_pthread_mutex_lock=$ac_res
9324else
68f2de6d 9325 echo "$as_me: failed program was:" >&5
66e941e8
JM
9326sed 's/^/| /' conftest.$ac_ext >&5
9327
9328
9329fi
9330
25fbec5b 9331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66e941e8
JM
9332 conftest$ac_exeext
9333 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9334 break
9335fi
9336done
9337if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9338 :
9339else
9340 ac_cv_search_pthread_mutex_lock=no
9341fi
9342rm conftest.$ac_ext
9343LIBS=$ac_func_search_save_LIBS
9344fi
68f2de6d
AK
9345{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9346echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
66e941e8
JM
9347ac_res=$ac_cv_search_pthread_mutex_lock
9348if test "$ac_res" != no; then
9349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9350 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
9351 LIB_PTHREAD=-lpthread
9352fi
9353
9354 LIBS=$lvm_saved_libs
ad6254c5
AK
9355 fi
9356fi
9357
8b1a3214
AK
9358################################################################################
9359if test x$REALTIME = xyes; then
68f2de6d
AK
9360 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9361echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
8b1a3214 9362if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
68f2de6d 9363 echo $ECHO_N "(cached) $ECHO_C" >&6
8b1a3214
AK
9364else
9365 ac_check_lib_save_LIBS=$LIBS
9366LIBS="-lrt $LIBS"
9367cat >conftest.$ac_ext <<_ACEOF
9368/* confdefs.h. */
9369_ACEOF
9370cat confdefs.h >>conftest.$ac_ext
9371cat >>conftest.$ac_ext <<_ACEOF
9372/* end confdefs.h. */
9373
7a197a62
AK
9374/* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
8b1a3214
AK
9377#ifdef __cplusplus
9378extern "C"
9379#endif
8b1a3214
AK
9380char clock_gettime ();
9381int
9382main ()
9383{
7a197a62 9384return clock_gettime ();
8b1a3214
AK
9385 ;
9386 return 0;
9387}
9388_ACEOF
9389rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9390if { (ac_try="$ac_link"
9391case "(($ac_try" in
9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9393 *) ac_try_echo=$ac_try;;
9394esac
68f2de6d 9395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9396 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
68f2de6d 9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9402 (exit $ac_status); } && {
9403 test -z "$ac_c_werror_flag" ||
9404 test ! -s conftest.err
68f2de6d
AK
9405 } && test -s conftest$ac_exeext &&
9406 $as_test_x conftest$ac_exeext; then
8b1a3214
AK
9407 ac_cv_lib_rt_clock_gettime=yes
9408else
68f2de6d 9409 echo "$as_me: failed program was:" >&5
8b1a3214
AK
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
7a197a62 9412 ac_cv_lib_rt_clock_gettime=no
8b1a3214 9413fi
7a197a62 9414
25fbec5b 9415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
9416 conftest$ac_exeext conftest.$ac_ext
9417LIBS=$ac_check_lib_save_LIBS
9418fi
68f2de6d
AK
9419{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9420echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
8b1a3214
AK
9421if test $ac_cv_lib_rt_clock_gettime = yes; then
9422 HAVE_REALTIME=yes
9423else
9424 HAVE_REALTIME=no
9425fi
9426
8b1a3214
AK
9427
9428 if test x$HAVE_REALTIME = xyes; then
9429
9430cat >>confdefs.h <<\_ACEOF
9431#define HAVE_REALTIME 1
9432_ACEOF
9433
9434 LIBS="-lrt $LIBS"
9435 else
68f2de6d
AK
9436 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
9437echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
9438 fi
9439fi
9440
ad6254c5
AK
9441################################################################################
9442
9443for ac_header in getopt.h
9444do
68f2de6d 9445as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
9447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9448echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9450 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9451fi
68f2de6d
AK
9452ac_res=`eval echo '${'$as_ac_Header'}'`
9453 { echo "$as_me:$LINENO: result: $ac_res" >&5
9454echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9455else
9456 # Is the header compilable?
68f2de6d
AK
9457{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9458echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9459cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9460/* confdefs.h. */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h. */
9465$ac_includes_default
9466#include <$ac_header>
9467_ACEOF
9468rm -f conftest.$ac_objext
7a197a62
AK
9469if { (ac_try="$ac_compile"
9470case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473esac
68f2de6d 9474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9475 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9476 ac_status=$?
8a2fc586
AK
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
68f2de6d 9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9485 ac_header_compiler=yes
9486else
68f2de6d 9487 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9488sed 's/^/| /' conftest.$ac_ext >&5
9489
7a197a62 9490 ac_header_compiler=no
ad6254c5 9491fi
7a197a62
AK
9492
9493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
9494{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9496
9497# Is the header present?
68f2de6d
AK
9498{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 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#include <$ac_header>
9507_ACEOF
7a197a62
AK
9508if { (ac_try="$ac_cpp conftest.$ac_ext"
9509case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512esac
68f2de6d 9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
68f2de6d 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9520 (exit $ac_status); } >/dev/null && {
9521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 }; then
ad6254c5
AK
9524 ac_header_preproc=yes
9525else
68f2de6d 9526 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9527sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_header_preproc=no
9530fi
7a197a62 9531
ad6254c5 9532rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
9533{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
9535
9536# So? What about this header?
8a2fc586
AK
9537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9538 yes:no: )
68f2de6d
AK
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9543 ac_header_preproc=yes
ad6254c5 9544 ;;
8a2fc586 9545 no:yes:* )
68f2de6d
AK
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9558
ad6254c5
AK
9559 ;;
9560esac
68f2de6d
AK
9561{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9564 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9565else
8a2fc586 9566 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9567fi
68f2de6d
AK
9568ac_res=`eval echo '${'$as_ac_Header'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9571
9572fi
68f2de6d 9573if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 9574 cat >>confdefs.h <<_ACEOF
68f2de6d 9575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9576_ACEOF
72b2cb61
AK
9577
9578cat >>confdefs.h <<\_ACEOF
9579#define HAVE_GETOPTLONG 1
9580_ACEOF
9581
ad6254c5
AK
9582fi
9583
9584done
9585
9586
9587################################################################################
06e459df 9588if test x$READLINE != xno; then
bc1024f8
JM
9589 rl_found=yes
9590
68f2de6d
AK
9591{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
9592echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
ad6254c5 9593if test "${ac_cv_lib_readline_readline+set}" = set; then
68f2de6d 9594 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9595else
9596 ac_check_lib_save_LIBS=$LIBS
9597LIBS="-lreadline $LIBS"
9598cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
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"
9610#endif
ad6254c5
AK
9611char readline ();
9612int
9613main ()
9614{
7a197a62 9615return readline ();
ad6254c5
AK
9616 ;
9617 return 0;
9618}
9619_ACEOF
9620rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9621if { (ac_try="$ac_link"
9622case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625esac
68f2de6d 9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9627 (eval "$ac_link") 2>conftest.er1
ad6254c5 9628 ac_status=$?
8a2fc586
AK
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
68f2de6d 9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
68f2de6d
AK
9636 } && test -s conftest$ac_exeext &&
9637 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
9638 ac_cv_lib_readline_readline=yes
9639else
68f2de6d 9640 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9641sed 's/^/| /' conftest.$ac_ext >&5
9642
7a197a62 9643 ac_cv_lib_readline_readline=no
ad6254c5 9644fi
7a197a62 9645
25fbec5b 9646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9647 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9648LIBS=$ac_check_lib_save_LIBS
9649fi
68f2de6d
AK
9650{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
9651echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
ad6254c5 9652if test $ac_cv_lib_readline_readline = yes; then
bc1024f8
JM
9653 cat >>confdefs.h <<_ACEOF
9654#define HAVE_LIBREADLINE 1
9655_ACEOF
9656
9657 LIBS="-lreadline $LIBS"
9658
ad6254c5 9659else
06e459df
JM
9660 rl_found=no
9661fi
9662
9663 test x$READLINE:$rl_found = xyes:no &&
68f2de6d 9664 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9665--enable-readline option (which is enabled by default). Either disable readline
9666support with --disable-readline or download and install readline from:
9667 ftp.gnu.org/gnu/readline
9668Note: if you are using precompiled packages you will also need the development
9669package as well (which may be called readline-devel or something similar).
9670" >&5
68f2de6d 9671echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
9672--enable-readline option (which is enabled by default). Either disable readline
9673support with --disable-readline or download and install readline from:
9674 ftp.gnu.org/gnu/readline
9675Note: if you are using precompiled packages you will also need the development
9676package as well (which may be called readline-devel or something similar).
9677" >&2;}
9678 { (exit 1); exit 1; }; }
06e459df 9679 if test $rl_found = yes; then
bc1024f8
JM
9680
9681for ac_func in rl_completion_matches
9682do
68f2de6d
AK
9683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9684{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
bc1024f8 9686if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9687 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9688else
9689 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h. */
bc1024f8 9695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 9697#define $ac_func innocuous_$ac_func
8a2fc586 9698
ad6254c5 9699/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 9700 which can conflict with char $ac_func (); below.
ad6254c5
AK
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
8a2fc586 9703
ad6254c5
AK
9704#ifdef __STDC__
9705# include <limits.h>
9706#else
9707# include <assert.h>
9708#endif
8a2fc586 9709
bc1024f8 9710#undef $ac_func
8a2fc586 9711
7a197a62
AK
9712/* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9715#ifdef __cplusplus
9716extern "C"
ad6254c5 9717#endif
bc1024f8 9718char $ac_func ();
ad6254c5
AK
9719/* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
bc1024f8 9722#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9723choke me
ad6254c5
AK
9724#endif
9725
9726int
9727main ()
9728{
bc1024f8 9729return $ac_func ();
ad6254c5
AK
9730 ;
9731 return 0;
9732}
9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9735if { (ac_try="$ac_link"
9736case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739esac
68f2de6d 9740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9741 (eval "$ac_link") 2>conftest.er1
ad6254c5 9742 ac_status=$?
8a2fc586
AK
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
68f2de6d 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
68f2de6d
AK
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
bc1024f8 9752 eval "$as_ac_var=yes"
ad6254c5 9753else
68f2de6d 9754 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
bc1024f8 9757 eval "$as_ac_var=no"
ad6254c5 9758fi
7a197a62 9759
25fbec5b 9760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9761 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9762fi
68f2de6d
AK
9763ac_res=`eval echo '${'$as_ac_var'}'`
9764 { echo "$as_me:$LINENO: result: $ac_res" >&5
9765echo "${ECHO_T}$ac_res" >&6; }
9766if test `eval echo '${'$as_ac_var'}'` = yes; then
bc1024f8 9767 cat >>confdefs.h <<_ACEOF
68f2de6d 9768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
9769_ACEOF
9770
9771fi
bc1024f8 9772done
ad6254c5 9773
d179cc7a
JM
9774
9775cat >>confdefs.h <<\_ACEOF
9776#define READLINE_SUPPORT 1
9777_ACEOF
9778
06e459df 9779 fi
ad6254c5
AK
9780fi
9781
9782################################################################################
68f2de6d
AK
9783{ echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
9784echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6; }
7a197a62 9785# Check whether --enable-nls was given.
ad6254c5 9786if test "${enable_nls+set}" = set; then
7a197a62 9787 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
9788else
9789 INTL=no
7a197a62
AK
9790fi
9791
68f2de6d
AK
9792{ echo "$as_me:$LINENO: result: $INTL" >&5
9793echo "${ECHO_T}$INTL" >&6; }
ad6254c5
AK
9794
9795if test x$INTL = xyes; then
9796 INTL_PACKAGE="lvm2"
9797 # Extract the first word of "msgfmt", so it can be a program name with args.
9798set dummy msgfmt; ac_word=$2
68f2de6d
AK
9799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ad6254c5 9801if test "${ac_cv_path_MSGFMT+set}" = set; then
68f2de6d 9802 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5
AK
9803else
9804 case $MSGFMT in
9805 [\\/]* | ?:[\\/]*)
9806 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9807 ;;
9808 *)
9809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9810for as_dir in $PATH
9811do
9812 IFS=$as_save_IFS
9813 test -z "$as_dir" && as_dir=.
9814 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 9816 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 9817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
9818 break 2
9819 fi
9820done
9821done
7a197a62 9822IFS=$as_save_IFS
ad6254c5
AK
9823
9824 ;;
9825esac
9826fi
9827MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 9828if test -n "$MSGFMT"; then
68f2de6d
AK
9829 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9830echo "${ECHO_T}$MSGFMT" >&6; }
ad6254c5 9831else
68f2de6d
AK
9832 { echo "$as_me:$LINENO: result: no" >&5
9833echo "${ECHO_T}no" >&6; }
ad6254c5
AK
9834fi
9835
7a197a62 9836
ad6254c5 9837 if [ "x$MSGFMT" == x ];
68f2de6d 9838 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 9839 " >&5
68f2de6d 9840echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
9841 " >&2;}
9842 { (exit 1); exit 1; }; }
9843 fi;
9844
9845
7a197a62 9846# Check whether --with-localedir was given.
ad6254c5 9847if test "${with_localedir+set}" = set; then
7a197a62 9848 withval=$with_localedir; LOCALEDIR="$withval"
ad6254c5
AK
9849else
9850 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
9851fi
9852
ad6254c5
AK
9853fi
9854
9855################################################################################
9856
7a197a62 9857# Check whether --with-confdir was given.
ad6254c5 9858if test "${with_confdir+set}" = set; then
7a197a62 9859 withval=$with_confdir; CONFDIR="$withval"
ad6254c5
AK
9860else
9861 CONFDIR='/etc'
7a197a62
AK
9862fi
9863
ad6254c5
AK
9864
9865
7a197a62 9866# Check whether --with-staticdir was given.
ad6254c5 9867if test "${with_staticdir+set}" = set; then
7a197a62 9868 withval=$with_staticdir; STATICDIR="$withval"
ad6254c5
AK
9869else
9870 STATICDIR='${exec_prefix}/sbin'
7a197a62 9871fi
ad6254c5 9872
33f732c5 9873
7a197a62
AK
9874
9875# Check whether --with-dmdir was given.
33f732c5 9876if test "${with_dmdir+set}" = set; then
7a197a62 9877 withval=$with_dmdir; DMDIR="$withval" CPPFLAGS="$CPPFLAGS -I$DMDIR/include"
33f732c5
AK
9878else
9879 DMDIR=
7a197a62
AK
9880fi
9881
33f732c5 9882
09339e2b 9883# Convert a relative dir name to absolute.
25fbec5b
AK
9884case $DMDIR in
9885 /*) ;;
9886 *) DMDIR="`pwd`/$DMDIR" ;;
09339e2b
JM
9887esac
9888
68f2de6d
AK
9889
9890# Check whether --with-usrlibdir was given.
9891if test "${with_usrlibdir+set}" = set; then
9892 withval=$with_usrlibdir; usrlibdir="$withval"
9893else
9894 usrlibdir='${prefix}/lib'
9895fi
9896
9897
9898
9899# Check whether --with-usrsbindir was given.
9900if test "${with_usrsbindir+set}" = set; then
9901 withval=$with_usrsbindir; usrsbindir="$withval"
9902else
9903 usrsbindir='${prefix}/sbin'
9904fi
9905
9906
ad6254c5
AK
9907################################################################################
9908if test x$READLINE = xyes; then
9909
9910
9911for ac_header in readline/readline.h readline/history.h
9912do
68f2de6d 9913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
9915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 9917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 9918 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 9919fi
68f2de6d
AK
9920ac_res=`eval echo '${'$as_ac_Header'}'`
9921 { echo "$as_me:$LINENO: result: $ac_res" >&5
9922echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
9923else
9924 # Is the header compilable?
68f2de6d
AK
9925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 9927cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9928/* confdefs.h. */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
9932/* end confdefs.h. */
9933$ac_includes_default
9934#include <$ac_header>
9935_ACEOF
9936rm -f conftest.$ac_objext
7a197a62
AK
9937if { (ac_try="$ac_compile"
9938case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941esac
68f2de6d 9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9943 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9944 ac_status=$?
8a2fc586
AK
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
68f2de6d 9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9953 ac_header_compiler=yes
9954else
68f2de6d 9955 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9956sed 's/^/| /' conftest.$ac_ext >&5
9957
7a197a62 9958 ac_header_compiler=no
ad6254c5 9959fi
7a197a62
AK
9960
9961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
9962{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9963echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
9964
9965# Is the header present?
68f2de6d
AK
9966{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 9968cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9969/* confdefs.h. */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
9973/* end confdefs.h. */
9974#include <$ac_header>
9975_ACEOF
7a197a62
AK
9976if { (ac_try="$ac_cpp conftest.$ac_ext"
9977case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980esac
68f2de6d 9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 9982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
68f2de6d 9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9988 (exit $ac_status); } >/dev/null && {
9989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 }; then
ad6254c5
AK
9992 ac_header_preproc=yes
9993else
68f2de6d 9994 echo "$as_me: failed program was:" >&5
ad6254c5
AK
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_header_preproc=no
9998fi
7a197a62 9999
ad6254c5 10000rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10001{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10002echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10003
10004# So? What about this header?
8a2fc586
AK
10005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10006 yes:no: )
68f2de6d
AK
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10010echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10011 ac_header_preproc=yes
ad6254c5 10012 ;;
8a2fc586 10013 no:yes:* )
68f2de6d
AK
10014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10019echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10021echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10025echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10026
ad6254c5
AK
10027 ;;
10028esac
68f2de6d
AK
10029{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10032 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10033else
8a2fc586 10034 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10035fi
68f2de6d
AK
10036ac_res=`eval echo '${'$as_ac_Header'}'`
10037 { echo "$as_me:$LINENO: result: $ac_res" >&5
10038echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10039
10040fi
68f2de6d 10041if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10042 cat >>confdefs.h <<_ACEOF
68f2de6d 10043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10044_ACEOF
10045
10046else
68f2de6d
AK
10047 { { echo "$as_me:$LINENO: error: bailing out" >&5
10048echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10049 { (exit 1); exit 1; }; }
10050fi
10051
10052done
10053
10054fi
10055
5c7fc7c4 10056if test x$CLVMD != xnone; then
ad6254c5
AK
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067for 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
10068do
68f2de6d 10069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10074 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10075fi
68f2de6d
AK
10076ac_res=`eval echo '${'$as_ac_Header'}'`
10077 { echo "$as_me:$LINENO: result: $ac_res" >&5
10078echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10079else
10080 # Is the header compilable?
68f2de6d
AK
10081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089$ac_includes_default
10090#include <$ac_header>
10091_ACEOF
10092rm -f conftest.$ac_objext
7a197a62
AK
10093if { (ac_try="$ac_compile"
10094case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
68f2de6d 10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10099 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10100 ac_status=$?
8a2fc586
AK
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
68f2de6d 10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10109 ac_header_compiler=yes
10110else
68f2de6d 10111 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
7a197a62 10114 ac_header_compiler=no
ad6254c5 10115fi
7a197a62
AK
10116
10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10118{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10120
10121# Is the header present?
68f2de6d
AK
10122{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10124cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10125/* confdefs.h. */
10126_ACEOF
10127cat confdefs.h >>conftest.$ac_ext
10128cat >>conftest.$ac_ext <<_ACEOF
10129/* end confdefs.h. */
10130#include <$ac_header>
10131_ACEOF
7a197a62
AK
10132if { (ac_try="$ac_cpp conftest.$ac_ext"
10133case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136esac
68f2de6d 10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
68f2de6d 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10144 (exit $ac_status); } >/dev/null && {
10145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 }; then
ad6254c5
AK
10148 ac_header_preproc=yes
10149else
68f2de6d 10150 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 ac_header_preproc=no
10154fi
7a197a62 10155
ad6254c5 10156rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10158echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10159
10160# So? What about this header?
8a2fc586
AK
10161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10162 yes:no: )
68f2de6d
AK
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10167 ac_header_preproc=yes
ad6254c5 10168 ;;
8a2fc586 10169 no:yes:* )
68f2de6d
AK
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10182
ad6254c5
AK
10183 ;;
10184esac
68f2de6d
AK
10185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10188 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10189else
8a2fc586 10190 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10191fi
68f2de6d
AK
10192ac_res=`eval echo '${'$as_ac_Header'}'`
10193 { echo "$as_me:$LINENO: result: $ac_res" >&5
10194echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10195
10196fi
68f2de6d 10197if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10198 cat >>confdefs.h <<_ACEOF
68f2de6d 10199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10200_ACEOF
10201
10202else
68f2de6d
AK
10203 { { echo "$as_me:$LINENO: error: bailing out" >&5
10204echo "$as_me: error: bailing out" >&2;}
ad6254c5 10205 { (exit 1); exit 1; }; }
795ca3e5
AK
10206fi
10207
ad6254c5
AK
10208done
10209
10210
795ca3e5 10211
8106cdd5 10212
ad6254c5
AK
10213
10214
10215for ac_func in dup2 getmntent memmove select socket
10216do
68f2de6d
AK
10217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10221 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10222else
ad6254c5 10223 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
8a2fc586
AK
10229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231#define $ac_func innocuous_$ac_func
10232
795ca3e5 10233/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
10234 which can conflict with char $ac_func (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
8a2fc586 10237
ad6254c5
AK
10238#ifdef __STDC__
10239# include <limits.h>
10240#else
10241# include <assert.h>
10242#endif
8a2fc586
AK
10243
10244#undef $ac_func
10245
7a197a62
AK
10246/* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10249#ifdef __cplusplus
10250extern "C"
ad6254c5 10251#endif
ad6254c5 10252char $ac_func ();
795ca3e5
AK
10253/* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
7a197a62 10256#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 10257choke me
795ca3e5
AK
10258#endif
10259
ad6254c5
AK
10260int
10261main ()
10262{
7a197a62 10263return $ac_func ();
ad6254c5
AK
10264 ;
10265 return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10269if { (ac_try="$ac_link"
10270case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273esac
68f2de6d 10274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10275 (eval "$ac_link") 2>conftest.er1
ad6254c5 10276 ac_status=$?
8a2fc586
AK
10277 grep -v '^ *+' conftest.er1 >conftest.err
10278 rm -f conftest.er1
10279 cat conftest.err >&5
68f2de6d 10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
68f2de6d
AK
10284 } && test -s conftest$ac_exeext &&
10285 $as_test_x conftest$ac_exeext; then
ad6254c5 10286 eval "$as_ac_var=yes"
795ca3e5 10287else
68f2de6d 10288 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10289sed 's/^/| /' conftest.$ac_ext >&5
10290
7a197a62 10291 eval "$as_ac_var=no"
80992638 10292fi
7a197a62 10293
25fbec5b 10294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10295 conftest$ac_exeext conftest.$ac_ext
795ca3e5 10296fi
68f2de6d
AK
10297ac_res=`eval echo '${'$as_ac_var'}'`
10298 { echo "$as_me:$LINENO: result: $ac_res" >&5
10299echo "${ECHO_T}$ac_res" >&6; }
10300if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10301 cat >>confdefs.h <<_ACEOF
68f2de6d 10302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 10303_ACEOF
80992638
AK
10304
10305else
68f2de6d
AK
10306 { { echo "$as_me:$LINENO: error: bailing out" >&5
10307echo "$as_me: error: bailing out" >&2;}
ad6254c5 10308 { (exit 1); exit 1; }; }
8106cdd5 10309fi
ad6254c5 10310done
795ca3e5 10311
25fbec5b
AK
10312 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10313# -lseq on Dynix/PTX, -lgen on Unixware.
68f2de6d
AK
10314{ echo "$as_me:$LINENO: checking for library containing getmntent" >&5
10315echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
25fbec5b 10316if test "${ac_cv_search_getmntent+set}" = set; then
68f2de6d 10317 echo $ECHO_N "(cached) $ECHO_C" >&6
25fbec5b
AK
10318else
10319 ac_func_search_save_LIBS=$LIBS
10320cat >conftest.$ac_ext <<_ACEOF
10321/* confdefs.h. */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h. */
80992638 10326
7a197a62
AK
10327/* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
ad6254c5 10329 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10330#ifdef __cplusplus
10331extern "C"
10332#endif
25fbec5b 10333char getmntent ();
ad6254c5
AK
10334int
10335main ()
10336{
25fbec5b 10337return getmntent ();
ad6254c5
AK
10338 ;
10339 return 0;
10340}
10341_ACEOF
25fbec5b
AK
10342for ac_lib in '' sun seq gen; do
10343 if test -z "$ac_lib"; then
10344 ac_res="none required"
10345 else
10346 ac_res=-l$ac_lib
10347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10348 fi
10349 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10350if { (ac_try="$ac_link"
10351case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
68f2de6d 10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10356 (eval "$ac_link") 2>conftest.er1
ad6254c5 10357 ac_status=$?
8a2fc586
AK
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
68f2de6d 10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
68f2de6d
AK
10365 } && test -s conftest$ac_exeext &&
10366 $as_test_x conftest$ac_exeext; then
25fbec5b 10367 ac_cv_search_getmntent=$ac_res
80992638 10368else
68f2de6d 10369 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10370sed 's/^/| /' conftest.$ac_ext >&5
10371
25fbec5b 10372
795ca3e5
AK
10373fi
10374
25fbec5b
AK
10375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10376 conftest$ac_exeext
10377 if test "${ac_cv_search_getmntent+set}" = set; then
10378 break
795ca3e5 10379fi
25fbec5b
AK
10380done
10381if test "${ac_cv_search_getmntent+set}" = set; then
10382 :
10383else
10384 ac_cv_search_getmntent=no
10385fi
10386rm conftest.$ac_ext
10387LIBS=$ac_func_search_save_LIBS
10388fi
68f2de6d
AK
10389{ echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
10390echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
10391ac_res=$ac_cv_search_getmntent
10392if test "$ac_res" != no; then
10393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10394 ac_cv_func_getmntent=yes
10395
10396cat >>confdefs.h <<\_ACEOF
68f2de6d 10397#define HAVE_GETMNTENT
ad6254c5 10398_ACEOF
795ca3e5 10399
25fbec5b
AK
10400else
10401 ac_cv_func_getmntent=no
795ca3e5 10402fi
795ca3e5
AK
10403
10404
ad6254c5
AK
10405# AC_FUNC_REALLOC
10406
10407
10408for ac_header in sys/select.h sys/socket.h
10409do
68f2de6d 10410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10415 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10416fi
68f2de6d
AK
10417ac_res=`eval echo '${'$as_ac_Header'}'`
10418 { echo "$as_me:$LINENO: result: $ac_res" >&5
10419echo "${ECHO_T}$ac_res" >&6; }
795ca3e5 10420else
ad6254c5 10421 # Is the header compilable?
68f2de6d
AK
10422{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10423echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10424cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
10430$ac_includes_default
10431#include <$ac_header>
10432_ACEOF
10433rm -f conftest.$ac_objext
7a197a62
AK
10434if { (ac_try="$ac_compile"
10435case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438esac
68f2de6d 10439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10440 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10441 ac_status=$?
8a2fc586
AK
10442 grep -v '^ *+' conftest.er1 >conftest.err
10443 rm -f conftest.er1
10444 cat conftest.err >&5
68f2de6d 10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest.$ac_objext; then
ad6254c5 10450 ac_header_compiler=yes
80992638 10451else
68f2de6d 10452 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
7a197a62 10455 ac_header_compiler=no
ad6254c5 10456fi
7a197a62
AK
10457
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10459{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10461
10462# Is the header present?
68f2de6d
AK
10463{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10465cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
10471#include <$ac_header>
10472_ACEOF
7a197a62
AK
10473if { (ac_try="$ac_cpp conftest.$ac_ext"
10474case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477esac
68f2de6d 10478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
68f2de6d 10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10485 (exit $ac_status); } >/dev/null && {
10486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 }; then
ad6254c5
AK
10489 ac_header_preproc=yes
10490else
68f2de6d 10491 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 ac_header_preproc=no
10495fi
7a197a62 10496
ad6254c5 10497rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10498{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10500
10501# So? What about this header?
8a2fc586
AK
10502case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10503 yes:no: )
68f2de6d
AK
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10508 ac_header_preproc=yes
ad6254c5 10509 ;;
8a2fc586 10510 no:yes:* )
68f2de6d
AK
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10514echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10518echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10523
ad6254c5
AK
10524 ;;
10525esac
68f2de6d
AK
10526{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10529 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10530else
8a2fc586 10531 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 10532fi
68f2de6d
AK
10533ac_res=`eval echo '${'$as_ac_Header'}'`
10534 { echo "$as_me:$LINENO: result: $ac_res" >&5
10535echo "${ECHO_T}$ac_res" >&6; }
8106cdd5 10536
795ca3e5 10537fi
68f2de6d 10538if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10539 cat >>confdefs.h <<_ACEOF
68f2de6d 10540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10541_ACEOF
10542
795ca3e5
AK
10543fi
10544
ad6254c5
AK
10545done
10546
68f2de6d
AK
10547{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
10548echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
ad6254c5 10549if test "${ac_cv_func_select_args+set}" = set; then
68f2de6d 10550 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10551else
ad6254c5 10552 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 10553 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
10554 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10555 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10556/* confdefs.h. */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h. */
10561$ac_includes_default
25fbec5b 10562#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
10563# include <sys/select.h>
10564#endif
25fbec5b 10565#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
10566# include <sys/socket.h>
10567#endif
10568
10569int
10570main ()
10571{
10572extern int select ($ac_arg1,
8a2fc586
AK
10573 $ac_arg234, $ac_arg234, $ac_arg234,
10574 $ac_arg5);
ad6254c5
AK
10575 ;
10576 return 0;
10577}
10578_ACEOF
10579rm -f conftest.$ac_objext
7a197a62
AK
10580if { (ac_try="$ac_compile"
10581case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584esac
68f2de6d 10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10586 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10587 ac_status=$?
8a2fc586
AK
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
68f2de6d 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10596 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10597else
68f2de6d 10598 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10599sed 's/^/| /' conftest.$ac_ext >&5
10600
7a197a62 10601
ad6254c5 10602fi
7a197a62
AK
10603
10604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10605 done
10606 done
10607done
10608# Provide a safe default value.
10609: ${ac_cv_func_select_args='int,int *,struct timeval *'}
10610
26e7f2e0 10611fi
68f2de6d
AK
10612{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10613echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
ad6254c5
AK
10614ac_save_IFS=$IFS; IFS=','
10615set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10616IFS=$ac_save_IFS
10617shift
10618
10619cat >>confdefs.h <<_ACEOF
10620#define SELECT_TYPE_ARG1 $1
10621_ACEOF
10622
10623
10624cat >>confdefs.h <<_ACEOF
10625#define SELECT_TYPE_ARG234 ($2)
10626_ACEOF
10627
10628
10629cat >>confdefs.h <<_ACEOF
10630#define SELECT_TYPE_ARG5 ($3)
10631_ACEOF
10632
80992638 10633rm -f conftest*
80992638 10634
8106cdd5 10635fi
ad6254c5 10636
ad6254c5
AK
10637if test x$CLUSTER != xnone; then
10638
10639
10640for ac_header in sys/socket.h sys/un.h
b896caa1 10641do
68f2de6d 10642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10647 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10648fi
68f2de6d
AK
10649ac_res=`eval echo '${'$as_ac_Header'}'`
10650 { echo "$as_me:$LINENO: result: $ac_res" >&5
10651echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10652else
10653 # Is the header compilable?
68f2de6d
AK
10654{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10656cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h. */
10662$ac_includes_default
10663#include <$ac_header>
10664_ACEOF
10665rm -f conftest.$ac_objext
7a197a62
AK
10666if { (ac_try="$ac_compile"
10667case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
68f2de6d 10671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10672 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10673 ac_status=$?
8a2fc586
AK
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
68f2de6d 10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10682 ac_header_compiler=yes
10683else
68f2de6d 10684 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
7a197a62 10687 ac_header_compiler=no
ad6254c5 10688fi
7a197a62
AK
10689
10690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10691{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10692echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10693
10694# Is the header present?
68f2de6d
AK
10695{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10697cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10698/* confdefs.h. */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h. */
10703#include <$ac_header>
10704_ACEOF
7a197a62
AK
10705if { (ac_try="$ac_cpp conftest.$ac_ext"
10706case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709esac
68f2de6d 10710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
68f2de6d 10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10717 (exit $ac_status); } >/dev/null && {
10718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 }; then
ad6254c5
AK
10721 ac_header_preproc=yes
10722else
68f2de6d 10723 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10724sed 's/^/| /' conftest.$ac_ext >&5
10725
10726 ac_header_preproc=no
10727fi
7a197a62 10728
ad6254c5 10729rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10731echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10732
10733# So? What about this header?
8a2fc586
AK
10734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10735 yes:no: )
68f2de6d
AK
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10740 ac_header_preproc=yes
ad6254c5 10741 ;;
8a2fc586 10742 no:yes:* )
68f2de6d
AK
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10755
ad6254c5
AK
10756 ;;
10757esac
68f2de6d
AK
10758{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10761 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10762else
8a2fc586 10763 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10764fi
68f2de6d
AK
10765ac_res=`eval echo '${'$as_ac_Header'}'`
10766 { echo "$as_me:$LINENO: result: $ac_res" >&5
10767echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10768
10769fi
68f2de6d 10770if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 10771 cat >>confdefs.h <<_ACEOF
68f2de6d 10772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10773_ACEOF
10774
80992638 10775else
68f2de6d
AK
10776 { { echo "$as_me:$LINENO: error: bailing out" >&5
10777echo "$as_me: error: bailing out" >&2;}
ad6254c5 10778 { (exit 1); exit 1; }; }
b896caa1 10779fi
ad6254c5 10780
b896caa1
AK
10781done
10782
10783
ad6254c5
AK
10784for ac_func in socket
10785do
68f2de6d
AK
10786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7a197a62 10789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10790 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10791else
ad6254c5 10792 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
8a2fc586
AK
10798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800#define $ac_func innocuous_$ac_func
10801
ad6254c5
AK
10802/* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
8a2fc586 10806
ad6254c5
AK
10807#ifdef __STDC__
10808# include <limits.h>
10809#else
10810# include <assert.h>
10811#endif
8a2fc586
AK
10812
10813#undef $ac_func
10814
7a197a62
AK
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10818#ifdef __cplusplus
10819extern "C"
ad6254c5 10820#endif
ad6254c5
AK
10821char $ac_func ();
10822/* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
7a197a62 10825#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10826choke me
ad6254c5
AK
10827#endif
10828
10829int
10830main ()
10831{
7a197a62 10832return $ac_func ();
ad6254c5
AK
10833 ;
10834 return 0;
10835}
10836_ACEOF
10837rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10838if { (ac_try="$ac_link"
10839case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
68f2de6d 10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10844 (eval "$ac_link") 2>conftest.er1
ad6254c5 10845 ac_status=$?
8a2fc586
AK
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
68f2de6d 10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
68f2de6d
AK
10853 } && test -s conftest$ac_exeext &&
10854 $as_test_x conftest$ac_exeext; then
ad6254c5
AK
10855 eval "$as_ac_var=yes"
10856else
68f2de6d 10857 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10858sed 's/^/| /' conftest.$ac_ext >&5
10859
7a197a62 10860 eval "$as_ac_var=no"
ad6254c5 10861fi
7a197a62 10862
25fbec5b 10863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10864 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10865fi
68f2de6d
AK
10866ac_res=`eval echo '${'$as_ac_var'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868echo "${ECHO_T}$ac_res" >&6; }
10869if test `eval echo '${'$as_ac_var'}'` = yes; then
ad6254c5 10870 cat >>confdefs.h <<_ACEOF
68f2de6d 10871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10872_ACEOF
10873
10874else
68f2de6d
AK
10875 { { echo "$as_me:$LINENO: error: bailing out" >&5
10876echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
10877 { (exit 1); exit 1; }; }
10878fi
10879done
10880
10881fi
10882
10883if test x$HAVE_LIBDL = xyes; then
10884
10885for ac_header in dlfcn.h
10886do
68f2de6d 10887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 10888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
10889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 10891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 10892 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 10893fi
68f2de6d
AK
10894ac_res=`eval echo '${'$as_ac_Header'}'`
10895 { echo "$as_me:$LINENO: result: $ac_res" >&5
10896echo "${ECHO_T}$ac_res" >&6; }
ad6254c5
AK
10897else
10898 # Is the header compilable?
68f2de6d
AK
10899{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 10901cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10902/* confdefs.h. */
10903_ACEOF
10904cat confdefs.h >>conftest.$ac_ext
10905cat >>conftest.$ac_ext <<_ACEOF
10906/* end confdefs.h. */
10907$ac_includes_default
10908#include <$ac_header>
10909_ACEOF
10910rm -f conftest.$ac_objext
7a197a62
AK
10911if { (ac_try="$ac_compile"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
68f2de6d 10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10917 (eval "$ac_compile") 2>conftest.er1
ad6254c5 10918 ac_status=$?
8a2fc586
AK
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
68f2de6d 10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest.$ac_objext; then
ad6254c5
AK
10927 ac_header_compiler=yes
10928else
68f2de6d 10929 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
7a197a62 10932 ac_header_compiler=no
ad6254c5 10933fi
7a197a62
AK
10934
10935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
10936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10937echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
10938
10939# Is the header present?
68f2de6d
AK
10940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 10942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10943/* confdefs.h. */
10944_ACEOF
10945cat confdefs.h >>conftest.$ac_ext
10946cat >>conftest.$ac_ext <<_ACEOF
10947/* end confdefs.h. */
10948#include <$ac_header>
10949_ACEOF
7a197a62
AK
10950if { (ac_try="$ac_cpp conftest.$ac_ext"
10951case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
68f2de6d 10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 10956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
68f2de6d 10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10962 (exit $ac_status); } >/dev/null && {
10963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 }; then
ad6254c5
AK
10966 ac_header_preproc=yes
10967else
68f2de6d 10968 echo "$as_me: failed program was:" >&5
ad6254c5
AK
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 ac_header_preproc=no
10972fi
7a197a62 10973
ad6254c5 10974rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
10975{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10976echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
10977
10978# So? What about this header?
8a2fc586
AK
10979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10980 yes:no: )
68f2de6d
AK
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10982echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10984echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10985 ac_header_preproc=yes
ad6254c5 10986 ;;
8a2fc586 10987 no:yes:* )
68f2de6d
AK
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10989echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10991echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10993echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10995echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10999echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11000
ad6254c5
AK
11001 ;;
11002esac
68f2de6d
AK
11003{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11006 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11007else
8a2fc586 11008 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 11009fi
68f2de6d
AK
11010ac_res=`eval echo '${'$as_ac_Header'}'`
11011 { echo "$as_me:$LINENO: result: $ac_res" >&5
11012echo "${ECHO_T}$ac_res" >&6; }
80992638 11013
8106cdd5 11014fi
68f2de6d 11015if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11016 cat >>confdefs.h <<_ACEOF
68f2de6d 11017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11018_ACEOF
795ca3e5
AK
11019
11020else
68f2de6d
AK
11021 { { echo "$as_me:$LINENO: error: bailing out" >&5
11022echo "$as_me: error: bailing out" >&2;}
ad6254c5 11023 { (exit 1); exit 1; }; }
795ca3e5
AK
11024fi
11025
ad6254c5 11026done
80992638 11027
ad6254c5 11028fi
80992638 11029
ad6254c5 11030if test x$INTL = xyes; then
83912faa 11031
ad6254c5
AK
11032for ac_header in libintl.h
11033do
68f2de6d 11034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11039 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11040fi
68f2de6d
AK
11041ac_res=`eval echo '${'$as_ac_Header'}'`
11042 { echo "$as_me:$LINENO: result: $ac_res" >&5
11043echo "${ECHO_T}$ac_res" >&6; }
83912faa 11044else
ad6254c5 11045 # Is the header compilable?
68f2de6d
AK
11046{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11048cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
11054$ac_includes_default
11055#include <$ac_header>
11056_ACEOF
11057rm -f conftest.$ac_objext
7a197a62
AK
11058if { (ac_try="$ac_compile"
11059case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062esac
68f2de6d 11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11064 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11065 ac_status=$?
8a2fc586
AK
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
68f2de6d 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
11073 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11074 ac_header_compiler=yes
11075else
68f2de6d 11076 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11077sed 's/^/| /' conftest.$ac_ext >&5
11078
7a197a62 11079 ac_header_compiler=no
ad6254c5 11080fi
7a197a62
AK
11081
11082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11084echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11085
11086# Is the header present?
68f2de6d
AK
11087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11089cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
11095#include <$ac_header>
11096_ACEOF
7a197a62
AK
11097if { (ac_try="$ac_cpp conftest.$ac_ext"
11098case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101esac
68f2de6d 11102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
68f2de6d 11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11109 (exit $ac_status); } >/dev/null && {
11110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 }; then
ad6254c5
AK
11113 ac_header_preproc=yes
11114else
68f2de6d 11115 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11116sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 ac_header_preproc=no
11119fi
7a197a62 11120
ad6254c5 11121rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11123echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11124
11125# So? What about this header?
8a2fc586
AK
11126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11127 yes:no: )
68f2de6d
AK
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11132 ac_header_preproc=yes
ad6254c5 11133 ;;
8a2fc586 11134 no:yes:* )
68f2de6d
AK
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11147
ad6254c5
AK
11148 ;;
11149esac
68f2de6d
AK
11150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11153 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 11154else
8a2fc586 11155 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 11156fi
68f2de6d
AK
11157ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159echo "${ECHO_T}$ac_res" >&6; }
83912faa 11160
69792976 11161fi
68f2de6d 11162if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11163 cat >>confdefs.h <<_ACEOF
68f2de6d 11164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11165_ACEOF
69792976 11166
69792976 11167else
68f2de6d
AK
11168 { { echo "$as_me:$LINENO: error: bailing out" >&5
11169echo "$as_me: error: bailing out" >&2;}
ad6254c5 11170 { (exit 1); exit 1; }; }
80992638
AK
11171fi
11172
ad6254c5 11173done
69792976 11174
ad6254c5
AK
11175fi
11176
ad6254c5
AK
11177
11178for ac_header in libdevmapper.h
11179do
68f2de6d 11180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11185 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11186fi
68f2de6d
AK
11187ac_res=`eval echo '${'$as_ac_Header'}'`
11188 { echo "$as_me:$LINENO: result: $ac_res" >&5
11189echo "${ECHO_T}$ac_res" >&6; }
69792976 11190else
ad6254c5 11191 # Is the header compilable?
68f2de6d
AK
11192{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11194cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200$ac_includes_default
11201#include <$ac_header>
11202_ACEOF
11203rm -f conftest.$ac_objext
7a197a62
AK
11204if { (ac_try="$ac_compile"
11205case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208esac
68f2de6d 11209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11210 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11211 ac_status=$?
8a2fc586
AK
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
68f2de6d 11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11220 ac_header_compiler=yes
11221else
68f2de6d 11222 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11223sed 's/^/| /' conftest.$ac_ext >&5
11224
7a197a62 11225 ac_header_compiler=no
ad6254c5 11226fi
7a197a62
AK
11227
11228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11231
11232# Is the header present?
68f2de6d
AK
11233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11235cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241#include <$ac_header>
11242_ACEOF
7a197a62
AK
11243if { (ac_try="$ac_cpp conftest.$ac_ext"
11244case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247esac
68f2de6d 11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
68f2de6d 11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11255 (exit $ac_status); } >/dev/null && {
11256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 }; then
ad6254c5
AK
11259 ac_header_preproc=yes
11260else
68f2de6d 11261 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 ac_header_preproc=no
11265fi
7a197a62 11266
ad6254c5 11267rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11269echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11270
11271# So? What about this header?
8a2fc586
AK
11272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 yes:no: )
68f2de6d
AK
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11278 ac_header_preproc=yes
ad6254c5 11279 ;;
8a2fc586 11280 no:yes:* )
68f2de6d
AK
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11293
ad6254c5
AK
11294 ;;
11295esac
68f2de6d
AK
11296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11299 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 11300else
8a2fc586 11301 eval "$as_ac_Header=\$ac_header_preproc"
69792976 11302fi
68f2de6d
AK
11303ac_res=`eval echo '${'$as_ac_Header'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305echo "${ECHO_T}$ac_res" >&6; }
69792976 11306
ad6254c5 11307fi
68f2de6d 11308if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11309 cat >>confdefs.h <<_ACEOF
68f2de6d 11310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11311_ACEOF
69792976 11312
69792976 11313else
68f2de6d
AK
11314 { { echo "$as_me:$LINENO: error: bailing out" >&5
11315echo "$as_me: error: bailing out" >&2;}
ad6254c5 11316 { (exit 1); exit 1; }; }
83912faa
AK
11317fi
11318
ad6254c5
AK
11319done
11320
4a7f3eb2 11321
ad6254c5
AK
11322if test x$HAVE_SELINUX = xyes; then
11323
11324for ac_header in selinux/selinux.h
11325do
68f2de6d 11326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 11327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d
AK
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11331 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11332fi
68f2de6d
AK
11333ac_res=`eval echo '${'$as_ac_Header'}'`
11334 { echo "$as_me:$LINENO: result: $ac_res" >&5
11335echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11336else
ad6254c5 11337 # Is the header compilable?
68f2de6d
AK
11338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
ad6254c5 11340cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346$ac_includes_default
11347#include <$ac_header>
11348_ACEOF
11349rm -f conftest.$ac_objext
7a197a62
AK
11350if { (ac_try="$ac_compile"
11351case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354esac
68f2de6d 11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11356 (eval "$ac_compile") 2>conftest.er1
ad6254c5 11357 ac_status=$?
8a2fc586
AK
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
68f2de6d 11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.$ac_objext; then
ad6254c5
AK
11366 ac_header_compiler=yes
11367else
68f2de6d 11368 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11369sed 's/^/| /' conftest.$ac_ext >&5
11370
7a197a62 11371 ac_header_compiler=no
ad6254c5 11372fi
7a197a62
AK
11373
11374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68f2de6d
AK
11375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11376echo "${ECHO_T}$ac_header_compiler" >&6; }
ad6254c5
AK
11377
11378# Is the header present?
68f2de6d
AK
11379{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
ad6254c5 11381cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387#include <$ac_header>
11388_ACEOF
7a197a62
AK
11389if { (ac_try="$ac_cpp conftest.$ac_ext"
11390case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393esac
68f2de6d 11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7a197a62 11395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
68f2de6d 11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
11401 (exit $ac_status); } >/dev/null && {
11402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 }; then
ad6254c5
AK
11405 ac_header_preproc=yes
11406else
68f2de6d 11407 echo "$as_me: failed program was:" >&5
ad6254c5
AK
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
11410 ac_header_preproc=no
11411fi
7a197a62 11412
ad6254c5 11413rm -f conftest.err conftest.$ac_ext
68f2de6d
AK
11414{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11415echo "${ECHO_T}$ac_header_preproc" >&6; }
ad6254c5
AK
11416
11417# So? What about this header?
8a2fc586
AK
11418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11419 yes:no: )
68f2de6d
AK
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 11424 ac_header_preproc=yes
ad6254c5 11425 ;;
8a2fc586 11426 no:yes:* )
68f2de6d
AK
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11430echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11434echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 11439
ad6254c5
AK
11440 ;;
11441esac
68f2de6d
AK
11442{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7a197a62 11444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68f2de6d 11445 echo $ECHO_N "(cached) $ECHO_C" >&6
ad6254c5 11446else
8a2fc586 11447 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11448fi
68f2de6d
AK
11449ac_res=`eval echo '${'$as_ac_Header'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451echo "${ECHO_T}$ac_res" >&6; }
4a7f3eb2 11452
ad6254c5 11453fi
68f2de6d 11454if test `eval echo '${'$as_ac_Header'}'` = yes; then
ad6254c5 11455 cat >>confdefs.h <<_ACEOF
68f2de6d 11456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 11457_ACEOF
0a62c911 11458
0a62c911 11459else
68f2de6d
AK
11460 { { echo "$as_me:$LINENO: error: bailing out" >&5
11461echo "$as_me: error: bailing out" >&2;}
ad6254c5 11462 { (exit 1); exit 1; }; }
80992638
AK
11463fi
11464
ad6254c5 11465done
0a62c911 11466
ad6254c5 11467fi
0a62c911 11468
a653923f
AK
11469################################################################################
11470# Extract the first word of "modprobe", so it can be a program name with args.
11471set dummy modprobe; ac_word=$2
68f2de6d
AK
11472{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
72b2cb61 11474if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
68f2de6d 11475 echo $ECHO_N "(cached) $ECHO_C" >&6
72b2cb61
AK
11476else
11477 case $MODPROBE_CMD in
11478 [\\/]* | ?:[\\/]*)
11479 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11480 ;;
11481 *)
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
11487 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 11488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 11489 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
68f2de6d 11490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
11491 break 2
11492 fi
11493done
11494done
7a197a62 11495IFS=$as_save_IFS
72b2cb61
AK
11496
11497 ;;
11498esac
11499fi
11500MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 11501if test -n "$MODPROBE_CMD"; then
68f2de6d
AK
11502 { echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11503echo "${ECHO_T}$MODPROBE_CMD" >&6; }
72b2cb61 11504else
68f2de6d
AK
11505 { echo "$as_me:$LINENO: result: no" >&5
11506echo "${ECHO_T}no" >&6; }
72b2cb61
AK
11507fi
11508
a653923f 11509
7a197a62 11510
a653923f 11511if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11512
11513cat >>confdefs.h <<_ACEOF
11514#define MODPROBE_CMD "$MODPROBE_CMD"
11515_ACEOF
11516
a653923f
AK
11517fi
11518
80992638 11519################################################################################
d0191583 11520LVM_VERSION="\"`cat VERSION 2>/dev/null || echo Unknown`\""
fae0c576 11521
80992638 11522################################################################################
fae0c576 11523
83912faa 11524
795ca3e5
AK
11525
11526
11527
11528
11529
11530
5a52dca9 11531
8ef2b021 11532
199e490e 11533
69792976
AK
11534
11535
11536
d0191583
JM
11537# FIXME: rename to LVM_USE_DMEVENTD
11538
69792976 11539
8106cdd5
AK
11540
11541
11542
11543
11544
d68a82ec 11545
036f273a 11546
7d1552c9 11547
8106cdd5 11548
0a62c911 11549
8106cdd5 11550
4a7f3eb2 11551
4922197a
AK
11552
11553
d8ac0fbc 11554
1a9ea74d 11555
8a2fc586
AK
11556
11557
d0191583
JM
11558
11559# FIXME: rename to LVM_CONF_DIR
11560
11561
11562
11563
11564
8a2fc586 11565
8ce0cbda 11566
8b1a3214 11567
33f732c5 11568
66e941e8 11569
d3c8211f
AK
11570
11571
68f2de6d
AK
11572
11573
80992638 11574################################################################################
d0191583 11575ac_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 11576
ad6254c5 11577cat >confcache <<\_ACEOF
795ca3e5
AK
11578# This file is a shell script that caches the results of configure
11579# tests run on this system so they can be shared between configure
ad6254c5
AK
11580# scripts and configure runs, see configure's option --config-cache.
11581# It is not useful on other systems. If it contains results you don't
11582# want to keep, you may remove or edit it.
795ca3e5 11583#
ad6254c5
AK
11584# config.status only pays attention to the cache file if you give it
11585# the --recheck option to rerun configure.
795ca3e5 11586#
ad6254c5
AK
11587# `ac_cv_env_foo' variables (set or unset) will be overridden when
11588# loading this file, other *unset* `ac_cv_foo' will be assigned the
11589# following values.
11590
11591_ACEOF
11592
795ca3e5
AK
11593# The following way of writing the cache mishandles newlines in values,
11594# but we know of no workaround that is simple, portable, and efficient.
7a197a62 11595# So, we kill variables containing newlines.
795ca3e5
AK
11596# Ultrix sh set writes to stderr and can't be redirected directly,
11597# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
11598(
11599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11600 eval ac_val=\$$ac_var
11601 case $ac_val in #(
11602 *${as_nl}*)
11603 case $ac_var in #(
68f2de6d
AK
11604 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11605echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7a197a62
AK
11606 esac
11607 case $ac_var in #(
11608 _ | IFS | as_nl) ;; #(
11609 *) $as_unset $ac_var ;;
11610 esac ;;
11611 esac
11612 done
11613
ad6254c5 11614 (set) 2>&1 |
7a197a62
AK
11615 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11616 *${as_nl}ac_space=\ *)
ad6254c5
AK
11617 # `set' does not quote correctly, so add quotes (double-quote
11618 # substitution turns \\\\ into \\, and sed turns \\ into \).
11619 sed -n \
8a2fc586
AK
11620 "s/'/'\\\\''/g;
11621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 11622 ;; #(
ad6254c5
AK
11623 *)
11624 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 11625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 11626 ;;
7a197a62
AK
11627 esac |
11628 sort
11629) |
ad6254c5 11630 sed '
7a197a62 11631 /^ac_cv_env_/b end
ad6254c5 11632 t clear
7a197a62 11633 :clear
ad6254c5
AK
11634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11635 t end
7a197a62
AK
11636 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11637 :end' >>confcache
11638if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11639 if test -w "$cache_file"; then
11640 test "x$cache_file" != "x/dev/null" &&
68f2de6d
AK
11641 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11642echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 11643 cat confcache >$cache_file
795ca3e5 11644 else
68f2de6d
AK
11645 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11646echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
11647 fi
11648fi
11649rm -f confcache
11650
795ca3e5
AK
11651test "x$prefix" = xNONE && prefix=$ac_default_prefix
11652# Let make expand exec_prefix.
11653test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11654
72b2cb61 11655DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11656
11657ac_libobjs=
11658ac_ltlibobjs=
11659for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11660 # 1. Remove the extension, and $U if already installed.
7a197a62 11661 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68f2de6d 11662 ac_i=`echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
11663 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11664 # will be set to the directory where LIBOBJS objects are built.
11665 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11666 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
11667done
11668LIBOBJS=$ac_libobjs
80992638 11669
ad6254c5
AK
11670LTLIBOBJS=$ac_ltlibobjs
11671
11672
11673
11674: ${CONFIG_STATUS=./config.status}
11675ac_clean_files_save=$ac_clean_files
11676ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68f2de6d
AK
11677{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11678echo "$as_me: creating $CONFIG_STATUS" >&6;}
11679cat >$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
11680#! $SHELL
11681# Generated by $as_me.
795ca3e5 11682# Run this file to recreate the current configuration.
795ca3e5 11683# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11684# configure, is in config.log if it exists.
11685
11686debug=false
11687ac_cs_recheck=false
11688ac_cs_silent=false
11689SHELL=\${CONFIG_SHELL-$SHELL}
11690_ACEOF
11691
68f2de6d 11692cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11693## --------------------- ##
11694## M4sh Initialization. ##
11695## --------------------- ##
11696
25fbec5b
AK
11697# Be more Bourne compatible
11698DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11699if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11700 emulate sh
11701 NULLCMD=:
68f2de6d 11702 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
ad6254c5
AK
11703 # is contrary to our usage. Disable this feature.
11704 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
11705 setopt NO_GLOB_SUBST
11706else
25fbec5b
AK
11707 case `(set -o) 2>/dev/null` in
11708 *posix*) set -o posix ;;
11709esac
11710
7a197a62 11711fi
25fbec5b
AK
11712
11713
7a197a62
AK
11714
11715
11716# PATH needs CR
11717# Avoid depending upon Character Ranges.
11718as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11719as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11720as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11721as_cr_digits='0123456789'
11722as_cr_alnum=$as_cr_Letters$as_cr_digits
11723
b145d876
ZK
11724# The user is always right.
11725if test "${PATH_SEPARATOR+set}" != set; then
68f2de6d
AK
11726 echo "#! /bin/sh" >conf$$.sh
11727 echo "exit 0" >>conf$$.sh
11728 chmod +x conf$$.sh
11729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11730 PATH_SEPARATOR=';'
11731 else
11732 PATH_SEPARATOR=:
11733 fi
11734 rm -f conf$$.sh
ad6254c5
AK
11735fi
11736
11737# Support unset when possible.
8a2fc586 11738if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11739 as_unset=unset
11740else
11741 as_unset=false
11742fi
8106cdd5 11743
ad6254c5 11744
7a197a62
AK
11745# IFS
11746# We need space, tab and new line, in precisely that order. Quoting is
11747# there to prevent editors from complaining about space-tab.
11748# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11749# splitting by setting IFS to empty value.)
68f2de6d
AK
11750as_nl='
11751'
7a197a62
AK
11752IFS=" "" $as_nl"
11753
11754# Find who we are. Look in the path if we contain no directory separator.
11755case $0 in
11756 *[\\/]* ) as_myself=$0 ;;
11757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11763done
11764IFS=$as_save_IFS
11765
11766 ;;
11767esac
11768# We did not find ourselves, most probably we were run as `sh COMMAND'
11769# in which case we are not to be found in the path.
11770if test "x$as_myself" = x; then
11771 as_myself=$0
11772fi
11773if test ! -f "$as_myself"; then
68f2de6d 11774 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
11775 { (exit 1); exit 1; }
11776fi
11777
ad6254c5 11778# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
11779for as_var in ENV MAIL MAILPATH
11780do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11781done
ad6254c5
AK
11782PS1='$ '
11783PS2='> '
11784PS4='+ '
11785
11786# NLS nuisances.
68f2de6d
AK
11787for as_var in \
11788 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11789 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11790 LC_TELEPHONE LC_TIME
11791do
11792 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11793 eval $as_var=C; export $as_var
11794 else
11795 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11796 fi
11797done
8106cdd5 11798
ad6254c5 11799# Required to use basename.
7a197a62
AK
11800if expr a : '\(a\)' >/dev/null 2>&1 &&
11801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11802 as_expr=expr
11803else
11804 as_expr=false
11805fi
8106cdd5 11806
7a197a62 11807if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
11808 as_basename=basename
11809else
11810 as_basename=false
11811fi
11812
11813
11814# Name of the executable.
7a197a62 11815as_me=`$as_basename -- "$0" ||
ad6254c5
AK
11816$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11817 X"$0" : 'X\(//\)$' \| \
7a197a62 11818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 11819echo X/"$0" |
7a197a62
AK
11820 sed '/^.*\/\([^/][^/]*\)\/*$/{
11821 s//\1/
11822 q
11823 }
11824 /^X\/\(\/\/\)$/{
11825 s//\1/
11826 q
11827 }
11828 /^X\/\(\/\).*/{
11829 s//\1/
11830 q
11831 }
11832 s/.*/./; q'`
ad6254c5 11833
7a197a62
AK
11834# CDPATH.
11835$as_unset CDPATH
ad6254c5
AK
11836
11837
ad6254c5 11838
ad6254c5
AK
11839 as_lineno_1=$LINENO
11840 as_lineno_2=$LINENO
ad6254c5 11841 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 11842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 11843
ad6254c5
AK
11844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11845 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
11846 # line-number line after each line using $LINENO; the second 'sed'
11847 # does the real work. The second script uses 'N' to pair each
11848 # line-number line with the line containing $LINENO, and appends
11849 # trailing '-' during substitution so that $LINENO is not a special
11850 # case at line end.
ad6254c5 11851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
11852 # scripts with optimization help from Paolo Bonzini. Blame Lee
11853 # E. McMahon (1931-1989) for sed's syntax. :-)
11854 sed -n '
11855 p
11856 /[$]LINENO/=
11857 ' <$as_myself |
ad6254c5 11858 sed '
7a197a62
AK
11859 s/[$]LINENO.*/&-/
11860 t lineno
11861 b
11862 :lineno
ad6254c5 11863 N
7a197a62
AK
11864 :loop
11865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 11866 t loop
7a197a62 11867 s/-\n.*//
ad6254c5 11868 ' >$as_me.lineno &&
7a197a62 11869 chmod +x "$as_me.lineno" ||
68f2de6d 11870 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
11871 { (exit 1); exit 1; }; }
11872
11873 # Don't try to exec as it changes $[0], causing all sort of problems
11874 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
11875 # original and so on. Autoconf is especially sensitive to this).
11876 . "./$as_me.lineno"
ad6254c5
AK
11877 # Exit status is that of the last command.
11878 exit
11879}
11880
11881
7a197a62
AK
11882if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11883 as_dirname=dirname
11884else
11885 as_dirname=false
11886fi
11887
11888ECHO_C= ECHO_N= ECHO_T=
11889case `echo -n x` in
11890-n*)
11891 case `echo 'x\c'` in
11892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11893 *) ECHO_C='\c';;
11894 esac;;
11895*)
11896 ECHO_N='-n';;
ad6254c5 11897esac
68f2de6d 11898
7a197a62
AK
11899if expr a : '\(a\)' >/dev/null 2>&1 &&
11900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
11901 as_expr=expr
11902else
11903 as_expr=false
11904fi
80992638 11905
ad6254c5 11906rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
11907if test -d conf$$.dir; then
11908 rm -f conf$$.dir/conf$$.file
11909else
11910 rm -f conf$$.dir
68f2de6d
AK
11911 mkdir conf$$.dir
11912fi
11913echo >conf$$.file
11914if ln -s conf$$.file conf$$ 2>/dev/null; then
11915 as_ln_s='ln -s'
11916 # ... but there are two gotchas:
11917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11919 # In both cases, we have to default to `cp -p'.
11920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ad6254c5 11921 as_ln_s='cp -p'
68f2de6d
AK
11922elif ln conf$$.file conf$$ 2>/dev/null; then
11923 as_ln_s=ln
ad6254c5
AK
11924else
11925 as_ln_s='cp -p'
11926fi
7a197a62
AK
11927rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11928rmdir conf$$.dir 2>/dev/null
8106cdd5 11929
ad6254c5
AK
11930if mkdir -p . 2>/dev/null; then
11931 as_mkdir_p=:
11932else
8a2fc586 11933 test -d ./-p && rmdir ./-p
ad6254c5
AK
11934 as_mkdir_p=false
11935fi
11936
25fbec5b
AK
11937if test -x / >/dev/null 2>&1; then
11938 as_test_x='test -x'
7a197a62 11939else
25fbec5b
AK
11940 if ls -dL / >/dev/null 2>&1; then
11941 as_ls_L_option=L
11942 else
11943 as_ls_L_option=
11944 fi
11945 as_test_x='
11946 eval sh -c '\''
11947 if test -d "$1"; then
68f2de6d 11948 test -d "$1/.";
25fbec5b
AK
11949 else
11950 case $1 in
68f2de6d 11951 -*)set "./$1";;
25fbec5b
AK
11952 esac;
11953 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11954 ???[sx]*):;;*)false;;esac;fi
11955 '\'' sh
11956 '
7a197a62 11957fi
25fbec5b 11958as_executable_p=$as_test_x
ad6254c5
AK
11959
11960# Sed expression to map a string onto a valid CPP name.
8a2fc586 11961as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11962
11963# Sed expression to map a string onto a valid variable name.
8a2fc586 11964as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11965
11966
ad6254c5
AK
11967exec 6>&1
11968
7a197a62 11969# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 11970# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11971# values after options handling.
11972ac_log="
ad6254c5 11973This file was extended by $as_me, which was
68f2de6d 11974generated by GNU Autoconf 2.61. Invocation command line was
ad6254c5
AK
11975
11976 CONFIG_FILES = $CONFIG_FILES
11977 CONFIG_HEADERS = $CONFIG_HEADERS
11978 CONFIG_LINKS = $CONFIG_LINKS
11979 CONFIG_COMMANDS = $CONFIG_COMMANDS
11980 $ $0 $@
11981
7a197a62
AK
11982on `(hostname || uname -n) 2>/dev/null | sed 1q`
11983"
11984
ad6254c5
AK
11985_ACEOF
11986
68f2de6d 11987cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 11988# Files that config.status was made for.
68f2de6d
AK
11989config_files="$ac_config_files"
11990config_headers="$ac_config_headers"
ad6254c5 11991
7a197a62 11992_ACEOF
ad6254c5 11993
68f2de6d 11994cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
11995ac_cs_usage="\
11996\`$as_me' instantiates files from templates according to the
11997current configuration.
11998
11999Usage: $0 [OPTIONS] [FILE]...
12000
12001 -h, --help print this help, then exit
25fbec5b 12002 -V, --version print version number and configuration settings, then exit
ad6254c5
AK
12003 -q, --quiet do not print progress messages
12004 -d, --debug don't remove temporary files
12005 --recheck update $as_me by reconfiguring in the same conditions
12006 --file=FILE[:TEMPLATE]
68f2de6d 12007 instantiate the configuration file FILE
72b2cb61 12008 --header=FILE[:TEMPLATE]
68f2de6d 12009 instantiate the configuration header FILE
ad6254c5
AK
12010
12011Configuration files:
12012$config_files
12013
72b2cb61
AK
12014Configuration headers:
12015$config_headers
12016
ad6254c5 12017Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 12018
7a197a62 12019_ACEOF
68f2de6d 12020cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5
AK
12021ac_cs_version="\\
12022config.status
68f2de6d
AK
12023configured by $0, generated by GNU Autoconf 2.61,
12024 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 12025
68f2de6d 12026Copyright (C) 2006 Free Software Foundation, Inc.
ad6254c5
AK
12027This config.status script is free software; the Free Software Foundation
12028gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
12029
12030ac_pwd='$ac_pwd'
12031srcdir='$srcdir'
12032INSTALL='$INSTALL'
fddafd51 12033MKDIR_P='$MKDIR_P'
ad6254c5
AK
12034_ACEOF
12035
68f2de6d
AK
12036cat >>$CONFIG_STATUS <<\_ACEOF
12037# If no file are specified by the user, then we need to provide default
12038# value. By we need to know if files were specified by the user.
ad6254c5
AK
12039ac_need_defaults=:
12040while test $# != 0
12041do
12042 case $1 in
12043 --*=*)
7a197a62
AK
12044 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12045 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
12046 ac_shift=:
12047 ;;
7a197a62 12048 *)
ad6254c5
AK
12049 ac_option=$1
12050 ac_optarg=$2
12051 ac_shift=shift
12052 ;;
ad6254c5
AK
12053 esac
12054
12055 case $ac_option in
12056 # Handling of the options.
ad6254c5
AK
12057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12058 ac_cs_recheck=: ;;
7a197a62 12059 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68f2de6d 12060 echo "$ac_cs_version"; exit ;;
7a197a62 12061 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
12062 debug=: ;;
12063 --file | --fil | --fi | --f )
12064 $ac_shift
68f2de6d 12065 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ad6254c5
AK
12066 ac_need_defaults=false;;
12067 --header | --heade | --head | --hea )
12068 $ac_shift
68f2de6d 12069 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ad6254c5 12070 ac_need_defaults=false;;
7a197a62
AK
12071 --he | --h)
12072 # Conflict between --help and --header
68f2de6d 12073 { echo "$as_me: error: ambiguous option: $1
7a197a62
AK
12074Try \`$0 --help' for more information." >&2
12075 { (exit 1); exit 1; }; };;
12076 --help | --hel | -h )
68f2de6d 12077 echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
12078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12080 ac_cs_silent=: ;;
12081
12082 # This is an error.
68f2de6d 12083 -*) { echo "$as_me: error: unrecognized option: $1
7a197a62 12084Try \`$0 --help' for more information." >&2
ad6254c5
AK
12085 { (exit 1); exit 1; }; } ;;
12086
7a197a62
AK
12087 *) ac_config_targets="$ac_config_targets $1"
12088 ac_need_defaults=false ;;
ad6254c5
AK
12089
12090 esac
12091 shift
12092done
12093
12094ac_configure_extra_args=
12095
12096if $ac_cs_silent; then
12097 exec 6>/dev/null
12098 ac_configure_extra_args="$ac_configure_extra_args --silent"
12099fi
12100
12101_ACEOF
68f2de6d 12102cat >>$CONFIG_STATUS <<_ACEOF
ad6254c5 12103if \$ac_cs_recheck; then
68f2de6d
AK
12104 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12105 CONFIG_SHELL=$SHELL
7a197a62 12106 export CONFIG_SHELL
68f2de6d 12107 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ad6254c5
AK
12108fi
12109
12110_ACEOF
68f2de6d 12111cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12112exec 5>>config.log
12113{
12114 echo
12115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12116## Running $as_me. ##
12117_ASBOX
68f2de6d 12118 echo "$ac_log"
7a197a62 12119} >&5
ad6254c5 12120
7a197a62 12121_ACEOF
68f2de6d 12122cat >>$CONFIG_STATUS <<_ACEOF
7a197a62 12123_ACEOF
ad6254c5 12124
68f2de6d 12125cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12126
12127# Handling of arguments.
ad6254c5
AK
12128for ac_config_target in $ac_config_targets
12129do
7a197a62
AK
12130 case $ac_config_target in
12131 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
12132 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12133 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d0191583
JM
12134 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12135 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12136 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12137 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
12138 "dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
7a197a62
AK
12139 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
12140 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
7a197a62 12141 "dmeventd/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
d0191583 12142 "dmeventd/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES dmeventd/snapshot/Makefile" ;;
7a197a62 12143 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7a197a62
AK
12144 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
12145 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
12146 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
12147 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
12148 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
09339e2b 12149 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62
AK
12150 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12151 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
12152 "tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
7a197a62 12153
68f2de6d
AK
12154 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12155echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 12156 { (exit 1); exit 1; }; };;
80992638 12157 esac
ad6254c5
AK
12158done
12159
7a197a62 12160
ad6254c5
AK
12161# If the user did not use the arguments to specify the items to instantiate,
12162# then the envvar interface is used. Set only those that are not.
12163# We use the long form for the default assignment because of an extremely
12164# bizarre bug on SunOS 4.1.3.
12165if $ac_need_defaults; then
12166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 12167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
12168fi
12169
12170# Have a temporary directory for convenience. Make it in the build tree
7a197a62 12171# simply because there is no reason against having it here, and in addition,
ad6254c5 12172# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
12173# Hook for its removal unless debugging.
12174# Note that there is a small window in which the directory will not be cleaned:
12175# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
12176$debug ||
12177{
7a197a62
AK
12178 tmp=
12179 trap 'exit_status=$?
12180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12181' 0
ad6254c5
AK
12182 trap '{ (exit 1); exit 1; }' 1 2 13 15
12183}
ad6254c5
AK
12184# Create a (secure) tmp directory for tmp files.
12185
12186{
7a197a62 12187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
12188 test -n "$tmp" && test -d "$tmp"
12189} ||
12190{
7a197a62
AK
12191 tmp=./conf$$-$RANDOM
12192 (umask 077 && mkdir "$tmp")
ad6254c5
AK
12193} ||
12194{
68f2de6d 12195 echo "$me: cannot create a temporary directory in ." >&2
ad6254c5
AK
12196 { (exit 1); exit 1; }
12197}
12198
68f2de6d
AK
12199#
12200# Set up the sed scripts for CONFIG_FILES section.
12201#
12202
12203# No need to generate the scripts if there are no CONFIG_FILES.
12204# This happens for instance when ./config.status config.h
1995c9ff 12205if test -n "$CONFIG_FILES"; then
7a197a62 12206
68f2de6d 12207_ACEOF
5556819a 12208
68f2de6d
AK
12209
12210
12211ac_delim='%!_!# '
12212for ac_last_try in false false false false false :; do
12213 cat >conf$$subs.sed <<_ACEOF
12214SHELL!$SHELL$ac_delim
12215PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12216PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12217PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12218PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12219PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12220PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12221exec_prefix!$exec_prefix$ac_delim
12222prefix!$prefix$ac_delim
12223program_transform_name!$program_transform_name$ac_delim
12224bindir!$bindir$ac_delim
12225sbindir!$sbindir$ac_delim
12226libexecdir!$libexecdir$ac_delim
12227datarootdir!$datarootdir$ac_delim
12228datadir!$datadir$ac_delim
12229sysconfdir!$sysconfdir$ac_delim
12230sharedstatedir!$sharedstatedir$ac_delim
12231localstatedir!$localstatedir$ac_delim
12232includedir!$includedir$ac_delim
12233oldincludedir!$oldincludedir$ac_delim
12234docdir!$docdir$ac_delim
12235infodir!$infodir$ac_delim
12236htmldir!$htmldir$ac_delim
12237dvidir!$dvidir$ac_delim
12238pdfdir!$pdfdir$ac_delim
12239psdir!$psdir$ac_delim
12240libdir!$libdir$ac_delim
12241localedir!$localedir$ac_delim
12242mandir!$mandir$ac_delim
12243DEFS!$DEFS$ac_delim
12244ECHO_C!$ECHO_C$ac_delim
12245ECHO_N!$ECHO_N$ac_delim
12246ECHO_T!$ECHO_T$ac_delim
12247LIBS!$LIBS$ac_delim
12248build_alias!$build_alias$ac_delim
12249host_alias!$host_alias$ac_delim
12250target_alias!$target_alias$ac_delim
12251build!$build$ac_delim
12252build_cpu!$build_cpu$ac_delim
12253build_vendor!$build_vendor$ac_delim
12254build_os!$build_os$ac_delim
12255host!$host$ac_delim
12256host_cpu!$host_cpu$ac_delim
12257host_vendor!$host_vendor$ac_delim
12258host_os!$host_os$ac_delim
12259target!$target$ac_delim
12260target_cpu!$target_cpu$ac_delim
12261target_vendor!$target_vendor$ac_delim
12262target_os!$target_os$ac_delim
5951ef33 12263SED!$SED$ac_delim
68f2de6d
AK
12264AWK!$AWK$ac_delim
12265CC!$CC$ac_delim
12266CFLAGS!$CFLAGS$ac_delim
12267LDFLAGS!$LDFLAGS$ac_delim
12268CPPFLAGS!$CPPFLAGS$ac_delim
12269ac_ct_CC!$ac_ct_CC$ac_delim
12270EXEEXT!$EXEEXT$ac_delim
12271OBJEXT!$OBJEXT$ac_delim
12272CPP!$CPP$ac_delim
12273GREP!$GREP$ac_delim
12274EGREP!$EGREP$ac_delim
12275INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12276INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12277INSTALL_DATA!$INSTALL_DATA$ac_delim
12278LN_S!$LN_S$ac_delim
12279SET_MAKE!$SET_MAKE$ac_delim
12280RANLIB!$RANLIB$ac_delim
12281CFLOW_CMD!$CFLOW_CMD$ac_delim
12282CSCOPE_CMD!$CSCOPE_CMD$ac_delim
12283ALLOCA!$ALLOCA$ac_delim
12284LIBOBJS!$LIBOBJS$ac_delim
12285POW_LIB!$POW_LIB$ac_delim
12286LCOV!$LCOV$ac_delim
12287GENHTML!$GENHTML$ac_delim
12288LVM2CMD_LIB!$LVM2CMD_LIB$ac_delim
12289MSGFMT!$MSGFMT$ac_delim
12290MODPROBE_CMD!$MODPROBE_CMD$ac_delim
12291BUILD_DMEVENTD!$BUILD_DMEVENTD$ac_delim
12292CLDFLAGS!$CLDFLAGS$ac_delim
12293CLDNOWHOLEARCHIVE!$CLDNOWHOLEARCHIVE$ac_delim
12294CLDWHOLEARCHIVE!$CLDWHOLEARCHIVE$ac_delim
12295CLUSTER!$CLUSTER$ac_delim
12296CLVMD!$CLVMD$ac_delim
12297CMDLIB!$CMDLIB$ac_delim
12298COPTIMISE_FLAG!$COPTIMISE_FLAG$ac_delim
12299DEBUG!$DEBUG$ac_delim
12300DEVMAPPER!$DEVMAPPER$ac_delim
12301DMDIR!$DMDIR$ac_delim
12302DMEVENTD!$DMEVENTD$ac_delim
12303DM_COMPAT!$DM_COMPAT$ac_delim
12304DM_DEVICE_GID!$DM_DEVICE_GID$ac_delim
12305DM_DEVICE_MODE!$DM_DEVICE_MODE$ac_delim
12306DM_DEVICE_UID!$DM_DEVICE_UID$ac_delim
12307DM_IOCTLS!$DM_IOCTLS$ac_delim
12308DM_LIB_VERSION!$DM_LIB_VERSION$ac_delim
12309FSADM!$FSADM$ac_delim
12310GROUP!$GROUP$ac_delim
68f2de6d
AK
12311_ACEOF
12312
12313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12314 break
12315 elif $ac_last_try; then
12316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12317echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12318 { (exit 1); exit 1; }; }
12319 else
12320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12321 fi
12322done
12323
12324ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12325if test -n "$ac_eof"; then
12326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12327 ac_eof=`expr $ac_eof + 1`
1995c9ff 12328fi
7a197a62 12329
68f2de6d
AK
12330cat >>$CONFIG_STATUS <<_ACEOF
12331cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12332/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12333_ACEOF
12334sed '
12335s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12336s/^/s,@/; s/!/@,|#_!!_#|/
12337:n
12338t n
12339s/'"$ac_delim"'$/,g/; t
12340s/$/\\/; p
12341N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12342' >>$CONFIG_STATUS <conf$$subs.sed
12343rm -f conf$$subs.sed
12344cat >>$CONFIG_STATUS <<_ACEOF
12345CEOF$ac_eof
1995c9ff 12346_ACEOF
7a197a62 12347
8106cdd5 12348
1995c9ff
AK
12349ac_delim='%!_!# '
12350for ac_last_try in false false false false false :; do
68f2de6d 12351 cat >conf$$subs.sed <<_ACEOF
5951ef33 12352HAVE_LIBDL!$HAVE_LIBDL$ac_delim
68f2de6d
AK
12353HAVE_REALTIME!$HAVE_REALTIME$ac_delim
12354HAVE_SELINUX!$HAVE_SELINUX$ac_delim
12355INTL!$INTL$ac_delim
12356INTL_PACKAGE!$INTL_PACKAGE$ac_delim
12357JOBS!$JOBS$ac_delim
12358LDDEPS!$LDDEPS$ac_delim
12359LIB_SUFFIX!$LIB_SUFFIX$ac_delim
12360LOCALEDIR!$LOCALEDIR$ac_delim
12361LVM1!$LVM1$ac_delim
12362LVM1_FALLBACK!$LVM1_FALLBACK$ac_delim
12363CONFDIR!$CONFDIR$ac_delim
12364LVM_VERSION!$LVM_VERSION$ac_delim
12365MIRRORS!$MIRRORS$ac_delim
12366OWNER!$OWNER$ac_delim
12367PKGCONFIG!$PKGCONFIG$ac_delim
12368POOL!$POOL$ac_delim
12369SNAPSHOTS!$SNAPSHOTS$ac_delim
12370STATICDIR!$STATICDIR$ac_delim
12371STATIC_LINK!$STATIC_LINK$ac_delim
12372LIB_PTHREAD!$LIB_PTHREAD$ac_delim
12373usrlibdir!$usrlibdir$ac_delim
12374usrsbindir!$usrsbindir$ac_delim
12375LTLIBOBJS!$LTLIBOBJS$ac_delim
12376_ACEOF
12377
5951ef33 12378 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
1995c9ff
AK
12379 break
12380 elif $ac_last_try; then
68f2de6d
AK
12381 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12382echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
12383 { (exit 1); exit 1; }; }
12384 else
12385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12386 fi
12387done
7a197a62 12388
68f2de6d
AK
12389ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12390if test -n "$ac_eof"; then
12391 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12392 ac_eof=`expr $ac_eof + 1`
12393fi
fddafd51 12394
68f2de6d
AK
12395cat >>$CONFIG_STATUS <<_ACEOF
12396cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
1995c9ff 12398_ACEOF
68f2de6d
AK
12399sed '
12400s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12401s/^/s,@/; s/!/@,|#_!!_#|/
12402:n
12403t n
12404s/'"$ac_delim"'$/,g/; t
12405s/$/\\/; p
12406N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12407' >>$CONFIG_STATUS <conf$$subs.sed
12408rm -f conf$$subs.sed
12409cat >>$CONFIG_STATUS <<_ACEOF
12410:end
12411s/|#_!!_#|//g
12412CEOF$ac_eof
7a197a62
AK
12413_ACEOF
12414
68f2de6d 12415
7a197a62
AK
12416# VPATH may cause trouble with some makes, so we remove $(srcdir),
12417# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12418# trailing colons and then remove the whole line if VPATH becomes empty
12419# (actually we leave an empty line to preserve line numbers).
12420if test "x$srcdir" = x.; then
12421 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12422s/:*\$(srcdir):*/:/
12423s/:*\${srcdir}:*/:/
12424s/:*@srcdir@:*/:/
12425s/^\([^=]*=[ ]*\):*/\1/
12426s/:*$//
12427s/^[^=]*=[ ]*$//
12428}'
12429fi
12430
68f2de6d 12431cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12432fi # test -n "$CONFIG_FILES"
12433
12434
68f2de6d 12435for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7a197a62
AK
12436do
12437 case $ac_tag in
12438 :[FHLC]) ac_mode=$ac_tag; continue;;
12439 esac
12440 case $ac_mode$ac_tag in
12441 :[FHL]*:*);;
68f2de6d
AK
12442 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12443echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7a197a62
AK
12444 { (exit 1); exit 1; }; };;
12445 :[FH]-) ac_tag=-:-;;
12446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12447 esac
12448 ac_save_IFS=$IFS
12449 IFS=:
12450 set x $ac_tag
12451 IFS=$ac_save_IFS
12452 shift
12453 ac_file=$1
12454 shift
12455
12456 case $ac_mode in
12457 :L) ac_source=$1;;
12458 :[FH])
12459 ac_file_inputs=
12460 for ac_f
12461 do
12462 case $ac_f in
12463 -) ac_f="$tmp/stdin";;
12464 *) # Look for the file first in the build tree, then in the source tree
12465 # (if the path is not absolute). The absolute path cannot be DOS-style,
12466 # because $ac_f cannot contain `:'.
12467 test -f "$ac_f" ||
12468 case $ac_f in
12469 [\\/$]*) false;;
12470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12471 esac ||
68f2de6d
AK
12472 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12473echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
12474 { (exit 1); exit 1; }; };;
12475 esac
68f2de6d 12476 ac_file_inputs="$ac_file_inputs $ac_f"
7a197a62
AK
12477 done
12478
12479 # Let's still pretend it is `configure' which instantiates (i.e., don't
12480 # use $as_me), people would be surprised to read:
12481 # /* config.h. Generated by config.status. */
68f2de6d
AK
12482 configure_input="Generated from "`IFS=:
12483 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7a197a62
AK
12484 if test x"$ac_file" != x-; then
12485 configure_input="$ac_file. $configure_input"
68f2de6d
AK
12486 { echo "$as_me:$LINENO: creating $ac_file" >&5
12487echo "$as_me: creating $ac_file" >&6;}
7a197a62
AK
12488 fi
12489
12490 case $ac_tag in
68f2de6d 12491 *:-:* | *:-) cat >"$tmp/stdin";;
7a197a62
AK
12492 esac
12493 ;;
80992638 12494 esac
8106cdd5 12495
7a197a62 12496 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 12497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12498 X"$ac_file" : 'X\(//\)[^/]' \| \
12499 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 12500 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12501echo X"$ac_file" |
7a197a62
AK
12502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12503 s//\1/
12504 q
12505 }
12506 /^X\(\/\/\)[^/].*/{
12507 s//\1/
12508 q
12509 }
12510 /^X\(\/\/\)$/{
12511 s//\1/
12512 q
12513 }
12514 /^X\(\/\).*/{
12515 s//\1/
12516 q
12517 }
12518 s/.*/./; q'`
12519 { as_dir="$ac_dir"
12520 case $as_dir in #(
12521 -*) as_dir=./$as_dir;;
12522 esac
12523 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 12524 as_dirs=
7a197a62
AK
12525 while :; do
12526 case $as_dir in #(
68f2de6d 12527 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7a197a62
AK
12528 *) as_qdir=$as_dir;;
12529 esac
12530 as_dirs="'$as_qdir' $as_dirs"
12531 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 12532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
12533 X"$as_dir" : 'X\(//\)[^/]' \| \
12534 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 12535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
68f2de6d 12536echo X"$as_dir" |
7a197a62
AK
12537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12538 s//\1/
12539 q
12540 }
12541 /^X\(\/\/\)[^/].*/{
12542 s//\1/
12543 q
12544 }
12545 /^X\(\/\/\)$/{
12546 s//\1/
12547 q
12548 }
12549 /^X\(\/\).*/{
12550 s//\1/
12551 q
12552 }
12553 s/.*/./; q'`
12554 test -d "$as_dir" && break
ad6254c5 12555 done
7a197a62 12556 test -z "$as_dirs" || eval "mkdir $as_dirs"
68f2de6d
AK
12557 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12558echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 12559 { (exit 1); exit 1; }; }; }
ad6254c5
AK
12560 ac_builddir=.
12561
7a197a62
AK
12562case "$ac_dir" in
12563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12564*)
68f2de6d 12565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7a197a62 12566 # A ".." for each directory in $ac_dir_suffix.
68f2de6d 12567 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7a197a62
AK
12568 case $ac_top_builddir_sub in
12569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12571 esac ;;
12572esac
12573ac_abs_top_builddir=$ac_pwd
12574ac_abs_builddir=$ac_pwd$ac_dir_suffix
12575# for backward compatibility:
12576ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
12577
12578case $srcdir in
7a197a62 12579 .) # We are building in place.
ad6254c5 12580 ac_srcdir=.
7a197a62
AK
12581 ac_top_srcdir=$ac_top_builddir_sub
12582 ac_abs_top_srcdir=$ac_pwd ;;
12583 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 12584 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
12585 ac_top_srcdir=$srcdir
12586 ac_abs_top_srcdir=$srcdir ;;
12587 *) # Relative name.
12588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12589 ac_top_srcdir=$ac_top_build_prefix$srcdir
12590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 12591esac
7a197a62 12592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 12593
ad6254c5 12594
7a197a62
AK
12595 case $ac_mode in
12596 :F)
12597 #
12598 # CONFIG_FILE
12599 #
ad6254c5
AK
12600
12601 case $INSTALL in
12602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 12603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 12604 esac
fddafd51
ZK
12605 ac_MKDIR_P=$MKDIR_P
12606 case $MKDIR_P in
12607 [\\/$]* | ?:[\\/]* ) ;;
12608 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12609 esac
7a197a62 12610_ACEOF
795ca3e5 12611
68f2de6d 12612cat >>$CONFIG_STATUS <<\_ACEOF
7a197a62
AK
12613# If the template does not know about datarootdir, expand it.
12614# FIXME: This hack should be removed a few years after 2.60.
12615ac_datarootdir_hack=; ac_datarootdir_seen=
12616
68f2de6d 12617case `sed -n '/datarootdir/ {
7a197a62
AK
12618 p
12619 q
12620}
12621/@datadir@/p
12622/@docdir@/p
12623/@infodir@/p
12624/@localedir@/p
12625/@mandir@/p
68f2de6d 12626' $ac_file_inputs` in
7a197a62
AK
12627*datarootdir*) ac_datarootdir_seen=yes;;
12628*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
68f2de6d
AK
12629 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12630echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 12631_ACEOF
68f2de6d 12632cat >>$CONFIG_STATUS <<_ACEOF
7a197a62
AK
12633 ac_datarootdir_hack='
12634 s&@datadir@&$datadir&g
12635 s&@docdir@&$docdir&g
12636 s&@infodir@&$infodir&g
12637 s&@localedir@&$localedir&g
12638 s&@mandir@&$mandir&g
12639 s&\\\${datarootdir}&$datarootdir&g' ;;
12640esac
12641_ACEOF
12642
12643# Neutralize VPATH when `$srcdir' = `.'.
12644# Shell code in configure.ac might set extrasub.
12645# FIXME: do we really want to maintain this feature?
68f2de6d
AK
12646cat >>$CONFIG_STATUS <<_ACEOF
12647 sed "$ac_vpsub
ad6254c5
AK
12648$extrasub
12649_ACEOF
68f2de6d 12650cat >>$CONFIG_STATUS <<\_ACEOF
ad6254c5
AK
12651:t
12652/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
68f2de6d 12653s&@configure_input@&$configure_input&;t t
7a197a62
AK
12654s&@top_builddir@&$ac_top_builddir_sub&;t t
12655s&@srcdir@&$ac_srcdir&;t t
12656s&@abs_srcdir@&$ac_abs_srcdir&;t t
12657s&@top_srcdir@&$ac_top_srcdir&;t t
12658s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12659s&@builddir@&$ac_builddir&;t t
12660s&@abs_builddir@&$ac_abs_builddir&;t t
12661s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12662s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 12663s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 12664$ac_datarootdir_hack
68f2de6d 12665" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7a197a62
AK
12666
12667test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12668 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
68f2de6d 12670 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 12671which seems to be undefined. Please make sure it is defined." >&5
68f2de6d 12672echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
12673which seems to be undefined. Please make sure it is defined." >&2;}
12674
12675 rm -f "$tmp/stdin"
72b2cb61 12676 case $ac_file in
68f2de6d
AK
12677 -) cat "$tmp/out"; rm -f "$tmp/out";;
12678 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12679 esac
7a197a62
AK
12680 ;;
12681 :H)
12682 #
12683 # CONFIG_HEADER
12684 #
68f2de6d
AK
12685_ACEOF
12686
12687# Transform confdefs.h into a sed script `conftest.defines', that
12688# substitutes the proper values into config.h.in to produce config.h.
12689rm -f conftest.defines conftest.tail
12690# First, append a space to every undef/define line, to ease matching.
12691echo 's/$/ /' >conftest.defines
12692# Then, protect against being on the right side of a sed subst, or in
12693# an unquoted here document, in config.status. If some macros were
12694# called several times there might be several #defines for the same
12695# symbol, which is useless. But do not sort them, since the last
12696# AC_DEFINE must be honored.
12697ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12698# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12699# NAME is the cpp macro being defined, VALUE is the value it is being given.
12700# PARAMS is the parameter list in the macro definition--in most cases, it's
12701# just an empty string.
12702ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12703ac_dB='\\)[ (].*,\\1define\\2'
12704ac_dC=' '
12705ac_dD=' ,'
12706
12707uniq confdefs.h |
12708 sed -n '
12709 t rset
12710 :rset
12711 s/^[ ]*#[ ]*define[ ][ ]*//
12712 t ok
12713 d
12714 :ok
12715 s/[\\&,]/\\&/g
12716 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12717 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12718 ' >>conftest.defines
12719
12720# Remove the space that was appended to ease matching.
12721# Then replace #undef with comments. This is necessary, for
12722# example, in the case of _POSIX_SOURCE, which is predefined and required
12723# on some systems where configure will not decide to define it.
12724# (The regexp can be short, since the line contains either #define or #undef.)
12725echo 's/ $//
12726s,^[ #]*u.*,/* & */,' >>conftest.defines
12727
12728# Break up conftest.defines:
12729ac_max_sed_lines=50
12730
12731# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12732# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12733# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12734# et cetera.
12735ac_in='$ac_file_inputs'
12736ac_out='"$tmp/out1"'
12737ac_nxt='"$tmp/out2"'
12738
12739while :
12740do
12741 # Write a here document:
12742 cat >>$CONFIG_STATUS <<_ACEOF
12743 # First, check the format of the line:
12744 cat >"\$tmp/defines.sed" <<\\CEOF
12745/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12746/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12747b
12748:def
12749_ACEOF
12750 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12751 echo 'CEOF
12752 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12753 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12754 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12755 grep . conftest.tail >/dev/null || break
12756 rm -f conftest.defines
12757 mv conftest.tail conftest.defines
12758done
12759rm -f conftest.defines conftest.tail
12760
12761echo "ac_result=$ac_in" >>$CONFIG_STATUS
12762cat >>$CONFIG_STATUS <<\_ACEOF
72b2cb61 12763 if test x"$ac_file" != x-; then
68f2de6d
AK
12764 echo "/* $configure_input */" >"$tmp/config.h"
12765 cat "$ac_result" >>"$tmp/config.h"
12766 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12767 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12768echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 12769 else
68f2de6d
AK
12770 rm -f $ac_file
12771 mv "$tmp/config.h" $ac_file
72b2cb61
AK
12772 fi
12773 else
68f2de6d
AK
12774 echo "/* $configure_input */"
12775 cat "$ac_result"
72b2cb61 12776 fi
68f2de6d 12777 rm -f "$tmp/out12"
7a197a62
AK
12778 ;;
12779
12780
12781 esac
12782
12783done # for ac_tag
795ca3e5 12784
795ca3e5 12785
ad6254c5
AK
12786{ (exit 0); exit 0; }
12787_ACEOF
795ca3e5 12788chmod +x $CONFIG_STATUS
ad6254c5
AK
12789ac_clean_files=$ac_clean_files_save
12790
12791
12792# configure is writing to config.log, and then calls config.status.
12793# config.status does its own redirection, appending to config.log.
12794# Unfortunately, on DOS this fails, as config.log is still kept open
12795# by configure, so config.status won't be able to write to it; its
12796# output is simply discarded. So we exec the FD to /dev/null,
12797# effectively closing config.log, so it can be properly (re)opened and
12798# appended to by config.status. When coming back to configure, we
12799# need to make the FD available again.
12800if test "$no_create" != yes; then
12801 ac_cs_success=:
12802 ac_config_status_args=
12803 test "$silent" = yes &&
12804 ac_config_status_args="$ac_config_status_args --quiet"
12805 exec 5>/dev/null
12806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12807 exec 5>>config.log
12808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12809 # would make configure fail if this is the last instruction.
12810 $ac_cs_success || { (exit 1); exit 1; }
12811fi
795ca3e5 12812
2dc95e1c
AK
12813
12814if test x$ODIRECT != xyes; then
68f2de6d
AK
12815 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12816echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12817fi
809fae91
AK
12818
12819if test x$FSADM == xyes; then
68f2de6d
AK
12820 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12821echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12822fi
06f62ad1
AK
12823
12824if test x$DMEVENTD == xyes; then
68f2de6d
AK
12825 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12826echo "$as_me: WARNING: dmeventd support is untested" >&2;}
06f62ad1 12827fi
This page took 1.751683 seconds and 5 git commands to generate.