]> sourceware.org Git - lvm2.git/blame - configure
Add dm_tree_use_no_flush_suspend().
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
8a2fc586 3# Generated by GNU Autoconf 2.59.
795ca3e5 4#
8a2fc586 5# Copyright (C) 2003 Free Software Foundation, Inc.
795ca3e5
AK
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
8a2fc586 22DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
23
24# Support unset when possible.
8a2fc586 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
8a2fc586 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
795ca3e5 185
ad6254c5
AK
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
8a2fc586 221 test -d ./-p && rmdir ./-p
ad6254c5
AK
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
8a2fc586 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
229
230# Sed expression to map a string onto a valid variable name.
8a2fc586 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
795ca3e5 254ac_default_prefix=/usr/local
ad6254c5
AK
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="lib/device/dev-cache.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
795ca3e5 312ac_default_prefix=/usr
8b1a3214 313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CFLOW_CMD CSCOPE_CMD CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS LIB_SUFFIX LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX HAVE_REALTIME CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM DMEVENTD LTLIBOBJS'
ad6254c5 314ac_subst_files=''
795ca3e5
AK
315
316# Initialize some variables set by options.
ad6254c5
AK
317ac_init_help=
318ac_init_version=false
795ca3e5
AK
319# The variables have the same names as the options, with
320# dashes changed to underlines.
ad6254c5 321cache_file=/dev/null
795ca3e5 322exec_prefix=NONE
795ca3e5 323no_create=
795ca3e5
AK
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
795ca3e5
AK
332verbose=
333x_includes=NONE
334x_libraries=NONE
ad6254c5
AK
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
795ca3e5
AK
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
795ca3e5
AK
354ac_prev=
355for ac_option
356do
795ca3e5
AK
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
ad6254c5 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
795ca3e5
AK
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
ad6254c5 368 case $ac_option in
795ca3e5
AK
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 373 bindir=$ac_optarg ;;
795ca3e5
AK
374
375 -build | --build | --buil | --bui | --bu)
ad6254c5 376 ac_prev=build_alias ;;
795ca3e5 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 378 build_alias=$ac_optarg ;;
795ca3e5
AK
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
795ca3e5
AK
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
ad6254c5 394 datadir=$ac_optarg ;;
795ca3e5
AK
395
396 -disable-* | --disable-*)
ad6254c5 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 398 # Reject names that are not valid shell variable names.
ad6254c5
AK
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
795ca3e5
AK
404
405 -enable-* | --enable-*)
ad6254c5 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 407 # Reject names that are not valid shell variable names.
ad6254c5
AK
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
414 *) ac_optarg=yes ;;
415 esac
ad6254c5 416 eval "enable_$ac_feature='$ac_optarg'" ;;
795ca3e5
AK
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
ad6254c5 425 exec_prefix=$ac_optarg ;;
795ca3e5
AK
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
ad6254c5
AK
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
795ca3e5
AK
437
438 -host | --host | --hos | --ho)
ad6254c5 439 ac_prev=host_alias ;;
795ca3e5 440 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 441 host_alias=$ac_optarg ;;
795ca3e5
AK
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 448 includedir=$ac_optarg ;;
795ca3e5
AK
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 453 infodir=$ac_optarg ;;
795ca3e5
AK
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 458 libdir=$ac_optarg ;;
795ca3e5
AK
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
ad6254c5 465 libexecdir=$ac_optarg ;;
795ca3e5
AK
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ad6254c5 474 localstatedir=$ac_optarg ;;
795ca3e5
AK
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 479 mandir=$ac_optarg ;;
795ca3e5
AK
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 486 | --no-cr | --no-c | -n)
795ca3e5
AK
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 500 oldincludedir=$ac_optarg ;;
795ca3e5
AK
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 505 prefix=$ac_optarg ;;
795ca3e5
AK
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 512 program_prefix=$ac_optarg ;;
795ca3e5
AK
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 519 program_suffix=$ac_optarg ;;
795ca3e5
AK
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 536 program_transform_name=$ac_optarg ;;
795ca3e5
AK
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
ad6254c5 546 sbindir=$ac_optarg ;;
795ca3e5
AK
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
ad6254c5 557 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
ad6254c5 562 site=$ac_optarg ;;
795ca3e5
AK
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 567 srcdir=$ac_optarg ;;
795ca3e5
AK
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 574 sysconfdir=$ac_optarg ;;
795ca3e5
AK
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 577 ac_prev=target_alias ;;
795ca3e5 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 579 target_alias=$ac_optarg ;;
795ca3e5
AK
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
ad6254c5
AK
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
795ca3e5
AK
586
587 -with-* | --with-*)
ad6254c5 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 589 # Reject names that are not valid shell variable names.
ad6254c5
AK
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
795ca3e5 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
ad6254c5
AK
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
596 *) ac_optarg=yes ;;
597 esac
ad6254c5 598 eval "with_$ac_package='$ac_optarg'" ;;
795ca3e5
AK
599
600 -without-* | --without-*)
ad6254c5 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 602 # Reject names that are not valid shell variable names.
ad6254c5
AK
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
795ca3e5
AK
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 618 x_includes=$ac_optarg ;;
795ca3e5
AK
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 625 x_libraries=$ac_optarg ;;
795ca3e5 626
ad6254c5
AK
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
795ca3e5
AK
630 ;;
631
ad6254c5
AK
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
795ca3e5 642 *)
ad6254c5
AK
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
ad6254c5
AK
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
795ca3e5 657fi
795ca3e5 658
ad6254c5
AK
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
795ca3e5 669
ad6254c5
AK
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
8a2fc586 672 localstatedir libdir includedir oldincludedir infodir mandir
795ca3e5 673do
ad6254c5
AK
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
795ca3e5
AK
679 esac
680done
681
ad6254c5
AK
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
8106cdd5 699
ad6254c5
AK
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
795ca3e5 704
795ca3e5
AK
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
ad6254c5
AK
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
795ca3e5
AK
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
ad6254c5
AK
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
795ca3e5 733 else
ad6254c5
AK
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
795ca3e5
AK
736 fi
737fi
ad6254c5
AK
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
8a2fc586 807 [$ac_default_prefix]
ad6254c5 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8a2fc586 809 [PREFIX]
ad6254c5
AK
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 --target=TARGET configure for building compilers for TARGET [HOST]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844 cat <<\_ACEOF
845
846Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 --enable-jobs=NUM Number of jobs to run simultaneously
850 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
851 device-mapper is missing from the kernel
852 --enable-static_link Use this to link the tools to their libraries
853 statically. Default is dynamic linking
854 --enable-readline Enable readline support
855 --disable-selinux Disable selinux support
3d978351 856 --disable-realtime Disable realtime clock support
ad6254c5
AK
857 --enable-debug Enable debugging
858 --disable-devmapper Disable device-mapper interaction
859 --disable-o_direct Disable O_DIRECT
860 --enable-cmdlib Build shared command library
861 --enable-fsadm Enable fsadm
15d91f5a 862 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
863 --enable-nls Enable Native Language Support
864
865Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-user=USER Set the owner of installed files
869 --with-group=GROUP Set the group owner of installed files
870 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
871 TYPE=internal
872 --with-pool=TYPE GFS pool read-only support: internal/shared/none
873 TYPE=internal
874 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
875 TYPE=internal
876 --with-snapshots=TYPE Snapshot support: internal/shared/none
877 TYPE=internal
878 --with-mirrors=TYPE Mirror support: internal/shared/none
879 TYPE=internal
5c7fc7c4 880 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 881 TYPE=none
ad6254c5
AK
882 --with-optimisation=OPT C optimisation flag OPT=-O2
883 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
884 --with-confdir=DIR Configuration files in DIR /etc
885 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
886
887Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899_ACEOF
900fi
901
902if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
908
909if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913else
914 ac_dir_suffix= ac_top_builddir=
915fi
916
917case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931esac
8a2fc586
AK
932
933# Do not use `cd foo && pwd` to compute absolute paths, because
934# the directories may not exist.
935case `pwd` in
936.) ac_abs_builddir="$ac_dir";;
937*)
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_top_builddir=${ac_top_builddir}.;;
946*)
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_srcdir=$ac_srcdir;;
955*)
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_srcdir=$ac_top_srcdir;;
964*)
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970esac
ad6254c5
AK
971
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
8a2fc586 981 test -f $ac_srcdir/configure.in; then
ad6254c5
AK
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 fi
987 cd $ac_popdir
988 done
989fi
990
991test -n "$ac_init_help" && exit 0
992if $ac_init_version; then
993 cat <<\_ACEOF
994
8a2fc586 995Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
996This configure script is free software; the Free Software Foundation
997gives unlimited permission to copy, distribute and modify it.
998_ACEOF
999 exit 0
1000fi
1001exec 5>config.log
1002cat >&5 <<_ACEOF
1003This file contains any messages produced by compilers while
1004running configure, to aid debugging if configure makes a mistake.
1005
1006It was created by $as_me, which was
8a2fc586 1007generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
1008
1009 $ $0 $@
1010
1011_ACEOF
1012{
1013cat <<_ASUNAME
1014## --------- ##
1015## Platform. ##
1016## --------- ##
1017
1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1026
1027/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034
1035_ASUNAME
1036
1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038for as_dir in $PATH
1039do
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043done
1044
1045} >&5
1046
1047cat >&5 <<_ACEOF
1048
1049
1050## ----------- ##
1051## Core tests. ##
1052## ----------- ##
1053
1054_ACEOF
1055
1056
1057# Keep a trace of the command line.
1058# Strip out --no-create and --no-recursion so they do not pile up.
1059# Strip out --silent because we don't want to record it for future runs.
1060# Also quote any args containing shell meta-characters.
1061# Make two passes to allow for proper duplicate-argument suppression.
1062ac_configure_args=
1063ac_configure_args0=
1064ac_configure_args1=
1065ac_sep=
1066ac_must_keep_next=false
1067for ac_pass in 1 2
1068do
1069 for ac_arg
1070 do
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081 2)
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
8a2fc586 1084 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1085 else
8a2fc586
AK
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1094 ;;
1095 -* ) ac_must_keep_next=true ;;
1096 esac
ad6254c5
AK
1097 fi
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1101 ;;
1102 esac
1103 done
1104done
1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108# When interrupted or exit'd, cleanup temporary files, and complete
1109# config.log. We remove comments because anyway the quotes in there
1110# would cause problems or look ugly.
1111# WARNING: Be sure not to use single quotes in there, as some shells,
1112# such as our DU 5.0 friend, will then `close' the trap.
1113trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1115 {
1116 echo
1117
1118 cat <<\_ASBOX
1119## ---------------- ##
1120## Cache variables. ##
1121## ---------------- ##
1122_ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1125{
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
8a2fc586
AK
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ad6254c5
AK
1132 ;;
1133 *)
1134 sed -n \
8a2fc586 1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
1136 ;;
1137 esac;
1138}
1139 echo
1140
1141 cat <<\_ASBOX
1142## ----------------- ##
1143## Output variables. ##
1144## ----------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156## ------------- ##
1157## Output files. ##
1158## ------------- ##
1159_ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1162 do
1163 eval ac_val=$`echo $ac_var`
8a2fc586 1164 echo "$ac_var='"'"'$ac_val'"'"'"
ad6254c5
AK
1165 done | sort
1166 echo
1167 fi
1168
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171## ----------- ##
1172## confdefs.h. ##
1173## ----------- ##
1174_ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1178 fi
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
8a2fc586 1183 rm -f core *.core &&
ad6254c5
AK
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1186 ' 0
1187for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189done
1190ac_signal=0
1191
1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
1193rm -rf conftest* confdefs.h
1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195echo >confdefs.h
1196
1197# Predefined preprocessor variables.
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_NAME "$PACKAGE_NAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
1211_ACEOF
8106cdd5 1212
ad6254c5
AK
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_STRING "$PACKAGE_STRING"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221_ACEOF
1222
1223
1224# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1225# Prefer explicitly selected file to automatically selected ones.
1226if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 fi
1232fi
1233for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
ad6254c5
AK
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1238 . "$ac_site_file"
1239 fi
1240done
1241
1242if test -r "$cache_file"; then
ad6254c5
AK
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1252 fi
795ca3e5 1253else
ad6254c5
AK
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1257fi
1258
1259# Check that the precious variables saved in the cache have kept the same
1260# value.
1261ac_cache_corrupted=false
1262for ac_var in `(set) 2>&1 |
8a2fc586 1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ad6254c5
AK
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1278 *)
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
8a2fc586 1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8a2fc586 1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1283echo "$as_me: former value: $ac_old_val" >&2;}
8a2fc586 1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1285echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1286 ac_cache_corrupted=:
ad6254c5
AK
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1300 fi
1301done
1302if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
795ca3e5
AK
1308fi
1309
1310ac_ext=c
795ca3e5 1311ac_cpp='$CPP $CPPFLAGS'
ad6254c5
AK
1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
795ca3e5
AK
1332
1333
1334
72b2cb61
AK
1335################################################################################
1336 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1337
1338
80992638 1339################################################################################
795ca3e5
AK
1340ac_aux_dir=
1341for ac_dir in autoconf $srcdir/autoconf; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
ad6254c5
AK
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
795ca3e5
AK
1354 fi
1355done
1356if test -z "$ac_aux_dir"; then
ad6254c5
AK
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1358echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1359 { (exit 1); exit 1; }; }
795ca3e5 1360fi
ad6254c5
AK
1361ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1364
1365
ad6254c5 1366################################################################################
8ce0cbda 1367# Make sure we can run config.sub.
ad6254c5
AK
1368$ac_config_sub sun4 >/dev/null 2>&1 ||
1369 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1370echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373echo "$as_me:$LINENO: checking build system type" >&5
1374echo $ECHO_N "checking build system type... $ECHO_C" >&6
1375if test "${ac_cv_build+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1377else
1378 ac_cv_build_alias=$build_alias
1379test -z "$ac_cv_build_alias" &&
1380 ac_cv_build_alias=`$ac_config_guess`
1381test -z "$ac_cv_build_alias" &&
1382 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1383echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1384 { (exit 1); exit 1; }; }
1385ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1386 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1387echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1388 { (exit 1); exit 1; }; }
1389
1390fi
1391echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1392echo "${ECHO_T}$ac_cv_build" >&6
1393build=$ac_cv_build
1394build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397
1398
1399echo "$as_me:$LINENO: checking host system type" >&5
1400echo $ECHO_N "checking host system type... $ECHO_C" >&6
1401if test "${ac_cv_host+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404 ac_cv_host_alias=$host_alias
1405test -z "$ac_cv_host_alias" &&
1406 ac_cv_host_alias=$ac_cv_build_alias
1407ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1409echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1411
1412fi
1413echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1414echo "${ECHO_T}$ac_cv_host" >&6
1415host=$ac_cv_host
1416host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419
1420
1421echo "$as_me:$LINENO: checking target system type" >&5
1422echo $ECHO_N "checking target system type... $ECHO_C" >&6
1423if test "${ac_cv_target+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426 ac_cv_target_alias=$target_alias
1427test "x$ac_cv_target_alias" = "x" &&
1428 ac_cv_target_alias=$ac_cv_host_alias
1429ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1430 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1431echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1432 { (exit 1); exit 1; }; }
8ce0cbda 1433
ad6254c5
AK
1434fi
1435echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1436echo "${ECHO_T}$ac_cv_target" >&6
1437target=$ac_cv_target
1438target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1441
8ce0cbda 1442
ad6254c5
AK
1443# The aliases save the names the user supplied, while $host etc.
1444# will get canonicalized.
1445test -n "$target_alias" &&
8ce0cbda
AK
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1447 NONENONEs,x,x, &&
1448 program_prefix=${target_alias}-
1449
8ce0cbda
AK
1450case "$host_os" in
1451 linux*)
1452 CFLAGS="$CFLAGS"
1453 COPTIMISE_FLAG="-O2"
1454 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1455 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1456 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1457 LDDEPS="$LDDEPS .export.sym"
1458 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1459 LIB_SUFFIX="so"
8ce0cbda
AK
1460 DEVMAPPER=yes
1461 ODIRECT=yes
1462 SELINUX=yes
8b1a3214 1463 REALTIME=yes
8ce0cbda
AK
1464 CLUSTER=internal
1465 FSADM=no ;;
1466 darwin*)
1467 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1468 COPTIMISE_FLAG="-O2"
1469 CLDFLAGS="$CLDFLAGS"
1470 CLDWHOLEARCHIVE="-all_load"
1471 CLDNOWHOLEARCHIVE=
1472 LDDEPS="$LDDEPS"
1473 LDFLAGS="$LDFLAGS"
e4c11ad1 1474 LIB_SUFFIX="dylib"
a653923f 1475 DEVMAPPER=yes
8ce0cbda
AK
1476 ODIRECT=no
1477 SELINUX=no
8b1a3214 1478 REALTIME=no
8ce0cbda
AK
1479 CLUSTER=none
1480 FSADM=no ;;
1481esac
1482
80992638 1483################################################################################
ad6254c5 1484for ac_prog in gawk mawk nawk awk
795ca3e5 1485do
ad6254c5 1486 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1487set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1488echo "$as_me:$LINENO: checking for $ac_word" >&5
1489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1490if test "${ac_cv_prog_AWK+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1492else
1493 if test -n "$AWK"; then
1494 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1495else
ad6254c5
AK
1496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1497for as_dir in $PATH
1498do
1499 IFS=$as_save_IFS
1500 test -z "$as_dir" && as_dir=.
1501 for ac_exec_ext in '' $ac_executable_extensions; do
1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1503 ac_cv_prog_AWK="$ac_prog"
1504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 break 2
1506 fi
1507done
1508done
1509
795ca3e5
AK
1510fi
1511fi
ad6254c5 1512AWK=$ac_cv_prog_AWK
795ca3e5 1513if test -n "$AWK"; then
ad6254c5
AK
1514 echo "$as_me:$LINENO: result: $AWK" >&5
1515echo "${ECHO_T}$AWK" >&6
795ca3e5 1516else
ad6254c5
AK
1517 echo "$as_me:$LINENO: result: no" >&5
1518echo "${ECHO_T}no" >&6
795ca3e5
AK
1519fi
1520
ad6254c5
AK
1521 test -n "$AWK" && break
1522done
1523
1524ac_ext=c
1525ac_cpp='$CPP $CPPFLAGS'
1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1531set dummy ${ac_tool_prefix}gcc; ac_word=$2
1532echo "$as_me:$LINENO: checking for $ac_word" >&5
1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1539else
1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541for as_dir in $PATH
1542do
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1550 fi
1551done
8106cdd5
AK
1552done
1553
ad6254c5
AK
1554fi
1555fi
1556CC=$ac_cv_prog_CC
1557if test -n "$CC"; then
1558 echo "$as_me:$LINENO: result: $CC" >&5
1559echo "${ECHO_T}$CC" >&6
1560else
1561 echo "$as_me:$LINENO: result: no" >&5
1562echo "${ECHO_T}no" >&6
1563fi
1564
1565fi
1566if test -z "$ac_cv_prog_CC"; then
1567 ac_ct_CC=$CC
1568 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1569set dummy gcc; ac_word=$2
ad6254c5
AK
1570echo "$as_me:$LINENO: checking for $ac_word" >&5
1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577else
1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="gcc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589done
1590done
1591
1592fi
1593fi
1594ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595if test -n "$ac_ct_CC"; then
1596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1597echo "${ECHO_T}$ac_ct_CC" >&6
1598else
1599 echo "$as_me:$LINENO: result: no" >&5
1600echo "${ECHO_T}no" >&6
1601fi
1602
1603 CC=$ac_ct_CC
1604else
1605 CC="$ac_cv_prog_CC"
1606fi
1607
1608if test -z "$CC"; then
1609 if test -n "$ac_tool_prefix"; then
1610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1611set dummy ${ac_tool_prefix}cc; ac_word=$2
1612echo "$as_me:$LINENO: checking for $ac_word" >&5
1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1616else
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1619else
ad6254c5
AK
1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_CC="${ac_tool_prefix}cc"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631done
1632done
1633
8106cdd5
AK
1634fi
1635fi
ad6254c5 1636CC=$ac_cv_prog_CC
8106cdd5 1637if test -n "$CC"; then
ad6254c5
AK
1638 echo "$as_me:$LINENO: result: $CC" >&5
1639echo "${ECHO_T}$CC" >&6
1640else
1641 echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
1643fi
1644
1645fi
1646if test -z "$ac_cv_prog_CC"; then
1647 ac_ct_CC=$CC
1648 # Extract the first word of "cc", so it can be a program name with args.
1649set dummy cc; ac_word=$2
1650echo "$as_me:$LINENO: checking for $ac_word" >&5
1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_ac_ct_CC="cc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669done
1670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
1679 echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
1681fi
1682
1683 CC=$ac_ct_CC
8106cdd5 1684else
ad6254c5 1685 CC="$ac_cv_prog_CC"
8106cdd5
AK
1686fi
1687
ad6254c5 1688fi
795ca3e5
AK
1689if test -z "$CC"; then
1690 # Extract the first word of "cc", so it can be a program name with args.
1691set dummy cc; ac_word=$2
ad6254c5
AK
1692echo "$as_me:$LINENO: checking for $ac_word" >&5
1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1696else
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1699else
795ca3e5 1700 ac_prog_rejected=no
ad6254c5
AK
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1709 ac_prog_rejected=yes
1710 continue
1711 fi
1712 ac_cv_prog_CC="cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
795ca3e5
AK
1719if test $ac_prog_rejected = yes; then
1720 # We found a bogon in the path, so make sure we never use it.
1721 set dummy $ac_cv_prog_CC
1722 shift
ad6254c5 1723 if test $# != 0; then
795ca3e5
AK
1724 # We chose a different compiler from the bogus one.
1725 # However, it has the same basename, so the bogon will be chosen
1726 # first if we set CC to just the basename; use the full file name.
1727 shift
ad6254c5 1728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1729 fi
1730fi
1731fi
1732fi
ad6254c5 1733CC=$ac_cv_prog_CC
795ca3e5 1734if test -n "$CC"; then
ad6254c5
AK
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736echo "${ECHO_T}$CC" >&6
795ca3e5 1737else
ad6254c5
AK
1738 echo "$as_me:$LINENO: result: no" >&5
1739echo "${ECHO_T}no" >&6
795ca3e5
AK
1740fi
1741
ad6254c5
AK
1742fi
1743if test -z "$CC"; then
1744 if test -n "$ac_tool_prefix"; then
1745 for ac_prog in cl
1746 do
1747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1749echo "$as_me:$LINENO: checking for $ac_word" >&5
1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1753else
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC="$CC" # Let the user override the test.
1756else
ad6254c5
AK
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1767 fi
1768done
1769done
1770
795ca3e5
AK
1771fi
1772fi
ad6254c5 1773CC=$ac_cv_prog_CC
795ca3e5 1774if test -n "$CC"; then
ad6254c5
AK
1775 echo "$as_me:$LINENO: result: $CC" >&5
1776echo "${ECHO_T}$CC" >&6
795ca3e5 1777else
ad6254c5
AK
1778 echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
795ca3e5 1780fi
ad6254c5
AK
1781
1782 test -n "$CC" && break
1783 done
1784fi
1785if test -z "$CC"; then
1786 ac_ct_CC=$CC
1787 for ac_prog in cl
1788do
1789 # Extract the first word of "$ac_prog", so it can be a program name with args.
1790set dummy $ac_prog; ac_word=$2
1791echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC="$ac_prog"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
795ca3e5 1809 fi
ad6254c5
AK
1810done
1811done
1812
1813fi
1814fi
1815ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816if test -n "$ac_ct_CC"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818echo "${ECHO_T}$ac_ct_CC" >&6
1819else
1820 echo "$as_me:$LINENO: result: no" >&5
1821echo "${ECHO_T}no" >&6
795ca3e5
AK
1822fi
1823
ad6254c5
AK
1824 test -n "$ac_ct_CC" && break
1825done
795ca3e5 1826
ad6254c5
AK
1827 CC=$ac_ct_CC
1828fi
1829
1830fi
1831
1832
1833test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1834See \`config.log' for more details." >&5
1835echo "$as_me: error: no acceptable C compiler found in \$PATH
1836See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }
1838
1839# Provide some information about the compiler.
1840echo "$as_me:$LINENO:" \
1841 "checking for C compiler version" >&5
1842ac_compiler=`set X $ac_compile; echo $2`
1843{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1844 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1849 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1854 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }
1858
1859cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
1860/* confdefs.h. */
1861_ACEOF
1862cat confdefs.h >>conftest.$ac_ext
1863cat >>conftest.$ac_ext <<_ACEOF
1864/* end confdefs.h. */
1865
1866int
1867main ()
1868{
1869
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874ac_clean_files_save=$ac_clean_files
1875ac_clean_files="$ac_clean_files a.out a.exe b.out"
1876# Try to create an executable without -o first, disregard a.out.
1877# It will help us diagnose broken compilers, and finding out an intuition
1878# of exeext.
8a2fc586
AK
1879echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1880echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ad6254c5
AK
1881ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1882if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1883 (eval $ac_link_default) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # Find the output, starting from the most likely. This scheme is
1888# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1889# resort.
1890
1891# Be careful to initialize this variable, since it used to be cached.
1892# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893ac_cv_exeext=
1894# b.out is created by i960 compilers.
1895for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8a2fc586 1900 ;;
ad6254c5 1901 conftest.$ac_ext )
8a2fc586
AK
1902 # This is the source file.
1903 ;;
ad6254c5 1904 [ab].out )
8a2fc586
AK
1905 # We found the default executable, but exeext='' is most
1906 # certainly right.
1907 break;;
ad6254c5 1908 *.* )
8a2fc586
AK
1909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1910 # FIXME: I believe we export ac_cv_exeext for Libtool,
1911 # but it would be cool to find out if it's true. Does anybody
1912 # maintain Libtool? --akim.
1913 export ac_cv_exeext
1914 break;;
ad6254c5 1915 * )
8a2fc586 1916 break;;
ad6254c5
AK
1917 esac
1918done
1919else
1920 echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1924See \`config.log' for more details." >&5
1925echo "$as_me: error: C compiler cannot create executables
1926See \`config.log' for more details." >&2;}
1927 { (exit 77); exit 77; }; }
1928fi
1929
1930ac_exeext=$ac_cv_exeext
1931echo "$as_me:$LINENO: result: $ac_file" >&5
1932echo "${ECHO_T}$ac_file" >&6
1933
1934# Check the compiler produces executables we can run. If not, either
1935# the compiler is broken, or we cross compile.
1936echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1937echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939# If not cross compiling, check that we can run a simple program.
1940if test "$cross_compiling" != yes; then
1941 if { ac_try='./$ac_file'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 cross_compiling=no
795ca3e5 1948 else
ad6254c5
AK
1949 if test "$cross_compiling" = maybe; then
1950 cross_compiling=yes
1951 else
1952 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1953If you meant to cross compile, use \`--host'.
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot run C compiled programs.
1956If you meant to cross compile, use \`--host'.
1957See \`config.log' for more details." >&2;}
1958 { (exit 1); exit 1; }; }
1959 fi
795ca3e5 1960 fi
80992638 1961fi
ad6254c5
AK
1962echo "$as_me:$LINENO: result: yes" >&5
1963echo "${ECHO_T}yes" >&6
1964
1965rm -f a.out a.exe conftest$ac_cv_exeext b.out
1966ac_clean_files=$ac_clean_files_save
1967# Check the compiler produces executables we can run. If not, either
1968# the compiler is broken, or we cross compile.
1969echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1970echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1971echo "$as_me:$LINENO: result: $cross_compiling" >&5
1972echo "${ECHO_T}$cross_compiling" >&6
1973
1974echo "$as_me:$LINENO: checking for suffix of executables" >&5
1975echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1977 (eval $ac_link) 2>&5
1978 ac_status=$?
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); }; then
1981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1982# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1983# work properly (i.e., refer to `conftest.exe'), while it won't with
1984# `rm'.
1985for ac_file in conftest.exe conftest conftest.*; do
1986 test -f "$ac_file" || continue
1987 case $ac_file in
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586
AK
1990 export ac_cv_exeext
1991 break;;
ad6254c5
AK
1992 * ) break;;
1993 esac
1994done
80992638 1995else
ad6254c5
AK
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1997See \`config.log' for more details." >&5
1998echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1999See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
2001fi
2002
2003rm -f conftest$ac_cv_exeext
2004echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2005echo "${ECHO_T}$ac_cv_exeext" >&6
2006
2007rm -f conftest.$ac_ext
2008EXEEXT=$ac_cv_exeext
2009ac_exeext=$EXEEXT
2010echo "$as_me:$LINENO: checking for suffix of object files" >&5
2011echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2012if test "${ac_cv_objext+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2014else
ad6254c5 2015 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2016/* confdefs.h. */
2017_ACEOF
2018cat confdefs.h >>conftest.$ac_ext
2019cat >>conftest.$ac_ext <<_ACEOF
2020/* end confdefs.h. */
2021
2022int
2023main ()
2024{
2025
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030rm -f conftest.o conftest.obj
2031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032 (eval $ac_compile) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; then
2036 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 case $ac_file in
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 break;;
2041 esac
2042done
2043else
2044 echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2052fi
2053
2054rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055fi
2056echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057echo "${ECHO_T}$ac_cv_objext" >&6
2058OBJEXT=$ac_cv_objext
2059ac_objext=$OBJEXT
2060echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2066/* confdefs.h. */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h. */
2071
2072int
2073main ()
2074{
2075#ifndef __GNUC__
2076 choke me
2077#endif
80992638 2078
ad6254c5
AK
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083rm -f conftest.$ac_objext
2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2085 (eval $ac_compile) 2>conftest.er1
ad6254c5 2086 ac_status=$?
8a2fc586
AK
2087 grep -v '^ *+' conftest.er1 >conftest.err
2088 rm -f conftest.er1
2089 cat conftest.err >&5
ad6254c5
AK
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
8a2fc586
AK
2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_compiler_gnu=yes
80992638 2106else
ad6254c5
AK
2107 echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110ac_compiler_gnu=no
8106cdd5 2111fi
8a2fc586 2112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2113ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2114
ad6254c5
AK
2115fi
2116echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2117echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2118GCC=`test $ac_compiler_gnu = yes && echo yes`
2119ac_test_CFLAGS=${CFLAGS+set}
2120ac_save_CFLAGS=$CFLAGS
2121CFLAGS="-g"
2122echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2123echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2124if test "${ac_cv_prog_cc_g+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2126else
ad6254c5 2127 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2128/* confdefs.h. */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h. */
2133
2134int
2135main ()
2136{
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2144 (eval $ac_compile) 2>conftest.er1
ad6254c5 2145 ac_status=$?
8a2fc586
AK
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
ad6254c5
AK
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
8a2fc586
AK
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
795ca3e5
AK
2164 ac_cv_prog_cc_g=yes
2165else
ad6254c5
AK
2166 echo "$as_me: failed program was:" >&5
2167sed 's/^/| /' conftest.$ac_ext >&5
80992638 2168
ad6254c5 2169ac_cv_prog_cc_g=no
8106cdd5 2170fi
8a2fc586 2171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2174echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2175if test "$ac_test_CFLAGS" = set; then
ad6254c5 2176 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2177elif test $ac_cv_prog_cc_g = yes; then
2178 if test "$GCC" = yes; then
2179 CFLAGS="-g -O2"
2180 else
2181 CFLAGS="-g"
2182 fi
2183else
2184 if test "$GCC" = yes; then
2185 CFLAGS="-O2"
2186 else
2187 CFLAGS=
2188 fi
2189fi
ad6254c5
AK
2190echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2191echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2192if test "${ac_cv_prog_cc_stdc+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 ac_cv_prog_cc_stdc=no
2196ac_save_CC=$CC
2197cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2198/* confdefs.h. */
2199_ACEOF
2200cat confdefs.h >>conftest.$ac_ext
2201cat >>conftest.$ac_ext <<_ACEOF
2202/* end confdefs.h. */
2203#include <stdarg.h>
2204#include <stdio.h>
2205#include <sys/types.h>
2206#include <sys/stat.h>
2207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2208struct buf { int x; };
2209FILE * (*rcsopen) (struct buf *, struct stat *, int);
2210static char *e (p, i)
2211 char **p;
2212 int i;
2213{
2214 return p[i];
2215}
2216static char *f (char * (*g) (char **, int), char **p, ...)
2217{
2218 char *s;
2219 va_list v;
2220 va_start (v,p);
2221 s = g (p, va_arg (v,int));
2222 va_end (v);
2223 return s;
2224}
8a2fc586
AK
2225
2226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2227 function prototypes and stuff, but not '\xHH' hex character constants.
2228 These don't provoke an error unfortunately, instead are silently treated
2229 as 'x'. The following induces an error, until -std1 is added to get
2230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2231 array size at least. It's necessary to write '\x00'==0 to get something
2232 that's true only with -std1. */
2233int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2234
ad6254c5
AK
2235int test (int i, double x);
2236struct s1 {int (*f) (int a);};
2237struct s2 {int (*f) (double a);};
2238int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2239int argc;
2240char **argv;
2241int
2242main ()
2243{
2244return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249# Don't try gcc -ansi; that turns off useful extensions and
2250# breaks some systems' header files.
2251# AIX -qlanglvl=ansi
2252# Ultrix and OSF/1 -std1
2253# HP-UX 10.20 and later -Ae
2254# HP-UX older versions -Aa -D_HPUX_SOURCE
2255# SVR4 -Xc -D__EXTENSIONS__
2256for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2257do
2258 CC="$ac_save_CC $ac_arg"
2259 rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2261 (eval $ac_compile) 2>conftest.er1
ad6254c5 2262 ac_status=$?
8a2fc586
AK
2263 grep -v '^ *+' conftest.er1 >conftest.err
2264 rm -f conftest.er1
2265 cat conftest.err >&5
ad6254c5
AK
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
8a2fc586
AK
2268 { ac_try='test -z "$ac_c_werror_flag"
2269 || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 ac_cv_prog_cc_stdc=$ac_arg
2282break
2283else
2284 echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287fi
8a2fc586 2288rm -f conftest.err conftest.$ac_objext
ad6254c5
AK
2289done
2290rm -f conftest.$ac_ext conftest.$ac_objext
2291CC=$ac_save_CC
2292
2293fi
2294
2295case "x$ac_cv_prog_cc_stdc" in
2296 x|xno)
2297 echo "$as_me:$LINENO: result: none needed" >&5
2298echo "${ECHO_T}none needed" >&6 ;;
2299 *)
2300 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2301echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2302 CC="$CC $ac_cv_prog_cc_stdc" ;;
2303esac
2304
2305# Some people use a C++ compiler to compile C. Since we use `exit',
2306# in C++ we need to declare it. In case someone uses the same compiler
2307# for both compiling C and C++ we need to have the C++ compiler decide
2308# the declaration of exit, since it's the most demanding environment.
2309cat >conftest.$ac_ext <<_ACEOF
2310#ifndef __cplusplus
2311 choke me
2312#endif
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2316 (eval $ac_compile) 2>conftest.er1
ad6254c5 2317 ac_status=$?
8a2fc586
AK
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
ad6254c5
AK
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
8a2fc586
AK
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 for ac_declaration in \
8a2fc586 2337 '' \
ad6254c5
AK
2338 'extern "C" void std::exit (int) throw (); using std::exit;' \
2339 'extern "C" void std::exit (int); using std::exit;' \
2340 'extern "C" void exit (int) throw ();' \
2341 'extern "C" void exit (int);' \
2342 'void exit (int);'
2343do
2344 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
c1c065a3 2350$ac_declaration
8a2fc586 2351#include <stdlib.h>
ad6254c5
AK
2352int
2353main ()
2354{
2355exit (42);
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360rm -f conftest.$ac_objext
2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2362 (eval $ac_compile) 2>conftest.er1
ad6254c5 2363 ac_status=$?
8a2fc586
AK
2364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
ad6254c5
AK
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
8a2fc586
AK
2369 { ac_try='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 :
2383else
2384 echo "$as_me: failed program was:" >&5
2385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387continue
2388fi
8a2fc586 2389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2390 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2391/* confdefs.h. */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h. */
2396$ac_declaration
2397int
2398main ()
2399{
2400exit (42);
2401 ;
2402 return 0;
2403}
2404_ACEOF
2405rm -f conftest.$ac_objext
2406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2407 (eval $ac_compile) 2>conftest.er1
ad6254c5 2408 ac_status=$?
8a2fc586
AK
2409 grep -v '^ *+' conftest.er1 >conftest.err
2410 rm -f conftest.er1
2411 cat conftest.err >&5
ad6254c5
AK
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
8a2fc586
AK
2414 { ac_try='test -z "$ac_c_werror_flag"
2415 || test ! -s conftest.err'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 (eval $ac_try) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; } &&
2421 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2427 break
2428else
2429 echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432fi
8a2fc586 2433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2434done
2435rm -f conftest*
2436if test -n "$ac_declaration"; then
2437 echo '#ifdef __cplusplus' >>confdefs.h
2438 echo $ac_declaration >>confdefs.h
2439 echo '#endif' >>confdefs.h
2440fi
2441
2442else
2443 echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446fi
8a2fc586 2447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2448ac_ext=c
2449ac_cpp='$CPP $CPPFLAGS'
2450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2453
2454# Find a good install program. We prefer a C program (faster),
2455# so one script is as good as another. But avoid the broken or
2456# incompatible versions:
2457# SysV /etc/install, /usr/sbin/install
2458# SunOS /usr/etc/install
2459# IRIX /sbin/install
2460# AIX /bin/install
ad6254c5 2461# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2462# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2463# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2464# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2465# OS/2's system install, which has a completely different semantic
795ca3e5 2466# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2467echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2468echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2469if test -z "$INSTALL"; then
ad6254c5
AK
2470if test "${ac_cv_path_install+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 # Account for people who put trailing slashes in PATH elements.
2479case $as_dir/ in
2480 ./ | .// | /cC/* | \
2481 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 2482 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2483 /usr/ucb/* ) ;;
2484 *)
2485 # OSF1 and SCO ODT 3.0 have their own names for install.
2486 # Don't use installbsd from OSF since it installs stuff as root
2487 # by default.
2488 for ac_prog in ginstall scoinst install; do
2489 for ac_exec_ext in '' $ac_executable_extensions; do
8a2fc586
AK
2490 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2491 if test $ac_prog = install &&
2492 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493 # AIX install. It has an incompatible calling convention.
2494 :
2495 elif test $ac_prog = install &&
2496 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497 # program-specific install script used by HP pwplus--don't use.
2498 :
2499 else
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
2503 fi
795ca3e5 2504 done
ad6254c5
AK
2505 done
2506 ;;
2507esac
2508done
2509
795ca3e5
AK
2510
2511fi
2512 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2513 INSTALL=$ac_cv_path_install
795ca3e5
AK
2514 else
2515 # As a last resort, use the slow shell script. We don't cache a
2516 # path for INSTALL within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the path is relative.
ad6254c5 2519 INSTALL=$ac_install_sh
795ca3e5
AK
2520 fi
2521fi
ad6254c5
AK
2522echo "$as_me:$LINENO: result: $INSTALL" >&5
2523echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2524
2525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526# It thinks the first close brace ends the variable substitution.
2527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
ad6254c5 2529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2530
2531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
ad6254c5
AK
2533echo "$as_me:$LINENO: checking whether ln -s works" >&5
2534echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2535LN_S=$as_ln_s
2536if test "$LN_S" = "ln -s"; then
2537 echo "$as_me:$LINENO: result: yes" >&5
2538echo "${ECHO_T}yes" >&6
80992638 2539else
ad6254c5
AK
2540 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2541echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2542fi
2543
ad6254c5
AK
2544echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2545echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8a2fc586 2546set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ad6254c5
AK
2547if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2549else
ad6254c5 2550 cat >conftest.make <<\_ACEOF
795ca3e5 2551all:
ad6254c5
AK
2552 @echo 'ac_maketemp="$(MAKE)"'
2553_ACEOF
795ca3e5 2554# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2555eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2556if test -n "$ac_maketemp"; then
2557 eval ac_cv_prog_make_${ac_make}_set=yes
2558else
2559 eval ac_cv_prog_make_${ac_make}_set=no
2560fi
ad6254c5 2561rm -f conftest.make
795ca3e5
AK
2562fi
2563if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2564 echo "$as_me:$LINENO: result: yes" >&5
2565echo "${ECHO_T}yes" >&6
795ca3e5
AK
2566 SET_MAKE=
2567else
ad6254c5
AK
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
795ca3e5
AK
2570 SET_MAKE="MAKE=${MAKE-make}"
2571fi
2572
ad6254c5
AK
2573if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2575set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2576echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578if test "${ac_cv_prog_RANLIB+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2580else
2581 if test -n "$RANLIB"; then
2582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2583else
ad6254c5
AK
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
2597
795ca3e5
AK
2598fi
2599fi
ad6254c5 2600RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2601if test -n "$RANLIB"; then
ad6254c5
AK
2602 echo "$as_me:$LINENO: result: $RANLIB" >&5
2603echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2604else
ad6254c5
AK
2605 echo "$as_me:$LINENO: result: no" >&5
2606echo "${ECHO_T}no" >&6
8106cdd5
AK
2607fi
2608
795ca3e5 2609fi
ad6254c5
AK
2610if test -z "$ac_cv_prog_RANLIB"; then
2611 ac_ct_RANLIB=$RANLIB
2612 # Extract the first word of "ranlib", so it can be a program name with args.
2613set dummy ranlib; ac_word=$2
2614echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2616if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2618else
ad6254c5
AK
2619 if test -n "$ac_ct_RANLIB"; then
2620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_RANLIB="ranlib"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633done
795ca3e5 2634done
8106cdd5 2635
ad6254c5 2636 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2637fi
80992638 2638fi
ad6254c5
AK
2639ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2640if test -n "$ac_ct_RANLIB"; then
2641 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2642echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2643else
ad6254c5
AK
2644 echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6
8106cdd5 2646fi
8106cdd5 2647
ad6254c5 2648 RANLIB=$ac_ct_RANLIB
80992638 2649else
ad6254c5 2650 RANLIB="$ac_cv_prog_RANLIB"
80992638 2651fi
795ca3e5 2652
8a2fc586
AK
2653# Extract the first word of "cflow", so it can be a program name with args.
2654set dummy cflow; ac_word=$2
2655echo "$as_me:$LINENO: checking for $ac_word" >&5
2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
2660 case $CFLOW_CMD in
2661 [\\/]* | ?:[\\/]*)
2662 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
2663 ;;
2664 *)
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676done
2677done
2678
2679 ;;
2680esac
2681fi
2682CFLOW_CMD=$ac_cv_path_CFLOW_CMD
2683
2684if test -n "$CFLOW_CMD"; then
2685 echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
2686echo "${ECHO_T}$CFLOW_CMD" >&6
2687else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690fi
2691
2692# Extract the first word of "cscope", so it can be a program name with args.
2693set dummy cscope; ac_word=$2
2694echo "$as_me:$LINENO: checking for $ac_word" >&5
2695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 case $CSCOPE_CMD in
2700 [\\/]* | ?:[\\/]*)
2701 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
2702 ;;
2703 *)
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715done
2716done
2717
2718 ;;
2719esac
2720fi
2721CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
2722
2723if test -n "$CSCOPE_CMD"; then
2724 echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
2725echo "${ECHO_T}$CSCOPE_CMD" >&6
2726else
2727 echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6
2729fi
2730
795ca3e5 2731
ad6254c5
AK
2732################################################################################
2733
2734
2735
2736
2737
2738
2739ac_header_dirent=no
2740for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2741 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2742echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2743echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2744if eval "test \"\${$as_ac_Header+set}\" = set"; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2746else
ad6254c5 2747 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2748/* confdefs.h. */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h. */
2753#include <sys/types.h>
2754#include <$ac_hdr>
2755
2756int
2757main ()
2758{
2759if ((DIR *) 0)
2760return 0;
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2767 (eval $ac_compile) 2>conftest.er1
ad6254c5 2768 ac_status=$?
8a2fc586
AK
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
ad6254c5
AK
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
8a2fc586
AK
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 eval "$as_ac_Header=yes"
8106cdd5 2788else
ad6254c5
AK
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792eval "$as_ac_Header=no"
795ca3e5 2793fi
8a2fc586 2794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 2795fi
ad6254c5
AK
2796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2798if test `eval echo '${'$as_ac_Header'}'` = yes; then
2799 cat >>confdefs.h <<_ACEOF
2800#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2801_ACEOF
2802
2803ac_header_dirent=$ac_hdr; break
795ca3e5 2804fi
8106cdd5 2805
ad6254c5
AK
2806done
2807# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2808if test $ac_header_dirent = dirent.h; then
2809 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2810echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2811if test "${ac_cv_search_opendir+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2813else
ad6254c5
AK
2814 ac_func_search_save_LIBS=$LIBS
2815ac_cv_search_opendir=no
2816cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2817/* confdefs.h. */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h. */
2822
2823/* Override any gcc2 internal prototype to avoid an error. */
2824#ifdef __cplusplus
2825extern "C"
2826#endif
2827/* We use char because int might match the return type of a gcc2
2828 builtin and then its argument prototype would still apply. */
2829char opendir ();
2830int
2831main ()
2832{
2833opendir ();
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838rm -f conftest.$ac_objext conftest$ac_exeext
2839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2840 (eval $ac_link) 2>conftest.er1
ad6254c5 2841 ac_status=$?
8a2fc586
AK
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
ad6254c5
AK
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
8a2fc586
AK
2847 { ac_try='test -z "$ac_c_werror_flag"
2848 || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_search_opendir="none required"
795ca3e5 2861else
ad6254c5
AK
2862 echo "$as_me: failed program was:" >&5
2863sed 's/^/| /' conftest.$ac_ext >&5
2864
2865fi
8a2fc586
AK
2866rm -f conftest.err conftest.$ac_objext \
2867 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2868if test "$ac_cv_search_opendir" = no; then
2869 for ac_lib in dir; do
2870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2871 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
795ca3e5 2877
ad6254c5
AK
2878/* Override any gcc2 internal prototype to avoid an error. */
2879#ifdef __cplusplus
2880extern "C"
2881#endif
2882/* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2884char opendir ();
2885int
2886main ()
2887{
2888opendir ();
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2895 (eval $ac_link) 2>conftest.er1
ad6254c5 2896 ac_status=$?
8a2fc586
AK
2897 grep -v '^ *+' conftest.er1 >conftest.err
2898 rm -f conftest.er1
2899 cat conftest.err >&5
ad6254c5
AK
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); } &&
8a2fc586
AK
2902 { ac_try='test -z "$ac_c_werror_flag"
2903 || test ! -s conftest.err'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; } &&
2909 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; }; then
2915 ac_cv_search_opendir="-l$ac_lib"
2916break
795ca3e5 2917else
ad6254c5
AK
2918 echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2920
2921fi
8a2fc586
AK
2922rm -f conftest.err conftest.$ac_objext \
2923 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2924 done
795ca3e5 2925fi
ad6254c5
AK
2926LIBS=$ac_func_search_save_LIBS
2927fi
2928echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2929echo "${ECHO_T}$ac_cv_search_opendir" >&6
2930if test "$ac_cv_search_opendir" != no; then
2931 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2932
2933fi
2934
795ca3e5 2935else
ad6254c5
AK
2936 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2937echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2938if test "${ac_cv_search_opendir+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941 ac_func_search_save_LIBS=$LIBS
2942ac_cv_search_opendir=no
2943cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
80992638 2949
ad6254c5
AK
2950/* Override any gcc2 internal prototype to avoid an error. */
2951#ifdef __cplusplus
2952extern "C"
2953#endif
2954/* We use char because int might match the return type of a gcc2
2955 builtin and then its argument prototype would still apply. */
2956char opendir ();
2957int
2958main ()
2959{
2960opendir ();
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext conftest$ac_exeext
2966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2967 (eval $ac_link) 2>conftest.er1
ad6254c5 2968 ac_status=$?
8a2fc586
AK
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
ad6254c5
AK
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
8a2fc586
AK
2974 { ac_try='test -z "$ac_c_werror_flag"
2975 || test ! -s conftest.err'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; } &&
2981 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 ac_cv_search_opendir="none required"
795ca3e5 2988else
ad6254c5
AK
2989 echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992fi
8a2fc586
AK
2993rm -f conftest.err conftest.$ac_objext \
2994 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2995if test "$ac_cv_search_opendir" = no; then
2996 for ac_lib in x; do
2997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2998 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2999/* confdefs.h. */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h. */
3004
3005/* Override any gcc2 internal prototype to avoid an error. */
3006#ifdef __cplusplus
3007extern "C"
3008#endif
3009/* We use char because int might match the return type of a gcc2
3010 builtin and then its argument prototype would still apply. */
3011char opendir ();
3012int
3013main ()
3014{
3015opendir ();
3016 ;
3017 return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext conftest$ac_exeext
3021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 3022 (eval $ac_link) 2>conftest.er1
ad6254c5 3023 ac_status=$?
8a2fc586
AK
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
ad6254c5
AK
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
8a2fc586
AK
3029 { ac_try='test -z "$ac_c_werror_flag"
3030 || test ! -s conftest.err'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3042 ac_cv_search_opendir="-l$ac_lib"
3043break
3044else
3045 echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
80992638 3047
795ca3e5 3048fi
8a2fc586
AK
3049rm -f conftest.err conftest.$ac_objext \
3050 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
3051 done
3052fi
3053LIBS=$ac_func_search_save_LIBS
795ca3e5 3054fi
ad6254c5
AK
3055echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3056echo "${ECHO_T}$ac_cv_search_opendir" >&6
3057if test "$ac_cv_search_opendir" != no; then
3058 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 3059
ad6254c5 3060fi
8106cdd5 3061
795ca3e5 3062fi
8106cdd5 3063
ad6254c5
AK
3064ac_ext=c
3065ac_cpp='$CPP $CPPFLAGS'
3066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3070echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3071# On Suns, sometimes $CPP names a directory.
3072if test -n "$CPP" && test -d "$CPP"; then
3073 CPP=
3074fi
3075if test -z "$CPP"; then
3076 if test "${ac_cv_prog_CPP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 # Double quotes because CPP needs to be expanded
3080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3081 do
3082 ac_preproc_ok=false
3083for ac_c_preproc_warn_flag in '' yes
8106cdd5 3084do
ad6254c5
AK
3085 # Use a header file that comes with gcc, so configuring glibc
3086 # with a fresh cross-compiler works.
3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3088 # <limits.h> exists even on freestanding compilers.
3089 # On the NeXT, cc -E runs the code through the compiler's parser,
3090 # not just through cpp. "Syntax error" is here to catch this case.
3091 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h. */
3097#ifdef __STDC__
3098# include <limits.h>
3099#else
3100# include <assert.h>
3101#endif
8a2fc586 3102 Syntax error
ad6254c5
AK
3103_ACEOF
3104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3115 else
3116 ac_cpp_err=
3117 fi
3118else
3119 ac_cpp_err=yes
8106cdd5 3120fi
ad6254c5
AK
3121if test -z "$ac_cpp_err"; then
3122 :
3123else
3124 echo "$as_me: failed program was:" >&5
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127 # Broken: fails on valid input.
3128continue
3129fi
3130rm -f conftest.err conftest.$ac_ext
3131
3132 # OK, works on sane cases. Now check whether non-existent headers
3133 # can be detected and how.
3134 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
3140#include <ac_nonexistent.h>
3141_ACEOF
3142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev/null; then
3150 if test -s conftest.err; then
3151 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3153 else
3154 ac_cpp_err=
3155 fi
3156else
3157 ac_cpp_err=yes
8106cdd5 3158fi
ad6254c5
AK
3159if test -z "$ac_cpp_err"; then
3160 # Broken: success on invalid input.
3161continue
80992638 3162else
ad6254c5
AK
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 # Passes both tests.
3167ac_preproc_ok=:
3168break
795ca3e5 3169fi
ad6254c5
AK
3170rm -f conftest.err conftest.$ac_ext
3171
795ca3e5 3172done
ad6254c5
AK
3173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3174rm -f conftest.err conftest.$ac_ext
3175if $ac_preproc_ok; then
3176 break
3177fi
795ca3e5 3178
ad6254c5
AK
3179 done
3180 ac_cv_prog_CPP=$CPP
795ca3e5 3181
ad6254c5
AK
3182fi
3183 CPP=$ac_cv_prog_CPP
795ca3e5 3184else
ad6254c5 3185 ac_cv_prog_CPP=$CPP
795ca3e5 3186fi
ad6254c5
AK
3187echo "$as_me:$LINENO: result: $CPP" >&5
3188echo "${ECHO_T}$CPP" >&6
3189ac_preproc_ok=false
3190for ac_c_preproc_warn_flag in '' yes
3191do
3192 # Use a header file that comes with gcc, so configuring glibc
3193 # with a fresh cross-compiler works.
3194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3195 # <limits.h> exists even on freestanding compilers.
3196 # On the NeXT, cc -E runs the code through the compiler's parser,
3197 # not just through cpp. "Syntax error" is here to catch this case.
3198 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3199/* confdefs.h. */
3200_ACEOF
3201cat confdefs.h >>conftest.$ac_ext
3202cat >>conftest.$ac_ext <<_ACEOF
3203/* end confdefs.h. */
3204#ifdef __STDC__
3205# include <limits.h>
3206#else
3207# include <assert.h>
3208#endif
8a2fc586 3209 Syntax error
ad6254c5
AK
3210_ACEOF
3211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev/null; then
3219 if test -s conftest.err; then
3220 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3222 else
3223 ac_cpp_err=
3224 fi
3225else
3226 ac_cpp_err=yes
795ca3e5 3227fi
ad6254c5
AK
3228if test -z "$ac_cpp_err"; then
3229 :
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 # Broken: fails on valid input.
3235continue
3236fi
3237rm -f conftest.err conftest.$ac_ext
3238
3239 # OK, works on sane cases. Now check whether non-existent headers
3240 # can be detected and how.
3241 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247#include <ac_nonexistent.h>
3248_ACEOF
3249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } >/dev/null; then
3257 if test -s conftest.err; then
3258 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3260 else
3261 ac_cpp_err=
3262 fi
3263else
3264 ac_cpp_err=yes
3265fi
3266if test -z "$ac_cpp_err"; then
3267 # Broken: success on invalid input.
3268continue
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3272
ad6254c5
AK
3273 # Passes both tests.
3274ac_preproc_ok=:
3275break
795ca3e5 3276fi
ad6254c5 3277rm -f conftest.err conftest.$ac_ext
795ca3e5 3278
ad6254c5
AK
3279done
3280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3281rm -f conftest.err conftest.$ac_ext
3282if $ac_preproc_ok; then
3283 :
795ca3e5 3284else
ad6254c5
AK
3285 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3286See \`config.log' for more details." >&5
3287echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3288See \`config.log' for more details." >&2;}
3289 { (exit 1); exit 1; }; }
795ca3e5 3290fi
795ca3e5 3291
ad6254c5
AK
3292ac_ext=c
3293ac_cpp='$CPP $CPPFLAGS'
3294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3296ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297
3298
3299echo "$as_me:$LINENO: checking for egrep" >&5
3300echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3301if test "${ac_cv_prog_egrep+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3305 then ac_cv_prog_egrep='grep -E'
3306 else ac_cv_prog_egrep='egrep'
3307 fi
795ca3e5 3308fi
ad6254c5
AK
3309echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3310echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3311 EGREP=$ac_cv_prog_egrep
80992638 3312
795ca3e5 3313
ad6254c5
AK
3314echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3315echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3316if test "${ac_cv_header_stdc+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3318else
ad6254c5 3319 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
80992638 3325#include <stdlib.h>
ad6254c5
AK
3326#include <stdarg.h>
3327#include <string.h>
3328#include <float.h>
3329
3330int
3331main ()
3332{
3333
3334 ;
3335 return 0;
3336}
3337_ACEOF
3338rm -f conftest.$ac_objext
3339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3340 (eval $ac_compile) 2>conftest.er1
ad6254c5 3341 ac_status=$?
8a2fc586
AK
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
ad6254c5
AK
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
8a2fc586
AK
3347 { ac_try='test -z "$ac_c_werror_flag"
3348 || test ! -s conftest.err'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3360 ac_cv_header_stdc=yes
795ca3e5 3361else
ad6254c5
AK
3362 echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365ac_cv_header_stdc=no
795ca3e5 3366fi
8a2fc586 3367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3368
3369if test $ac_cv_header_stdc = yes; then
3370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3371 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
3377#include <string.h>
8106cdd5 3378
ad6254c5
AK
3379_ACEOF
3380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 $EGREP "memchr" >/dev/null 2>&1; then
3382 :
3383else
3384 ac_cv_header_stdc=no
80992638 3385fi
ad6254c5 3386rm -f conftest*
795ca3e5
AK
3387
3388fi
3389
ad6254c5
AK
3390if test $ac_cv_header_stdc = yes; then
3391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3392 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3393/* confdefs.h. */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
3397/* end confdefs.h. */
80992638 3398#include <stdlib.h>
ad6254c5
AK
3399
3400_ACEOF
80992638 3401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3402 $EGREP "free" >/dev/null 2>&1; then
3403 :
795ca3e5 3404else
ad6254c5 3405 ac_cv_header_stdc=no
795ca3e5 3406fi
80992638 3407rm -f conftest*
8106cdd5 3408
795ca3e5
AK
3409fi
3410
ad6254c5
AK
3411if test $ac_cv_header_stdc = yes; then
3412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413 if test "$cross_compiling" = yes; then
3414 :
795ca3e5 3415else
ad6254c5 3416 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
3422#include <ctype.h>
3423#if ((' ' & 0x0FF) == 0x020)
3424# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3426#else
3427# define ISLOWER(c) \
8a2fc586
AK
3428 (('a' <= (c) && (c) <= 'i') \
3429 || ('j' <= (c) && (c) <= 'r') \
3430 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3431# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3432#endif
ad6254c5
AK
3433
3434#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3435int
3436main ()
3437{
3438 int i;
3439 for (i = 0; i < 256; i++)
3440 if (XOR (islower (i), ISLOWER (i))
8a2fc586 3441 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3442 exit(2);
3443 exit (0);
3444}
3445_ACEOF
3446rm -f conftest$ac_exeext
3447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448 (eval $ac_link) 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 :
795ca3e5 3458else
ad6254c5
AK
3459 echo "$as_me: program exited with status $ac_status" >&5
3460echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3462
ad6254c5
AK
3463( exit $ac_status )
3464ac_cv_header_stdc=no
80992638 3465fi
8a2fc586 3466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3467fi
3468fi
3469fi
3470echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472if test $ac_cv_header_stdc = yes; then
3473
3474cat >>confdefs.h <<\_ACEOF
3475#define STDC_HEADERS 1
3476_ACEOF
795ca3e5
AK
3477
3478fi
3479
ad6254c5
AK
3480echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3481echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3482if test "${ac_cv_header_sys_wait_h+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3484else
ad6254c5 3485 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3486/* confdefs.h. */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h. */
80992638 3491#include <sys/types.h>
ad6254c5
AK
3492#include <sys/wait.h>
3493#ifndef WEXITSTATUS
3494# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3495#endif
3496#ifndef WIFEXITED
3497# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3498#endif
3499
3500int
3501main ()
3502{
3503 int s;
3504 wait (&s);
3505 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3506 ;
3507 return 0;
3508}
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3512 (eval $ac_compile) 2>conftest.er1
ad6254c5 3513 ac_status=$?
8a2fc586
AK
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
ad6254c5
AK
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
8a2fc586
AK
3519 { ac_try='test -z "$ac_c_werror_flag"
3520 || test ! -s conftest.err'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; } &&
3526 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_cv_header_sys_wait_h=yes
3533else
3534 echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537ac_cv_header_sys_wait_h=no
8106cdd5 3538fi
8a2fc586 3539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3540fi
ad6254c5
AK
3541echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3542echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3543if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3544
ad6254c5
AK
3545cat >>confdefs.h <<\_ACEOF
3546#define HAVE_SYS_WAIT_H 1
3547_ACEOF
795ca3e5
AK
3548
3549fi
3550
ad6254c5
AK
3551echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3552echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3553if test "${ac_cv_header_time+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3555else
ad6254c5 3556 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
795ca3e5
AK
3562#include <sys/types.h>
3563#include <sys/time.h>
3564#include <time.h>
ad6254c5
AK
3565
3566int
3567main ()
3568{
3569if ((struct tm *) 0)
3570return 0;
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3577 (eval $ac_compile) 2>conftest.er1
ad6254c5 3578 ac_status=$?
8a2fc586
AK
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
ad6254c5
AK
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
8a2fc586
AK
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
795ca3e5
AK
3597 ac_cv_header_time=yes
3598else
ad6254c5
AK
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602ac_cv_header_time=no
795ca3e5 3603fi
8a2fc586 3604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3605fi
ad6254c5
AK
3606echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3607echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3608if test $ac_cv_header_time = yes; then
ad6254c5
AK
3609
3610cat >>confdefs.h <<\_ACEOF
795ca3e5 3611#define TIME_WITH_SYS_TIME 1
ad6254c5 3612_ACEOF
b896caa1 3613
8106cdd5 3614fi
b896caa1 3615
b896caa1 3616
ad6254c5 3617# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3618
b896caa1
AK
3619
3620
795ca3e5 3621
8106cdd5 3622
80992638 3623
795ca3e5 3624
a38df97f 3625
80992638 3626
ad6254c5 3627for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 3628 inttypes.h stdint.h unistd.h
ad6254c5
AK
3629do
3630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3631echo "$as_me:$LINENO: checking for $ac_header" >&5
3632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3633if eval "test \"\${$as_ac_Header+set}\" = set"; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635else
3636 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3637/* confdefs.h. */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h. */
3642$ac_includes_default
3643
3644#include <$ac_header>
3645_ACEOF
3646rm -f conftest.$ac_objext
3647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3648 (eval $ac_compile) 2>conftest.er1
ad6254c5 3649 ac_status=$?
8a2fc586
AK
3650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
ad6254c5
AK
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
8a2fc586
AK
3655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 eval "$as_ac_Header=yes"
3669else
3670 echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3672
ad6254c5
AK
3673eval "$as_ac_Header=no"
3674fi
8a2fc586 3675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 3676fi
ad6254c5
AK
3677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3679if test `eval echo '${'$as_ac_Header'}'` = yes; then
3680 cat >>confdefs.h <<_ACEOF
3681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3682_ACEOF
a38df97f 3683
80992638
AK
3684fi
3685
ad6254c5
AK
3686done
3687
7d1552c9 3688
7d1552c9 3689
80992638 3690
5a52dca9 3691
5a52dca9 3692
ad6254c5
AK
3693
3694
3695
3696
3697
3698for ac_header in fcntl.h limits.h locale.h stddef.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h
3699do
3700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3701if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo "$as_me:$LINENO: checking for $ac_header" >&5
3703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3704if eval "test \"\${$as_ac_Header+set}\" = set"; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706fi
3707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3709else
3710 # Is the header compilable?
3711echo "$as_me:$LINENO: checking $ac_header usability" >&5
3712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3713cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719$ac_includes_default
3720#include <$ac_header>
3721_ACEOF
3722rm -f conftest.$ac_objext
3723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3724 (eval $ac_compile) 2>conftest.er1
ad6254c5 3725 ac_status=$?
8a2fc586
AK
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
ad6254c5
AK
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
8a2fc586
AK
3731 { ac_try='test -z "$ac_c_werror_flag"
3732 || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_header_compiler=yes
3745else
3746 echo "$as_me: failed program was:" >&5
3747sed 's/^/| /' conftest.$ac_ext >&5
3748
3749ac_header_compiler=no
3750fi
8a2fc586 3751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3753echo "${ECHO_T}$ac_header_compiler" >&6
3754
3755# Is the header present?
3756echo "$as_me:$LINENO: checking $ac_header presence" >&5
3757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3758cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
3764#include <$ac_header>
3765_ACEOF
3766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } >/dev/null; then
3774 if test -s conftest.err; then
3775 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3777 else
3778 ac_cpp_err=
3779 fi
3780else
3781 ac_cpp_err=yes
3782fi
3783if test -z "$ac_cpp_err"; then
3784 ac_header_preproc=yes
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 ac_header_preproc=no
3790fi
3791rm -f conftest.err conftest.$ac_ext
3792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3793echo "${ECHO_T}$ac_header_preproc" >&6
3794
3795# So? What about this header?
8a2fc586
AK
3796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3797 yes:no: )
ad6254c5
AK
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3802 ac_header_preproc=yes
ad6254c5 3803 ;;
8a2fc586 3804 no:yes:* )
ad6254c5
AK
3805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3817 (
3818 cat <<\_ASBOX
8a2fc586
AK
3819## ------------------------------------------ ##
3820## Report this to the AC_PACKAGE_NAME lists. ##
3821## ------------------------------------------ ##
ad6254c5
AK
3822_ASBOX
3823 ) |
3824 sed "s/^/$as_me: WARNING: /" >&2
3825 ;;
3826esac
3827echo "$as_me:$LINENO: checking for $ac_header" >&5
3828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3829if eval "test \"\${$as_ac_Header+set}\" = set"; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
8a2fc586 3832 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 3833fi
ad6254c5
AK
3834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3836
3837fi
3838if test `eval echo '${'$as_ac_Header'}'` = yes; then
3839 cat >>confdefs.h <<_ACEOF
3840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3841_ACEOF
b896caa1 3842
d8ac0fbc 3843else
ad6254c5
AK
3844 { { echo "$as_me:$LINENO: error: bailing out" >&5
3845echo "$as_me: error: bailing out" >&2;}
3846 { (exit 1); exit 1; }; }
80992638
AK
3847fi
3848
ad6254c5 3849done
d8ac0fbc 3850
d8ac0fbc 3851
d8ac0fbc 3852
80992638 3853
d3c8211f 3854
d3c8211f 3855
d3c8211f 3856
80992638 3857
4922197a 3858
4922197a 3859
ad6254c5
AK
3860
3861
3862
3863for ac_header in assert.h ctype.h libgen.h signal.h stdio.h sys/mman.h sys/resource.h sys/stat.h sys/types.h sys/utsname.h sys/wait.h time.h
3864do
3865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3866if eval "test \"\${$as_ac_Header+set}\" = set"; then
3867 echo "$as_me:$LINENO: checking for $ac_header" >&5
3868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3869if eval "test \"\${$as_ac_Header+set}\" = set"; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871fi
3872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3874else
3875 # Is the header compilable?
3876echo "$as_me:$LINENO: checking $ac_header usability" >&5
3877echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3878cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
3884$ac_includes_default
3885#include <$ac_header>
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3889 (eval $ac_compile) 2>conftest.er1
ad6254c5 3890 ac_status=$?
8a2fc586
AK
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
ad6254c5
AK
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
8a2fc586
AK
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_header_compiler=yes
3910else
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914ac_header_compiler=no
3915fi
8a2fc586 3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3917echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3918echo "${ECHO_T}$ac_header_compiler" >&6
3919
3920# Is the header present?
3921echo "$as_me:$LINENO: checking $ac_header presence" >&5
3922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3923cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
3929#include <$ac_header>
3930_ACEOF
3931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } >/dev/null; then
3939 if test -s conftest.err; then
3940 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3942 else
3943 ac_cpp_err=
3944 fi
3945else
3946 ac_cpp_err=yes
4922197a 3947fi
ad6254c5
AK
3948if test -z "$ac_cpp_err"; then
3949 ac_header_preproc=yes
3950else
3951 echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 ac_header_preproc=no
3955fi
3956rm -f conftest.err conftest.$ac_ext
3957echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3958echo "${ECHO_T}$ac_header_preproc" >&6
3959
3960# So? What about this header?
8a2fc586
AK
3961case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3962 yes:no: )
ad6254c5
AK
3963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3964echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3966echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3967 ac_header_preproc=yes
ad6254c5 3968 ;;
8a2fc586 3969 no:yes:* )
ad6254c5
AK
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3975echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3977echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3979echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3981echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3982 (
3983 cat <<\_ASBOX
8a2fc586
AK
3984## ------------------------------------------ ##
3985## Report this to the AC_PACKAGE_NAME lists. ##
3986## ------------------------------------------ ##
ad6254c5
AK
3987_ASBOX
3988 ) |
3989 sed "s/^/$as_me: WARNING: /" >&2
3990 ;;
3991esac
3992echo "$as_me:$LINENO: checking for $ac_header" >&5
3993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3994if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
8a2fc586 3997 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
3998fi
3999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4001
4002fi
4003if test `eval echo '${'$as_ac_Header'}'` = yes; then
4004 cat >>confdefs.h <<_ACEOF
4005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4006_ACEOF
4922197a 4007
4922197a 4008else
ad6254c5
AK
4009 { { echo "$as_me:$LINENO: error: bailing out" >&5
4010echo "$as_me: error: bailing out" >&2;}
4011 { (exit 1); exit 1; }; }
80992638
AK
4012fi
4013
ad6254c5 4014done
4922197a 4015
4922197a 4016
ad6254c5
AK
4017case "$host_os" in
4018 linux*)
4922197a 4019
ad6254c5
AK
4020
4021
4022for ac_header in asm/byteorder.h linux/fs.h malloc.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo "$as_me:$LINENO: checking for $ac_header" >&5
4027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030fi
4031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 4033else
ad6254c5
AK
4034 # Is the header compilable?
4035echo "$as_me:$LINENO: checking $ac_header usability" >&5
4036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4037cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043$ac_includes_default
4044#include <$ac_header>
4045_ACEOF
4046rm -f conftest.$ac_objext
4047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4048 (eval $ac_compile) 2>conftest.er1
ad6254c5 4049 ac_status=$?
8a2fc586
AK
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
ad6254c5
AK
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
8a2fc586
AK
4055 { ac_try='test -z "$ac_c_werror_flag"
4056 || test ! -s conftest.err'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; } &&
4062 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 (eval $ac_try) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_header_compiler=yes
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073ac_header_compiler=no
4074fi
8a2fc586 4075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4077echo "${ECHO_T}$ac_header_compiler" >&6
4078
4079# Is the header present?
4080echo "$as_me:$LINENO: checking $ac_header presence" >&5
4081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4082cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4083/* confdefs.h. */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h. */
4088#include <$ac_header>
4089_ACEOF
4090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } >/dev/null; then
4098 if test -s conftest.err; then
4099 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4101 else
4102 ac_cpp_err=
4103 fi
4104else
4105 ac_cpp_err=yes
4106fi
4107if test -z "$ac_cpp_err"; then
4108 ac_header_preproc=yes
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 ac_header_preproc=no
4114fi
4115rm -f conftest.err conftest.$ac_ext
4116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4117echo "${ECHO_T}$ac_header_preproc" >&6
4118
4119# So? What about this header?
8a2fc586
AK
4120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4121 yes:no: )
ad6254c5
AK
4122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4126 ac_header_preproc=yes
ad6254c5 4127 ;;
8a2fc586 4128 no:yes:* )
ad6254c5
AK
4129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4141 (
4142 cat <<\_ASBOX
8a2fc586
AK
4143## ------------------------------------------ ##
4144## Report this to the AC_PACKAGE_NAME lists. ##
4145## ------------------------------------------ ##
ad6254c5
AK
4146_ASBOX
4147 ) |
4148 sed "s/^/$as_me: WARNING: /" >&2
4149 ;;
4150esac
4151echo "$as_me:$LINENO: checking for $ac_header" >&5
4152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4153if eval "test \"\${$as_ac_Header+set}\" = set"; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
8a2fc586 4156 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4157fi
ad6254c5
AK
4158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 4160
ad6254c5
AK
4161fi
4162if test `eval echo '${'$as_ac_Header'}'` = yes; then
4163 cat >>confdefs.h <<_ACEOF
4164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4165_ACEOF
795ca3e5 4166
795ca3e5 4167else
ad6254c5
AK
4168 { { echo "$as_me:$LINENO: error: bailing out" >&5
4169echo "$as_me: error: bailing out" >&2;}
4170 { (exit 1); exit 1; }; }
80992638
AK
4171fi
4172
ad6254c5
AK
4173done
4174 ;;
4175 darwin*)
4176
795ca3e5 4177
ad6254c5
AK
4178for ac_header in machine/endian.h sys/disk.h
4179do
4180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4181if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo "$as_me:$LINENO: checking for $ac_header" >&5
4183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4184if eval "test \"\${$as_ac_Header+set}\" = set"; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4186fi
4187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4189else
4190 # Is the header compilable?
4191echo "$as_me:$LINENO: checking $ac_header usability" >&5
4192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4193cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199$ac_includes_default
4200#include <$ac_header>
4201_ACEOF
4202rm -f conftest.$ac_objext
4203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4204 (eval $ac_compile) 2>conftest.er1
ad6254c5 4205 ac_status=$?
8a2fc586
AK
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
ad6254c5
AK
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
8a2fc586
AK
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_header_compiler=yes
4225else
4226 echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229ac_header_compiler=no
4230fi
8a2fc586 4231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4233echo "${ECHO_T}$ac_header_compiler" >&6
4234
4235# Is the header present?
4236echo "$as_me:$LINENO: checking $ac_header presence" >&5
4237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4238cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4243/* end confdefs.h. */
4244#include <$ac_header>
4245_ACEOF
4246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } >/dev/null; then
4254 if test -s conftest.err; then
4255 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4257 else
4258 ac_cpp_err=
4259 fi
4260else
4261 ac_cpp_err=yes
4262fi
4263if test -z "$ac_cpp_err"; then
4264 ac_header_preproc=yes
4265else
4266 echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ac_header_preproc=no
4270fi
4271rm -f conftest.err conftest.$ac_ext
4272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4273echo "${ECHO_T}$ac_header_preproc" >&6
4274
4275# So? What about this header?
8a2fc586
AK
4276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4277 yes:no: )
ad6254c5
AK
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4282 ac_header_preproc=yes
ad6254c5 4283 ;;
8a2fc586 4284 no:yes:* )
ad6254c5
AK
4285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4297 (
4298 cat <<\_ASBOX
8a2fc586
AK
4299## ------------------------------------------ ##
4300## Report this to the AC_PACKAGE_NAME lists. ##
4301## ------------------------------------------ ##
ad6254c5
AK
4302_ASBOX
4303 ) |
4304 sed "s/^/$as_me: WARNING: /" >&2
4305 ;;
4306esac
4307echo "$as_me:$LINENO: checking for $ac_header" >&5
4308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4309if eval "test \"\${$as_ac_Header+set}\" = set"; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
8a2fc586 4312 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4313fi
ad6254c5
AK
4314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4316
ad6254c5
AK
4317fi
4318if test `eval echo '${'$as_ac_Header'}'` = yes; then
4319 cat >>confdefs.h <<_ACEOF
4320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321_ACEOF
4322
4323else
4324 { { echo "$as_me:$LINENO: error: bailing out" >&5
4325echo "$as_me: error: bailing out" >&2;}
4326 { (exit 1); exit 1; }; }
80992638
AK
4327fi
4328
ad6254c5
AK
4329done
4330 ;;
4331esac
d3c8211f 4332
80992638 4333################################################################################
ad6254c5
AK
4334echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4335echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4336if test "${ac_cv_c_const+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4338else
ad6254c5 4339 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345
4346int
4347main ()
4348{
4349/* FIXME: Include the comments suggested by Paul. */
4350#ifndef __cplusplus
4351 /* Ultrix mips cc rejects this. */
4352 typedef int charset[2];
4353 const charset x;
4354 /* SunOS 4.1.1 cc rejects this. */
4355 char const *const *ccp;
4356 char **p;
4357 /* NEC SVR4.0.2 mips cc rejects this. */
4358 struct point {int x, y;};
4359 static struct point const zero = {0,0};
4360 /* AIX XL C 1.02.0.0 rejects this.
4361 It does not let you subtract one const X* pointer from another in
4362 an arm of an if-expression whose if-part is not a constant
4363 expression */
4364 const char *g = "string";
4365 ccp = &g + (g ? g-g : 0);
4366 /* HPUX 7.0 cc rejects these. */
4367 ++ccp;
4368 p = (char**) ccp;
4369 ccp = (char const *const *) p;
4370 { /* SCO 3.2v4 cc rejects this. */
4371 char *t;
4372 char const *s = 0 ? (char *) 0 : (char const *) 0;
4373
4374 *t++ = 0;
4375 }
4376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4377 int x[] = {25, 17};
4378 const int *foo = &x[0];
4379 ++foo;
4380 }
4381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4382 typedef const int *iptr;
4383 iptr p = 0;
4384 ++p;
4385 }
4386 { /* AIX XL C 1.02.0.0 rejects this saying
4387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4388 struct s { int j; const int *ap[3]; };
4389 struct s *b; b->j = 5;
4390 }
4391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4392 const int foo = 10;
4393 }
4394#endif
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
4400rm -f conftest.$ac_objext
4401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4402 (eval $ac_compile) 2>conftest.er1
ad6254c5 4403 ac_status=$?
8a2fc586
AK
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
ad6254c5
AK
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
8a2fc586
AK
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
ad6254c5
AK
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8a2fc586
AK
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
ad6254c5
AK
4422 ac_cv_c_const=yes
4423else
4424 echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427ac_cv_c_const=no
4428fi
8a2fc586 4429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4430fi
ad6254c5
AK
4431echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4432echo "${ECHO_T}$ac_cv_c_const" >&6
4433if test $ac_cv_c_const = no; then
80992638 4434
ad6254c5
AK
4435cat >>confdefs.h <<\_ACEOF
4436#define const
4437_ACEOF
80992638 4438
d3c8211f 4439fi
d3c8211f 4440
ad6254c5
AK
4441echo "$as_me:$LINENO: checking for inline" >&5
4442echo $ECHO_N "checking for inline... $ECHO_C" >&6
4443if test "${ac_cv_c_inline+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4445else
ad6254c5
AK
4446 ac_cv_c_inline=no
4447for ac_kw in inline __inline__ __inline; do
4448 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
4454#ifndef __cplusplus
4455typedef int foo_t;
4456static $ac_kw foo_t static_foo () {return 0; }
4457$ac_kw foo_t foo () {return 0; }
4458#endif
80992638 4459
ad6254c5
AK
4460_ACEOF
4461rm -f conftest.$ac_objext
4462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4463 (eval $ac_compile) 2>conftest.er1
ad6254c5 4464 ac_status=$?
8a2fc586
AK
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
ad6254c5
AK
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
8a2fc586
AK
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_c_inline=$ac_kw; break
4484else
4485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4487
8ce0cbda 4488fi
8a2fc586 4489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4490done
8ce0cbda 4491
8ce0cbda 4492fi
ad6254c5
AK
4493echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4494echo "${ECHO_T}$ac_cv_c_inline" >&6
8a2fc586
AK
4495
4496
ad6254c5
AK
4497case $ac_cv_c_inline in
4498 inline | yes) ;;
8a2fc586
AK
4499 *)
4500 case $ac_cv_c_inline in
4501 no) ac_val=;;
4502 *) ac_val=$ac_cv_c_inline;;
4503 esac
4504 cat >>confdefs.h <<_ACEOF
4505#ifndef __cplusplus
4506#define inline $ac_val
4507#endif
c1c065a3 4508_ACEOF
8a2fc586 4509 ;;
ad6254c5 4510esac
8ce0cbda 4511
ad6254c5
AK
4512echo "$as_me:$LINENO: checking for off_t" >&5
4513echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4514if test "${ac_cv_type_off_t+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4518/* confdefs.h. */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h. */
4523$ac_includes_default
4524int
4525main ()
4526{
4527if ((off_t *) 0)
4528 return 0;
4529if (sizeof (off_t))
4530 return 0;
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext
4536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4537 (eval $ac_compile) 2>conftest.er1
ad6254c5 4538 ac_status=$?
8a2fc586
AK
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
ad6254c5
AK
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
8a2fc586
AK
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 ac_cv_type_off_t=yes
4558else
4559 echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4561
ad6254c5 4562ac_cv_type_off_t=no
80992638 4563fi
8a2fc586 4564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4565fi
4566echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4567echo "${ECHO_T}$ac_cv_type_off_t" >&6
4568if test $ac_cv_type_off_t = yes; then
4569 :
4570else
80992638 4571
ad6254c5
AK
4572cat >>confdefs.h <<_ACEOF
4573#define off_t long
4574_ACEOF
199e490e 4575
b896caa1
AK
4576fi
4577
ad6254c5
AK
4578echo "$as_me:$LINENO: checking for pid_t" >&5
4579echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4580if test "${ac_cv_type_pid_t+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
4589$ac_includes_default
4590int
4591main ()
4592{
4593if ((pid_t *) 0)
4594 return 0;
4595if (sizeof (pid_t))
4596 return 0;
4597 ;
4598 return 0;
4599}
4600_ACEOF
4601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4603 (eval $ac_compile) 2>conftest.er1
ad6254c5 4604 ac_status=$?
8a2fc586
AK
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
ad6254c5
AK
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
8a2fc586
AK
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_type_pid_t=yes
4624else
4625 echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
4627
4628ac_cv_type_pid_t=no
4629fi
8a2fc586 4630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4631fi
ad6254c5
AK
4632echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4633echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4634if test $ac_cv_type_pid_t = yes; then
4635 :
4636else
80992638 4637
ad6254c5
AK
4638cat >>confdefs.h <<_ACEOF
4639#define pid_t int
4640_ACEOF
2dc95e1c 4641
2dc95e1c
AK
4642fi
4643
ad6254c5
AK
4644echo "$as_me:$LINENO: checking for size_t" >&5
4645echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4646if test "${ac_cv_type_size_t+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4648else
ad6254c5 4649 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
4655$ac_includes_default
4656int
4657main ()
4658{
4659if ((size_t *) 0)
4660 return 0;
4661if (sizeof (size_t))
4662 return 0;
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext
4668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4669 (eval $ac_compile) 2>conftest.er1
ad6254c5 4670 ac_status=$?
8a2fc586
AK
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
ad6254c5
AK
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
8a2fc586
AK
4676 { ac_try='test -z "$ac_c_werror_flag"
4677 || test ! -s conftest.err'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_type_size_t=yes
4690else
4691 echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694ac_cv_type_size_t=no
80992638 4695fi
8a2fc586 4696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4697fi
4698echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4699echo "${ECHO_T}$ac_cv_type_size_t" >&6
4700if test $ac_cv_type_size_t = yes; then
4701 :
4702else
80992638 4703
ad6254c5
AK
4704cat >>confdefs.h <<_ACEOF
4705#define size_t unsigned
4706_ACEOF
8106cdd5 4707
8106cdd5
AK
4708fi
4709
ad6254c5
AK
4710echo "$as_me:$LINENO: checking for mode_t" >&5
4711echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4712if test "${ac_cv_type_mode_t+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4716/* confdefs.h. */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */
4721$ac_includes_default
4722int
4723main ()
4724{
4725if ((mode_t *) 0)
4726 return 0;
4727if (sizeof (mode_t))
4728 return 0;
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4735 (eval $ac_compile) 2>conftest.er1
ad6254c5 4736 ac_status=$?
8a2fc586
AK
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
ad6254c5
AK
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
8a2fc586
AK
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_type_mode_t=yes
4756else
4757 echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760ac_cv_type_mode_t=no
80992638 4761fi
8a2fc586 4762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4763fi
4764echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4765echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4766if test $ac_cv_type_mode_t = yes; then
4767 :
4768else
80992638 4769
ad6254c5
AK
4770cat >>confdefs.h <<_ACEOF
4771#define mode_t int
4772_ACEOF
4773
4774fi
4775
4776
4777echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4778echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4779if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788$ac_includes_default
4789int
4790main ()
4791{
4792static struct stat ac_aggr;
4793if (ac_aggr.st_rdev)
4794return 0;
4795 ;
4796 return 0;
4797}
4798_ACEOF
4799rm -f conftest.$ac_objext
4800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4801 (eval $ac_compile) 2>conftest.er1
ad6254c5 4802 ac_status=$?
8a2fc586
AK
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
ad6254c5
AK
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
8a2fc586
AK
4808 { ac_try='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_member_struct_stat_st_rdev=yes
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4827/* confdefs.h. */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h. */
4832$ac_includes_default
4833int
4834main ()
4835{
4836static struct stat ac_aggr;
4837if (sizeof ac_aggr.st_rdev)
4838return 0;
4839 ;
4840 return 0;
4841}
4842_ACEOF
4843rm -f conftest.$ac_objext
4844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4845 (eval $ac_compile) 2>conftest.er1
ad6254c5 4846 ac_status=$?
8a2fc586
AK
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
ad6254c5
AK
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
8a2fc586
AK
4852 { ac_try='test -z "$ac_c_werror_flag"
4853 || test ! -s conftest.err'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 ac_cv_member_struct_stat_st_rdev=yes
4866else
4867 echo "$as_me: failed program was:" >&5
4868sed 's/^/| /' conftest.$ac_ext >&5
4869
4870ac_cv_member_struct_stat_st_rdev=no
4871fi
8a2fc586 4872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4873fi
8a2fc586 4874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4875fi
4876echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4877echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4878if test $ac_cv_member_struct_stat_st_rdev = yes; then
4879
4880cat >>confdefs.h <<_ACEOF
4881#define HAVE_STRUCT_STAT_ST_RDEV 1
4882_ACEOF
4883
4884
4885cat >>confdefs.h <<\_ACEOF
4886#define HAVE_ST_RDEV 1
4887_ACEOF
4888
4889fi
4890
4891
4892echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4893echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4894if test "${ac_cv_struct_tm+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4898/* confdefs.h. */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h. */
4903#include <sys/types.h>
4904#include <time.h>
4905
4906int
4907main ()
4908{
4909struct tm *tp; tp->tm_sec;
4910 ;
4911 return 0;
4912}
4913_ACEOF
4914rm -f conftest.$ac_objext
4915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4916 (eval $ac_compile) 2>conftest.er1
ad6254c5 4917 ac_status=$?
8a2fc586
AK
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
ad6254c5
AK
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
8a2fc586
AK
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_cv_struct_tm=time.h
4937else
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941ac_cv_struct_tm=sys/time.h
4942fi
8a2fc586 4943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4944fi
4945echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4946echo "${ECHO_T}$ac_cv_struct_tm" >&6
4947if test $ac_cv_struct_tm = sys/time.h; then
4948
4949cat >>confdefs.h <<\_ACEOF
4950#define TM_IN_SYS_TIME 1
4951_ACEOF
4952
4953fi
809fae91 4954
795ca3e5 4955
80992638 4956################################################################################
ad6254c5
AK
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4972do
4973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4974echo "$as_me:$LINENO: checking for $ac_func" >&5
4975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4976if eval "test \"\${$as_ac_var+set}\" = set"; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4978else
ad6254c5 4979 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
8a2fc586
AK
4985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4987#define $ac_func innocuous_$ac_func
4988
ad6254c5
AK
4989/* System header to define __stub macros and hopefully few prototypes,
4990 which can conflict with char $ac_func (); below.
4991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 <limits.h> exists even on freestanding compilers. */
8a2fc586 4993
ad6254c5
AK
4994#ifdef __STDC__
4995# include <limits.h>
4996#else
4997# include <assert.h>
4998#endif
8a2fc586
AK
4999
5000#undef $ac_func
5001
ad6254c5
AK
5002/* Override any gcc2 internal prototype to avoid an error. */
5003#ifdef __cplusplus
5004extern "C"
5005{
5006#endif
5007/* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009char $ac_func ();
5010/* The GNU C library defines this for functions which it implements
5011 to always fail with ENOSYS. Some functions are actually named
5012 something starting with __ and the normal name is an alias. */
5013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5014choke me
5015#else
5016char (*f) () = $ac_func;
5017#endif
5018#ifdef __cplusplus
5019}
5020#endif
5021
5022int
5023main ()
5024{
5025return f != $ac_func;
5026 ;
5027 return 0;
5028}
5029_ACEOF
5030rm -f conftest.$ac_objext conftest$ac_exeext
5031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5032 (eval $ac_link) 2>conftest.er1
ad6254c5 5033 ac_status=$?
8a2fc586
AK
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
ad6254c5
AK
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } &&
8a2fc586
AK
5039 { ac_try='test -z "$ac_c_werror_flag"
5040 || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 eval "$as_ac_var=yes"
795ca3e5 5053else
ad6254c5
AK
5054 echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057eval "$as_ac_var=no"
795ca3e5 5058fi
8a2fc586
AK
5059rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5061fi
5062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5064if test `eval echo '${'$as_ac_var'}'` = yes; then
5065 cat >>confdefs.h <<_ACEOF
5066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5067_ACEOF
5068
5069else
5070 { { echo "$as_me:$LINENO: error: bailing out" >&5
5071echo "$as_me: error: bailing out" >&2;}
5072 { (exit 1); exit 1; }; }
5073fi
5074done
795ca3e5 5075
ad6254c5
AK
5076# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5077# for constant arguments. Useless!
5078echo "$as_me:$LINENO: checking for working alloca.h" >&5
5079echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5080if test "${ac_cv_working_alloca_h+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089#include <alloca.h>
5090int
5091main ()
5092{
5093char *p = (char *) alloca (2 * sizeof (int));
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext conftest$ac_exeext
5099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5100 (eval $ac_link) 2>conftest.er1
ad6254c5 5101 ac_status=$?
8a2fc586
AK
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
ad6254c5
AK
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
8a2fc586
AK
5107 { ac_try='test -z "$ac_c_werror_flag"
5108 || test ! -s conftest.err'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; } &&
5114 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 (eval $ac_try) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; }; then
5120 ac_cv_working_alloca_h=yes
5121else
5122 echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5124
ad6254c5
AK
5125ac_cv_working_alloca_h=no
5126fi
8a2fc586
AK
5127rm -f conftest.err conftest.$ac_objext \
5128 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5129fi
5130echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5131echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5132if test $ac_cv_working_alloca_h = yes; then
5133
5134cat >>confdefs.h <<\_ACEOF
5135#define HAVE_ALLOCA_H 1
5136_ACEOF
5137
5138fi
5139
5140echo "$as_me:$LINENO: checking for alloca" >&5
5141echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5142if test "${ac_cv_func_alloca_works+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
5151#ifdef __GNUC__
5152# define alloca __builtin_alloca
5153#else
5154# ifdef _MSC_VER
5155# include <malloc.h>
5156# define alloca _alloca
5157# else
5158# if HAVE_ALLOCA_H
5159# include <alloca.h>
5160# else
5161# ifdef _AIX
5162 #pragma alloca
5163# else
5164# ifndef alloca /* predefined by HP cc +Olibcalls */
5165char *alloca ();
5166# endif
5167# endif
5168# endif
5169# endif
5170#endif
5171
5172int
5173main ()
5174{
5175char *p = (char *) alloca (1);
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180rm -f conftest.$ac_objext conftest$ac_exeext
5181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5182 (eval $ac_link) 2>conftest.er1
ad6254c5 5183 ac_status=$?
8a2fc586
AK
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
ad6254c5
AK
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } &&
8a2fc586
AK
5189 { ac_try='test -z "$ac_c_werror_flag"
5190 || test ! -s conftest.err'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; } &&
5196 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_func_alloca_works=yes
5203else
5204 echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207ac_cv_func_alloca_works=no
5208fi
8a2fc586
AK
5209rm -f conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5211fi
5212echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5213echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5214
5215if test $ac_cv_func_alloca_works = yes; then
5216
5217cat >>confdefs.h <<\_ACEOF
5218#define HAVE_ALLOCA 1
5219_ACEOF
5220
5221else
5222 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5223# that cause trouble. Some versions do not even contain alloca or
5224# contain a buggy version. If you still want to use their alloca,
5225# use ar to extract alloca.o from them instead of compiling alloca.c.
5226
5227ALLOCA=alloca.$ac_objext
5228
5229cat >>confdefs.h <<\_ACEOF
5230#define C_ALLOCA 1
5231_ACEOF
5232
5233
5234echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5235echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5236if test "${ac_cv_os_cray+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */
5245#if defined(CRAY) && ! defined(CRAY2)
5246webecray
5247#else
5248wenotbecray
5249#endif
5250
5251_ACEOF
795ca3e5 5252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5253 $EGREP "webecray" >/dev/null 2>&1; then
5254 ac_cv_os_cray=yes
5255else
5256 ac_cv_os_cray=no
795ca3e5
AK
5257fi
5258rm -f conftest*
5259
795ca3e5 5260fi
ad6254c5
AK
5261echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5262echo "${ECHO_T}$ac_cv_os_cray" >&6
5263if test $ac_cv_os_cray = yes; then
5264 for ac_func in _getb67 GETB67 getb67; do
5265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5266echo "$as_me:$LINENO: checking for $ac_func" >&5
5267echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5268if eval "test \"\${$as_ac_var+set}\" = set"; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5272/* confdefs.h. */
5273_ACEOF
5274cat confdefs.h >>conftest.$ac_ext
5275cat >>conftest.$ac_ext <<_ACEOF
5276/* end confdefs.h. */
8a2fc586
AK
5277/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5279#define $ac_func innocuous_$ac_func
5280
ad6254c5
AK
5281/* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char $ac_func (); below.
5283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5284 <limits.h> exists even on freestanding compilers. */
8a2fc586 5285
ad6254c5
AK
5286#ifdef __STDC__
5287# include <limits.h>
5288#else
5289# include <assert.h>
5290#endif
8a2fc586
AK
5291
5292#undef $ac_func
5293
ad6254c5
AK
5294/* Override any gcc2 internal prototype to avoid an error. */
5295#ifdef __cplusplus
5296extern "C"
5297{
5298#endif
5299/* We use char because int might match the return type of a gcc2
5300 builtin and then its argument prototype would still apply. */
5301char $ac_func ();
5302/* The GNU C library defines this for functions which it implements
5303 to always fail with ENOSYS. Some functions are actually named
5304 something starting with __ and the normal name is an alias. */
5305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5306choke me
5307#else
5308char (*f) () = $ac_func;
5309#endif
5310#ifdef __cplusplus
5311}
5312#endif
5313
5314int
5315main ()
5316{
5317return f != $ac_func;
5318 ;
5319 return 0;
5320}
5321_ACEOF
5322rm -f conftest.$ac_objext conftest$ac_exeext
5323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5324 (eval $ac_link) 2>conftest.er1
ad6254c5 5325 ac_status=$?
8a2fc586
AK
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
ad6254c5
AK
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
8a2fc586
AK
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 eval "$as_ac_var=yes"
5345else
5346 echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349eval "$as_ac_var=no"
5350fi
8a2fc586
AK
5351rm -f conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5353fi
5354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5356if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5357
ad6254c5
AK
5358cat >>confdefs.h <<_ACEOF
5359#define CRAY_STACKSEG_END $ac_func
5360_ACEOF
5361
5362 break
5363fi
5364
5365 done
5366fi
5367
5368echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5369echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5370if test "${ac_cv_c_stack_direction+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373 if test "$cross_compiling" = yes; then
5374 ac_cv_c_stack_direction=0
5375else
5376 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382int
5383find_stack_direction ()
5384{
5385 static char *addr = 0;
5386 auto char dummy;
5387 if (addr == 0)
5388 {
5389 addr = &dummy;
5390 return find_stack_direction ();
5391 }
5392 else
5393 return (&dummy > addr) ? 1 : -1;
5394}
5395
5396int
5397main ()
5398{
5399 exit (find_stack_direction () < 0);
5400}
5401_ACEOF
5402rm -f conftest$ac_exeext
5403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5404 (eval $ac_link) 2>&5
5405 ac_status=$?
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 ac_cv_c_stack_direction=1
5414else
5415 echo "$as_me: program exited with status $ac_status" >&5
5416echo "$as_me: failed program was:" >&5
5417sed 's/^/| /' conftest.$ac_ext >&5
5418
5419( exit $ac_status )
5420ac_cv_c_stack_direction=-1
5421fi
8a2fc586 5422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5423fi
5424fi
5425echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5426echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5427
5428cat >>confdefs.h <<_ACEOF
5429#define STACK_DIRECTION $ac_cv_c_stack_direction
5430_ACEOF
5431
5432
5433fi
5434
5435echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5436echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5437if test "${ac_cv_func_closedir_void+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440 if test "$cross_compiling" = yes; then
5441 ac_cv_func_closedir_void=yes
5442else
5443 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5444/* confdefs.h. */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h. */
5449$ac_includes_default
5450#include <$ac_header_dirent>
5451#ifndef __cplusplus
5452int closedir ();
5453#endif
5454
5455int
5456main ()
5457{
5458exit (closedir (opendir (".")) != 0);
5459 ;
5460 return 0;
5461}
5462_ACEOF
5463rm -f conftest$ac_exeext
5464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465 (eval $ac_link) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
5474 ac_cv_func_closedir_void=no
5475else
5476 echo "$as_me: program exited with status $ac_status" >&5
5477echo "$as_me: failed program was:" >&5
5478sed 's/^/| /' conftest.$ac_ext >&5
5479
5480( exit $ac_status )
5481ac_cv_func_closedir_void=yes
5482fi
8a2fc586 5483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5484fi
5485fi
5486echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5487echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5488if test $ac_cv_func_closedir_void = yes; then
5489
5490cat >>confdefs.h <<\_ACEOF
5491#define CLOSEDIR_VOID 1
5492_ACEOF
5493
5494fi
5495
5496
5497
5498for ac_header in unistd.h vfork.h
5499do
5500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5501if eval "test \"\${$as_ac_Header+set}\" = set"; then
5502 echo "$as_me:$LINENO: checking for $ac_header" >&5
5503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5504if eval "test \"\${$as_ac_Header+set}\" = set"; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506fi
5507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5509else
5510 # Is the header compilable?
5511echo "$as_me:$LINENO: checking $ac_header usability" >&5
5512echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5513cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5514/* confdefs.h. */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h. */
5519$ac_includes_default
5520#include <$ac_header>
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 5524 (eval $ac_compile) 2>conftest.er1
ad6254c5 5525 ac_status=$?
8a2fc586
AK
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
ad6254c5
AK
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
8a2fc586
AK
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_header_compiler=yes
5545else
5546 echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549ac_header_compiler=no
5550fi
8a2fc586 5551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5552echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5553echo "${ECHO_T}$ac_header_compiler" >&6
5554
5555# Is the header present?
5556echo "$as_me:$LINENO: checking $ac_header presence" >&5
5557echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5558cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5559/* confdefs.h. */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h. */
5564#include <$ac_header>
5565_ACEOF
5566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } >/dev/null; then
5574 if test -s conftest.err; then
5575 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 5576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
5577 else
5578 ac_cpp_err=
795ca3e5 5579 fi
ad6254c5
AK
5580else
5581 ac_cpp_err=yes
5582fi
5583if test -z "$ac_cpp_err"; then
5584 ac_header_preproc=yes
5585else
5586 echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 ac_header_preproc=no
5590fi
5591rm -f conftest.err conftest.$ac_ext
5592echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593echo "${ECHO_T}$ac_header_preproc" >&6
5594
5595# So? What about this header?
8a2fc586
AK
5596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5597 yes:no: )
ad6254c5
AK
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602 ac_header_preproc=yes
ad6254c5 5603 ;;
8a2fc586 5604 no:yes:* )
ad6254c5
AK
5605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
5607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5608echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5612echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
5617 (
5618 cat <<\_ASBOX
8a2fc586
AK
5619## ------------------------------------------ ##
5620## Report this to the AC_PACKAGE_NAME lists. ##
5621## ------------------------------------------ ##
ad6254c5
AK
5622_ASBOX
5623 ) |
5624 sed "s/^/$as_me: WARNING: /" >&2
5625 ;;
5626esac
5627echo "$as_me:$LINENO: checking for $ac_header" >&5
5628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5629if eval "test \"\${$as_ac_Header+set}\" = set"; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
8a2fc586 5632 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
5633fi
5634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5636
795ca3e5 5637fi
ad6254c5
AK
5638if test `eval echo '${'$as_ac_Header'}'` = yes; then
5639 cat >>confdefs.h <<_ACEOF
5640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5641_ACEOF
5642
5643fi
5644
5645done
795ca3e5 5646
ad6254c5
AK
5647
5648
5649for ac_func in fork vfork
5650do
5651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5652echo "$as_me:$LINENO: checking for $ac_func" >&5
5653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5654if eval "test \"\${$as_ac_var+set}\" = set"; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5656else
ad6254c5 5657 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5658/* confdefs.h. */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h. */
8a2fc586
AK
5663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5665#define $ac_func innocuous_$ac_func
5666
ad6254c5
AK
5667/* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func (); below.
5669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 <limits.h> exists even on freestanding compilers. */
8a2fc586 5671
ad6254c5
AK
5672#ifdef __STDC__
5673# include <limits.h>
5674#else
5675# include <assert.h>
795ca3e5 5676#endif
8a2fc586
AK
5677
5678#undef $ac_func
5679
ad6254c5 5680/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5681#ifdef __cplusplus
ad6254c5
AK
5682extern "C"
5683{
5684#endif
5685/* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5687char $ac_func ();
5688/* The GNU C library defines this for functions which it implements
5689 to always fail with ENOSYS. Some functions are actually named
5690 something starting with __ and the normal name is an alias. */
5691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5692choke me
795ca3e5 5693#else
ad6254c5
AK
5694char (*f) () = $ac_func;
5695#endif
5696#ifdef __cplusplus
5697}
795ca3e5
AK
5698#endif
5699
ad6254c5
AK
5700int
5701main ()
5702{
5703return f != $ac_func;
5704 ;
5705 return 0;
5706}
5707_ACEOF
5708rm -f conftest.$ac_objext conftest$ac_exeext
5709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5710 (eval $ac_link) 2>conftest.er1
ad6254c5 5711 ac_status=$?
8a2fc586
AK
5712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
ad6254c5
AK
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
8a2fc586
AK
5717 { ac_try='test -z "$ac_c_werror_flag"
5718 || test ! -s conftest.err'
5719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 (eval $ac_try) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; }; then
5730 eval "$as_ac_var=yes"
795ca3e5 5731else
ad6254c5
AK
5732 echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735eval "$as_ac_var=no"
795ca3e5 5736fi
8a2fc586
AK
5737rm -f conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5739fi
5740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5742if test `eval echo '${'$as_ac_var'}'` = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5745_ACEOF
5746
5747fi
5748done
5749
5750if test "x$ac_cv_func_fork" = xyes; then
5751 echo "$as_me:$LINENO: checking for working fork" >&5
5752echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5753if test "${ac_cv_func_fork_works+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 if test "$cross_compiling" = yes; then
5757 ac_cv_func_fork_works=cross
5758else
5759 cat >conftest.$ac_ext <<_ACEOF
5760/* By Ruediger Kuhlmann. */
5761 #include <sys/types.h>
5762 #if HAVE_UNISTD_H
5763 # include <unistd.h>
5764 #endif
5765 /* Some systems only have a dummy stub for fork() */
5766 int main ()
5767 {
8a2fc586
AK
5768 if (fork() < 0)
5769 exit (1);
5770 exit (0);
ad6254c5
AK
5771 }
5772_ACEOF
5773rm -f conftest$ac_exeext
5774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775 (eval $ac_link) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_func_fork_works=yes
5785else
5786 echo "$as_me: program exited with status $ac_status" >&5
5787echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790( exit $ac_status )
5791ac_cv_func_fork_works=no
5792fi
8a2fc586 5793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5794fi
5795fi
5796echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5797echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5798
5799else
5800 ac_cv_func_fork_works=$ac_cv_func_fork
5801fi
5802if test "x$ac_cv_func_fork_works" = xcross; then
5803 case $host in
5804 *-*-amigaos* | *-*-msdosdjgpp*)
5805 # Override, as these systems have only a dummy fork() stub
5806 ac_cv_func_fork_works=no
5807 ;;
5808 *)
5809 ac_cv_func_fork_works=yes
5810 ;;
5811 esac
5812 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5813echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5814fi
5815ac_cv_func_vfork_works=$ac_cv_func_vfork
5816if test "x$ac_cv_func_vfork" = xyes; then
5817 echo "$as_me:$LINENO: checking for working vfork" >&5
5818echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5819if test "${ac_cv_func_vfork_works+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 if test "$cross_compiling" = yes; then
5823 ac_cv_func_vfork_works=cross
5824else
5825 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5826/* confdefs.h. */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h. */
5831/* Thanks to Paul Eggert for this test. */
5832#include <stdio.h>
5833#include <stdlib.h>
5834#include <sys/types.h>
5835#include <sys/stat.h>
5836#include <sys/wait.h>
5837#if HAVE_UNISTD_H
5838# include <unistd.h>
5839#endif
5840#if HAVE_VFORK_H
5841# include <vfork.h>
5842#endif
5843/* On some sparc systems, changes by the child to local and incoming
5844 argument registers are propagated back to the parent. The compiler
5845 is told about this with #include <vfork.h>, but some compilers
5846 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5847 static variable whose address is put into a register that is
5848 clobbered by the vfork. */
5849static void
5850#ifdef __cplusplus
5851sparc_address_test (int arg)
5852# else
5853sparc_address_test (arg) int arg;
5854#endif
5855{
5856 static pid_t child;
5857 if (!child) {
5858 child = vfork ();
5859 if (child < 0) {
5860 perror ("vfork");
5861 _exit(2);
5862 }
5863 if (!child) {
5864 arg = getpid();
5865 write(-1, "", 0);
5866 _exit (arg);
5867 }
5868 }
5869}
5870
5871int
5872main ()
5873{
5874 pid_t parent = getpid ();
5875 pid_t child;
5876
5877 sparc_address_test (0);
5878
5879 child = vfork ();
5880
5881 if (child == 0) {
5882 /* Here is another test for sparc vfork register problems. This
5883 test uses lots of local variables, at least as many local
5884 variables as main has allocated so far including compiler
5885 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5886 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5887 reuse the register of parent for one of the local variables,
5888 since it will think that parent can't possibly be used any more
5889 in this routine. Assigning to the local variable will thus
5890 munge parent in the parent process. */
5891 pid_t
5892 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5893 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5894 /* Convince the compiler that p..p7 are live; otherwise, it might
5895 use the same hardware register for all 8 local variables. */
5896 if (p != p1 || p != p2 || p != p3 || p != p4
5897 || p != p5 || p != p6 || p != p7)
5898 _exit(1);
5899
5900 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5901 from child file descriptors. If the child closes a descriptor
5902 before it execs or exits, this munges the parent's descriptor
5903 as well. Test for this by closing stdout in the child. */
5904 _exit(close(fileno(stdout)) != 0);
5905 } else {
5906 int status;
5907 struct stat st;
5908
5909 while (wait(&status) != child)
5910 ;
5911 exit(
5912 /* Was there some problem with vforking? */
5913 child < 0
5914
5915 /* Did the child fail? (This shouldn't happen.) */
5916 || status
5917
5918 /* Did the vfork/compiler bug occur? */
5919 || parent != getpid()
5920
5921 /* Did the file descriptor bug occur? */
5922 || fstat(fileno(stdout), &st) != 0
5923 );
5924 }
5925}
5926_ACEOF
5927rm -f conftest$ac_exeext
5928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5929 (eval $ac_link) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 ac_cv_func_vfork_works=yes
5939else
5940 echo "$as_me: program exited with status $ac_status" >&5
5941echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944( exit $ac_status )
5945ac_cv_func_vfork_works=no
5946fi
8a2fc586 5947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5948fi
5949fi
5950echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5951echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5952
5953fi;
5954if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 5955 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
5956 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5957echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5958fi
5959
5960if test "x$ac_cv_func_vfork_works" = xyes; then
5961
5962cat >>confdefs.h <<\_ACEOF
5963#define HAVE_WORKING_VFORK 1
5964_ACEOF
5965
5966else
5967
5968cat >>confdefs.h <<\_ACEOF
5969#define vfork fork
5970_ACEOF
5971
5972fi
5973if test "x$ac_cv_func_fork_works" = xyes; then
5974
5975cat >>confdefs.h <<\_ACEOF
5976#define HAVE_WORKING_FORK 1
5977_ACEOF
5978
5979fi
5980
5981echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5982echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5983if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986 rm -f conftest.sym conftest.file
5987echo >conftest.file
5988if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5989 if test "$cross_compiling" = yes; then
5990 ac_cv_func_lstat_dereferences_slashed_symlink=no
5991else
5992 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998$ac_includes_default
5999int
6000main ()
6001{
6002struct stat sbuf;
6003 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6004 That is better in the sense that it means we will not
6005 have to compile and use the lstat wrapper. */
ad6254c5
AK
6006 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest$ac_exeext
6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 (eval $ac_try) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6023else
6024 echo "$as_me: program exited with status $ac_status" >&5
6025echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028( exit $ac_status )
6029ac_cv_func_lstat_dereferences_slashed_symlink=no
6030fi
8a2fc586 6031rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6032fi
6033else
6034 # If the `ln -s' command failed, then we probably don't even
6035 # have an lstat function.
6036 ac_cv_func_lstat_dereferences_slashed_symlink=no
6037fi
6038rm -f conftest.sym conftest.file
6039
6040fi
6041echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6042echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
6043
6044test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6045
6046cat >>confdefs.h <<_ACEOF
6047#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6048_ACEOF
6049
6050
6051if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8a2fc586
AK
6052 case $LIBOBJS in
6053 "lstat.$ac_objext" | \
6054 *" lstat.$ac_objext" | \
6055 "lstat.$ac_objext "* | \
6056 *" lstat.$ac_objext "* ) ;;
6057 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6058esac
6059
ad6254c5
AK
6060fi
6061
6062echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6063echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
6064if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067 if test "$cross_compiling" = yes; then
6068 ac_cv_func_lstat_empty_string_bug=yes
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$ac_includes_default
6077int
6078main ()
6079{
6080struct stat sbuf;
6081 exit (lstat ("", &sbuf) ? 1 : 0);
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest$ac_exeext
6087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088 (eval $ac_link) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_func_lstat_empty_string_bug=yes
6098else
6099 echo "$as_me: program exited with status $ac_status" >&5
6100echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103( exit $ac_status )
6104ac_cv_func_lstat_empty_string_bug=no
6105fi
8a2fc586 6106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6107fi
6108fi
6109echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6110echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
6111if test $ac_cv_func_lstat_empty_string_bug = yes; then
8a2fc586
AK
6112 case $LIBOBJS in
6113 "lstat.$ac_objext" | \
6114 *" lstat.$ac_objext" | \
6115 "lstat.$ac_objext "* | \
6116 *" lstat.$ac_objext "* ) ;;
6117 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6118esac
6119
ad6254c5
AK
6120
6121cat >>confdefs.h <<_ACEOF
6122#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6123_ACEOF
6124
6125fi
6126
6127
6128for ac_header in stdlib.h
6129do
6130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6131if eval "test \"\${$as_ac_Header+set}\" = set"; then
6132 echo "$as_me:$LINENO: checking for $ac_header" >&5
6133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6134if eval "test \"\${$as_ac_Header+set}\" = set"; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136fi
6137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6139else
6140 # Is the header compilable?
6141echo "$as_me:$LINENO: checking $ac_header usability" >&5
6142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6143cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149$ac_includes_default
6150#include <$ac_header>
6151_ACEOF
6152rm -f conftest.$ac_objext
6153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6154 (eval $ac_compile) 2>conftest.er1
ad6254c5 6155 ac_status=$?
8a2fc586
AK
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
ad6254c5
AK
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
8a2fc586
AK
6161 { ac_try='test -z "$ac_c_werror_flag"
6162 || test ! -s conftest.err'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_header_compiler=yes
6175else
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179ac_header_compiler=no
6180fi
8a2fc586 6181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6183echo "${ECHO_T}$ac_header_compiler" >&6
6184
6185# Is the header present?
6186echo "$as_me:$LINENO: checking $ac_header presence" >&5
6187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6188cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194#include <$ac_header>
6195_ACEOF
6196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6207 else
6208 ac_cpp_err=
6209 fi
6210else
6211 ac_cpp_err=yes
6212fi
6213if test -z "$ac_cpp_err"; then
6214 ac_header_preproc=yes
6215else
6216 echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 ac_header_preproc=no
6220fi
6221rm -f conftest.err conftest.$ac_ext
6222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6223echo "${ECHO_T}$ac_header_preproc" >&6
6224
6225# So? What about this header?
8a2fc586
AK
6226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6227 yes:no: )
ad6254c5
AK
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6232 ac_header_preproc=yes
ad6254c5 6233 ;;
8a2fc586 6234 no:yes:* )
ad6254c5
AK
6235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6247 (
6248 cat <<\_ASBOX
8a2fc586
AK
6249## ------------------------------------------ ##
6250## Report this to the AC_PACKAGE_NAME lists. ##
6251## ------------------------------------------ ##
ad6254c5
AK
6252_ASBOX
6253 ) |
6254 sed "s/^/$as_me: WARNING: /" >&2
6255 ;;
6256esac
6257echo "$as_me:$LINENO: checking for $ac_header" >&5
6258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6259if eval "test \"\${$as_ac_Header+set}\" = set"; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
8a2fc586 6262 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6263fi
6264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6266
6267fi
6268if test `eval echo '${'$as_ac_Header'}'` = yes; then
6269 cat >>confdefs.h <<_ACEOF
6270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6271_ACEOF
6272
6273fi
6274
6275done
6276
6277echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6278echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6279if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
6282 if test "$cross_compiling" = yes; then
6283 ac_cv_func_malloc_0_nonnull=no
6284else
6285 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6286/* confdefs.h. */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h. */
6291#if STDC_HEADERS || HAVE_STDLIB_H
6292# include <stdlib.h>
6293#else
6294char *malloc ();
6295#endif
6296
6297int
6298main ()
6299{
6300exit (malloc (0) ? 0 : 1);
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest$ac_exeext
6306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_func_malloc_0_nonnull=yes
6317else
6318 echo "$as_me: program exited with status $ac_status" >&5
6319echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322( exit $ac_status )
6323ac_cv_func_malloc_0_nonnull=no
6324fi
8a2fc586 6325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6326fi
6327fi
6328echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6329echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6330if test $ac_cv_func_malloc_0_nonnull = yes; then
6331
6332cat >>confdefs.h <<\_ACEOF
6333#define HAVE_MALLOC 1
6334_ACEOF
6335
6336else
6337 cat >>confdefs.h <<\_ACEOF
6338#define HAVE_MALLOC 0
6339_ACEOF
6340
8a2fc586
AK
6341 case $LIBOBJS in
6342 "malloc.$ac_objext" | \
6343 *" malloc.$ac_objext" | \
6344 "malloc.$ac_objext "* | \
6345 *" malloc.$ac_objext "* ) ;;
6346 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6347esac
6348
ad6254c5
AK
6349
6350cat >>confdefs.h <<\_ACEOF
6351#define malloc rpl_malloc
6352_ACEOF
6353
6354fi
6355
6356
6357
6358echo "$as_me:$LINENO: checking for working memcmp" >&5
6359echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6360if test "${ac_cv_func_memcmp_working+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362else
6363 if test "$cross_compiling" = yes; then
6364 ac_cv_func_memcmp_working=no
6365else
6366 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6367/* confdefs.h. */
6368_ACEOF
6369cat confdefs.h >>conftest.$ac_ext
6370cat >>conftest.$ac_ext <<_ACEOF
6371/* end confdefs.h. */
8a2fc586 6372$ac_includes_default
ad6254c5
AK
6373int
6374main ()
6375{
6376
6377 /* Some versions of memcmp are not 8-bit clean. */
6378 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6379 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6380 exit (1);
6381
6382 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6383 or more and with at least one buffer not starting on a 4-byte boundary.
6384 William Lewis provided this test program. */
6385 {
6386 char foo[21];
6387 char bar[21];
6388 int i;
6389 for (i = 0; i < 4; i++)
6390 {
8a2fc586
AK
6391 char *a = foo + i;
6392 char *b = bar + i;
6393 strcpy (a, "--------01111111");
6394 strcpy (b, "--------10000000");
6395 if (memcmp (a, b, 16) >= 0)
6396 exit (1);
ad6254c5
AK
6397 }
6398 exit (0);
6399 }
6400
6401 ;
6402 return 0;
6403}
6404_ACEOF
6405rm -f conftest$ac_exeext
6406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_func_memcmp_working=yes
6417else
6418 echo "$as_me: program exited with status $ac_status" >&5
6419echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422( exit $ac_status )
6423ac_cv_func_memcmp_working=no
6424fi
8a2fc586 6425rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6426fi
6427fi
6428echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6429echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8a2fc586
AK
6430test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6431 "memcmp.$ac_objext" | \
6432 *" memcmp.$ac_objext" | \
6433 "memcmp.$ac_objext "* | \
6434 *" memcmp.$ac_objext "* ) ;;
6435 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6436esac
6437
ad6254c5
AK
6438
6439
6440
6441for ac_header in stdlib.h unistd.h
6442do
6443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449fi
6450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6452else
6453 # Is the header compilable?
6454echo "$as_me:$LINENO: checking $ac_header usability" >&5
6455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6456cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6457/* confdefs.h. */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h. */
6462$ac_includes_default
6463#include <$ac_header>
6464_ACEOF
6465rm -f conftest.$ac_objext
6466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6467 (eval $ac_compile) 2>conftest.er1
ad6254c5 6468 ac_status=$?
8a2fc586
AK
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
ad6254c5
AK
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } &&
8a2fc586
AK
6474 { ac_try='test -z "$ac_c_werror_flag"
6475 || test ! -s conftest.err'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_header_compiler=yes
6488else
6489 echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492ac_header_compiler=no
6493fi
8a2fc586 6494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6496echo "${ECHO_T}$ac_header_compiler" >&6
6497
6498# Is the header present?
6499echo "$as_me:$LINENO: checking $ac_header presence" >&5
6500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6501cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6502/* confdefs.h. */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h. */
6507#include <$ac_header>
6508_ACEOF
6509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6511 ac_status=$?
6512 grep -v '^ *+' conftest.er1 >conftest.err
6513 rm -f conftest.er1
6514 cat conftest.err >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } >/dev/null; then
6517 if test -s conftest.err; then
6518 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6520 else
6521 ac_cpp_err=
6522 fi
6523else
6524 ac_cpp_err=yes
6525fi
6526if test -z "$ac_cpp_err"; then
6527 ac_header_preproc=yes
6528else
6529 echo "$as_me: failed program was:" >&5
6530sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 ac_header_preproc=no
6533fi
6534rm -f conftest.err conftest.$ac_ext
6535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6536echo "${ECHO_T}$ac_header_preproc" >&6
6537
6538# So? What about this header?
8a2fc586
AK
6539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6540 yes:no: )
ad6254c5
AK
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6545 ac_header_preproc=yes
ad6254c5 6546 ;;
8a2fc586 6547 no:yes:* )
ad6254c5
AK
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6560 (
6561 cat <<\_ASBOX
8a2fc586
AK
6562## ------------------------------------------ ##
6563## Report this to the AC_PACKAGE_NAME lists. ##
6564## ------------------------------------------ ##
ad6254c5
AK
6565_ASBOX
6566 ) |
6567 sed "s/^/$as_me: WARNING: /" >&2
6568 ;;
6569esac
6570echo "$as_me:$LINENO: checking for $ac_header" >&5
6571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6572if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
8a2fc586 6575 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6576fi
6577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579
6580fi
6581if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6584_ACEOF
6585
6586fi
6587
6588done
6589
6590
6591for ac_func in getpagesize
6592do
6593as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6594echo "$as_me:$LINENO: checking for $ac_func" >&5
6595echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6596if eval "test \"\${$as_ac_var+set}\" = set"; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
8a2fc586
AK
6605/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6607#define $ac_func innocuous_$ac_func
6608
ad6254c5
AK
6609/* System header to define __stub macros and hopefully few prototypes,
6610 which can conflict with char $ac_func (); below.
6611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6612 <limits.h> exists even on freestanding compilers. */
8a2fc586 6613
ad6254c5
AK
6614#ifdef __STDC__
6615# include <limits.h>
6616#else
6617# include <assert.h>
6618#endif
8a2fc586
AK
6619
6620#undef $ac_func
6621
ad6254c5
AK
6622/* Override any gcc2 internal prototype to avoid an error. */
6623#ifdef __cplusplus
6624extern "C"
6625{
6626#endif
6627/* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629char $ac_func ();
6630/* The GNU C library defines this for functions which it implements
6631 to always fail with ENOSYS. Some functions are actually named
6632 something starting with __ and the normal name is an alias. */
6633#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6634choke me
6635#else
6636char (*f) () = $ac_func;
6637#endif
6638#ifdef __cplusplus
6639}
6640#endif
6641
6642int
6643main ()
6644{
6645return f != $ac_func;
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650rm -f conftest.$ac_objext conftest$ac_exeext
6651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 6652 (eval $ac_link) 2>conftest.er1
ad6254c5 6653 ac_status=$?
8a2fc586
AK
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
ad6254c5
AK
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
8a2fc586
AK
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 eval "$as_ac_var=yes"
6673else
6674 echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677eval "$as_ac_var=no"
6678fi
8a2fc586
AK
6679rm -f conftest.err conftest.$ac_objext \
6680 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6681fi
6682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6684if test `eval echo '${'$as_ac_var'}'` = yes; then
6685 cat >>confdefs.h <<_ACEOF
6686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6687_ACEOF
6688
6689fi
6690done
6691
6692echo "$as_me:$LINENO: checking for working mmap" >&5
6693echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6694if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 if test "$cross_compiling" = yes; then
6698 ac_cv_func_mmap_fixed_mapped=no
6699else
6700 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6701/* confdefs.h. */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h. */
6706$ac_includes_default
6707/* malloc might have been renamed as rpl_malloc. */
6708#undef malloc
6709
6710/* Thanks to Mike Haertel and Jim Avera for this test.
6711 Here is a matrix of mmap possibilities:
6712 mmap private not fixed
6713 mmap private fixed at somewhere currently unmapped
6714 mmap private fixed at somewhere already mapped
6715 mmap shared not fixed
6716 mmap shared fixed at somewhere currently unmapped
6717 mmap shared fixed at somewhere already mapped
6718 For private mappings, we should verify that changes cannot be read()
6719 back from the file, nor mmap's back from the file at a different
6720 address. (There have been systems where private was not correctly
6721 implemented like the infamous i386 svr4.0, and systems where the
6722 VM page cache was not coherent with the file system buffer cache
6723 like early versions of FreeBSD and possibly contemporary NetBSD.)
6724 For shared mappings, we should conversely verify that changes get
6725 propagated back to all the places they're supposed to be.
6726
6727 Grep wants private fixed already mapped.
6728 The main things grep needs to know about mmap are:
6729 * does it exist and is it safe to write into the mmap'd area
6730 * how to use it (BSD variants) */
6731
6732#include <fcntl.h>
6733#include <sys/mman.h>
6734
6735#if !STDC_HEADERS && !HAVE_STDLIB_H
6736char *malloc ();
6737#endif
6738
6739/* This mess was copied from the GNU getpagesize.h. */
6740#if !HAVE_GETPAGESIZE
6741/* Assume that all systems that can run configure have sys/param.h. */
6742# if !HAVE_SYS_PARAM_H
6743# define HAVE_SYS_PARAM_H 1
6744# endif
6745
6746# ifdef _SC_PAGESIZE
6747# define getpagesize() sysconf(_SC_PAGESIZE)
6748# else /* no _SC_PAGESIZE */
6749# if HAVE_SYS_PARAM_H
6750# include <sys/param.h>
6751# ifdef EXEC_PAGESIZE
6752# define getpagesize() EXEC_PAGESIZE
6753# else /* no EXEC_PAGESIZE */
6754# ifdef NBPG
6755# define getpagesize() NBPG * CLSIZE
6756# ifndef CLSIZE
6757# define CLSIZE 1
6758# endif /* no CLSIZE */
6759# else /* no NBPG */
6760# ifdef NBPC
6761# define getpagesize() NBPC
6762# else /* no NBPC */
6763# ifdef PAGESIZE
6764# define getpagesize() PAGESIZE
6765# endif /* PAGESIZE */
6766# endif /* no NBPC */
6767# endif /* no NBPG */
6768# endif /* no EXEC_PAGESIZE */
6769# else /* no HAVE_SYS_PARAM_H */
6770# define getpagesize() 8192 /* punt totally */
6771# endif /* no HAVE_SYS_PARAM_H */
6772# endif /* no _SC_PAGESIZE */
6773
6774#endif /* no HAVE_GETPAGESIZE */
6775
6776int
6777main ()
6778{
6779 char *data, *data2, *data3;
6780 int i, pagesize;
6781 int fd;
6782
6783 pagesize = getpagesize ();
6784
6785 /* First, make a file with some known garbage in it. */
6786 data = (char *) malloc (pagesize);
6787 if (!data)
6788 exit (1);
6789 for (i = 0; i < pagesize; ++i)
6790 *(data + i) = rand ();
6791 umask (0);
6792 fd = creat ("conftest.mmap", 0600);
6793 if (fd < 0)
6794 exit (1);
6795 if (write (fd, data, pagesize) != pagesize)
6796 exit (1);
6797 close (fd);
6798
6799 /* Next, try to mmap the file at a fixed address which already has
6800 something else allocated at it. If we can, also make sure that
6801 we see the same garbage. */
6802 fd = open ("conftest.mmap", O_RDWR);
6803 if (fd < 0)
6804 exit (1);
6805 data2 = (char *) malloc (2 * pagesize);
6806 if (!data2)
6807 exit (1);
8a2fc586 6808 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6809 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 6810 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6811 exit (1);
6812 for (i = 0; i < pagesize; ++i)
6813 if (*(data + i) != *(data2 + i))
6814 exit (1);
6815
6816 /* Finally, make sure that changes to the mapped area do not
6817 percolate back to the file as seen by read(). (This is a bug on
6818 some variants of i386 svr4.0.) */
6819 for (i = 0; i < pagesize; ++i)
6820 *(data2 + i) = *(data2 + i) + 1;
6821 data3 = (char *) malloc (pagesize);
6822 if (!data3)
6823 exit (1);
6824 if (read (fd, data3, pagesize) != pagesize)
6825 exit (1);
6826 for (i = 0; i < pagesize; ++i)
6827 if (*(data + i) != *(data3 + i))
6828 exit (1);
6829 close (fd);
6830 exit (0);
6831}
6832_ACEOF
6833rm -f conftest$ac_exeext
6834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 ac_cv_func_mmap_fixed_mapped=yes
6845else
6846 echo "$as_me: program exited with status $ac_status" >&5
6847echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850( exit $ac_status )
6851ac_cv_func_mmap_fixed_mapped=no
6852fi
8a2fc586 6853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6854fi
6855fi
6856echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6857echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6858if test $ac_cv_func_mmap_fixed_mapped = yes; then
6859
6860cat >>confdefs.h <<\_ACEOF
6861#define HAVE_MMAP 1
6862_ACEOF
6863
6864fi
6865rm -f conftest.mmap
6866
6867echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6868echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6869if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 if test "$cross_compiling" = yes; then
6873 ac_cv_func_stat_empty_string_bug=yes
6874else
6875 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6876/* confdefs.h. */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h. */
6881$ac_includes_default
6882int
6883main ()
6884{
6885struct stat sbuf;
6886 exit (stat ("", &sbuf) ? 1 : 0);
6887 ;
6888 return 0;
6889}
6890_ACEOF
6891rm -f conftest$ac_exeext
6892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893 (eval $ac_link) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 ac_cv_func_stat_empty_string_bug=yes
6903else
6904 echo "$as_me: program exited with status $ac_status" >&5
6905echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908( exit $ac_status )
6909ac_cv_func_stat_empty_string_bug=no
6910fi
8a2fc586 6911rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6912fi
6913fi
6914echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6915echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6916if test $ac_cv_func_stat_empty_string_bug = yes; then
8a2fc586
AK
6917 case $LIBOBJS in
6918 "stat.$ac_objext" | \
6919 *" stat.$ac_objext" | \
6920 "stat.$ac_objext "* | \
6921 *" stat.$ac_objext "* ) ;;
6922 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
6923esac
6924
ad6254c5
AK
6925
6926cat >>confdefs.h <<_ACEOF
6927#define HAVE_STAT_EMPTY_STRING_BUG 1
6928_ACEOF
6929
6930fi
6931
6932echo "$as_me:$LINENO: checking for working strtod" >&5
6933echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6934if test "${ac_cv_func_strtod+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 if test "$cross_compiling" = yes; then
6938 ac_cv_func_strtod=no
6939else
6940 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946
6947double strtod ();
6948int
6949main()
6950{
6951 {
6952 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6953 char *string = " +69";
6954 char *term;
6955 double value;
6956 value = strtod (string, &term);
6957 if (value != 69 || term != (string + 4))
6958 exit (1);
6959 }
6960
6961 {
6962 /* Under Solaris 2.4, strtod returns the wrong value for the
6963 terminating character under some conditions. */
6964 char *string = "NaN";
6965 char *term;
6966 strtod (string, &term);
6967 if (term != string && *(term - 1) == 0)
6968 exit (1);
6969 }
6970 exit (0);
6971}
6972
6973_ACEOF
6974rm -f conftest$ac_exeext
6975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6976 (eval $ac_link) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 ac_cv_func_strtod=yes
6986else
6987 echo "$as_me: program exited with status $ac_status" >&5
6988echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991( exit $ac_status )
6992ac_cv_func_strtod=no
6993fi
8a2fc586 6994rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6995fi
6996fi
6997echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6998echo "${ECHO_T}$ac_cv_func_strtod" >&6
6999if test $ac_cv_func_strtod = no; then
8a2fc586
AK
7000 case $LIBOBJS in
7001 "strtod.$ac_objext" | \
7002 *" strtod.$ac_objext" | \
7003 "strtod.$ac_objext "* | \
7004 *" strtod.$ac_objext "* ) ;;
7005 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
7006esac
7007
ad6254c5
AK
7008echo "$as_me:$LINENO: checking for pow" >&5
7009echo $ECHO_N "checking for pow... $ECHO_C" >&6
7010if test "${ac_cv_func_pow+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h. */
8a2fc586
AK
7019/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7021#define pow innocuous_pow
7022
ad6254c5
AK
7023/* System header to define __stub macros and hopefully few prototypes,
7024 which can conflict with char pow (); below.
7025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 <limits.h> exists even on freestanding compilers. */
8a2fc586 7027
ad6254c5
AK
7028#ifdef __STDC__
7029# include <limits.h>
7030#else
7031# include <assert.h>
7032#endif
8a2fc586
AK
7033
7034#undef pow
7035
ad6254c5
AK
7036/* Override any gcc2 internal prototype to avoid an error. */
7037#ifdef __cplusplus
7038extern "C"
7039{
7040#endif
7041/* We use char because int might match the return type of a gcc2
7042 builtin and then its argument prototype would still apply. */
7043char pow ();
7044/* The GNU C library defines this for functions which it implements
7045 to always fail with ENOSYS. Some functions are actually named
7046 something starting with __ and the normal name is an alias. */
7047#if defined (__stub_pow) || defined (__stub___pow)
7048choke me
7049#else
7050char (*f) () = pow;
7051#endif
7052#ifdef __cplusplus
7053}
7054#endif
7055
7056int
7057main ()
7058{
7059return f != pow;
7060 ;
7061 return 0;
7062}
7063_ACEOF
7064rm -f conftest.$ac_objext conftest$ac_exeext
7065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7066 (eval $ac_link) 2>conftest.er1
ad6254c5 7067 ac_status=$?
8a2fc586
AK
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
ad6254c5
AK
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
8a2fc586
AK
7073 { ac_try='test -z "$ac_c_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_cv_func_pow=yes
7087else
7088 echo "$as_me: failed program was:" >&5
7089sed 's/^/| /' conftest.$ac_ext >&5
7090
7091ac_cv_func_pow=no
7092fi
8a2fc586
AK
7093rm -f conftest.err conftest.$ac_objext \
7094 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7095fi
7096echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7097echo "${ECHO_T}$ac_cv_func_pow" >&6
7098
7099if test $ac_cv_func_pow = no; then
7100 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7101echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7102if test "${ac_cv_lib_m_pow+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 ac_check_lib_save_LIBS=$LIBS
7106LIBS="-lm $LIBS"
7107cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
7113
7114/* Override any gcc2 internal prototype to avoid an error. */
7115#ifdef __cplusplus
7116extern "C"
7117#endif
7118/* We use char because int might match the return type of a gcc2
7119 builtin and then its argument prototype would still apply. */
7120char pow ();
7121int
7122main ()
7123{
7124pow ();
7125 ;
7126 return 0;
7127}
7128_ACEOF
7129rm -f conftest.$ac_objext conftest$ac_exeext
7130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7131 (eval $ac_link) 2>conftest.er1
ad6254c5 7132 ac_status=$?
8a2fc586
AK
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
ad6254c5
AK
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
8a2fc586
AK
7138 { ac_try='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 ac_cv_lib_m_pow=yes
7152else
7153 echo "$as_me: failed program was:" >&5
7154sed 's/^/| /' conftest.$ac_ext >&5
7155
7156ac_cv_lib_m_pow=no
7157fi
8a2fc586
AK
7158rm -f conftest.err conftest.$ac_objext \
7159 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7160LIBS=$ac_check_lib_save_LIBS
7161fi
7162echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7163echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7164if test $ac_cv_lib_m_pow = yes; then
7165 POW_LIB=-lm
7166else
7167 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7168echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7169fi
7170
7171fi
7172
7173fi
7174
7175
7176################################################################################
7177
7178
7179################################################################################
7180# Check whether --enable-jobs or --disable-jobs was given.
7181if test "${enable_jobs+set}" = set; then
7182 enableval="$enable_jobs"
7183 JOBS=-j$enableval
7184else
7185 JOBS=-j2
7186fi;
7187
7188################################################################################
7189echo "$as_me:$LINENO: checking file owner" >&5
7190echo $ECHO_N "checking file owner... $ECHO_C" >&6
7191OWNER="root"
7192
7193
7194# Check whether --with-user or --without-user was given.
7195if test "${with_user+set}" = set; then
7196 withval="$with_user"
7197 OWNER="$withval"
7198fi;
7199echo "$as_me:$LINENO: result: $OWNER" >&5
7200echo "${ECHO_T}$OWNER" >&6
7201
7202if test x$OWNER != x; then
7203 OWNER="-o $OWNER"
7204fi
7205
7206################################################################################
7207echo "$as_me:$LINENO: checking group owner" >&5
7208echo $ECHO_N "checking group owner... $ECHO_C" >&6
7209GROUP="root"
7210
7211# Check whether --with-group or --without-group was given.
7212if test "${with_group+set}" = set; then
7213 withval="$with_group"
7214 GROUP="$withval"
7215fi;
7216echo "$as_me:$LINENO: result: $GROUP" >&5
7217echo "${ECHO_T}$GROUP" >&6
7218
7219if test x$GROUP != x; then
7220 GROUP="-g $GROUP"
7221fi
7222
7223################################################################################
7224echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7225echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
7226# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
7227if test "${enable_lvm1_fallback+set}" = set; then
7228 enableval="$enable_lvm1_fallback"
7229 LVM1_FALLBACK=$enableval
7230else
7231 LVM1_FALLBACK=no
7232fi;
7233echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7234echo "${ECHO_T}$LVM1_FALLBACK" >&6
7235
7236if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
7237
7238cat >>confdefs.h <<\_ACEOF
7239#define LVM1_FALLBACK 1
7240_ACEOF
7241
ad6254c5
AK
7242fi
7243
7244################################################################################
7245echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7246echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
7247
7248# Check whether --with-lvm1 or --without-lvm1 was given.
7249if test "${with_lvm1+set}" = set; then
7250 withval="$with_lvm1"
7251 LVM1="$withval"
7252else
7253 LVM1="internal"
7254fi;
7255echo "$as_me:$LINENO: result: $LVM1" >&5
7256echo "${ECHO_T}$LVM1" >&6
7257
7258if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7259 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7260" >&5
7261echo "$as_me: error: --with-lvm1 parameter invalid
7262" >&2;}
7263 { (exit 1); exit 1; }; }
7264fi;
7265
7266if test x$LVM1 = xinternal; then
72b2cb61
AK
7267
7268cat >>confdefs.h <<\_ACEOF
7269#define LVM1_INTERNAL 1
7270_ACEOF
7271
ad6254c5
AK
7272fi
7273
7274################################################################################
7275echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7276echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
7277
7278# Check whether --with-pool or --without-pool was given.
7279if test "${with_pool+set}" = set; then
7280 withval="$with_pool"
7281 POOL="$withval"
7282else
7283 POOL="internal"
7284fi;
7285echo "$as_me:$LINENO: result: $POOL" >&5
7286echo "${ECHO_T}$POOL" >&6
7287
7288if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7289 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7290" >&5
7291echo "$as_me: error: --with-pool parameter invalid
7292" >&2;}
7293 { (exit 1); exit 1; }; }
7294fi;
7295
7296if test x$POOL = xinternal; then
72b2cb61
AK
7297
7298cat >>confdefs.h <<\_ACEOF
7299#define POOL_INTERNAL 1
7300_ACEOF
7301
ad6254c5
AK
7302fi
7303
7304################################################################################
7305echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7306echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
7307
7308# Check whether --with-cluster or --without-cluster was given.
7309if test "${with_cluster+set}" = set; then
7310 withval="$with_cluster"
7311 CLUSTER="$withval"
7312fi;
7313echo "$as_me:$LINENO: result: $CLUSTER" >&5
7314echo "${ECHO_T}$CLUSTER" >&6
7315
7316if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7317 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7318" >&5
7319echo "$as_me: error: --with-cluster parameter invalid
7320" >&2;}
7321 { (exit 1); exit 1; }; }
7322fi;
7323
7324if test x$CLUSTER = xinternal; then
72b2cb61
AK
7325
7326cat >>confdefs.h <<\_ACEOF
7327#define CLUSTER_LOCKING_INTERNAL 1
7328_ACEOF
7329
ad6254c5
AK
7330fi
7331
7332################################################################################
7333echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7334echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
7335
7336# Check whether --with-snapshots or --without-snapshots was given.
7337if test "${with_snapshots+set}" = set; then
7338 withval="$with_snapshots"
7339 SNAPSHOTS="$withval"
7340else
7341 SNAPSHOTS="internal"
7342fi;
7343echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7344echo "${ECHO_T}$SNAPSHOTS" >&6
7345
7346if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7347 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7348" >&5
7349echo "$as_me: error: --with-snapshots parameter invalid
7350" >&2;}
7351 { (exit 1); exit 1; }; }
7352fi;
7353
7354if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
7355
7356cat >>confdefs.h <<\_ACEOF
7357#define SNAPSHOT_INTERNAL 1
7358_ACEOF
7359
ad6254c5
AK
7360fi
7361
7362################################################################################
7363echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7364echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
7365
7366# Check whether --with-mirrors or --without-mirrors was given.
7367if test "${with_mirrors+set}" = set; then
7368 withval="$with_mirrors"
7369 MIRRORS="$withval"
7370else
7371 MIRRORS="internal"
7372fi;
7373echo "$as_me:$LINENO: result: $MIRRORS" >&5
7374echo "${ECHO_T}$MIRRORS" >&6
7375
7376if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7377 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7378" >&5
7379echo "$as_me: error: --with-mirrors parameter invalid
7380" >&2;}
7381 { (exit 1); exit 1; }; }
7382fi;
7383
7384if test x$MIRRORS = xinternal; then
72b2cb61
AK
7385
7386cat >>confdefs.h <<\_ACEOF
7387#define MIRRORED_INTERNAL 1
7388_ACEOF
7389
ad6254c5
AK
7390fi
7391
7392################################################################################
7393echo "$as_me:$LINENO: checking whether to use static linking" >&5
7394echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
7395# Check whether --enable-static_link or --disable-static_link was given.
7396if test "${enable_static_link+set}" = set; then
7397 enableval="$enable_static_link"
7398 STATIC_LINK=$enableval
7399else
7400 STATIC_LINK=no
7401fi;
7402echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7403echo "${ECHO_T}$STATIC_LINK" >&6
7404
7405################################################################################
7406echo "$as_me:$LINENO: checking whether to enable readline" >&5
7407echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
7408# Check whether --enable-readline or --disable-readline was given.
7409if test "${enable_readline+set}" = set; then
7410 enableval="$enable_readline"
7411 READLINE=$enableval
7412else
7413 READLINE=no
7414fi;
7415echo "$as_me:$LINENO: result: $READLINE" >&5
7416echo "${ECHO_T}$READLINE" >&6
7417
7418if test x$READLINE = xyes; then
72b2cb61
AK
7419
7420cat >>confdefs.h <<\_ACEOF
7421#define READLINE_SUPPORT 1
7422_ACEOF
7423
ad6254c5
AK
7424fi
7425
7426################################################################################
7427echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7428echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
7429# Check whether --enable-selinux or --disable-selinux was given.
7430if test "${enable_selinux+set}" = set; then
7431 enableval="$enable_selinux"
7432 SELINUX=$enableval
7433fi;
7434echo "$as_me:$LINENO: result: $SELINUX" >&5
7435echo "${ECHO_T}$SELINUX" >&6
7436
8b1a3214
AK
7437################################################################################
7438echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
7439echo $ECHO_N "checking whether to enable realtime support... $ECHO_C" >&6
7440# Check whether --enable-realtime or --disable-realtime was given.
7441if test "${enable_realtime+set}" = set; then
7442 enableval="$enable_realtime"
7443 REALTIME=$enableval
7444fi;
7445echo "$as_me:$LINENO: result: $REALTIME" >&5
7446echo "${ECHO_T}$REALTIME" >&6
7447
ad6254c5
AK
7448################################################################################
7449echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7450echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
7451
7452# Check whether --with-clvmd or --without-clvmd was given.
7453if test "${with_clvmd+set}" = set; then
7454 withval="$with_clvmd"
a266258f 7455 CLVMD="$withval"
ad6254c5 7456else
a266258f 7457 CLVMD="none"
ad6254c5 7458fi;
a266258f 7459if test x$CLVMD = xyes; then
5c7fc7c4 7460 CLVMD=all
b1098701 7461fi
ad6254c5
AK
7462echo "$as_me:$LINENO: result: $CLVMD" >&5
7463echo "${ECHO_T}$CLVMD" >&6
7464
a266258f 7465if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7466 CLUSTER=internal
7467fi
7468
7469################################################################################
7470echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7471echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
7472# Check whether --enable-debug or --disable-debug was given.
7473if test "${enable_debug+set}" = set; then
7474 enableval="$enable_debug"
7475 DEBUG=$enableval
7476else
7477 DEBUG=no
7478fi;
7479echo "$as_me:$LINENO: result: $DEBUG" >&5
7480echo "${ECHO_T}$DEBUG" >&6
7481
7482if test x$DEBUG = xyes; then
7483 COPTIMISE_FLAG=
8a2fc586
AK
7484else
7485 CSCOPE_CMD=
ad6254c5
AK
7486fi
7487
7488################################################################################
7489echo "$as_me:$LINENO: checking for C optimisation flag" >&5
7490echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
7491
7492# Check whether --with-optimisation or --without-optimisation was given.
7493if test "${with_optimisation+set}" = set; then
7494 withval="$with_optimisation"
7495 COPTIMISE_FLAG="$withval"
7496fi;
7497echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
7498echo "${ECHO_T}$COPTIMISE_FLAG" >&6
7499
7500################################################################################
7501echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
7502echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
7503# Check whether --enable-devmapper or --disable-devmapper was given.
7504if test "${enable_devmapper+set}" = set; then
7505 enableval="$enable_devmapper"
7506 DEVMAPPER=$enableval
7507fi;
7508echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
7509echo "${ECHO_T}$DEVMAPPER" >&6
7510
7511if test x$DEVMAPPER = xyes; then
72b2cb61
AK
7512
7513cat >>confdefs.h <<\_ACEOF
7514#define DEVMAPPER_SUPPORT 1
7515_ACEOF
7516
ad6254c5
AK
7517fi
7518
7519################################################################################
7520echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
7521echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
7522# Check whether --enable-o_direct or --disable-o_direct was given.
7523if test "${enable_o_direct+set}" = set; then
7524 enableval="$enable_o_direct"
7525 ODIRECT=$enableval
7526fi;
7527echo "$as_me:$LINENO: result: $ODIRECT" >&5
7528echo "${ECHO_T}$ODIRECT" >&6
7529
7530if test x$ODIRECT = xyes; then
72b2cb61
AK
7531
7532cat >>confdefs.h <<\_ACEOF
7533#define O_DIRECT_SUPPORT 1
7534_ACEOF
7535
ad6254c5
AK
7536fi
7537
7538################################################################################
7539echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
7540echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
7541# Check whether --enable-cmdlib or --disable-cmdlib was given.
7542if test "${enable_cmdlib+set}" = set; then
7543 enableval="$enable_cmdlib"
7544 CMDLIB=$enableval
7545else
7546 CMDLIB=no
7547fi;
7548echo "$as_me:$LINENO: result: $CMDLIB" >&5
7549echo "${ECHO_T}$CMDLIB" >&6
7550
ad6254c5
AK
7551################################################################################
7552echo "$as_me:$LINENO: checking whether to build fsadm" >&5
7553echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
7554# Check whether --enable-fsadm or --disable-fsadm was given.
7555if test "${enable_fsadm+set}" = set; then
7556 enableval="$enable_fsadm"
7557 FSADM=$enableval
7558fi;
7559echo "$as_me:$LINENO: result: $FSADM" >&5
7560echo "${ECHO_T}$FSADM" >&6
7561
06f62ad1
AK
7562################################################################################
7563echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
7564echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6
7565# Check whether --enable-dmeventd or --disable-dmeventd was given.
7566if test "${enable_dmeventd+set}" = set; then
7567 enableval="$enable_dmeventd"
7568 DMEVENTD=$enableval
7569fi;
7570echo "$as_me:$LINENO: result: $DMEVENTD" >&5
7571echo "${ECHO_T}$DMEVENTD" >&6
7572
7573if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
7574{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
7575" >&5
7576echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
7577" >&2;}
7578 { (exit 1); exit 1; }; }
7579fi
7580
15d91f5a 7581if test x$DMEVENTD = xyes; then
72b2cb61
AK
7582
7583cat >>confdefs.h <<\_ACEOF
7584#define DMEVENTD 1
7585_ACEOF
7586
15d91f5a 7587fi
ad6254c5
AK
7588################################################################################
7589if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
7590 then exec_prefix="";
7591fi;
7592
7593################################################################################
7594if test $ac_cv_c_compiler_gnu = yes; then
7595 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7596echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7597if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 ac_pattern="Autoconf.*'x'"
7601 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607#include <sgtty.h>
7608Autoconf TIOCGETP
7609_ACEOF
7610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7611 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7612 ac_cv_prog_gcc_traditional=yes
7613else
7614 ac_cv_prog_gcc_traditional=no
7615fi
7616rm -f conftest*
7617
7618
7619 if test $ac_cv_prog_gcc_traditional = no; then
7620 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
7626#include <termio.h>
7627Autoconf TCGETA
7628_ACEOF
7629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7630 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7631 ac_cv_prog_gcc_traditional=yes
7632fi
7633rm -f conftest*
7634
7635 fi
7636fi
7637echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7638echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7639 if test $ac_cv_prog_gcc_traditional = yes; then
7640 CC="$CC -traditional"
7641 fi
7642fi
7643
7644echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7645echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7646if test "${ac_cv_type_signal+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7650/* confdefs.h. */
7651_ACEOF
7652cat confdefs.h >>conftest.$ac_ext
7653cat >>conftest.$ac_ext <<_ACEOF
7654/* end confdefs.h. */
7655#include <sys/types.h>
7656#include <signal.h>
7657#ifdef signal
7658# undef signal
7659#endif
7660#ifdef __cplusplus
7661extern "C" void (*signal (int, void (*)(int)))(int);
7662#else
7663void (*signal ()) ();
7664#endif
7665
7666int
7667main ()
7668{
7669int i;
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
7675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 7676 (eval $ac_compile) 2>conftest.er1
ad6254c5 7677 ac_status=$?
8a2fc586
AK
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
ad6254c5
AK
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
8a2fc586
AK
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_type_signal=void
7697else
7698 echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701ac_cv_type_signal=int
7702fi
8a2fc586 7703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7704fi
7705echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7706echo "${ECHO_T}$ac_cv_type_signal" >&6
7707
7708cat >>confdefs.h <<_ACEOF
7709#define RETSIGTYPE $ac_cv_type_signal
7710_ACEOF
7711
7712
7713
7714for ac_func in vprintf
7715do
7716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7717echo "$as_me:$LINENO: checking for $ac_func" >&5
7718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7719if eval "test \"\${$as_ac_var+set}\" = set"; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7723/* confdefs.h. */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h. */
8a2fc586
AK
7728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7730#define $ac_func innocuous_$ac_func
7731
ad6254c5
AK
7732/* System header to define __stub macros and hopefully few prototypes,
7733 which can conflict with char $ac_func (); below.
7734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7735 <limits.h> exists even on freestanding compilers. */
8a2fc586 7736
ad6254c5
AK
7737#ifdef __STDC__
7738# include <limits.h>
7739#else
7740# include <assert.h>
7741#endif
8a2fc586
AK
7742
7743#undef $ac_func
7744
ad6254c5
AK
7745/* Override any gcc2 internal prototype to avoid an error. */
7746#ifdef __cplusplus
7747extern "C"
7748{
7749#endif
7750/* We use char because int might match the return type of a gcc2
7751 builtin and then its argument prototype would still apply. */
7752char $ac_func ();
7753/* The GNU C library defines this for functions which it implements
7754 to always fail with ENOSYS. Some functions are actually named
7755 something starting with __ and the normal name is an alias. */
7756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7757choke me
7758#else
7759char (*f) () = $ac_func;
7760#endif
7761#ifdef __cplusplus
7762}
7763#endif
7764
7765int
7766main ()
7767{
7768return f != $ac_func;
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext conftest$ac_exeext
7774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7775 (eval $ac_link) 2>conftest.er1
ad6254c5 7776 ac_status=$?
8a2fc586
AK
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
ad6254c5
AK
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
8a2fc586
AK
7782 { ac_try='test -z "$ac_c_werror_flag"
7783 || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 eval "$as_ac_var=yes"
7796else
7797 echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800eval "$as_ac_var=no"
7801fi
8a2fc586
AK
7802rm -f conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7804fi
7805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7806echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7807if test `eval echo '${'$as_ac_var'}'` = yes; then
7808 cat >>confdefs.h <<_ACEOF
7809#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7810_ACEOF
7811
7812echo "$as_me:$LINENO: checking for _doprnt" >&5
7813echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7814if test "${ac_cv_func__doprnt+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7818/* confdefs.h. */
7819_ACEOF
7820cat confdefs.h >>conftest.$ac_ext
7821cat >>conftest.$ac_ext <<_ACEOF
7822/* end confdefs.h. */
8a2fc586
AK
7823/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7825#define _doprnt innocuous__doprnt
7826
ad6254c5
AK
7827/* System header to define __stub macros and hopefully few prototypes,
7828 which can conflict with char _doprnt (); below.
7829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7830 <limits.h> exists even on freestanding compilers. */
8a2fc586 7831
ad6254c5
AK
7832#ifdef __STDC__
7833# include <limits.h>
7834#else
7835# include <assert.h>
7836#endif
8a2fc586
AK
7837
7838#undef _doprnt
7839
ad6254c5
AK
7840/* Override any gcc2 internal prototype to avoid an error. */
7841#ifdef __cplusplus
7842extern "C"
7843{
7844#endif
7845/* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847char _doprnt ();
7848/* The GNU C library defines this for functions which it implements
7849 to always fail with ENOSYS. Some functions are actually named
7850 something starting with __ and the normal name is an alias. */
7851#if defined (__stub__doprnt) || defined (__stub____doprnt)
7852choke me
7853#else
7854char (*f) () = _doprnt;
7855#endif
7856#ifdef __cplusplus
7857}
7858#endif
7859
7860int
7861main ()
7862{
7863return f != _doprnt;
7864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7870 (eval $ac_link) 2>conftest.er1
ad6254c5 7871 ac_status=$?
8a2fc586
AK
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
ad6254c5
AK
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
8a2fc586
AK
7877 { ac_try='test -z "$ac_c_werror_flag"
7878 || test ! -s conftest.err'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; } &&
7884 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 (eval $ac_try) 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 ac_cv_func__doprnt=yes
7891else
7892 echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895ac_cv_func__doprnt=no
7896fi
8a2fc586
AK
7897rm -f conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7899fi
7900echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7901echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7902if test $ac_cv_func__doprnt = yes; then
7903
7904cat >>confdefs.h <<\_ACEOF
7905#define HAVE_DOPRNT 1
7906_ACEOF
7907
7908fi
7909
7910fi
7911done
7912
7913
7914
7915
7916
7917for ac_func in mkdir rmdir uname
7918do
7919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7920echo "$as_me:$LINENO: checking for $ac_func" >&5
7921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7922if eval "test \"\${$as_ac_var+set}\" = set"; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7926/* confdefs.h. */
7927_ACEOF
7928cat confdefs.h >>conftest.$ac_ext
7929cat >>conftest.$ac_ext <<_ACEOF
7930/* end confdefs.h. */
8a2fc586
AK
7931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7933#define $ac_func innocuous_$ac_func
7934
ad6254c5
AK
7935/* System header to define __stub macros and hopefully few prototypes,
7936 which can conflict with char $ac_func (); below.
7937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7938 <limits.h> exists even on freestanding compilers. */
8a2fc586 7939
ad6254c5
AK
7940#ifdef __STDC__
7941# include <limits.h>
7942#else
7943# include <assert.h>
7944#endif
8a2fc586
AK
7945
7946#undef $ac_func
7947
ad6254c5
AK
7948/* Override any gcc2 internal prototype to avoid an error. */
7949#ifdef __cplusplus
7950extern "C"
7951{
7952#endif
7953/* We use char because int might match the return type of a gcc2
7954 builtin and then its argument prototype would still apply. */
7955char $ac_func ();
7956/* The GNU C library defines this for functions which it implements
7957 to always fail with ENOSYS. Some functions are actually named
7958 something starting with __ and the normal name is an alias. */
7959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7960choke me
7961#else
7962char (*f) () = $ac_func;
7963#endif
7964#ifdef __cplusplus
7965}
7966#endif
7967
7968int
7969main ()
7970{
7971return f != $ac_func;
7972 ;
7973 return 0;
7974}
7975_ACEOF
7976rm -f conftest.$ac_objext conftest$ac_exeext
7977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7978 (eval $ac_link) 2>conftest.er1
ad6254c5 7979 ac_status=$?
8a2fc586
AK
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
ad6254c5
AK
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
8a2fc586
AK
7985 { ac_try='test -z "$ac_c_werror_flag"
7986 || test ! -s conftest.err'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; } &&
7992 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 eval "$as_ac_var=yes"
7999else
8000 echo "$as_me: failed program was:" >&5
8001sed 's/^/| /' conftest.$ac_ext >&5
8002
8003eval "$as_ac_var=no"
8004fi
8a2fc586
AK
8005rm -f conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8007fi
8008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8009echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8010if test `eval echo '${'$as_ac_var'}'` = yes; then
8011 cat >>confdefs.h <<_ACEOF
8012#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8013_ACEOF
8014
8015else
8016 { { echo "$as_me:$LINENO: error: bailing out" >&5
8017echo "$as_me: error: bailing out" >&2;}
8018 { (exit 1); exit 1; }; }
8019fi
8020done
8021
8022
8023################################################################################
8024if test x$READLINE = xyes; then
8025 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8026echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8027if test "${ac_cv_search_tgetent+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030 ac_func_search_save_LIBS=$LIBS
8031ac_cv_search_tgetent=no
8032cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038
8039/* Override any gcc2 internal prototype to avoid an error. */
8040#ifdef __cplusplus
8041extern "C"
8042#endif
8043/* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8045char tgetent ();
8046int
8047main ()
8048{
8049tgetent ();
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054rm -f conftest.$ac_objext conftest$ac_exeext
8055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8056 (eval $ac_link) 2>conftest.er1
ad6254c5 8057 ac_status=$?
8a2fc586
AK
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
ad6254c5
AK
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8a2fc586
AK
8063 { ac_try='test -z "$ac_c_werror_flag"
8064 || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_search_tgetent="none required"
8077else
8078 echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
8081fi
8a2fc586
AK
8082rm -f conftest.err conftest.$ac_objext \
8083 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8084if test "$ac_cv_search_tgetent" = no; then
8085 for ac_lib in ncurses curses termcap termlib; do
8086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8087 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h. */
8093
8094/* Override any gcc2 internal prototype to avoid an error. */
8095#ifdef __cplusplus
8096extern "C"
8097#endif
8098/* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8100char tgetent ();
8101int
8102main ()
8103{
8104tgetent ();
8105 ;
8106 return 0;
8107}
8108_ACEOF
8109rm -f conftest.$ac_objext conftest$ac_exeext
8110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8111 (eval $ac_link) 2>conftest.er1
ad6254c5 8112 ac_status=$?
8a2fc586
AK
8113 grep -v '^ *+' conftest.er1 >conftest.err
8114 rm -f conftest.er1
8115 cat conftest.err >&5
ad6254c5
AK
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8a2fc586
AK
8118 { ac_try='test -z "$ac_c_werror_flag"
8119 || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 (eval $ac_try) 2>&5
8122 ac_status=$?
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_cv_search_tgetent="-l$ac_lib"
8132break
8133else
8134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137fi
8a2fc586
AK
8138rm -f conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8140 done
8141fi
8142LIBS=$ac_func_search_save_LIBS
8143fi
8144echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8145echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8146if test "$ac_cv_search_tgetent" != no; then
8147 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8148
8149else
8150 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8151--enable-readline option (which is enabled by default). Either disable readline
8152support with --disable-readline or download and install termcap from:
8153 ftp.gnu.org/gnu/termcap
8154Note: if you are using precompiled packages you will also need the development
8155 package as well (which may be called termcap-devel or something similar).
8156Note: (n)curses also seems to work as a substitute for termcap. This was
8157 not found either - but you could try installing that as well.
8158" >&5
8159echo "$as_me: error: termcap could not be found which is required for the
8160--enable-readline option (which is enabled by default). Either disable readline
8161support with --disable-readline or download and install termcap from:
8162 ftp.gnu.org/gnu/termcap
8163Note: if you are using precompiled packages you will also need the development
8164 package as well (which may be called termcap-devel or something similar).
8165Note: (n)curses also seems to work as a substitute for termcap. This was
8166 not found either - but you could try installing that as well.
8167" >&2;}
8168 { (exit 1); exit 1; }; }
8169
8170fi
8171
8172fi
8173
8174################################################################################
8175echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8176echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8177if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 ac_check_lib_save_LIBS=$LIBS
8181LIBS="-ldl $LIBS"
8182cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8183/* confdefs.h. */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h. */
8188
8189/* Override any gcc2 internal prototype to avoid an error. */
8190#ifdef __cplusplus
8191extern "C"
8192#endif
8193/* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8195char dlopen ();
8196int
8197main ()
8198{
8199dlopen ();
8200 ;
8201 return 0;
8202}
8203_ACEOF
8204rm -f conftest.$ac_objext conftest$ac_exeext
8205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8206 (eval $ac_link) 2>conftest.er1
ad6254c5 8207 ac_status=$?
8a2fc586
AK
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
ad6254c5
AK
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8a2fc586
AK
8213 { ac_try='test -z "$ac_c_werror_flag"
8214 || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_lib_dl_dlopen=yes
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231ac_cv_lib_dl_dlopen=no
8232fi
8a2fc586
AK
8233rm -f conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8235LIBS=$ac_check_lib_save_LIBS
8236fi
8237echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8238echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8239if test $ac_cv_lib_dl_dlopen = yes; then
8240 HAVE_LIBDL=yes
8241else
8242 HAVE_LIBDL=no
8243fi
8244
8245
7e9e9502 8246if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8247
8248cat >>confdefs.h <<\_ACEOF
8249#define HAVE_LIBDL 1
8250_ACEOF
8251
ad6254c5
AK
8252 LIBS="-ldl $LIBS"
8253else
8254 HAVE_LIBDL=no
8255fi
8256
8257################################################################################
8258if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8259 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8260 \) -a "x$STATIC_LINK" = xyes ];
8261 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8262" >&5
8263echo "$as_me: error: Features cannot be 'shared' when building statically
8264" >&2;}
8265 { (exit 1); exit 1; }; }
8266fi
8267
8268################################################################################
8269if test x$SELINUX = xyes; then
8a2fc586
AK
8270 echo "$as_me:$LINENO: checking for sepol_check_context function" >&5
8271echo $ECHO_N "checking for sepol_check_context function... $ECHO_C" >&6
8272 echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8273echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6
8274if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 ac_check_lib_save_LIBS=$LIBS
8278LIBS="-lsepol $LIBS"
8279cat >conftest.$ac_ext <<_ACEOF
8280/* confdefs.h. */
8281_ACEOF
8282cat confdefs.h >>conftest.$ac_ext
8283cat >>conftest.$ac_ext <<_ACEOF
8284/* end confdefs.h. */
8285
8286/* Override any gcc2 internal prototype to avoid an error. */
8287#ifdef __cplusplus
8288extern "C"
8289#endif
8290/* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8292char sepol_check_context ();
8293int
8294main ()
8295{
8296sepol_check_context ();
8297 ;
8298 return 0;
8299}
8300_ACEOF
8301rm -f conftest.$ac_objext conftest$ac_exeext
8302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>conftest.er1
8304 ac_status=$?
8305 grep -v '^ *+' conftest.er1 >conftest.err
8306 rm -f conftest.er1
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try='test -z "$ac_c_werror_flag"
8311 || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 (eval $ac_try) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_lib_sepol_sepol_check_context=yes
8324else
8325 echo "$as_me: failed program was:" >&5
8326sed 's/^/| /' conftest.$ac_ext >&5
8327
8328ac_cv_lib_sepol_sepol_check_context=no
8329fi
8330rm -f conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332LIBS=$ac_check_lib_save_LIBS
8333fi
8334echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8335echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6
8336if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8337 HAVE_SEPOL=yes
8338else
8339 HAVE_SEPOL=no
8340fi
8341
8342 echo "$as_me:$LINENO: result: $HAVE_SEPOL" >&5
8343echo "${ECHO_T}$HAVE_SEPOL" >&6
8344
8345 if test x$HAVE_SEPOL = xyes; then
8346 LIBS="-lsepol $LIBS"
8347 fi
8348
ad6254c5
AK
8349 echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5
8350echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6
8351 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8352echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
8353if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356 ac_check_lib_save_LIBS=$LIBS
8357LIBS="-lselinux $LIBS"
8358cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
8364
8365/* Override any gcc2 internal prototype to avoid an error. */
8366#ifdef __cplusplus
8367extern "C"
8368#endif
8369/* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8371char is_selinux_enabled ();
8372int
8373main ()
8374{
8375is_selinux_enabled ();
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8382 (eval $ac_link) 2>conftest.er1
ad6254c5 8383 ac_status=$?
8a2fc586
AK
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
ad6254c5
AK
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8a2fc586
AK
8389 { ac_try='test -z "$ac_c_werror_flag"
8390 || test ! -s conftest.err'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_lib_selinux_is_selinux_enabled=yes
8403else
8404 echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407ac_cv_lib_selinux_is_selinux_enabled=no
8408fi
8a2fc586
AK
8409rm -f conftest.err conftest.$ac_objext \
8410 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8411LIBS=$ac_check_lib_save_LIBS
8412fi
8413echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8414echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
8415if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8416 HAVE_SELINUX=yes
8417else
8418 HAVE_SELINUX=no
8419fi
8420
8421 echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5
8422echo "${ECHO_T}$HAVE_SELINUX" >&6
8423
8424 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
8425
8426cat >>confdefs.h <<\_ACEOF
8427#define HAVE_SELINUX 1
8428_ACEOF
8429
ad6254c5
AK
8430 LIBS="-lselinux $LIBS"
8431 else
8432 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8433echo "$as_me: WARNING: Disabling selinux" >&2;}
8434 fi
8435fi
8436
8b1a3214
AK
8437################################################################################
8438if test x$REALTIME = xyes; then
8439 echo "$as_me:$LINENO: checking for clock_gettime function" >&5
8440echo $ECHO_N "checking for clock_gettime function... $ECHO_C" >&6
8441 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
8442echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
8443if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445else
8446 ac_check_lib_save_LIBS=$LIBS
8447LIBS="-lrt $LIBS"
8448cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454
8455/* Override any gcc2 internal prototype to avoid an error. */
8456#ifdef __cplusplus
8457extern "C"
8458#endif
8459/* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8461char clock_gettime ();
8462int
8463main ()
8464{
8465clock_gettime ();
8466 ;
8467 return 0;
8468}
8469_ACEOF
8470rm -f conftest.$ac_objext conftest$ac_exeext
8471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472 (eval $ac_link) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_lib_rt_clock_gettime=yes
8493else
8494 echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
8497ac_cv_lib_rt_clock_gettime=no
8498fi
8499rm -f conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8501LIBS=$ac_check_lib_save_LIBS
8502fi
8503echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
8504echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
8505if test $ac_cv_lib_rt_clock_gettime = yes; then
8506 HAVE_REALTIME=yes
8507else
8508 HAVE_REALTIME=no
8509fi
8510
8511 echo "$as_me:$LINENO: result: $HAVE_REALTIME" >&5
8512echo "${ECHO_T}$HAVE_REALTIME" >&6
8513
8514 if test x$HAVE_REALTIME = xyes; then
8515
8516cat >>confdefs.h <<\_ACEOF
8517#define HAVE_REALTIME 1
8518_ACEOF
8519
8520 LIBS="-lrt $LIBS"
8521 else
8522 { echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
8523echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8524 fi
8525fi
8526
ad6254c5
AK
8527################################################################################
8528
8529for ac_header in getopt.h
8530do
8531as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8532if eval "test \"\${$as_ac_Header+set}\" = set"; then
8533 echo "$as_me:$LINENO: checking for $ac_header" >&5
8534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8535if eval "test \"\${$as_ac_Header+set}\" = set"; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537fi
8538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8540else
8541 # Is the header compilable?
8542echo "$as_me:$LINENO: checking $ac_header usability" >&5
8543echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8544cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8545/* confdefs.h. */
8546_ACEOF
8547cat confdefs.h >>conftest.$ac_ext
8548cat >>conftest.$ac_ext <<_ACEOF
8549/* end confdefs.h. */
8550$ac_includes_default
8551#include <$ac_header>
8552_ACEOF
8553rm -f conftest.$ac_objext
8554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8555 (eval $ac_compile) 2>conftest.er1
ad6254c5 8556 ac_status=$?
8a2fc586
AK
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
ad6254c5
AK
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8a2fc586
AK
8562 { ac_try='test -z "$ac_c_werror_flag"
8563 || test ! -s conftest.err'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 (eval $ac_try) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; } &&
8569 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_header_compiler=yes
8576else
8577 echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580ac_header_compiler=no
8581fi
8a2fc586 8582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8584echo "${ECHO_T}$ac_header_compiler" >&6
8585
8586# Is the header present?
8587echo "$as_me:$LINENO: checking $ac_header presence" >&5
8588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8589cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h. */
8595#include <$ac_header>
8596_ACEOF
8597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } >/dev/null; then
8605 if test -s conftest.err; then
8606 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 8607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8608 else
8609 ac_cpp_err=
8610 fi
8611else
8612 ac_cpp_err=yes
8613fi
8614if test -z "$ac_cpp_err"; then
8615 ac_header_preproc=yes
8616else
8617 echo "$as_me: failed program was:" >&5
8618sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_header_preproc=no
8621fi
8622rm -f conftest.err conftest.$ac_ext
8623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8624echo "${ECHO_T}$ac_header_preproc" >&6
8625
8626# So? What about this header?
8a2fc586
AK
8627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8628 yes:no: )
ad6254c5
AK
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8633 ac_header_preproc=yes
ad6254c5 8634 ;;
8a2fc586 8635 no:yes:* )
ad6254c5
AK
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
8638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
8646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8648 (
8649 cat <<\_ASBOX
8a2fc586
AK
8650## ------------------------------------------ ##
8651## Report this to the AC_PACKAGE_NAME lists. ##
8652## ------------------------------------------ ##
ad6254c5
AK
8653_ASBOX
8654 ) |
8655 sed "s/^/$as_me: WARNING: /" >&2
8656 ;;
8657esac
8658echo "$as_me:$LINENO: checking for $ac_header" >&5
8659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8a2fc586 8663 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8664fi
8665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8667
8668fi
8669if test `eval echo '${'$as_ac_Header'}'` = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8672_ACEOF
72b2cb61
AK
8673
8674cat >>confdefs.h <<\_ACEOF
8675#define HAVE_GETOPTLONG 1
8676_ACEOF
8677
ad6254c5
AK
8678fi
8679
8680done
8681
8682
8683################################################################################
8684if test x$READLINE = xyes; then
8685
8686echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8687echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8688if test "${ac_cv_lib_readline_readline+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691 ac_check_lib_save_LIBS=$LIBS
8692LIBS="-lreadline $LIBS"
8693cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699
8700/* Override any gcc2 internal prototype to avoid an error. */
8701#ifdef __cplusplus
8702extern "C"
8703#endif
8704/* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8706char readline ();
8707int
8708main ()
8709{
8710readline ();
8711 ;
8712 return 0;
8713}
8714_ACEOF
8715rm -f conftest.$ac_objext conftest$ac_exeext
8716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8717 (eval $ac_link) 2>conftest.er1
ad6254c5 8718 ac_status=$?
8a2fc586
AK
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
ad6254c5
AK
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8a2fc586
AK
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_cv_lib_readline_readline=yes
8738else
8739 echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742ac_cv_lib_readline_readline=no
8743fi
8a2fc586
AK
8744rm -f conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8746LIBS=$ac_check_lib_save_LIBS
8747fi
8748echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8749echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8750if test $ac_cv_lib_readline_readline = yes; then
8751 cat >>confdefs.h <<_ACEOF
8752#define HAVE_LIBREADLINE 1
8753_ACEOF
8754
8755 LIBS="-lreadline $LIBS"
8756
8757else
8758 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
8759--enable-readline option (which is enabled by default). Either disable readline
8760support with --disable-readline or download and install readline from:
8761 ftp.gnu.org/gnu/readline
8762Note: if you are using precompiled packages you will also need the development
8763package as well (which may be called readline-devel or something similar).
8764" >&5
8765echo "$as_me: error: GNU Readline could not be found which is required for the
8766--enable-readline option (which is enabled by default). Either disable readline
8767support with --disable-readline or download and install readline from:
8768 ftp.gnu.org/gnu/readline
8769Note: if you are using precompiled packages you will also need the development
8770package as well (which may be called readline-devel or something similar).
8771" >&2;}
8772 { (exit 1); exit 1; }; }
8773
8774fi
8775
8776 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
8777echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
8778if test "${ac_cv_func_rl_completion_matches+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780else
8781 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8782/* confdefs.h. */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h. */
8a2fc586
AK
8787/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
8788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8789#define rl_completion_matches innocuous_rl_completion_matches
8790
ad6254c5
AK
8791/* System header to define __stub macros and hopefully few prototypes,
8792 which can conflict with char rl_completion_matches (); below.
8793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8794 <limits.h> exists even on freestanding compilers. */
8a2fc586 8795
ad6254c5
AK
8796#ifdef __STDC__
8797# include <limits.h>
8798#else
8799# include <assert.h>
8800#endif
8a2fc586
AK
8801
8802#undef rl_completion_matches
8803
ad6254c5
AK
8804/* Override any gcc2 internal prototype to avoid an error. */
8805#ifdef __cplusplus
8806extern "C"
8807{
8808#endif
8809/* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811char rl_completion_matches ();
8812/* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
8816choke me
8817#else
8818char (*f) () = rl_completion_matches;
8819#endif
8820#ifdef __cplusplus
8821}
8822#endif
8823
8824int
8825main ()
8826{
8827return f != rl_completion_matches;
8828 ;
8829 return 0;
8830}
8831_ACEOF
8832rm -f conftest.$ac_objext conftest$ac_exeext
8833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8834 (eval $ac_link) 2>conftest.er1
ad6254c5 8835 ac_status=$?
8a2fc586
AK
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
ad6254c5
AK
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8a2fc586
AK
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_func_rl_completion_matches=yes
8855else
8856 echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
8858
8859ac_cv_func_rl_completion_matches=no
8860fi
8a2fc586
AK
8861rm -f conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8863fi
8864echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
8865echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
8866if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 8867
72b2cb61
AK
8868cat >>confdefs.h <<\_ACEOF
8869#define HAVE_RL_COMPLETION_MATCHES 1
8870_ACEOF
8871
8872fi
ad6254c5
AK
8873
8874fi
8875
8876################################################################################
8877echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
8878echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
8879# Check whether --enable-nls or --disable-nls was given.
8880if test "${enable_nls+set}" = set; then
8881 enableval="$enable_nls"
8882 INTL=$enableval
8883else
8884 INTL=no
8885fi;
8886echo "$as_me:$LINENO: result: $INTL" >&5
8887echo "${ECHO_T}$INTL" >&6
8888
8889if test x$INTL = xyes; then
8890 INTL_PACKAGE="lvm2"
8891 # Extract the first word of "msgfmt", so it can be a program name with args.
8892set dummy msgfmt; ac_word=$2
8893echo "$as_me:$LINENO: checking for $ac_word" >&5
8894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8895if test "${ac_cv_path_MSGFMT+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897else
8898 case $MSGFMT in
8899 [\\/]* | ?:[\\/]*)
8900 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8901 ;;
8902 *)
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904for as_dir in $PATH
8905do
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8913 fi
8914done
8915done
8916
8917 ;;
8918esac
8919fi
8920MSGFMT=$ac_cv_path_MSGFMT
8921
8922if test -n "$MSGFMT"; then
8923 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8924echo "${ECHO_T}$MSGFMT" >&6
8925else
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
8928fi
8929
8930 if [ "x$MSGFMT" == x ];
8931 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8932 " >&5
8933echo "$as_me: error: msgfmt not found in path $PATH
8934 " >&2;}
8935 { (exit 1); exit 1; }; }
8936 fi;
8937
8938
8939# Check whether --with-localedir or --without-localedir was given.
8940if test "${with_localedir+set}" = set; then
8941 withval="$with_localedir"
8942 LOCALEDIR="$withval"
8943else
8944 LOCALEDIR='${prefix}/share/locale'
8945fi;
8946fi
8947
8948################################################################################
8949
8950# Check whether --with-confdir or --without-confdir was given.
8951if test "${with_confdir+set}" = set; then
8952 withval="$with_confdir"
8953 CONFDIR="$withval"
8954else
8955 CONFDIR='/etc'
8956fi;
8957
8958
8959# Check whether --with-staticdir or --without-staticdir was given.
8960if test "${with_staticdir+set}" = set; then
8961 withval="$with_staticdir"
8962 STATICDIR="$withval"
8963else
8964 STATICDIR='${exec_prefix}/sbin'
8965fi;
8966
8967################################################################################
8968if test x$READLINE = xyes; then
8969
8970
8971for ac_header in readline/readline.h readline/history.h
8972do
8973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8974if eval "test \"\${$as_ac_Header+set}\" = set"; then
8975 echo "$as_me:$LINENO: checking for $ac_header" >&5
8976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8977if eval "test \"\${$as_ac_Header+set}\" = set"; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8979fi
8980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8982else
8983 # Is the header compilable?
8984echo "$as_me:$LINENO: checking $ac_header usability" >&5
8985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8986cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
8992$ac_includes_default
8993#include <$ac_header>
8994_ACEOF
8995rm -f conftest.$ac_objext
8996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8997 (eval $ac_compile) 2>conftest.er1
ad6254c5 8998 ac_status=$?
8a2fc586
AK
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
ad6254c5
AK
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
8a2fc586
AK
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_header_compiler=yes
9018else
9019 echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022ac_header_compiler=no
9023fi
8a2fc586 9024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9026echo "${ECHO_T}$ac_header_compiler" >&6
9027
9028# Is the header present?
9029echo "$as_me:$LINENO: checking $ac_header presence" >&5
9030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9031cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
9037#include <$ac_header>
9038_ACEOF
9039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } >/dev/null; then
9047 if test -s conftest.err; then
9048 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9050 else
9051 ac_cpp_err=
9052 fi
9053else
9054 ac_cpp_err=yes
9055fi
9056if test -z "$ac_cpp_err"; then
9057 ac_header_preproc=yes
9058else
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 ac_header_preproc=no
9063fi
9064rm -f conftest.err conftest.$ac_ext
9065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9066echo "${ECHO_T}$ac_header_preproc" >&6
9067
9068# So? What about this header?
8a2fc586
AK
9069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9070 yes:no: )
ad6254c5
AK
9071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9075 ac_header_preproc=yes
ad6254c5 9076 ;;
8a2fc586 9077 no:yes:* )
ad6254c5
AK
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9090 (
9091 cat <<\_ASBOX
8a2fc586
AK
9092## ------------------------------------------ ##
9093## Report this to the AC_PACKAGE_NAME lists. ##
9094## ------------------------------------------ ##
ad6254c5
AK
9095_ASBOX
9096 ) |
9097 sed "s/^/$as_me: WARNING: /" >&2
9098 ;;
9099esac
9100echo "$as_me:$LINENO: checking for $ac_header" >&5
9101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9102if eval "test \"\${$as_ac_Header+set}\" = set"; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104else
8a2fc586 9105 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9106fi
9107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9109
9110fi
9111if test `eval echo '${'$as_ac_Header'}'` = yes; then
9112 cat >>confdefs.h <<_ACEOF
9113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9114_ACEOF
9115
9116else
9117 { { echo "$as_me:$LINENO: error: bailing out" >&5
9118echo "$as_me: error: bailing out" >&2;}
9119 { (exit 1); exit 1; }; }
9120fi
9121
9122done
9123
9124fi
9125
5c7fc7c4 9126if test x$CLVMD != xnone; then
ad6254c5
AK
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137for 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
9138do
9139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145fi
9146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148else
9149 # Is the header compilable?
9150echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9152cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158$ac_includes_default
9159#include <$ac_header>
9160_ACEOF
9161rm -f conftest.$ac_objext
9162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9163 (eval $ac_compile) 2>conftest.er1
ad6254c5 9164 ac_status=$?
8a2fc586
AK
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
ad6254c5
AK
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
8a2fc586
AK
9170 { ac_try='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_header_compiler=yes
9184else
9185 echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188ac_header_compiler=no
9189fi
8a2fc586 9190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9192echo "${ECHO_T}$ac_header_compiler" >&6
9193
9194# Is the header present?
9195echo "$as_me:$LINENO: checking $ac_header presence" >&5
9196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9197cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
9203#include <$ac_header>
9204_ACEOF
9205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev/null; then
9213 if test -s conftest.err; then
9214 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9216 else
9217 ac_cpp_err=
9218 fi
9219else
9220 ac_cpp_err=yes
9221fi
9222if test -z "$ac_cpp_err"; then
9223 ac_header_preproc=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 ac_header_preproc=no
9229fi
9230rm -f conftest.err conftest.$ac_ext
9231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9232echo "${ECHO_T}$ac_header_preproc" >&6
9233
9234# So? What about this header?
8a2fc586
AK
9235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9236 yes:no: )
ad6254c5
AK
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9241 ac_header_preproc=yes
ad6254c5 9242 ;;
8a2fc586 9243 no:yes:* )
ad6254c5
AK
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9256 (
9257 cat <<\_ASBOX
8a2fc586
AK
9258## ------------------------------------------ ##
9259## Report this to the AC_PACKAGE_NAME lists. ##
9260## ------------------------------------------ ##
ad6254c5
AK
9261_ASBOX
9262 ) |
9263 sed "s/^/$as_me: WARNING: /" >&2
9264 ;;
9265esac
9266echo "$as_me:$LINENO: checking for $ac_header" >&5
9267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9268if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
8a2fc586 9271 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9272fi
9273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275
9276fi
9277if test `eval echo '${'$as_ac_Header'}'` = yes; then
9278 cat >>confdefs.h <<_ACEOF
9279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280_ACEOF
9281
9282else
9283 { { echo "$as_me:$LINENO: error: bailing out" >&5
9284echo "$as_me: error: bailing out" >&2;}
9285 { (exit 1); exit 1; }; }
795ca3e5
AK
9286fi
9287
ad6254c5
AK
9288done
9289
9290
795ca3e5 9291
8106cdd5 9292
ad6254c5
AK
9293
9294
9295for ac_func in dup2 getmntent memmove select socket
9296do
9297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9298echo "$as_me:$LINENO: checking for $ac_func" >&5
9299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9300if eval "test \"\${$as_ac_var+set}\" = set"; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9302else
ad6254c5 9303 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9304/* confdefs.h. */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h. */
8a2fc586
AK
9309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9311#define $ac_func innocuous_$ac_func
9312
795ca3e5 9313/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9314 which can conflict with char $ac_func (); below.
9315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316 <limits.h> exists even on freestanding compilers. */
8a2fc586 9317
ad6254c5
AK
9318#ifdef __STDC__
9319# include <limits.h>
9320#else
9321# include <assert.h>
9322#endif
8a2fc586
AK
9323
9324#undef $ac_func
9325
795ca3e5 9326/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9327#ifdef __cplusplus
9328extern "C"
9329{
9330#endif
795ca3e5 9331/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9332 builtin and then its argument prototype would still apply. */
9333char $ac_func ();
795ca3e5
AK
9334/* The GNU C library defines this for functions which it implements
9335 to always fail with ENOSYS. Some functions are actually named
9336 something starting with __ and the normal name is an alias. */
ad6254c5 9337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
9338choke me
9339#else
ad6254c5
AK
9340char (*f) () = $ac_func;
9341#endif
9342#ifdef __cplusplus
9343}
795ca3e5
AK
9344#endif
9345
ad6254c5
AK
9346int
9347main ()
9348{
9349return f != $ac_func;
9350 ;
9351 return 0;
9352}
9353_ACEOF
9354rm -f conftest.$ac_objext conftest$ac_exeext
9355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9356 (eval $ac_link) 2>conftest.er1
ad6254c5 9357 ac_status=$?
8a2fc586
AK
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
ad6254c5
AK
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
8a2fc586
AK
9363 { ac_try='test -z "$ac_c_werror_flag"
9364 || test ! -s conftest.err'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; } &&
9370 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 eval "$as_ac_var=yes"
795ca3e5 9377else
ad6254c5
AK
9378 echo "$as_me: failed program was:" >&5
9379sed 's/^/| /' conftest.$ac_ext >&5
9380
9381eval "$as_ac_var=no"
80992638 9382fi
8a2fc586
AK
9383rm -f conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9385fi
ad6254c5
AK
9386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9387echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9388if test `eval echo '${'$as_ac_var'}'` = yes; then
9389 cat >>confdefs.h <<_ACEOF
9390#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9391_ACEOF
80992638
AK
9392
9393else
ad6254c5
AK
9394 { { echo "$as_me:$LINENO: error: bailing out" >&5
9395echo "$as_me: error: bailing out" >&2;}
9396 { (exit 1); exit 1; }; }
8106cdd5 9397fi
ad6254c5 9398done
795ca3e5 9399
ad6254c5
AK
9400 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9401echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9402echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9403if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9405else
ad6254c5
AK
9406 ac_check_lib_save_LIBS=$LIBS
9407LIBS="-lsun $LIBS"
9408cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9409/* confdefs.h. */
9410_ACEOF
9411cat confdefs.h >>conftest.$ac_ext
9412cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */
9414
795ca3e5 9415/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9416#ifdef __cplusplus
9417extern "C"
9418#endif
795ca3e5 9419/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9420 builtin and then its argument prototype would still apply. */
9421char getmntent ();
9422int
9423main ()
9424{
9425getmntent ();
9426 ;
9427 return 0;
9428}
9429_ACEOF
9430rm -f conftest.$ac_objext conftest$ac_exeext
9431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9432 (eval $ac_link) 2>conftest.er1
ad6254c5 9433 ac_status=$?
8a2fc586
AK
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
ad6254c5
AK
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
8a2fc586
AK
9439 { ac_try='test -z "$ac_c_werror_flag"
9440 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_lib_sun_getmntent=yes
9453else
9454 echo "$as_me: failed program was:" >&5
9455sed 's/^/| /' conftest.$ac_ext >&5
80992638 9456
ad6254c5
AK
9457ac_cv_lib_sun_getmntent=no
9458fi
8a2fc586
AK
9459rm -f conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9461LIBS=$ac_check_lib_save_LIBS
9462fi
9463echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9464echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9465if test $ac_cv_lib_sun_getmntent = yes; then
9466 LIBS="-lsun $LIBS"
9467else
9468 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9469echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9470if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472else
9473 ac_check_lib_save_LIBS=$LIBS
9474LIBS="-lseq $LIBS"
9475cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
80992638 9481
ad6254c5
AK
9482/* Override any gcc2 internal prototype to avoid an error. */
9483#ifdef __cplusplus
9484extern "C"
795ca3e5 9485#endif
ad6254c5
AK
9486/* We use char because int might match the return type of a gcc2
9487 builtin and then its argument prototype would still apply. */
9488char getmntent ();
9489int
9490main ()
9491{
9492getmntent ();
9493 ;
9494 return 0;
9495}
9496_ACEOF
9497rm -f conftest.$ac_objext conftest$ac_exeext
9498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9499 (eval $ac_link) 2>conftest.er1
ad6254c5 9500 ac_status=$?
8a2fc586
AK
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
ad6254c5
AK
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
8a2fc586
AK
9506 { ac_try='test -z "$ac_c_werror_flag"
9507 || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 ac_cv_lib_seq_getmntent=yes
795ca3e5 9520else
ad6254c5
AK
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524ac_cv_lib_seq_getmntent=no
795ca3e5 9525fi
8a2fc586
AK
9526rm -f conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9528LIBS=$ac_check_lib_save_LIBS
795ca3e5 9529fi
ad6254c5
AK
9530echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9531echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9532if test $ac_cv_lib_seq_getmntent = yes; then
9533 LIBS="-lseq $LIBS"
9534else
9535 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9536echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9537if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540 ac_check_lib_save_LIBS=$LIBS
9541LIBS="-lgen $LIBS"
9542cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9543/* confdefs.h. */
9544_ACEOF
9545cat confdefs.h >>conftest.$ac_ext
9546cat >>conftest.$ac_ext <<_ACEOF
9547/* end confdefs.h. */
795ca3e5 9548
ad6254c5
AK
9549/* Override any gcc2 internal prototype to avoid an error. */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553/* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9555char getmntent ();
9556int
9557main ()
9558{
9559getmntent ();
9560 ;
9561 return 0;
9562}
9563_ACEOF
9564rm -f conftest.$ac_objext conftest$ac_exeext
9565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9566 (eval $ac_link) 2>conftest.er1
ad6254c5 9567 ac_status=$?
8a2fc586
AK
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
ad6254c5
AK
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
8a2fc586
AK
9573 { ac_try='test -z "$ac_c_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_lib_gen_getmntent=yes
80992638 9587else
ad6254c5
AK
9588 echo "$as_me: failed program was:" >&5
9589sed 's/^/| /' conftest.$ac_ext >&5
9590
9591ac_cv_lib_gen_getmntent=no
9592fi
8a2fc586
AK
9593rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9595LIBS=$ac_check_lib_save_LIBS
9596fi
9597echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9598echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9599if test $ac_cv_lib_gen_getmntent = yes; then
9600 LIBS="-lgen $LIBS"
795ca3e5
AK
9601fi
9602
9603fi
9604
ad6254c5
AK
9605fi
9606
9607
9608for ac_func in getmntent
795ca3e5 9609do
ad6254c5
AK
9610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9611echo "$as_me:$LINENO: checking for $ac_func" >&5
9612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9613if eval "test \"\${$as_ac_var+set}\" = set"; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615else
9616 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9617/* confdefs.h. */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h. */
8a2fc586
AK
9622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9624#define $ac_func innocuous_$ac_func
9625
795ca3e5 9626/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9627 which can conflict with char $ac_func (); below.
9628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9629 <limits.h> exists even on freestanding compilers. */
8a2fc586 9630
ad6254c5
AK
9631#ifdef __STDC__
9632# include <limits.h>
9633#else
9634# include <assert.h>
9635#endif
8a2fc586
AK
9636
9637#undef $ac_func
9638
795ca3e5 9639/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9640#ifdef __cplusplus
9641extern "C"
9642{
9643#endif
795ca3e5 9644/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9645 builtin and then its argument prototype would still apply. */
9646char $ac_func ();
795ca3e5
AK
9647/* The GNU C library defines this for functions which it implements
9648 to always fail with ENOSYS. Some functions are actually named
9649 something starting with __ and the normal name is an alias. */
9650#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9651choke me
9652#else
ad6254c5
AK
9653char (*f) () = $ac_func;
9654#endif
9655#ifdef __cplusplus
9656}
795ca3e5
AK
9657#endif
9658
ad6254c5
AK
9659int
9660main ()
9661{
9662return f != $ac_func;
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext conftest$ac_exeext
9668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9669 (eval $ac_link) 2>conftest.er1
ad6254c5 9670 ac_status=$?
8a2fc586
AK
9671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
ad6254c5
AK
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
8a2fc586
AK
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 (eval $ac_try) 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 eval "$as_ac_var=yes"
795ca3e5 9690else
ad6254c5
AK
9691 echo "$as_me: failed program was:" >&5
9692sed 's/^/| /' conftest.$ac_ext >&5
9693
9694eval "$as_ac_var=no"
795ca3e5 9695fi
8a2fc586
AK
9696rm -f conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9698fi
ad6254c5
AK
9699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9700echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9701if test `eval echo '${'$as_ac_var'}'` = yes; then
9702 cat >>confdefs.h <<_ACEOF
9703#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9704_ACEOF
795ca3e5 9705
795ca3e5
AK
9706fi
9707done
9708
9709
ad6254c5
AK
9710# AC_FUNC_REALLOC
9711
9712
9713for ac_header in sys/select.h sys/socket.h
9714do
9715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9716if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo "$as_me:$LINENO: checking for $ac_header" >&5
9718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9719if eval "test \"\${$as_ac_Header+set}\" = set"; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721fi
9722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 9724else
ad6254c5
AK
9725 # Is the header compilable?
9726echo "$as_me:$LINENO: checking $ac_header usability" >&5
9727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9728cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734$ac_includes_default
9735#include <$ac_header>
9736_ACEOF
9737rm -f conftest.$ac_objext
9738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9739 (eval $ac_compile) 2>conftest.er1
ad6254c5 9740 ac_status=$?
8a2fc586
AK
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
ad6254c5
AK
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
8a2fc586
AK
9746 { ac_try='test -z "$ac_c_werror_flag"
9747 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_header_compiler=yes
80992638 9760else
ad6254c5
AK
9761 echo "$as_me: failed program was:" >&5
9762sed 's/^/| /' conftest.$ac_ext >&5
9763
9764ac_header_compiler=no
9765fi
8a2fc586 9766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9768echo "${ECHO_T}$ac_header_compiler" >&6
9769
9770# Is the header present?
9771echo "$as_me:$LINENO: checking $ac_header presence" >&5
9772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9773cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779#include <$ac_header>
9780_ACEOF
9781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } >/dev/null; then
9789 if test -s conftest.err; then
9790 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9792 else
9793 ac_cpp_err=
9794 fi
9795else
9796 ac_cpp_err=yes
795ca3e5 9797fi
ad6254c5
AK
9798if test -z "$ac_cpp_err"; then
9799 ac_header_preproc=yes
9800else
9801 echo "$as_me: failed program was:" >&5
9802sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_header_preproc=no
9805fi
9806rm -f conftest.err conftest.$ac_ext
9807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9808echo "${ECHO_T}$ac_header_preproc" >&6
9809
9810# So? What about this header?
8a2fc586
AK
9811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9812 yes:no: )
ad6254c5
AK
9813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9817 ac_header_preproc=yes
ad6254c5 9818 ;;
8a2fc586 9819 no:yes:* )
ad6254c5
AK
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9832 (
9833 cat <<\_ASBOX
8a2fc586
AK
9834## ------------------------------------------ ##
9835## Report this to the AC_PACKAGE_NAME lists. ##
9836## ------------------------------------------ ##
ad6254c5
AK
9837_ASBOX
9838 ) |
9839 sed "s/^/$as_me: WARNING: /" >&2
9840 ;;
9841esac
9842echo "$as_me:$LINENO: checking for $ac_header" >&5
9843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846else
8a2fc586 9847 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9848fi
ad6254c5
AK
9849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 9851
795ca3e5 9852fi
ad6254c5
AK
9853if test `eval echo '${'$as_ac_Header'}'` = yes; then
9854 cat >>confdefs.h <<_ACEOF
9855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9856_ACEOF
9857
795ca3e5
AK
9858fi
9859
ad6254c5
AK
9860done
9861
9862echo "$as_me:$LINENO: checking types of arguments for select" >&5
9863echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9864if test "${ac_cv_func_select_args+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9866else
ad6254c5
AK
9867 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9868 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9869 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9870 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876$ac_includes_default
9877#if HAVE_SYS_SELECT_H
9878# include <sys/select.h>
9879#endif
9880#if HAVE_SYS_SOCKET_H
9881# include <sys/socket.h>
9882#endif
9883
9884int
9885main ()
9886{
9887extern int select ($ac_arg1,
8a2fc586
AK
9888 $ac_arg234, $ac_arg234, $ac_arg234,
9889 $ac_arg5);
ad6254c5
AK
9890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext
9895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9896 (eval $ac_compile) 2>conftest.er1
ad6254c5 9897 ac_status=$?
8a2fc586
AK
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
ad6254c5
AK
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
8a2fc586
AK
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9917else
9918 echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
9921fi
8a2fc586 9922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9923 done
9924 done
9925done
9926# Provide a safe default value.
9927: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9928
26e7f2e0 9929fi
ad6254c5
AK
9930echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9931echo "${ECHO_T}$ac_cv_func_select_args" >&6
9932ac_save_IFS=$IFS; IFS=','
9933set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9934IFS=$ac_save_IFS
9935shift
9936
9937cat >>confdefs.h <<_ACEOF
9938#define SELECT_TYPE_ARG1 $1
9939_ACEOF
9940
9941
9942cat >>confdefs.h <<_ACEOF
9943#define SELECT_TYPE_ARG234 ($2)
9944_ACEOF
9945
9946
9947cat >>confdefs.h <<_ACEOF
9948#define SELECT_TYPE_ARG5 ($3)
9949_ACEOF
9950
80992638 9951rm -f conftest*
80992638 9952
8106cdd5 9953fi
ad6254c5
AK
9954
9955if test x$FSADM = xyes; then
9956
9957
9958
9959for ac_header in fstab.h sys/mount.h sys/vfs.h
9960do
9961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9962if eval "test \"\${$as_ac_Header+set}\" = set"; then
9963 echo "$as_me:$LINENO: checking for $ac_header" >&5
9964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9965if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967fi
9968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9970else
9971 # Is the header compilable?
9972echo "$as_me:$LINENO: checking $ac_header usability" >&5
9973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9974cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9975/* confdefs.h. */
9976_ACEOF
9977cat confdefs.h >>conftest.$ac_ext
9978cat >>conftest.$ac_ext <<_ACEOF
9979/* end confdefs.h. */
9980$ac_includes_default
9981#include <$ac_header>
9982_ACEOF
9983rm -f conftest.$ac_objext
9984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9985 (eval $ac_compile) 2>conftest.er1
ad6254c5 9986 ac_status=$?
8a2fc586
AK
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
ad6254c5
AK
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
8a2fc586
AK
9992 { ac_try='test -z "$ac_c_werror_flag"
9993 || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_header_compiler=yes
10006else
10007 echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010ac_header_compiler=no
10011fi
8a2fc586 10012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10014echo "${ECHO_T}$ac_header_compiler" >&6
10015
10016# Is the header present?
10017echo "$as_me:$LINENO: checking $ac_header presence" >&5
10018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10019cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
10025#include <$ac_header>
10026_ACEOF
10027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } >/dev/null; then
10035 if test -s conftest.err; then
10036 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10038 else
10039 ac_cpp_err=
10040 fi
10041else
10042 ac_cpp_err=yes
10043fi
10044if test -z "$ac_cpp_err"; then
10045 ac_header_preproc=yes
10046else
10047 echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_header_preproc=no
10051fi
10052rm -f conftest.err conftest.$ac_ext
10053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10054echo "${ECHO_T}$ac_header_preproc" >&6
10055
10056# So? What about this header?
8a2fc586
AK
10057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10058 yes:no: )
ad6254c5
AK
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10063 ac_header_preproc=yes
ad6254c5 10064 ;;
8a2fc586 10065 no:yes:* )
ad6254c5
AK
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10078 (
10079 cat <<\_ASBOX
8a2fc586
AK
10080## ------------------------------------------ ##
10081## Report this to the AC_PACKAGE_NAME lists. ##
10082## ------------------------------------------ ##
ad6254c5
AK
10083_ASBOX
10084 ) |
10085 sed "s/^/$as_me: WARNING: /" >&2
10086 ;;
10087esac
10088echo "$as_me:$LINENO: checking for $ac_header" >&5
10089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10090if eval "test \"\${$as_ac_Header+set}\" = set"; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 10092else
8a2fc586 10093 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 10094fi
ad6254c5
AK
10095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 10097
ad6254c5
AK
10098fi
10099if test `eval echo '${'$as_ac_Header'}'` = yes; then
10100 cat >>confdefs.h <<_ACEOF
10101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102_ACEOF
26e7f2e0 10103
d68a82ec 10104else
ad6254c5
AK
10105 { { echo "$as_me:$LINENO: error: bailing out" >&5
10106echo "$as_me: error: bailing out" >&2;}
10107 { (exit 1); exit 1; }; }
26e7f2e0
AK
10108fi
10109
ad6254c5 10110done
036f273a 10111
ad6254c5
AK
10112
10113for ac_func in memmove
10114do
10115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116echo "$as_me:$LINENO: checking for $ac_func" >&5
10117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10118if eval "test \"\${$as_ac_var+set}\" = set"; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 10120else
ad6254c5 10121 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10122/* confdefs.h. */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h. */
8a2fc586
AK
10127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10129#define $ac_func innocuous_$ac_func
10130
ad6254c5
AK
10131/* System header to define __stub macros and hopefully few prototypes,
10132 which can conflict with char $ac_func (); below.
10133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134 <limits.h> exists even on freestanding compilers. */
8a2fc586 10135
ad6254c5
AK
10136#ifdef __STDC__
10137# include <limits.h>
10138#else
10139# include <assert.h>
10140#endif
8a2fc586
AK
10141
10142#undef $ac_func
10143
036f273a 10144/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10145#ifdef __cplusplus
10146extern "C"
10147{
10148#endif
036f273a 10149/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10150 builtin and then its argument prototype would still apply. */
10151char $ac_func ();
10152/* The GNU C library defines this for functions which it implements
10153 to always fail with ENOSYS. Some functions are actually named
10154 something starting with __ and the normal name is an alias. */
10155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10156choke me
10157#else
10158char (*f) () = $ac_func;
10159#endif
10160#ifdef __cplusplus
10161}
10162#endif
80992638 10163
ad6254c5
AK
10164int
10165main ()
10166{
10167return f != $ac_func;
10168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10174 (eval $ac_link) 2>conftest.er1
ad6254c5 10175 ac_status=$?
8a2fc586
AK
10176 grep -v '^ *+' conftest.er1 >conftest.err
10177 rm -f conftest.er1
10178 cat conftest.err >&5
ad6254c5
AK
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
8a2fc586
AK
10181 { ac_try='test -z "$ac_c_werror_flag"
10182 || test ! -s conftest.err'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; } &&
10188 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 eval "$as_ac_var=yes"
036f273a 10195else
ad6254c5
AK
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199eval "$as_ac_var=no"
036f273a 10200fi
8a2fc586
AK
10201rm -f conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10203fi
10204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10206if test `eval echo '${'$as_ac_var'}'` = yes; then
10207 cat >>confdefs.h <<_ACEOF
10208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10209_ACEOF
036f273a 10210
ad6254c5
AK
10211else
10212 { { echo "$as_me:$LINENO: error: bailing out" >&5
10213echo "$as_me: error: bailing out" >&2;}
10214 { (exit 1); exit 1; }; }
10215fi
10216done
036f273a 10217
036f273a 10218fi
d68a82ec 10219
ad6254c5
AK
10220if test x$CLUSTER != xnone; then
10221
10222
10223for ac_header in sys/socket.h sys/un.h
b896caa1 10224do
ad6254c5
AK
10225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10226if eval "test \"\${$as_ac_Header+set}\" = set"; then
10227 echo "$as_me:$LINENO: checking for $ac_header" >&5
10228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10229if eval "test \"\${$as_ac_Header+set}\" = set"; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231fi
10232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10233echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10234else
10235 # Is the header compilable?
10236echo "$as_me:$LINENO: checking $ac_header usability" >&5
10237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10238cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10239/* confdefs.h. */
10240_ACEOF
10241cat confdefs.h >>conftest.$ac_ext
10242cat >>conftest.$ac_ext <<_ACEOF
10243/* end confdefs.h. */
10244$ac_includes_default
10245#include <$ac_header>
10246_ACEOF
10247rm -f conftest.$ac_objext
10248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10249 (eval $ac_compile) 2>conftest.er1
ad6254c5 10250 ac_status=$?
8a2fc586
AK
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
ad6254c5
AK
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
8a2fc586
AK
10256 { ac_try='test -z "$ac_c_werror_flag"
10257 || test ! -s conftest.err'
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; } &&
10263 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_header_compiler=yes
10270else
10271 echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
10274ac_header_compiler=no
10275fi
8a2fc586 10276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10277echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278echo "${ECHO_T}$ac_header_compiler" >&6
10279
10280# Is the header present?
10281echo "$as_me:$LINENO: checking $ac_header presence" >&5
10282echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10283cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289#include <$ac_header>
10290_ACEOF
10291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } >/dev/null; then
10299 if test -s conftest.err; then
10300 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10302 else
10303 ac_cpp_err=
10304 fi
10305else
10306 ac_cpp_err=yes
8106cdd5 10307fi
ad6254c5
AK
10308if test -z "$ac_cpp_err"; then
10309 ac_header_preproc=yes
10310else
10311 echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_header_preproc=no
10315fi
10316rm -f conftest.err conftest.$ac_ext
10317echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10318echo "${ECHO_T}$ac_header_preproc" >&6
10319
10320# So? What about this header?
8a2fc586
AK
10321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10322 yes:no: )
ad6254c5
AK
10323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10327 ac_header_preproc=yes
ad6254c5 10328 ;;
8a2fc586 10329 no:yes:* )
ad6254c5
AK
10330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10333echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10337echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10342 (
10343 cat <<\_ASBOX
8a2fc586
AK
10344## ------------------------------------------ ##
10345## Report this to the AC_PACKAGE_NAME lists. ##
10346## ------------------------------------------ ##
ad6254c5
AK
10347_ASBOX
10348 ) |
10349 sed "s/^/$as_me: WARNING: /" >&2
10350 ;;
10351esac
10352echo "$as_me:$LINENO: checking for $ac_header" >&5
10353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10354if eval "test \"\${$as_ac_Header+set}\" = set"; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
8a2fc586 10357 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10358fi
ad6254c5
AK
10359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10361
10362fi
10363if test `eval echo '${'$as_ac_Header'}'` = yes; then
10364 cat >>confdefs.h <<_ACEOF
10365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10366_ACEOF
10367
80992638 10368else
ad6254c5
AK
10369 { { echo "$as_me:$LINENO: error: bailing out" >&5
10370echo "$as_me: error: bailing out" >&2;}
10371 { (exit 1); exit 1; }; }
b896caa1 10372fi
ad6254c5 10373
b896caa1
AK
10374done
10375
10376
ad6254c5
AK
10377for ac_func in socket
10378do
10379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10380echo "$as_me:$LINENO: checking for $ac_func" >&5
10381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10382if eval "test \"\${$as_ac_var+set}\" = set"; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10384else
ad6254c5 10385 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
8a2fc586
AK
10391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10393#define $ac_func innocuous_$ac_func
10394
ad6254c5
AK
10395/* System header to define __stub macros and hopefully few prototypes,
10396 which can conflict with char $ac_func (); below.
10397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10398 <limits.h> exists even on freestanding compilers. */
8a2fc586 10399
ad6254c5
AK
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
8a2fc586
AK
10405
10406#undef $ac_func
10407
795ca3e5 10408/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10409#ifdef __cplusplus
10410extern "C"
10411{
10412#endif
795ca3e5 10413/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10414 builtin and then its argument prototype would still apply. */
10415char $ac_func ();
10416/* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10420choke me
10421#else
10422char (*f) () = $ac_func;
10423#endif
10424#ifdef __cplusplus
10425}
10426#endif
10427
10428int
10429main ()
10430{
10431return f != $ac_func;
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436rm -f conftest.$ac_objext conftest$ac_exeext
10437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10438 (eval $ac_link) 2>conftest.er1
ad6254c5 10439 ac_status=$?
8a2fc586
AK
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
ad6254c5
AK
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
8a2fc586
AK
10445 { ac_try='test -z "$ac_c_werror_flag"
10446 || test ! -s conftest.err'
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10455 ac_status=$?
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10458 eval "$as_ac_var=yes"
10459else
10460 echo "$as_me: failed program was:" >&5
10461sed 's/^/| /' conftest.$ac_ext >&5
10462
10463eval "$as_ac_var=no"
10464fi
8a2fc586
AK
10465rm -f conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10467fi
10468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10470if test `eval echo '${'$as_ac_var'}'` = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10473_ACEOF
10474
10475else
10476 { { echo "$as_me:$LINENO: error: bailing out" >&5
10477echo "$as_me: error: bailing out" >&2;}
10478 { (exit 1); exit 1; }; }
10479fi
10480done
10481
10482fi
10483
10484if test x$HAVE_LIBDL = xyes; then
10485
10486for ac_header in dlfcn.h
10487do
10488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10489if eval "test \"\${$as_ac_Header+set}\" = set"; then
10490 echo "$as_me:$LINENO: checking for $ac_header" >&5
10491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10492if eval "test \"\${$as_ac_Header+set}\" = set"; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494fi
10495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10497else
10498 # Is the header compilable?
10499echo "$as_me:$LINENO: checking $ac_header usability" >&5
10500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10501cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
10507$ac_includes_default
10508#include <$ac_header>
10509_ACEOF
10510rm -f conftest.$ac_objext
10511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10512 (eval $ac_compile) 2>conftest.er1
ad6254c5 10513 ac_status=$?
8a2fc586
AK
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
ad6254c5
AK
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
8a2fc586
AK
10519 { ac_try='test -z "$ac_c_werror_flag"
10520 || test ! -s conftest.err'
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_header_compiler=yes
10533else
10534 echo "$as_me: failed program was:" >&5
10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537ac_header_compiler=no
10538fi
8a2fc586 10539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10541echo "${ECHO_T}$ac_header_compiler" >&6
10542
10543# Is the header present?
10544echo "$as_me:$LINENO: checking $ac_header presence" >&5
10545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10546cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10547/* confdefs.h. */
10548_ACEOF
10549cat confdefs.h >>conftest.$ac_ext
10550cat >>conftest.$ac_ext <<_ACEOF
10551/* end confdefs.h. */
10552#include <$ac_header>
10553_ACEOF
10554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } >/dev/null; then
10562 if test -s conftest.err; then
10563 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10565 else
10566 ac_cpp_err=
10567 fi
10568else
10569 ac_cpp_err=yes
10570fi
10571if test -z "$ac_cpp_err"; then
10572 ac_header_preproc=yes
10573else
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ac_header_preproc=no
10578fi
10579rm -f conftest.err conftest.$ac_ext
10580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10581echo "${ECHO_T}$ac_header_preproc" >&6
10582
10583# So? What about this header?
8a2fc586
AK
10584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10585 yes:no: )
ad6254c5
AK
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10590 ac_header_preproc=yes
ad6254c5 10591 ;;
8a2fc586 10592 no:yes:* )
ad6254c5
AK
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10605 (
10606 cat <<\_ASBOX
8a2fc586
AK
10607## ------------------------------------------ ##
10608## Report this to the AC_PACKAGE_NAME lists. ##
10609## ------------------------------------------ ##
ad6254c5
AK
10610_ASBOX
10611 ) |
10612 sed "s/^/$as_me: WARNING: /" >&2
10613 ;;
10614esac
10615echo "$as_me:$LINENO: checking for $ac_header" >&5
10616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10617if eval "test \"\${$as_ac_Header+set}\" = set"; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
8a2fc586 10620 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10621fi
ad6254c5
AK
10622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 10624
8106cdd5 10625fi
ad6254c5
AK
10626if test `eval echo '${'$as_ac_Header'}'` = yes; then
10627 cat >>confdefs.h <<_ACEOF
10628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10629_ACEOF
795ca3e5
AK
10630
10631else
ad6254c5
AK
10632 { { echo "$as_me:$LINENO: error: bailing out" >&5
10633echo "$as_me: error: bailing out" >&2;}
10634 { (exit 1); exit 1; }; }
795ca3e5
AK
10635fi
10636
ad6254c5 10637done
80992638 10638
ad6254c5 10639fi
80992638 10640
ad6254c5 10641if test x$INTL = xyes; then
83912faa 10642
ad6254c5
AK
10643for ac_header in libintl.h
10644do
10645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646if eval "test \"\${$as_ac_Header+set}\" = set"; then
10647 echo "$as_me:$LINENO: checking for $ac_header" >&5
10648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10649if eval "test \"\${$as_ac_Header+set}\" = set"; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651fi
10652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10654else
ad6254c5
AK
10655 # Is the header compilable?
10656echo "$as_me:$LINENO: checking $ac_header usability" >&5
10657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10658cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10659/* confdefs.h. */
10660_ACEOF
10661cat confdefs.h >>conftest.$ac_ext
10662cat >>conftest.$ac_ext <<_ACEOF
10663/* end confdefs.h. */
10664$ac_includes_default
10665#include <$ac_header>
10666_ACEOF
10667rm -f conftest.$ac_objext
10668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10669 (eval $ac_compile) 2>conftest.er1
ad6254c5 10670 ac_status=$?
8a2fc586
AK
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
ad6254c5
AK
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
8a2fc586
AK
10676 { ac_try='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_header_compiler=yes
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694ac_header_compiler=no
10695fi
8a2fc586 10696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10697echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10698echo "${ECHO_T}$ac_header_compiler" >&6
10699
10700# Is the header present?
10701echo "$as_me:$LINENO: checking $ac_header presence" >&5
10702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10703cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
10709#include <$ac_header>
10710_ACEOF
10711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null; then
10719 if test -s conftest.err; then
10720 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10721 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10722 else
10723 ac_cpp_err=
10724 fi
10725else
10726 ac_cpp_err=yes
795ca3e5 10727fi
ad6254c5
AK
10728if test -z "$ac_cpp_err"; then
10729 ac_header_preproc=yes
10730else
10731 echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 ac_header_preproc=no
10735fi
10736rm -f conftest.err conftest.$ac_ext
10737echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10738echo "${ECHO_T}$ac_header_preproc" >&6
10739
10740# So? What about this header?
8a2fc586
AK
10741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10742 yes:no: )
ad6254c5
AK
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10747 ac_header_preproc=yes
ad6254c5 10748 ;;
8a2fc586 10749 no:yes:* )
ad6254c5
AK
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10762 (
10763 cat <<\_ASBOX
8a2fc586
AK
10764## ------------------------------------------ ##
10765## Report this to the AC_PACKAGE_NAME lists. ##
10766## ------------------------------------------ ##
ad6254c5
AK
10767_ASBOX
10768 ) |
10769 sed "s/^/$as_me: WARNING: /" >&2
10770 ;;
10771esac
10772echo "$as_me:$LINENO: checking for $ac_header" >&5
10773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10774if eval "test \"\${$as_ac_Header+set}\" = set"; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10776else
8a2fc586 10777 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10778fi
ad6254c5
AK
10779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10781
69792976 10782fi
ad6254c5
AK
10783if test `eval echo '${'$as_ac_Header'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10786_ACEOF
69792976 10787
69792976 10788else
ad6254c5
AK
10789 { { echo "$as_me:$LINENO: error: bailing out" >&5
10790echo "$as_me: error: bailing out" >&2;}
10791 { (exit 1); exit 1; }; }
80992638
AK
10792fi
10793
ad6254c5 10794done
69792976 10795
ad6254c5
AK
10796fi
10797
ad6254c5
AK
10798
10799for ac_header in libdevmapper.h
10800do
10801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803 echo "$as_me:$LINENO: checking for $ac_header" >&5
10804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10805if eval "test \"\${$as_ac_Header+set}\" = set"; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807fi
10808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10810else
ad6254c5
AK
10811 # Is the header compilable?
10812echo "$as_me:$LINENO: checking $ac_header usability" >&5
10813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10814cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10815/* confdefs.h. */
10816_ACEOF
10817cat confdefs.h >>conftest.$ac_ext
10818cat >>conftest.$ac_ext <<_ACEOF
10819/* end confdefs.h. */
10820$ac_includes_default
10821#include <$ac_header>
10822_ACEOF
10823rm -f conftest.$ac_objext
10824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10825 (eval $ac_compile) 2>conftest.er1
ad6254c5 10826 ac_status=$?
8a2fc586
AK
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
ad6254c5
AK
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } &&
8a2fc586
AK
10832 { ac_try='test -z "$ac_c_werror_flag"
10833 || test ! -s conftest.err'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 ac_header_compiler=yes
10846else
10847 echo "$as_me: failed program was:" >&5
10848sed 's/^/| /' conftest.$ac_ext >&5
10849
10850ac_header_compiler=no
10851fi
8a2fc586 10852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10854echo "${ECHO_T}$ac_header_compiler" >&6
10855
10856# Is the header present?
10857echo "$as_me:$LINENO: checking $ac_header presence" >&5
10858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10859cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10860/* confdefs.h. */
10861_ACEOF
10862cat confdefs.h >>conftest.$ac_ext
10863cat >>conftest.$ac_ext <<_ACEOF
10864/* end confdefs.h. */
10865#include <$ac_header>
10866_ACEOF
10867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } >/dev/null; then
10875 if test -s conftest.err; then
10876 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10878 else
10879 ac_cpp_err=
10880 fi
10881else
10882 ac_cpp_err=yes
69792976 10883fi
ad6254c5
AK
10884if test -z "$ac_cpp_err"; then
10885 ac_header_preproc=yes
10886else
10887 echo "$as_me: failed program was:" >&5
10888sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_header_preproc=no
10891fi
10892rm -f conftest.err conftest.$ac_ext
10893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10894echo "${ECHO_T}$ac_header_preproc" >&6
10895
10896# So? What about this header?
8a2fc586
AK
10897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10898 yes:no: )
ad6254c5
AK
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10903 ac_header_preproc=yes
ad6254c5 10904 ;;
8a2fc586 10905 no:yes:* )
ad6254c5
AK
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10918 (
10919 cat <<\_ASBOX
8a2fc586
AK
10920## ------------------------------------------ ##
10921## Report this to the AC_PACKAGE_NAME lists. ##
10922## ------------------------------------------ ##
ad6254c5
AK
10923_ASBOX
10924 ) |
10925 sed "s/^/$as_me: WARNING: /" >&2
10926 ;;
10927esac
10928echo "$as_me:$LINENO: checking for $ac_header" >&5
10929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10930if eval "test \"\${$as_ac_Header+set}\" = set"; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10932else
8a2fc586 10933 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10934fi
ad6254c5
AK
10935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10937
ad6254c5
AK
10938fi
10939if test `eval echo '${'$as_ac_Header'}'` = yes; then
10940 cat >>confdefs.h <<_ACEOF
10941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10942_ACEOF
69792976 10943
69792976 10944else
ad6254c5
AK
10945 { { echo "$as_me:$LINENO: error: bailing out" >&5
10946echo "$as_me: error: bailing out" >&2;}
10947 { (exit 1); exit 1; }; }
83912faa
AK
10948fi
10949
ad6254c5
AK
10950done
10951
4a7f3eb2 10952
ad6254c5
AK
10953if test x$HAVE_SELINUX = xyes; then
10954
10955for ac_header in selinux/selinux.h
10956do
10957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10958if eval "test \"\${$as_ac_Header+set}\" = set"; then
10959 echo "$as_me:$LINENO: checking for $ac_header" >&5
10960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10961if eval "test \"\${$as_ac_Header+set}\" = set"; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963fi
10964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10966else
ad6254c5
AK
10967 # Is the header compilable?
10968echo "$as_me:$LINENO: checking $ac_header usability" >&5
10969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10970cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10971/* confdefs.h. */
10972_ACEOF
10973cat confdefs.h >>conftest.$ac_ext
10974cat >>conftest.$ac_ext <<_ACEOF
10975/* end confdefs.h. */
10976$ac_includes_default
10977#include <$ac_header>
10978_ACEOF
10979rm -f conftest.$ac_objext
10980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10981 (eval $ac_compile) 2>conftest.er1
ad6254c5 10982 ac_status=$?
8a2fc586
AK
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
ad6254c5
AK
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
8a2fc586
AK
10988 { ac_try='test -z "$ac_c_werror_flag"
10989 || test ! -s conftest.err'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; } &&
10995 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_header_compiler=yes
11002else
11003 echo "$as_me: failed program was:" >&5
11004sed 's/^/| /' conftest.$ac_ext >&5
11005
11006ac_header_compiler=no
11007fi
8a2fc586 11008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
11009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11010echo "${ECHO_T}$ac_header_compiler" >&6
11011
11012# Is the header present?
11013echo "$as_me:$LINENO: checking $ac_header presence" >&5
11014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11015cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
11016/* confdefs.h. */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h. */
11021#include <$ac_header>
11022_ACEOF
11023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11025 ac_status=$?
11026 grep -v '^ *+' conftest.er1 >conftest.err
11027 rm -f conftest.er1
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } >/dev/null; then
11031 if test -s conftest.err; then
11032 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 11033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
11034 else
11035 ac_cpp_err=
11036 fi
11037else
11038 ac_cpp_err=yes
11039fi
11040if test -z "$ac_cpp_err"; then
11041 ac_header_preproc=yes
11042else
11043 echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046 ac_header_preproc=no
11047fi
11048rm -f conftest.err conftest.$ac_ext
11049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11050echo "${ECHO_T}$ac_header_preproc" >&6
11051
11052# So? What about this header?
8a2fc586
AK
11053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11054 yes:no: )
ad6254c5
AK
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11059 ac_header_preproc=yes
ad6254c5 11060 ;;
8a2fc586 11061 no:yes:* )
ad6254c5
AK
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
11070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
11072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
11074 (
11075 cat <<\_ASBOX
8a2fc586
AK
11076## ------------------------------------------ ##
11077## Report this to the AC_PACKAGE_NAME lists. ##
11078## ------------------------------------------ ##
ad6254c5
AK
11079_ASBOX
11080 ) |
11081 sed "s/^/$as_me: WARNING: /" >&2
11082 ;;
11083esac
11084echo "$as_me:$LINENO: checking for $ac_header" >&5
11085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11086if eval "test \"\${$as_ac_Header+set}\" = set"; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088else
8a2fc586 11089 eval "$as_ac_Header=\$ac_header_preproc"
80992638 11090fi
ad6254c5
AK
11091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 11093
ad6254c5
AK
11094fi
11095if test `eval echo '${'$as_ac_Header'}'` = yes; then
11096 cat >>confdefs.h <<_ACEOF
11097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11098_ACEOF
0a62c911 11099
0a62c911 11100else
ad6254c5
AK
11101 { { echo "$as_me:$LINENO: error: bailing out" >&5
11102echo "$as_me: error: bailing out" >&2;}
11103 { (exit 1); exit 1; }; }
80992638
AK
11104fi
11105
ad6254c5 11106done
0a62c911 11107
ad6254c5 11108fi
0a62c911 11109
a653923f
AK
11110################################################################################
11111# Extract the first word of "modprobe", so it can be a program name with args.
11112set dummy modprobe; ac_word=$2
11113echo "$as_me:$LINENO: checking for $ac_word" >&5
11114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
72b2cb61
AK
11115if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117else
11118 case $MODPROBE_CMD in
11119 [\\/]* | ?:[\\/]*)
11120 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11121 ;;
11122 *)
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134done
11135done
11136
11137 ;;
11138esac
11139fi
11140MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11141
11142if test -n "$MODPROBE_CMD"; then
11143 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11144echo "${ECHO_T}$MODPROBE_CMD" >&6
11145else
11146 echo "$as_me:$LINENO: result: no" >&5
11147echo "${ECHO_T}no" >&6
11148fi
11149
a653923f
AK
11150
11151if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11152
11153cat >>confdefs.h <<_ACEOF
11154#define MODPROBE_CMD "$MODPROBE_CMD"
11155_ACEOF
11156
a653923f
AK
11157fi
11158
80992638 11159################################################################################
fae0c576
AK
11160if test "-f VERSION"; then
11161 LVM_VERSION="\"`cat VERSION`\""
11162else
11163 LVM_VERSION="Unknown"
11164fi
11165
80992638 11166################################################################################
fae0c576 11167
83912faa 11168
795ca3e5
AK
11169
11170
11171
11172
11173
11174
5a52dca9 11175
8ef2b021 11176
199e490e 11177
69792976
AK
11178
11179
11180
11181
8106cdd5
AK
11182
11183
11184
11185
11186
d68a82ec 11187
036f273a 11188
7d1552c9 11189
8106cdd5 11190
0a62c911 11191
8106cdd5 11192
4a7f3eb2 11193
4922197a
AK
11194
11195
d8ac0fbc 11196
1a9ea74d 11197
8a2fc586
AK
11198
11199
11200
8ce0cbda 11201
8b1a3214 11202
d3c8211f
AK
11203
11204
80992638 11205################################################################################
4eee5764 11206 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile dmeventd/Makefile dmeventd/mirror/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/snapshot/Makefile man/Makefile po/Makefile scripts/Makefile tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile"
ad6254c5 11207cat >confcache <<\_ACEOF
795ca3e5
AK
11208# This file is a shell script that caches the results of configure
11209# tests run on this system so they can be shared between configure
ad6254c5
AK
11210# scripts and configure runs, see configure's option --config-cache.
11211# It is not useful on other systems. If it contains results you don't
11212# want to keep, you may remove or edit it.
795ca3e5 11213#
ad6254c5
AK
11214# config.status only pays attention to the cache file if you give it
11215# the --recheck option to rerun configure.
795ca3e5 11216#
ad6254c5
AK
11217# `ac_cv_env_foo' variables (set or unset) will be overridden when
11218# loading this file, other *unset* `ac_cv_foo' will be assigned the
11219# following values.
11220
11221_ACEOF
11222
795ca3e5
AK
11223# The following way of writing the cache mishandles newlines in values,
11224# but we know of no workaround that is simple, portable, and efficient.
11225# So, don't put newlines in cache variables' values.
11226# Ultrix sh set writes to stderr and can't be redirected directly,
11227# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
11228{
11229 (set) 2>&1 |
11230 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11231 *ac_space=\ *)
11232 # `set' does not quote correctly, so add quotes (double-quote
11233 # substitution turns \\\\ into \\, and sed turns \\ into \).
11234 sed -n \
8a2fc586
AK
11235 "s/'/'\\\\''/g;
11236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
11237 ;;
11238 *)
11239 # `set' quotes correctly as required by POSIX, so do not add quotes.
11240 sed -n \
8a2fc586 11241 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
11242 ;;
11243 esac;
11244} |
11245 sed '
11246 t clear
11247 : clear
11248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11249 t end
11250 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11251 : end' >>confcache
11252if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 11253 if test -w $cache_file; then
ad6254c5
AK
11254 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11255 cat confcache >$cache_file
795ca3e5
AK
11256 else
11257 echo "not updating unwritable cache $cache_file"
11258 fi
11259fi
11260rm -f confcache
11261
795ca3e5
AK
11262test "x$prefix" = xNONE && prefix=$ac_default_prefix
11263# Let make expand exec_prefix.
11264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11265
ad6254c5
AK
11266# VPATH may cause trouble with some makes, so we remove $(srcdir),
11267# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11268# trailing colons and then remove the whole line if VPATH becomes empty
11269# (actually we leave an empty line to preserve line numbers).
795ca3e5 11270if test "x$srcdir" = x.; then
8a2fc586 11271 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
11272s/:*\$(srcdir):*/:/;
11273s/:*\${srcdir}:*/:/;
11274s/:*@srcdir@:*/:/;
8a2fc586 11275s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 11276s/:*$//;
8a2fc586 11277s/^[^=]*=[ ]*$//;
ad6254c5 11278}'
795ca3e5
AK
11279fi
11280
72b2cb61 11281DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11282
11283ac_libobjs=
11284ac_ltlibobjs=
11285for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11286 # 1. Remove the extension, and $U if already installed.
11287 ac_i=`echo "$ac_i" |
8a2fc586 11288 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
11289 # 2. Add them.
11290 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11291 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11292done
11293LIBOBJS=$ac_libobjs
80992638 11294
ad6254c5
AK
11295LTLIBOBJS=$ac_ltlibobjs
11296
11297
11298
11299: ${CONFIG_STATUS=./config.status}
11300ac_clean_files_save=$ac_clean_files
11301ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11302{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11303echo "$as_me: creating $CONFIG_STATUS" >&6;}
11304cat >$CONFIG_STATUS <<_ACEOF
11305#! $SHELL
11306# Generated by $as_me.
795ca3e5 11307# Run this file to recreate the current configuration.
795ca3e5 11308# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11309# configure, is in config.log if it exists.
11310
11311debug=false
11312ac_cs_recheck=false
11313ac_cs_silent=false
11314SHELL=\${CONFIG_SHELL-$SHELL}
11315_ACEOF
11316
11317cat >>$CONFIG_STATUS <<\_ACEOF
11318## --------------------- ##
11319## M4sh Initialization. ##
11320## --------------------- ##
11321
11322# Be Bourne compatible
11323if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11324 emulate sh
11325 NULLCMD=:
11326 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11327 # is contrary to our usage. Disable this feature.
11328 alias -g '${1+"$@"}'='"$@"'
11329elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11330 set -o posix
11331fi
8a2fc586 11332DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11333
11334# Support unset when possible.
8a2fc586 11335if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11336 as_unset=unset
11337else
11338 as_unset=false
11339fi
8106cdd5 11340
ad6254c5
AK
11341
11342# Work around bugs in pre-3.0 UWIN ksh.
11343$as_unset ENV MAIL MAILPATH
11344PS1='$ '
11345PS2='> '
11346PS4='+ '
11347
11348# NLS nuisances.
11349for as_var in \
11350 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11351 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11352 LC_TELEPHONE LC_TIME
8106cdd5 11353do
8a2fc586 11354 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11355 eval $as_var=C; export $as_var
11356 else
11357 $as_unset $as_var
11358 fi
8106cdd5
AK
11359done
11360
ad6254c5
AK
11361# Required to use basename.
11362if expr a : '\(a\)' >/dev/null 2>&1; then
11363 as_expr=expr
11364else
11365 as_expr=false
11366fi
8106cdd5 11367
ad6254c5
AK
11368if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11369 as_basename=basename
11370else
11371 as_basename=false
11372fi
11373
11374
11375# Name of the executable.
11376as_me=`$as_basename "$0" ||
11377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11378 X"$0" : 'X\(//\)$' \| \
11379 X"$0" : 'X\(/\)$' \| \
11380 . : '\(.\)' 2>/dev/null ||
11381echo X/"$0" |
11382 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11383 /^X\/\(\/\/\)$/{ s//\1/; q; }
11384 /^X\/\(\/\).*/{ s//\1/; q; }
11385 s/.*/./; q'`
11386
11387
11388# PATH needs CR, and LINENO needs CR and PATH.
11389# Avoid depending upon Character Ranges.
11390as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11392as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11393as_cr_digits='0123456789'
11394as_cr_alnum=$as_cr_Letters$as_cr_digits
11395
11396# The user is always right.
11397if test "${PATH_SEPARATOR+set}" != set; then
11398 echo "#! /bin/sh" >conf$$.sh
11399 echo "exit 0" >>conf$$.sh
11400 chmod +x conf$$.sh
11401 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11402 PATH_SEPARATOR=';'
80992638 11403 else
ad6254c5 11404 PATH_SEPARATOR=:
80992638 11405 fi
ad6254c5
AK
11406 rm -f conf$$.sh
11407fi
11408
11409
11410 as_lineno_1=$LINENO
11411 as_lineno_2=$LINENO
11412 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11413 test "x$as_lineno_1" != "x$as_lineno_2" &&
11414 test "x$as_lineno_3" = "x$as_lineno_2" || {
11415 # Find who we are. Look in the path if we contain no path at all
11416 # relative or not.
11417 case $0 in
11418 *[\\/]* ) as_myself=$0 ;;
11419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11425done
11426
11427 ;;
11428 esac
11429 # We did not find ourselves, most probably we were run as `sh COMMAND'
11430 # in which case we are not to be found in the path.
11431 if test "x$as_myself" = x; then
11432 as_myself=$0
11433 fi
11434 if test ! -f "$as_myself"; then
11435 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11436echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11437 { (exit 1); exit 1; }; }
8106cdd5 11438 fi
ad6254c5
AK
11439 case $CONFIG_SHELL in
11440 '')
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for as_base in sh bash ksh sh5; do
11447 case $as_dir in
11448 /*)
11449 if ("$as_dir/$as_base" -c '
11450 as_lineno_1=$LINENO
11451 as_lineno_2=$LINENO
11452 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11453 test "x$as_lineno_1" != "x$as_lineno_2" &&
11454 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11455 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11456 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11457 CONFIG_SHELL=$as_dir/$as_base
11458 export CONFIG_SHELL
11459 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11460 fi;;
11461 esac
11462 done
80992638 11463done
ad6254c5 11464;;
795ca3e5
AK
11465 esac
11466
ad6254c5
AK
11467 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11468 # uniformly replaced by the line number. The first 'sed' inserts a
11469 # line-number line before each line; the second 'sed' does the real
11470 # work. The second script uses 'N' to pair each line-number line
11471 # with the numbered line, and appends trailing '-' during
11472 # substitution so that $LINENO is not a special case at line end.
11473 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11474 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11475 sed '=' <$as_myself |
11476 sed '
11477 N
11478 s,$,-,
11479 : loop
11480 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11481 t loop
11482 s,-$,,
11483 s,^['$as_cr_digits']*\n,,
11484 ' >$as_me.lineno &&
11485 chmod +x $as_me.lineno ||
11486 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11487echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11488 { (exit 1); exit 1; }; }
11489
11490 # Don't try to exec as it changes $[0], causing all sort of problems
11491 # (the dirname of $[0] is not the place where we might find the
11492 # original and so on. Autoconf is especially sensible to this).
11493 . ./$as_me.lineno
11494 # Exit status is that of the last command.
11495 exit
11496}
11497
11498
11499case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11500 *c*,-n*) ECHO_N= ECHO_C='
11501' ECHO_T=' ' ;;
11502 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11503 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11504esac
11505
11506if expr a : '\(a\)' >/dev/null 2>&1; then
11507 as_expr=expr
11508else
11509 as_expr=false
11510fi
80992638 11511
ad6254c5
AK
11512rm -f conf$$ conf$$.exe conf$$.file
11513echo >conf$$.file
11514if ln -s conf$$.file conf$$ 2>/dev/null; then
11515 # We could just check for DJGPP; but this test a) works b) is more generic
11516 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11517 if test -f conf$$.exe; then
11518 # Don't use ln at all; we don't have any links
11519 as_ln_s='cp -p'
8106cdd5 11520 else
ad6254c5 11521 as_ln_s='ln -s'
80992638 11522 fi
ad6254c5
AK
11523elif ln conf$$.file conf$$ 2>/dev/null; then
11524 as_ln_s=ln
11525else
11526 as_ln_s='cp -p'
11527fi
11528rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 11529
ad6254c5
AK
11530if mkdir -p . 2>/dev/null; then
11531 as_mkdir_p=:
11532else
8a2fc586 11533 test -d ./-p && rmdir ./-p
ad6254c5
AK
11534 as_mkdir_p=false
11535fi
11536
11537as_executable_p="test -f"
11538
11539# Sed expression to map a string onto a valid CPP name.
8a2fc586 11540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11541
11542# Sed expression to map a string onto a valid variable name.
8a2fc586 11543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11544
11545
11546# IFS
11547# We need space, tab and new line, in precisely that order.
11548as_nl='
11549'
11550IFS=" $as_nl"
11551
11552# CDPATH.
11553$as_unset CDPATH
11554
11555exec 6>&1
11556
11557# Open the log real soon, to keep \$[0] and so on meaningful, and to
11558# report actual input values of CONFIG_FILES etc. instead of their
11559# values after options handling. Logging --version etc. is OK.
11560exec 5>>config.log
11561{
11562 echo
11563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11564## Running $as_me. ##
11565_ASBOX
11566} >&5
11567cat >&5 <<_CSEOF
11568
11569This file was extended by $as_me, which was
8a2fc586 11570generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
11571
11572 CONFIG_FILES = $CONFIG_FILES
11573 CONFIG_HEADERS = $CONFIG_HEADERS
11574 CONFIG_LINKS = $CONFIG_LINKS
11575 CONFIG_COMMANDS = $CONFIG_COMMANDS
11576 $ $0 $@
11577
11578_CSEOF
11579echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11580echo >&5
11581_ACEOF
11582
11583# Files that config.status was made for.
11584if test -n "$ac_config_files"; then
11585 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11586fi
11587
11588if test -n "$ac_config_headers"; then
11589 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11590fi
11591
11592if test -n "$ac_config_links"; then
11593 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11594fi
11595
11596if test -n "$ac_config_commands"; then
11597 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11598fi
11599
11600cat >>$CONFIG_STATUS <<\_ACEOF
11601
11602ac_cs_usage="\
11603\`$as_me' instantiates files from templates according to the
11604current configuration.
11605
11606Usage: $0 [OPTIONS] [FILE]...
11607
11608 -h, --help print this help, then exit
11609 -V, --version print version number, then exit
11610 -q, --quiet do not print progress messages
11611 -d, --debug don't remove temporary files
11612 --recheck update $as_me by reconfiguring in the same conditions
11613 --file=FILE[:TEMPLATE]
8a2fc586 11614 instantiate the configuration file FILE
72b2cb61
AK
11615 --header=FILE[:TEMPLATE]
11616 instantiate the configuration header FILE
ad6254c5
AK
11617
11618Configuration files:
11619$config_files
11620
72b2cb61
AK
11621Configuration headers:
11622$config_headers
11623
ad6254c5
AK
11624Report bugs to <bug-autoconf@gnu.org>."
11625_ACEOF
11626
11627cat >>$CONFIG_STATUS <<_ACEOF
11628ac_cs_version="\\
11629config.status
8a2fc586 11630configured by $0, generated by GNU Autoconf 2.59,
ad6254c5
AK
11631 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11632
8a2fc586 11633Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
11634This config.status script is free software; the Free Software Foundation
11635gives unlimited permission to copy, distribute and modify it."
11636srcdir=$srcdir
11637INSTALL="$INSTALL"
11638_ACEOF
11639
11640cat >>$CONFIG_STATUS <<\_ACEOF
11641# If no file are specified by the user, then we need to provide default
11642# value. By we need to know if files were specified by the user.
11643ac_need_defaults=:
11644while test $# != 0
11645do
11646 case $1 in
11647 --*=*)
11648 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11649 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11650 ac_shift=:
11651 ;;
11652 -*)
11653 ac_option=$1
11654 ac_optarg=$2
11655 ac_shift=shift
11656 ;;
11657 *) # This is not an option, so the user has probably given explicit
11658 # arguments.
11659 ac_option=$1
11660 ac_need_defaults=false;;
11661 esac
11662
11663 case $ac_option in
11664 # Handling of the options.
11665_ACEOF
11666cat >>$CONFIG_STATUS <<\_ACEOF
11667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11668 ac_cs_recheck=: ;;
11669 --version | --vers* | -V )
11670 echo "$ac_cs_version"; exit 0 ;;
11671 --he | --h)
11672 # Conflict between --help and --header
11673 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11674Try \`$0 --help' for more information." >&5
11675echo "$as_me: error: ambiguous option: $1
11676Try \`$0 --help' for more information." >&2;}
11677 { (exit 1); exit 1; }; };;
11678 --help | --hel | -h )
11679 echo "$ac_cs_usage"; exit 0 ;;
11680 --debug | --d* | -d )
11681 debug=: ;;
11682 --file | --fil | --fi | --f )
11683 $ac_shift
11684 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11685 ac_need_defaults=false;;
11686 --header | --heade | --head | --hea )
11687 $ac_shift
11688 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11689 ac_need_defaults=false;;
11690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11692 ac_cs_silent=: ;;
11693
11694 # This is an error.
11695 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11696Try \`$0 --help' for more information." >&5
11697echo "$as_me: error: unrecognized option: $1
11698Try \`$0 --help' for more information." >&2;}
11699 { (exit 1); exit 1; }; } ;;
11700
11701 *) ac_config_targets="$ac_config_targets $1" ;;
11702
11703 esac
11704 shift
11705done
11706
11707ac_configure_extra_args=
11708
11709if $ac_cs_silent; then
11710 exec 6>/dev/null
11711 ac_configure_extra_args="$ac_configure_extra_args --silent"
11712fi
11713
11714_ACEOF
11715cat >>$CONFIG_STATUS <<_ACEOF
11716if \$ac_cs_recheck; then
11717 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11718 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11719fi
11720
11721_ACEOF
11722
11723
11724
11725
11726
11727cat >>$CONFIG_STATUS <<\_ACEOF
11728for ac_config_target in $ac_config_targets
11729do
11730 case "$ac_config_target" in
11731 # Handling of arguments.
11732 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11733 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11734 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11735 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
06f62ad1
AK
11736 "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11737 "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
ad6254c5
AK
11738 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11739 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11740 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11741 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11742 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11743 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11744 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11745 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11746 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11747 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
4eee5764 11748 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
ad6254c5
AK
11749 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11750 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11751 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11752 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11753 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11754 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11755 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11756 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
72b2cb61 11757 "lib/misc/configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
ad6254c5
AK
11758 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11759echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11760 { (exit 1); exit 1; }; };;
80992638 11761 esac
ad6254c5
AK
11762done
11763
11764# If the user did not use the arguments to specify the items to instantiate,
11765# then the envvar interface is used. Set only those that are not.
11766# We use the long form for the default assignment because of an extremely
11767# bizarre bug on SunOS 4.1.3.
11768if $ac_need_defaults; then
11769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11771fi
11772
11773# Have a temporary directory for convenience. Make it in the build tree
11774# simply because there is no reason to put it here, and in addition,
11775# creating and moving files from /tmp can sometimes cause problems.
11776# Create a temporary directory, and hook for its removal unless debugging.
11777$debug ||
11778{
11779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11780 trap '{ (exit 1); exit 1; }' 1 2 13 15
11781}
11782
11783# Create a (secure) tmp directory for tmp files.
11784
11785{
11786 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11787 test -n "$tmp" && test -d "$tmp"
11788} ||
11789{
11790 tmp=./confstat$$-$RANDOM
11791 (umask 077 && mkdir $tmp)
11792} ||
11793{
11794 echo "$me: cannot create a temporary directory in ." >&2
11795 { (exit 1); exit 1; }
11796}
11797
11798_ACEOF
11799
11800cat >>$CONFIG_STATUS <<_ACEOF
11801
11802#
11803# CONFIG_FILES section.
11804#
11805
11806# No need to generate the scripts if there are no CONFIG_FILES.
11807# This happens for instance when ./config.status config.h
11808if test -n "\$CONFIG_FILES"; then
11809 # Protect against being on the right side of a sed subst in config.status.
11810 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11811 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11812s,@SHELL@,$SHELL,;t t
11813s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11814s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11815s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11816s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11817s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11818s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11819s,@exec_prefix@,$exec_prefix,;t t
11820s,@prefix@,$prefix,;t t
11821s,@program_transform_name@,$program_transform_name,;t t
11822s,@bindir@,$bindir,;t t
11823s,@sbindir@,$sbindir,;t t
11824s,@libexecdir@,$libexecdir,;t t
11825s,@datadir@,$datadir,;t t
11826s,@sysconfdir@,$sysconfdir,;t t
11827s,@sharedstatedir@,$sharedstatedir,;t t
11828s,@localstatedir@,$localstatedir,;t t
11829s,@libdir@,$libdir,;t t
11830s,@includedir@,$includedir,;t t
11831s,@oldincludedir@,$oldincludedir,;t t
11832s,@infodir@,$infodir,;t t
11833s,@mandir@,$mandir,;t t
11834s,@build_alias@,$build_alias,;t t
11835s,@host_alias@,$host_alias,;t t
11836s,@target_alias@,$target_alias,;t t
11837s,@DEFS@,$DEFS,;t t
11838s,@ECHO_C@,$ECHO_C,;t t
11839s,@ECHO_N@,$ECHO_N,;t t
11840s,@ECHO_T@,$ECHO_T,;t t
11841s,@LIBS@,$LIBS,;t t
11842s,@build@,$build,;t t
11843s,@build_cpu@,$build_cpu,;t t
11844s,@build_vendor@,$build_vendor,;t t
11845s,@build_os@,$build_os,;t t
11846s,@host@,$host,;t t
11847s,@host_cpu@,$host_cpu,;t t
11848s,@host_vendor@,$host_vendor,;t t
11849s,@host_os@,$host_os,;t t
11850s,@target@,$target,;t t
11851s,@target_cpu@,$target_cpu,;t t
11852s,@target_vendor@,$target_vendor,;t t
11853s,@target_os@,$target_os,;t t
11854s,@AWK@,$AWK,;t t
11855s,@CC@,$CC,;t t
11856s,@CFLAGS@,$CFLAGS,;t t
11857s,@LDFLAGS@,$LDFLAGS,;t t
11858s,@CPPFLAGS@,$CPPFLAGS,;t t
11859s,@ac_ct_CC@,$ac_ct_CC,;t t
11860s,@EXEEXT@,$EXEEXT,;t t
11861s,@OBJEXT@,$OBJEXT,;t t
11862s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11863s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11864s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11865s,@LN_S@,$LN_S,;t t
11866s,@SET_MAKE@,$SET_MAKE,;t t
11867s,@RANLIB@,$RANLIB,;t t
11868s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8a2fc586
AK
11869s,@CFLOW_CMD@,$CFLOW_CMD,;t t
11870s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t
ad6254c5
AK
11871s,@CPP@,$CPP,;t t
11872s,@EGREP@,$EGREP,;t t
11873s,@ALLOCA@,$ALLOCA,;t t
11874s,@LIBOBJS@,$LIBOBJS,;t t
11875s,@POW_LIB@,$POW_LIB,;t t
11876s,@MSGFMT@,$MSGFMT,;t t
a653923f 11877s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
11878s,@JOBS@,$JOBS,;t t
11879s,@STATIC_LINK@,$STATIC_LINK,;t t
11880s,@LVM1@,$LVM1,;t t
11881s,@POOL@,$POOL,;t t
11882s,@SNAPSHOTS@,$SNAPSHOTS,;t t
11883s,@MIRRORS@,$MIRRORS,;t t
11884s,@OWNER@,$OWNER,;t t
11885s,@GROUP@,$GROUP,;t t
11886s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
11887s,@CLDFLAGS@,$CLDFLAGS,;t t
11888s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
11889s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
11890s,@LDDEPS@,$LDDEPS,;t t
c1c065a3 11891s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
ad6254c5
AK
11892s,@LVM_VERSION@,$LVM_VERSION,;t t
11893s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
11894s,@DEBUG@,$DEBUG,;t t
11895s,@DEVMAPPER@,$DEVMAPPER,;t t
11896s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
11897s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
8b1a3214 11898s,@HAVE_REALTIME@,$HAVE_REALTIME,;t t
ad6254c5
AK
11899s,@CMDLIB@,$CMDLIB,;t t
11900s,@LOCALEDIR@,$LOCALEDIR,;t t
11901s,@CONFDIR@,$CONFDIR,;t t
11902s,@STATICDIR@,$STATICDIR,;t t
11903s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
11904s,@INTL@,$INTL,;t t
11905s,@CLVMD@,$CLVMD,;t t
11906s,@CLUSTER@,$CLUSTER,;t t
11907s,@FSADM@,$FSADM,;t t
06f62ad1 11908s,@DMEVENTD@,$DMEVENTD,;t t
ad6254c5
AK
11909s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11910CEOF
11911
11912_ACEOF
11913
11914 cat >>$CONFIG_STATUS <<\_ACEOF
11915 # Split the substitutions into bite-sized pieces for seds with
11916 # small command number limits, like on Digital OSF/1 and HP-UX.
11917 ac_max_sed_lines=48
11918 ac_sed_frag=1 # Number of current file.
11919 ac_beg=1 # First line for current file.
11920 ac_end=$ac_max_sed_lines # Line after last line for current file.
11921 ac_more_lines=:
11922 ac_sed_cmds=
11923 while $ac_more_lines; do
11924 if test $ac_beg -gt 1; then
11925 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11926 else
11927 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11928 fi
11929 if test ! -s $tmp/subs.frag; then
11930 ac_more_lines=false
11931 else
11932 # The purpose of the label and of the branching condition is to
11933 # speed up the sed processing (if there are no `@' at all, there
11934 # is no need to browse any of the substitutions).
11935 # These are the two extra sed commands mentioned above.
11936 (echo ':t
11937 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11938 if test -z "$ac_sed_cmds"; then
8a2fc586 11939 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 11940 else
8a2fc586 11941 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
11942 fi
11943 ac_sed_frag=`expr $ac_sed_frag + 1`
11944 ac_beg=$ac_end
11945 ac_end=`expr $ac_end + $ac_max_sed_lines`
11946 fi
11947 done
11948 if test -z "$ac_sed_cmds"; then
11949 ac_sed_cmds=cat
11950 fi
11951fi # test -n "$CONFIG_FILES"
8106cdd5 11952
ad6254c5
AK
11953_ACEOF
11954cat >>$CONFIG_STATUS <<\_ACEOF
11955for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11956 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11957 case $ac_file in
11958 - | *:- | *:-:* ) # input from stdin
8a2fc586
AK
11959 cat >$tmp/stdin
11960 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11962 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8a2fc586 11963 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11964 * ) ac_file_in=$ac_file.in ;;
80992638 11965 esac
8106cdd5 11966
ad6254c5
AK
11967 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11968 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11969$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11970 X"$ac_file" : 'X\(//\)[^/]' \| \
11971 X"$ac_file" : 'X\(//\)$' \| \
11972 X"$ac_file" : 'X\(/\)' \| \
11973 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11974echo X"$ac_file" |
11975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11977 /^X\(\/\/\)$/{ s//\1/; q; }
11978 /^X\(\/\).*/{ s//\1/; q; }
11979 s/.*/./; q'`
11980 { if $as_mkdir_p; then
11981 mkdir -p "$ac_dir"
11982 else
11983 as_dir="$ac_dir"
11984 as_dirs=
11985 while test ! -d "$as_dir"; do
11986 as_dirs="$as_dir $as_dirs"
11987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11989 X"$as_dir" : 'X\(//\)[^/]' \| \
11990 X"$as_dir" : 'X\(//\)$' \| \
11991 X"$as_dir" : 'X\(/\)' \| \
11992 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11993echo X"$as_dir" |
11994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11996 /^X\(\/\/\)$/{ s//\1/; q; }
11997 /^X\(\/\).*/{ s//\1/; q; }
11998 s/.*/./; q'`
11999 done
12000 test ! -n "$as_dirs" || mkdir $as_dirs
12001 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12002echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12003 { (exit 1); exit 1; }; }; }
12004
12005 ac_builddir=.
12006
12007if test "$ac_dir" != .; then
12008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12009 # A "../" for each directory in $ac_dir_suffix.
12010 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12011else
12012 ac_dir_suffix= ac_top_builddir=
12013fi
12014
12015case $srcdir in
12016 .) # No --srcdir option. We are building in place.
12017 ac_srcdir=.
12018 if test -z "$ac_top_builddir"; then
12019 ac_top_srcdir=.
12020 else
12021 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12022 fi ;;
12023 [\\/]* | ?:[\\/]* ) # Absolute path.
12024 ac_srcdir=$srcdir$ac_dir_suffix;
12025 ac_top_srcdir=$srcdir ;;
12026 *) # Relative path.
12027 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12028 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12029esac
8a2fc586
AK
12030
12031# Do not use `cd foo && pwd` to compute absolute paths, because
12032# the directories may not exist.
12033case `pwd` in
12034.) ac_abs_builddir="$ac_dir";;
12035*)
12036 case "$ac_dir" in
12037 .) ac_abs_builddir=`pwd`;;
12038 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12039 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12040 esac;;
12041esac
12042case $ac_abs_builddir in
12043.) ac_abs_top_builddir=${ac_top_builddir}.;;
12044*)
12045 case ${ac_top_builddir}. in
12046 .) ac_abs_top_builddir=$ac_abs_builddir;;
12047 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12048 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12049 esac;;
12050esac
12051case $ac_abs_builddir in
12052.) ac_abs_srcdir=$ac_srcdir;;
12053*)
12054 case $ac_srcdir in
12055 .) ac_abs_srcdir=$ac_abs_builddir;;
12056 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12057 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12058 esac;;
12059esac
12060case $ac_abs_builddir in
12061.) ac_abs_top_srcdir=$ac_top_srcdir;;
12062*)
12063 case $ac_top_srcdir in
12064 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12065 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12066 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12067 esac;;
12068esac
ad6254c5
AK
12069
12070
12071 case $INSTALL in
12072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12073 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
12074 esac
12075
ad6254c5
AK
12076 if test x"$ac_file" != x-; then
12077 { echo "$as_me:$LINENO: creating $ac_file" >&5
12078echo "$as_me: creating $ac_file" >&6;}
12079 rm -f "$ac_file"
12080 fi
12081 # Let's still pretend it is `configure' which instantiates (i.e., don't
12082 # use $as_me), people would be surprised to read:
12083 # /* config.h. Generated by config.status. */
12084 if test x"$ac_file" = x-; then
12085 configure_input=
12086 else
12087 configure_input="$ac_file. "
12088 fi
12089 configure_input=$configure_input"Generated from `echo $ac_file_in |
8a2fc586 12090 sed 's,.*/,,'` by configure."
ad6254c5
AK
12091
12092 # First look for the input files in the build tree, otherwise in the
12093 # src tree.
12094 ac_file_inputs=`IFS=:
12095 for f in $ac_file_in; do
12096 case $f in
12097 -) echo $tmp/stdin ;;
12098 [\\/$]*)
8a2fc586
AK
12099 # Absolute (can't be DOS-style, as IFS=:)
12100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
12101echo "$as_me: error: cannot find input file: $f" >&2;}
12102 { (exit 1); exit 1; }; }
8a2fc586 12103 echo "$f";;
ad6254c5 12104 *) # Relative
8a2fc586
AK
12105 if test -f "$f"; then
12106 # Build tree
12107 echo "$f"
12108 elif test -f "$srcdir/$f"; then
12109 # Source tree
12110 echo "$srcdir/$f"
12111 else
12112 # /dev/null tree
12113 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
12114echo "$as_me: error: cannot find input file: $f" >&2;}
12115 { (exit 1); exit 1; }; }
8a2fc586 12116 fi;;
ad6254c5
AK
12117 esac
12118 done` || { (exit 1); exit 1; }
12119_ACEOF
12120cat >>$CONFIG_STATUS <<_ACEOF
12121 sed "$ac_vpsub
12122$extrasub
12123_ACEOF
12124cat >>$CONFIG_STATUS <<\_ACEOF
12125:t
12126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12127s,@configure_input@,$configure_input,;t t
12128s,@srcdir@,$ac_srcdir,;t t
12129s,@abs_srcdir@,$ac_abs_srcdir,;t t
12130s,@top_srcdir@,$ac_top_srcdir,;t t
12131s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12132s,@builddir@,$ac_builddir,;t t
12133s,@abs_builddir@,$ac_abs_builddir,;t t
12134s,@top_builddir@,$ac_top_builddir,;t t
12135s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12136s,@INSTALL@,$ac_INSTALL,;t t
12137" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12138 rm -f $tmp/stdin
12139 if test x"$ac_file" != x-; then
12140 mv $tmp/out $ac_file
12141 else
12142 cat $tmp/out
12143 rm -f $tmp/out
12144 fi
795ca3e5 12145
ad6254c5
AK
12146done
12147_ACEOF
72b2cb61
AK
12148cat >>$CONFIG_STATUS <<\_ACEOF
12149
12150#
12151# CONFIG_HEADER section.
12152#
12153
12154# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12155# NAME is the cpp macro being defined and VALUE is the value it is being given.
12156#
12157# ac_d sets the value in "#define NAME VALUE" lines.
12158ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12159ac_dB='[ ].*$,\1#\2'
12160ac_dC=' '
12161ac_dD=',;t'
12162# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12163ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12164ac_uB='$,\1#\2define\3'
12165ac_uC=' '
12166ac_uD=',;t'
12167
12168for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12170 case $ac_file in
12171 - | *:- | *:-:* ) # input from stdin
12172 cat >$tmp/stdin
12173 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12175 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12177 * ) ac_file_in=$ac_file.in ;;
12178 esac
12179
12180 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12181echo "$as_me: creating $ac_file" >&6;}
12182
12183 # First look for the input files in the build tree, otherwise in the
12184 # src tree.
12185 ac_file_inputs=`IFS=:
12186 for f in $ac_file_in; do
12187 case $f in
12188 -) echo $tmp/stdin ;;
12189 [\\/$]*)
12190 # Absolute (can't be DOS-style, as IFS=:)
12191 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12192echo "$as_me: error: cannot find input file: $f" >&2;}
12193 { (exit 1); exit 1; }; }
12194 # Do quote $f, to prevent DOS paths from being IFS'd.
12195 echo "$f";;
12196 *) # Relative
12197 if test -f "$f"; then
12198 # Build tree
12199 echo "$f"
12200 elif test -f "$srcdir/$f"; then
12201 # Source tree
12202 echo "$srcdir/$f"
12203 else
12204 # /dev/null tree
12205 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12206echo "$as_me: error: cannot find input file: $f" >&2;}
12207 { (exit 1); exit 1; }; }
12208 fi;;
12209 esac
12210 done` || { (exit 1); exit 1; }
12211 # Remove the trailing spaces.
12212 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12213
12214_ACEOF
12215
12216# Transform confdefs.h into two sed scripts, `conftest.defines' and
12217# `conftest.undefs', that substitutes the proper values into
12218# config.h.in to produce config.h. The first handles `#define'
12219# templates, and the second `#undef' templates.
12220# And first: Protect against being on the right side of a sed subst in
12221# config.status. Protect against being in an unquoted here document
12222# in config.status.
12223rm -f conftest.defines conftest.undefs
12224# Using a here document instead of a string reduces the quoting nightmare.
12225# Putting comments in sed scripts is not portable.
12226#
12227# `end' is used to avoid that the second main sed command (meant for
12228# 0-ary CPP macros) applies to n-ary macro definitions.
12229# See the Autoconf documentation for `clear'.
12230cat >confdef2sed.sed <<\_ACEOF
12231s/[\\&,]/\\&/g
12232s,[\\$`],\\&,g
12233t clear
12234: clear
12235s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12236t end
12237s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12238: end
12239_ACEOF
12240# If some macros were called several times there might be several times
12241# the same #defines, which is useless. Nevertheless, we may not want to
12242# sort them, since we want the *last* AC-DEFINE to be honored.
12243uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12244sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12245rm -f confdef2sed.sed
12246
12247# This sed command replaces #undef with comments. This is necessary, for
12248# example, in the case of _POSIX_SOURCE, which is predefined and required
12249# on some systems where configure will not decide to define it.
12250cat >>conftest.undefs <<\_ACEOF
12251s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12252_ACEOF
12253
12254# Break up conftest.defines because some shells have a limit on the size
12255# of here documents, and old seds have small limits too (100 cmds).
12256echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12257echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12258echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12259echo ' :' >>$CONFIG_STATUS
12260rm -f conftest.tail
12261while grep . conftest.defines >/dev/null
12262do
12263 # Write a limited-size here document to $tmp/defines.sed.
12264 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12265 # Speed up: don't consider the non `#define' lines.
12266 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12267 # Work around the forget-to-reset-the-flag bug.
12268 echo 't clr' >>$CONFIG_STATUS
12269 echo ': clr' >>$CONFIG_STATUS
12270 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12271 echo 'CEOF
12272 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12273 rm -f $tmp/in
12274 mv $tmp/out $tmp/in
12275' >>$CONFIG_STATUS
12276 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12277 rm -f conftest.defines
12278 mv conftest.tail conftest.defines
12279done
12280rm -f conftest.defines
12281echo ' fi # grep' >>$CONFIG_STATUS
12282echo >>$CONFIG_STATUS
12283
12284# Break up conftest.undefs because some shells have a limit on the size
12285# of here documents, and old seds have small limits too (100 cmds).
12286echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12287rm -f conftest.tail
12288while grep . conftest.undefs >/dev/null
12289do
12290 # Write a limited-size here document to $tmp/undefs.sed.
12291 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12292 # Speed up: don't consider the non `#undef'
12293 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12294 # Work around the forget-to-reset-the-flag bug.
12295 echo 't clr' >>$CONFIG_STATUS
12296 echo ': clr' >>$CONFIG_STATUS
12297 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12298 echo 'CEOF
12299 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12300 rm -f $tmp/in
12301 mv $tmp/out $tmp/in
12302' >>$CONFIG_STATUS
12303 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12304 rm -f conftest.undefs
12305 mv conftest.tail conftest.undefs
12306done
12307rm -f conftest.undefs
12308
12309cat >>$CONFIG_STATUS <<\_ACEOF
12310 # Let's still pretend it is `configure' which instantiates (i.e., don't
12311 # use $as_me), people would be surprised to read:
12312 # /* config.h. Generated by config.status. */
12313 if test x"$ac_file" = x-; then
12314 echo "/* Generated by configure. */" >$tmp/config.h
12315 else
12316 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12317 fi
12318 cat $tmp/in >>$tmp/config.h
12319 rm -f $tmp/in
12320 if test x"$ac_file" != x-; then
12321 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12322 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12323echo "$as_me: $ac_file is unchanged" >&6;}
12324 else
12325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12327 X"$ac_file" : 'X\(//\)[^/]' \| \
12328 X"$ac_file" : 'X\(//\)$' \| \
12329 X"$ac_file" : 'X\(/\)' \| \
12330 . : '\(.\)' 2>/dev/null ||
12331echo X"$ac_file" |
12332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12334 /^X\(\/\/\)$/{ s//\1/; q; }
12335 /^X\(\/\).*/{ s//\1/; q; }
12336 s/.*/./; q'`
12337 { if $as_mkdir_p; then
12338 mkdir -p "$ac_dir"
12339 else
12340 as_dir="$ac_dir"
12341 as_dirs=
12342 while test ! -d "$as_dir"; do
12343 as_dirs="$as_dir $as_dirs"
12344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12346 X"$as_dir" : 'X\(//\)[^/]' \| \
12347 X"$as_dir" : 'X\(//\)$' \| \
12348 X"$as_dir" : 'X\(/\)' \| \
12349 . : '\(.\)' 2>/dev/null ||
12350echo X"$as_dir" |
12351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12353 /^X\(\/\/\)$/{ s//\1/; q; }
12354 /^X\(\/\).*/{ s//\1/; q; }
12355 s/.*/./; q'`
12356 done
12357 test ! -n "$as_dirs" || mkdir $as_dirs
12358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12360 { (exit 1); exit 1; }; }; }
12361
12362 rm -f $ac_file
12363 mv $tmp/config.h $ac_file
12364 fi
12365 else
12366 cat $tmp/config.h
12367 rm -f $tmp/config.h
12368 fi
12369done
12370_ACEOF
795ca3e5 12371
ad6254c5 12372cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 12373
ad6254c5
AK
12374{ (exit 0); exit 0; }
12375_ACEOF
795ca3e5 12376chmod +x $CONFIG_STATUS
ad6254c5
AK
12377ac_clean_files=$ac_clean_files_save
12378
12379
12380# configure is writing to config.log, and then calls config.status.
12381# config.status does its own redirection, appending to config.log.
12382# Unfortunately, on DOS this fails, as config.log is still kept open
12383# by configure, so config.status won't be able to write to it; its
12384# output is simply discarded. So we exec the FD to /dev/null,
12385# effectively closing config.log, so it can be properly (re)opened and
12386# appended to by config.status. When coming back to configure, we
12387# need to make the FD available again.
12388if test "$no_create" != yes; then
12389 ac_cs_success=:
12390 ac_config_status_args=
12391 test "$silent" = yes &&
12392 ac_config_status_args="$ac_config_status_args --quiet"
12393 exec 5>/dev/null
12394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12395 exec 5>>config.log
12396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12397 # would make configure fail if this is the last instruction.
12398 $ac_cs_success || { (exit 1); exit 1; }
12399fi
795ca3e5 12400
2dc95e1c
AK
12401
12402if test x$ODIRECT != xyes; then
ad6254c5
AK
12403 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12404echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12405fi
809fae91
AK
12406
12407if test x$FSADM == xyes; then
ad6254c5
AK
12408 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12409echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12410fi
06f62ad1
AK
12411
12412if test x$DMEVENTD == xyes; then
12413 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12414echo "$as_me: WARNING: dmeventd support is untested" >&2;}
12415fi
This page took 1.311225 seconds and 5 git commands to generate.