]> sourceware.org Git - lvm2.git/blame - configure
Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.
[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
72b2cb61 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 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
856 --enable-debug Enable debugging
857 --disable-devmapper Disable device-mapper interaction
858 --disable-o_direct Disable O_DIRECT
859 --enable-cmdlib Build shared command library
860 --enable-fsadm Enable fsadm
15d91f5a 861 --enable-dmeventd Enable the device-mapper event daemon
ad6254c5
AK
862 --enable-nls Enable Native Language Support
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-user=USER Set the owner of installed files
868 --with-group=GROUP Set the group owner of installed files
869 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
870 TYPE=internal
871 --with-pool=TYPE GFS pool read-only support: internal/shared/none
872 TYPE=internal
873 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
874 TYPE=internal
875 --with-snapshots=TYPE Snapshot support: internal/shared/none
876 TYPE=internal
877 --with-mirrors=TYPE Mirror support: internal/shared/none
878 TYPE=internal
5c7fc7c4 879 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 880 TYPE=none
ad6254c5
AK
881 --with-optimisation=OPT C optimisation flag OPT=-O2
882 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
883 --with-confdir=DIR Configuration files in DIR /etc
884 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
885
886Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 CPP C preprocessor
894
895Use these variables to override the choices made by `configure' or to help
896it to find libraries and programs with nonstandard names/locations.
897
898_ACEOF
899fi
900
901if test "$ac_init_help" = "recursive"; then
902 # If there are subdirs, report their specific --help.
903 ac_popdir=`pwd`
904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905 test -d $ac_dir || continue
906 ac_builddir=.
907
908if test "$ac_dir" != .; then
909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910 # A "../" for each directory in $ac_dir_suffix.
911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913 ac_dir_suffix= ac_top_builddir=
914fi
915
916case $srcdir in
917 .) # No --srcdir option. We are building in place.
918 ac_srcdir=.
919 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=.
921 else
922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923 fi ;;
924 [\\/]* | ?:[\\/]* ) # Absolute path.
925 ac_srcdir=$srcdir$ac_dir_suffix;
926 ac_top_srcdir=$srcdir ;;
927 *) # Relative path.
928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac
8a2fc586
AK
931
932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937 case "$ac_dir" in
938 .) ac_abs_builddir=`pwd`;;
939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946 case ${ac_top_builddir}. in
947 .) ac_abs_top_builddir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955 case $ac_srcdir in
956 .) ac_abs_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964 case $ac_top_srcdir in
965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968 esac;;
969esac
ad6254c5
AK
970
971 cd $ac_dir
972 # Check for guested configure; otherwise get Cygnus style configure.
973 if test -f $ac_srcdir/configure.gnu; then
974 echo
975 $SHELL $ac_srcdir/configure.gnu --help=recursive
976 elif test -f $ac_srcdir/configure; then
977 echo
978 $SHELL $ac_srcdir/configure --help=recursive
979 elif test -f $ac_srcdir/configure.ac ||
8a2fc586 980 test -f $ac_srcdir/configure.in; then
ad6254c5
AK
981 echo
982 $ac_configure --help
983 else
984 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 fi
986 cd $ac_popdir
987 done
988fi
989
990test -n "$ac_init_help" && exit 0
991if $ac_init_version; then
992 cat <<\_ACEOF
993
8a2fc586 994Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
995This configure script is free software; the Free Software Foundation
996gives unlimited permission to copy, distribute and modify it.
997_ACEOF
998 exit 0
999fi
1000exec 5>config.log
1001cat >&5 <<_ACEOF
1002This file contains any messages produced by compilers while
1003running configure, to aid debugging if configure makes a mistake.
1004
1005It was created by $as_me, which was
8a2fc586 1006generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
1007
1008 $ $0 $@
1009
1010_ACEOF
1011{
1012cat <<_ASUNAME
1013## --------- ##
1014## Platform. ##
1015## --------- ##
1016
1017hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1025
1026/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1027/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1028/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1030/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1031/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1032/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033
1034_ASUNAME
1035
1036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037for as_dir in $PATH
1038do
1039 IFS=$as_save_IFS
1040 test -z "$as_dir" && as_dir=.
1041 echo "PATH: $as_dir"
1042done
1043
1044} >&5
1045
1046cat >&5 <<_ACEOF
1047
1048
1049## ----------- ##
1050## Core tests. ##
1051## ----------- ##
1052
1053_ACEOF
1054
1055
1056# Keep a trace of the command line.
1057# Strip out --no-create and --no-recursion so they do not pile up.
1058# Strip out --silent because we don't want to record it for future runs.
1059# Also quote any args containing shell meta-characters.
1060# Make two passes to allow for proper duplicate-argument suppression.
1061ac_configure_args=
1062ac_configure_args0=
1063ac_configure_args1=
1064ac_sep=
1065ac_must_keep_next=false
1066for ac_pass in 1 2
1067do
1068 for ac_arg
1069 do
1070 case $ac_arg in
1071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 continue ;;
1075 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 esac
1078 case $ac_pass in
1079 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 2)
1081 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082 if test $ac_must_keep_next = true; then
8a2fc586 1083 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1084 else
8a2fc586
AK
1085 case $ac_arg in
1086 *=* | --config-cache | -C | -disable-* | --disable-* \
1087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089 | -with-* | --with-* | -without-* | --without-* | --x)
1090 case "$ac_configure_args0 " in
1091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 esac
1093 ;;
1094 -* ) ac_must_keep_next=true ;;
1095 esac
ad6254c5
AK
1096 fi
1097 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098 # Get rid of the leading space.
1099 ac_sep=" "
1100 ;;
1101 esac
1102 done
1103done
1104$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107# When interrupted or exit'd, cleanup temporary files, and complete
1108# config.log. We remove comments because anyway the quotes in there
1109# would cause problems or look ugly.
1110# WARNING: Be sure not to use single quotes in there, as some shells,
1111# such as our DU 5.0 friend, will then `close' the trap.
1112trap 'exit_status=$?
1113 # Save into config.log some information that might help in debugging.
1114 {
1115 echo
1116
1117 cat <<\_ASBOX
1118## ---------------- ##
1119## Cache variables. ##
1120## ---------------- ##
1121_ASBOX
1122 echo
1123 # The following way of writing the cache mishandles newlines in values,
1124{
1125 (set) 2>&1 |
1126 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 *ac_space=\ *)
1128 sed -n \
8a2fc586
AK
1129 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ad6254c5
AK
1131 ;;
1132 *)
1133 sed -n \
8a2fc586 1134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
1135 ;;
1136 esac;
1137}
1138 echo
1139
1140 cat <<\_ASBOX
1141## ----------------- ##
1142## Output variables. ##
1143## ----------------- ##
1144_ASBOX
1145 echo
1146 for ac_var in $ac_subst_vars
1147 do
1148 eval ac_val=$`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1150 done | sort
1151 echo
1152
1153 if test -n "$ac_subst_files"; then
1154 cat <<\_ASBOX
1155## ------------- ##
1156## Output files. ##
1157## ------------- ##
1158_ASBOX
1159 echo
1160 for ac_var in $ac_subst_files
1161 do
1162 eval ac_val=$`echo $ac_var`
8a2fc586 1163 echo "$ac_var='"'"'$ac_val'"'"'"
ad6254c5
AK
1164 done | sort
1165 echo
1166 fi
1167
1168 if test -s confdefs.h; then
1169 cat <<\_ASBOX
1170## ----------- ##
1171## confdefs.h. ##
1172## ----------- ##
1173_ASBOX
1174 echo
1175 sed "/^$/d" confdefs.h | sort
1176 echo
1177 fi
1178 test "$ac_signal" != 0 &&
1179 echo "$as_me: caught signal $ac_signal"
1180 echo "$as_me: exit $exit_status"
1181 } >&5
8a2fc586 1182 rm -f core *.core &&
ad6254c5
AK
1183 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 exit $exit_status
1185 ' 0
1186for ac_signal in 1 2 13 15; do
1187 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188done
1189ac_signal=0
1190
1191# confdefs.h avoids OS command line length limits that DEFS can exceed.
1192rm -rf conftest* confdefs.h
1193# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194echo >confdefs.h
1195
1196# Predefined preprocessor variables.
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_NAME "$PACKAGE_NAME"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_VERSION "$PACKAGE_VERSION"
1210_ACEOF
8106cdd5 1211
ad6254c5
AK
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_STRING "$PACKAGE_STRING"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220_ACEOF
1221
1222
1223# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1224# Prefer explicitly selected file to automatically selected ones.
1225if test -z "$CONFIG_SITE"; then
1226 if test "x$prefix" != xNONE; then
1227 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 else
1229 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 fi
1231fi
1232for ac_site_file in $CONFIG_SITE; do
1233 if test -r "$ac_site_file"; then
ad6254c5
AK
1234 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235echo "$as_me: loading site script $ac_site_file" >&6;}
1236 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1237 . "$ac_site_file"
1238 fi
1239done
1240
1241if test -r "$cache_file"; then
ad6254c5
AK
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246echo "$as_me: loading cache $cache_file" >&6;}
1247 case $cache_file in
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1250 esac
1251 fi
795ca3e5 1252else
ad6254c5
AK
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254echo "$as_me: creating cache $cache_file" >&6;}
1255 >$cache_file
1256fi
1257
1258# Check that the precious variables saved in the cache have kept the same
1259# value.
1260ac_cache_corrupted=false
1261for ac_var in `(set) 2>&1 |
8a2fc586 1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ad6254c5
AK
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1268 set,)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,set)
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1276 ,);;
1277 *)
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
8a2fc586 1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1280echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8a2fc586 1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1282echo "$as_me: former value: $ac_old_val" >&2;}
8a2fc586 1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1284echo "$as_me: current value: $ac_new_val" >&2;}
8a2fc586 1285 ac_cache_corrupted=:
ad6254c5
AK
1286 fi;;
1287 esac
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1290 case $ac_new_val in
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1294 esac
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 esac
1299 fi
1300done
1301if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
795ca3e5
AK
1307fi
1308
1309ac_ext=c
795ca3e5 1310ac_cpp='$CPP $CPPFLAGS'
ad6254c5
AK
1311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
795ca3e5
AK
1331
1332
1333
72b2cb61
AK
1334################################################################################
1335 ac_config_headers="$ac_config_headers lib/misc/configure.h"
1336
1337
80992638 1338################################################################################
795ca3e5
AK
1339ac_aux_dir=
1340for ac_dir in autoconf $srcdir/autoconf; do
1341 if test -f $ac_dir/install-sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
1345 elif test -f $ac_dir/install.sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
ad6254c5
AK
1349 elif test -f $ac_dir/shtool; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
795ca3e5
AK
1353 fi
1354done
1355if test -z "$ac_aux_dir"; then
ad6254c5
AK
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1357echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1358 { (exit 1); exit 1; }; }
795ca3e5 1359fi
ad6254c5
AK
1360ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1363
1364
ad6254c5 1365################################################################################
8ce0cbda 1366# Make sure we can run config.sub.
ad6254c5
AK
1367$ac_config_sub sun4 >/dev/null 2>&1 ||
1368 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1369echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1370 { (exit 1); exit 1; }; }
1371
1372echo "$as_me:$LINENO: checking build system type" >&5
1373echo $ECHO_N "checking build system type... $ECHO_C" >&6
1374if test "${ac_cv_build+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1376else
1377 ac_cv_build_alias=$build_alias
1378test -z "$ac_cv_build_alias" &&
1379 ac_cv_build_alias=`$ac_config_guess`
1380test -z "$ac_cv_build_alias" &&
1381 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1382echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1383 { (exit 1); exit 1; }; }
1384ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1386echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1387 { (exit 1); exit 1; }; }
1388
1389fi
1390echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1391echo "${ECHO_T}$ac_cv_build" >&6
1392build=$ac_cv_build
1393build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396
1397
1398echo "$as_me:$LINENO: checking host system type" >&5
1399echo $ECHO_N "checking host system type... $ECHO_C" >&6
1400if test "${ac_cv_host+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1402else
1403 ac_cv_host_alias=$host_alias
1404test -z "$ac_cv_host_alias" &&
1405 ac_cv_host_alias=$ac_cv_build_alias
1406ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1408echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1410
1411fi
1412echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1413echo "${ECHO_T}$ac_cv_host" >&6
1414host=$ac_cv_host
1415host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420echo "$as_me:$LINENO: checking target system type" >&5
1421echo $ECHO_N "checking target system type... $ECHO_C" >&6
1422if test "${ac_cv_target+set}" = set; then
1423 echo $ECHO_N "(cached) $ECHO_C" >&6
1424else
1425 ac_cv_target_alias=$target_alias
1426test "x$ac_cv_target_alias" = "x" &&
1427 ac_cv_target_alias=$ac_cv_host_alias
1428ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1430echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
8ce0cbda 1432
ad6254c5
AK
1433fi
1434echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1435echo "${ECHO_T}$ac_cv_target" >&6
1436target=$ac_cv_target
1437target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1440
8ce0cbda 1441
ad6254c5
AK
1442# The aliases save the names the user supplied, while $host etc.
1443# will get canonicalized.
1444test -n "$target_alias" &&
8ce0cbda
AK
1445 test "$program_prefix$program_suffix$program_transform_name" = \
1446 NONENONEs,x,x, &&
1447 program_prefix=${target_alias}-
1448
8ce0cbda
AK
1449case "$host_os" in
1450 linux*)
1451 CFLAGS="$CFLAGS"
1452 COPTIMISE_FLAG="-O2"
1453 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1454 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1455 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1456 LDDEPS="$LDDEPS .export.sym"
1457 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1458 LIB_SUFFIX="so"
8ce0cbda
AK
1459 DEVMAPPER=yes
1460 ODIRECT=yes
1461 SELINUX=yes
1462 CLUSTER=internal
1463 FSADM=no ;;
1464 darwin*)
1465 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1466 COPTIMISE_FLAG="-O2"
1467 CLDFLAGS="$CLDFLAGS"
1468 CLDWHOLEARCHIVE="-all_load"
1469 CLDNOWHOLEARCHIVE=
1470 LDDEPS="$LDDEPS"
1471 LDFLAGS="$LDFLAGS"
e4c11ad1 1472 LIB_SUFFIX="dylib"
a653923f 1473 DEVMAPPER=yes
8ce0cbda
AK
1474 ODIRECT=no
1475 SELINUX=no
1476 CLUSTER=none
1477 FSADM=no ;;
1478esac
1479
80992638 1480################################################################################
ad6254c5 1481for ac_prog in gawk mawk nawk awk
795ca3e5 1482do
ad6254c5 1483 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1484set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1485echo "$as_me:$LINENO: checking for $ac_word" >&5
1486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487if test "${ac_cv_prog_AWK+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1489else
1490 if test -n "$AWK"; then
1491 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1492else
ad6254c5
AK
1493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494for as_dir in $PATH
1495do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_AWK="$ac_prog"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504done
1505done
1506
795ca3e5
AK
1507fi
1508fi
ad6254c5 1509AWK=$ac_cv_prog_AWK
795ca3e5 1510if test -n "$AWK"; then
ad6254c5
AK
1511 echo "$as_me:$LINENO: result: $AWK" >&5
1512echo "${ECHO_T}$AWK" >&6
795ca3e5 1513else
ad6254c5
AK
1514 echo "$as_me:$LINENO: result: no" >&5
1515echo "${ECHO_T}no" >&6
795ca3e5
AK
1516fi
1517
ad6254c5
AK
1518 test -n "$AWK" && break
1519done
1520
1521ac_ext=c
1522ac_cpp='$CPP $CPPFLAGS'
1523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529echo "$as_me:$LINENO: checking for $ac_word" >&5
1530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1533else
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1536else
1537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538for as_dir in $PATH
1539do
1540 IFS=$as_save_IFS
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546 break 2
1547 fi
1548done
8106cdd5
AK
1549done
1550
ad6254c5
AK
1551fi
1552fi
1553CC=$ac_cv_prog_CC
1554if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556echo "${ECHO_T}$CC" >&6
1557else
1558 echo "$as_me:$LINENO: result: no" >&5
1559echo "${ECHO_T}no" >&6
1560fi
1561
1562fi
1563if test -z "$ac_cv_prog_CC"; then
1564 ac_ct_CC=$CC
1565 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1566set dummy gcc; ac_word=$2
ad6254c5
AK
1567echo "$as_me:$LINENO: checking for $ac_word" >&5
1568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574else
1575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576for as_dir in $PATH
1577do
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="gcc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586done
1587done
1588
1589fi
1590fi
1591ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594echo "${ECHO_T}$ac_ct_CC" >&6
1595else
1596 echo "$as_me:$LINENO: result: no" >&5
1597echo "${ECHO_T}no" >&6
1598fi
1599
1600 CC=$ac_ct_CC
1601else
1602 CC="$ac_cv_prog_CC"
1603fi
1604
1605if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}cc; ac_word=$2
1609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1613else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
ad6254c5
AK
1617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628done
1629done
1630
8106cdd5
AK
1631fi
1632fi
ad6254c5 1633CC=$ac_cv_prog_CC
8106cdd5 1634if test -n "$CC"; then
ad6254c5
AK
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
1637else
1638 echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642fi
1643if test -z "$ac_cv_prog_CC"; then
1644 ac_ct_CC=$CC
1645 # Extract the first word of "cc", so it can be a program name with args.
1646set dummy cc; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="cc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
1675else
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680 CC=$ac_ct_CC
8106cdd5 1681else
ad6254c5 1682 CC="$ac_cv_prog_CC"
8106cdd5
AK
1683fi
1684
ad6254c5 1685fi
795ca3e5
AK
1686if test -z "$CC"; then
1687 # Extract the first word of "cc", so it can be a program name with args.
1688set dummy cc; ac_word=$2
ad6254c5
AK
1689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1693else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
795ca3e5 1697 ac_prog_rejected=no
ad6254c5
AK
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706 ac_prog_rejected=yes
1707 continue
1708 fi
1709 ac_cv_prog_CC="cc"
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711 break 2
1712 fi
1713done
1714done
1715
795ca3e5
AK
1716if test $ac_prog_rejected = yes; then
1717 # We found a bogon in the path, so make sure we never use it.
1718 set dummy $ac_cv_prog_CC
1719 shift
ad6254c5 1720 if test $# != 0; then
795ca3e5
AK
1721 # We chose a different compiler from the bogus one.
1722 # However, it has the same basename, so the bogon will be chosen
1723 # first if we set CC to just the basename; use the full file name.
1724 shift
ad6254c5 1725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1726 fi
1727fi
1728fi
1729fi
ad6254c5 1730CC=$ac_cv_prog_CC
795ca3e5 1731if test -n "$CC"; then
ad6254c5
AK
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733echo "${ECHO_T}$CC" >&6
795ca3e5 1734else
ad6254c5
AK
1735 echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
795ca3e5
AK
1737fi
1738
ad6254c5
AK
1739fi
1740if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1742 for ac_prog in cl
1743 do
1744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1750else
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1753else
ad6254c5
AK
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 break 2
1764 fi
1765done
1766done
1767
795ca3e5
AK
1768fi
1769fi
ad6254c5 1770CC=$ac_cv_prog_CC
795ca3e5 1771if test -n "$CC"; then
ad6254c5
AK
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773echo "${ECHO_T}$CC" >&6
795ca3e5 1774else
ad6254c5
AK
1775 echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
795ca3e5 1777fi
ad6254c5
AK
1778
1779 test -n "$CC" && break
1780 done
1781fi
1782if test -z "$CC"; then
1783 ac_ct_CC=$CC
1784 for ac_prog in cl
1785do
1786 # Extract the first word of "$ac_prog", so it can be a program name with args.
1787set dummy $ac_prog; ac_word=$2
1788echo "$as_me:$LINENO: checking for $ac_word" >&5
1789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795else
1796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="$ac_prog"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805 break 2
795ca3e5 1806 fi
ad6254c5
AK
1807done
1808done
1809
1810fi
1811fi
1812ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815echo "${ECHO_T}$ac_ct_CC" >&6
1816else
1817 echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
795ca3e5
AK
1819fi
1820
ad6254c5
AK
1821 test -n "$ac_ct_CC" && break
1822done
795ca3e5 1823
ad6254c5
AK
1824 CC=$ac_ct_CC
1825fi
1826
1827fi
1828
1829
1830test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831See \`config.log' for more details." >&5
1832echo "$as_me: error: no acceptable C compiler found in \$PATH
1833See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }
1835
1836# Provide some information about the compiler.
1837echo "$as_me:$LINENO:" \
1838 "checking for C compiler version" >&5
1839ac_compiler=`set X $ac_compile; echo $2`
1840{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841 (eval $ac_compiler --version </dev/null >&5) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1845{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846 (eval $ac_compiler -v </dev/null >&5) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }
1850{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851 (eval $ac_compiler -V </dev/null >&5) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }
1855
1856cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
1857/* confdefs.h. */
1858_ACEOF
1859cat confdefs.h >>conftest.$ac_ext
1860cat >>conftest.$ac_ext <<_ACEOF
1861/* end confdefs.h. */
1862
1863int
1864main ()
1865{
1866
1867 ;
1868 return 0;
1869}
1870_ACEOF
1871ac_clean_files_save=$ac_clean_files
1872ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873# Try to create an executable without -o first, disregard a.out.
1874# It will help us diagnose broken compilers, and finding out an intuition
1875# of exeext.
8a2fc586
AK
1876echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ad6254c5
AK
1878ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 (eval $ac_link_default) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # Find the output, starting from the most likely. This scheme is
1885# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886# resort.
1887
1888# Be careful to initialize this variable, since it used to be cached.
1889# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890ac_cv_exeext=
1891# b.out is created by i960 compilers.
1892for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8a2fc586 1897 ;;
ad6254c5 1898 conftest.$ac_ext )
8a2fc586
AK
1899 # This is the source file.
1900 ;;
ad6254c5 1901 [ab].out )
8a2fc586
AK
1902 # We found the default executable, but exeext='' is most
1903 # certainly right.
1904 break;;
ad6254c5 1905 *.* )
8a2fc586
AK
1906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 # FIXME: I believe we export ac_cv_exeext for Libtool,
1908 # but it would be cool to find out if it's true. Does anybody
1909 # maintain Libtool? --akim.
1910 export ac_cv_exeext
1911 break;;
ad6254c5 1912 * )
8a2fc586 1913 break;;
ad6254c5
AK
1914 esac
1915done
1916else
1917 echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: C compiler cannot create executables
1923See \`config.log' for more details." >&2;}
1924 { (exit 77); exit 77; }; }
1925fi
1926
1927ac_exeext=$ac_cv_exeext
1928echo "$as_me:$LINENO: result: $ac_file" >&5
1929echo "${ECHO_T}$ac_file" >&6
1930
1931# Check the compiler produces executables we can run. If not, either
1932# the compiler is broken, or we cross compile.
1933echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936# If not cross compiling, check that we can run a simple program.
1937if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1944 cross_compiling=no
795ca3e5 1945 else
ad6254c5
AK
1946 if test "$cross_compiling" = maybe; then
1947 cross_compiling=yes
1948 else
1949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950If you meant to cross compile, use \`--host'.
1951See \`config.log' for more details." >&5
1952echo "$as_me: error: cannot run C compiled programs.
1953If you meant to cross compile, use \`--host'.
1954See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1956 fi
795ca3e5 1957 fi
80992638 1958fi
ad6254c5
AK
1959echo "$as_me:$LINENO: result: yes" >&5
1960echo "${ECHO_T}yes" >&6
1961
1962rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963ac_clean_files=$ac_clean_files_save
1964# Check the compiler produces executables we can run. If not, either
1965# the compiler is broken, or we cross compile.
1966echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969echo "${ECHO_T}$cross_compiling" >&6
1970
1971echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980# work properly (i.e., refer to `conftest.exe'), while it won't with
1981# `rm'.
1982for ac_file in conftest.exe conftest conftest.*; do
1983 test -f "$ac_file" || continue
1984 case $ac_file in
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586
AK
1987 export ac_cv_exeext
1988 break;;
ad6254c5
AK
1989 * ) break;;
1990 esac
1991done
80992638 1992else
ad6254c5
AK
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994See \`config.log' for more details." >&5
1995echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
2000rm -f conftest$ac_cv_exeext
2001echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002echo "${ECHO_T}$ac_cv_exeext" >&6
2003
2004rm -f conftest.$ac_ext
2005EXEEXT=$ac_cv_exeext
2006ac_exeext=$EXEEXT
2007echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2011else
ad6254c5 2012 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2013/* confdefs.h. */
2014_ACEOF
2015cat confdefs.h >>conftest.$ac_ext
2016cat >>conftest.$ac_ext <<_ACEOF
2017/* end confdefs.h. */
2018
2019int
2020main ()
2021{
2022
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027rm -f conftest.o conftest.obj
2028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034 case $ac_file in
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037 break;;
2038 esac
2039done
2040else
2041 echo "$as_me: failed program was:" >&5
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
2044{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2049fi
2050
2051rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052fi
2053echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054echo "${ECHO_T}$ac_cv_objext" >&6
2055OBJEXT=$ac_cv_objext
2056ac_objext=$OBJEXT
2057echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2063/* confdefs.h. */
2064_ACEOF
2065cat confdefs.h >>conftest.$ac_ext
2066cat >>conftest.$ac_ext <<_ACEOF
2067/* end confdefs.h. */
2068
2069int
2070main ()
2071{
2072#ifndef __GNUC__
2073 choke me
2074#endif
80992638 2075
ad6254c5
AK
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080rm -f conftest.$ac_objext
2081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2082 (eval $ac_compile) 2>conftest.er1
ad6254c5 2083 ac_status=$?
8a2fc586
AK
2084 grep -v '^ *+' conftest.er1 >conftest.err
2085 rm -f conftest.er1
2086 cat conftest.err >&5
ad6254c5
AK
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
8a2fc586
AK
2089 { ac_try='test -z "$ac_c_werror_flag"
2090 || test ! -s conftest.err'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; } &&
2096 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 ac_compiler_gnu=yes
80992638 2103else
ad6254c5
AK
2104 echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107ac_compiler_gnu=no
8106cdd5 2108fi
8a2fc586 2109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2110ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2111
ad6254c5
AK
2112fi
2113echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115GCC=`test $ac_compiler_gnu = yes && echo yes`
2116ac_test_CFLAGS=${CFLAGS+set}
2117ac_save_CFLAGS=$CFLAGS
2118CFLAGS="-g"
2119echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121if test "${ac_cv_prog_cc_g+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2123else
ad6254c5 2124 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139rm -f conftest.$ac_objext
2140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2141 (eval $ac_compile) 2>conftest.er1
ad6254c5 2142 ac_status=$?
8a2fc586
AK
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
ad6254c5
AK
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
8a2fc586
AK
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
795ca3e5
AK
2161 ac_cv_prog_cc_g=yes
2162else
ad6254c5
AK
2163 echo "$as_me: failed program was:" >&5
2164sed 's/^/| /' conftest.$ac_ext >&5
80992638 2165
ad6254c5 2166ac_cv_prog_cc_g=no
8106cdd5 2167fi
8a2fc586 2168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2169fi
2170echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2172if test "$ac_test_CFLAGS" = set; then
ad6254c5 2173 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2174elif test $ac_cv_prog_cc_g = yes; then
2175 if test "$GCC" = yes; then
2176 CFLAGS="-g -O2"
2177 else
2178 CFLAGS="-g"
2179 fi
2180else
2181 if test "$GCC" = yes; then
2182 CFLAGS="-O2"
2183 else
2184 CFLAGS=
2185 fi
2186fi
ad6254c5
AK
2187echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192 ac_cv_prog_cc_stdc=no
2193ac_save_CC=$CC
2194cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2195/* confdefs.h. */
2196_ACEOF
2197cat confdefs.h >>conftest.$ac_ext
2198cat >>conftest.$ac_ext <<_ACEOF
2199/* end confdefs.h. */
2200#include <stdarg.h>
2201#include <stdio.h>
2202#include <sys/types.h>
2203#include <sys/stat.h>
2204/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2205struct buf { int x; };
2206FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207static char *e (p, i)
2208 char **p;
2209 int i;
2210{
2211 return p[i];
2212}
2213static char *f (char * (*g) (char **, int), char **p, ...)
2214{
2215 char *s;
2216 va_list v;
2217 va_start (v,p);
2218 s = g (p, va_arg (v,int));
2219 va_end (v);
2220 return s;
2221}
8a2fc586
AK
2222
2223/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2224 function prototypes and stuff, but not '\xHH' hex character constants.
2225 These don't provoke an error unfortunately, instead are silently treated
2226 as 'x'. The following induces an error, until -std1 is added to get
2227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2228 array size at least. It's necessary to write '\x00'==0 to get something
2229 that's true only with -std1. */
2230int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231
ad6254c5
AK
2232int test (int i, double x);
2233struct s1 {int (*f) (int a);};
2234struct s2 {int (*f) (double a);};
2235int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236int argc;
2237char **argv;
2238int
2239main ()
2240{
2241return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2242 ;
2243 return 0;
2244}
2245_ACEOF
2246# Don't try gcc -ansi; that turns off useful extensions and
2247# breaks some systems' header files.
2248# AIX -qlanglvl=ansi
2249# Ultrix and OSF/1 -std1
2250# HP-UX 10.20 and later -Ae
2251# HP-UX older versions -Aa -D_HPUX_SOURCE
2252# SVR4 -Xc -D__EXTENSIONS__
2253for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254do
2255 CC="$ac_save_CC $ac_arg"
2256 rm -f conftest.$ac_objext
2257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2258 (eval $ac_compile) 2>conftest.er1
ad6254c5 2259 ac_status=$?
8a2fc586
AK
2260 grep -v '^ *+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
ad6254c5
AK
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
8a2fc586
AK
2265 { ac_try='test -z "$ac_c_werror_flag"
2266 || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 ac_cv_prog_cc_stdc=$ac_arg
2279break
2280else
2281 echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284fi
8a2fc586 2285rm -f conftest.err conftest.$ac_objext
ad6254c5
AK
2286done
2287rm -f conftest.$ac_ext conftest.$ac_objext
2288CC=$ac_save_CC
2289
2290fi
2291
2292case "x$ac_cv_prog_cc_stdc" in
2293 x|xno)
2294 echo "$as_me:$LINENO: result: none needed" >&5
2295echo "${ECHO_T}none needed" >&6 ;;
2296 *)
2297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300esac
2301
2302# Some people use a C++ compiler to compile C. Since we use `exit',
2303# in C++ we need to declare it. In case someone uses the same compiler
2304# for both compiling C and C++ we need to have the C++ compiler decide
2305# the declaration of exit, since it's the most demanding environment.
2306cat >conftest.$ac_ext <<_ACEOF
2307#ifndef __cplusplus
2308 choke me
2309#endif
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2313 (eval $ac_compile) 2>conftest.er1
ad6254c5 2314 ac_status=$?
8a2fc586
AK
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
ad6254c5
AK
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
8a2fc586
AK
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 for ac_declaration in \
8a2fc586 2334 '' \
ad6254c5
AK
2335 'extern "C" void std::exit (int) throw (); using std::exit;' \
2336 'extern "C" void std::exit (int); using std::exit;' \
2337 'extern "C" void exit (int) throw ();' \
2338 'extern "C" void exit (int);' \
2339 'void exit (int);'
2340do
2341 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2342/* confdefs.h. */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h. */
c1c065a3 2347$ac_declaration
8a2fc586 2348#include <stdlib.h>
ad6254c5
AK
2349int
2350main ()
2351{
2352exit (42);
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357rm -f conftest.$ac_objext
2358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2359 (eval $ac_compile) 2>conftest.er1
ad6254c5 2360 ac_status=$?
8a2fc586
AK
2361 grep -v '^ *+' conftest.er1 >conftest.err
2362 rm -f conftest.er1
2363 cat conftest.err >&5
ad6254c5
AK
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
8a2fc586
AK
2366 { ac_try='test -z "$ac_c_werror_flag"
2367 || test ! -s conftest.err'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 (eval $ac_try) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2379 :
2380else
2381 echo "$as_me: failed program was:" >&5
2382sed 's/^/| /' conftest.$ac_ext >&5
2383
2384continue
2385fi
8a2fc586 2386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2387 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
2393$ac_declaration
2394int
2395main ()
2396{
2397exit (42);
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402rm -f conftest.$ac_objext
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2404 (eval $ac_compile) 2>conftest.er1
ad6254c5 2405 ac_status=$?
8a2fc586
AK
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
ad6254c5
AK
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
8a2fc586
AK
2411 { ac_try='test -z "$ac_c_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 break
2425else
2426 echo "$as_me: failed program was:" >&5
2427sed 's/^/| /' conftest.$ac_ext >&5
2428
2429fi
8a2fc586 2430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2431done
2432rm -f conftest*
2433if test -n "$ac_declaration"; then
2434 echo '#ifdef __cplusplus' >>confdefs.h
2435 echo $ac_declaration >>confdefs.h
2436 echo '#endif' >>confdefs.h
2437fi
2438
2439else
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443fi
8a2fc586 2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2445ac_ext=c
2446ac_cpp='$CPP $CPPFLAGS'
2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2450
2451# Find a good install program. We prefer a C program (faster),
2452# so one script is as good as another. But avoid the broken or
2453# incompatible versions:
2454# SysV /etc/install, /usr/sbin/install
2455# SunOS /usr/etc/install
2456# IRIX /sbin/install
2457# AIX /bin/install
ad6254c5 2458# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2462# OS/2's system install, which has a completely different semantic
795ca3e5 2463# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2464echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2465echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2466if test -z "$INSTALL"; then
ad6254c5
AK
2467if test "${ac_cv_path_install+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 # Account for people who put trailing slashes in PATH elements.
2476case $as_dir/ in
2477 ./ | .// | /cC/* | \
2478 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 2479 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2480 /usr/ucb/* ) ;;
2481 *)
2482 # OSF1 and SCO ODT 3.0 have their own names for install.
2483 # Don't use installbsd from OSF since it installs stuff as root
2484 # by default.
2485 for ac_prog in ginstall scoinst install; do
2486 for ac_exec_ext in '' $ac_executable_extensions; do
8a2fc586
AK
2487 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2488 if test $ac_prog = install &&
2489 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # AIX install. It has an incompatible calling convention.
2491 :
2492 elif test $ac_prog = install &&
2493 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494 # program-specific install script used by HP pwplus--don't use.
2495 :
2496 else
2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498 break 3
2499 fi
2500 fi
795ca3e5 2501 done
ad6254c5
AK
2502 done
2503 ;;
2504esac
2505done
2506
795ca3e5
AK
2507
2508fi
2509 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2510 INSTALL=$ac_cv_path_install
795ca3e5
AK
2511 else
2512 # As a last resort, use the slow shell script. We don't cache a
2513 # path for INSTALL within a source directory, because that will
2514 # break other packages using the cache if that directory is
2515 # removed, or if the path is relative.
ad6254c5 2516 INSTALL=$ac_install_sh
795ca3e5
AK
2517 fi
2518fi
ad6254c5
AK
2519echo "$as_me:$LINENO: result: $INSTALL" >&5
2520echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2521
2522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523# It thinks the first close brace ends the variable substitution.
2524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525
ad6254c5 2526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2527
2528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529
ad6254c5
AK
2530echo "$as_me:$LINENO: checking whether ln -s works" >&5
2531echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2532LN_S=$as_ln_s
2533if test "$LN_S" = "ln -s"; then
2534 echo "$as_me:$LINENO: result: yes" >&5
2535echo "${ECHO_T}yes" >&6
80992638 2536else
ad6254c5
AK
2537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2538echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2539fi
2540
ad6254c5
AK
2541echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8a2fc586 2543set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ad6254c5
AK
2544if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2546else
ad6254c5 2547 cat >conftest.make <<\_ACEOF
795ca3e5 2548all:
ad6254c5
AK
2549 @echo 'ac_maketemp="$(MAKE)"'
2550_ACEOF
795ca3e5 2551# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2552eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2553if test -n "$ac_maketemp"; then
2554 eval ac_cv_prog_make_${ac_make}_set=yes
2555else
2556 eval ac_cv_prog_make_${ac_make}_set=no
2557fi
ad6254c5 2558rm -f conftest.make
795ca3e5
AK
2559fi
2560if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
795ca3e5
AK
2563 SET_MAKE=
2564else
ad6254c5
AK
2565 echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6
795ca3e5
AK
2567 SET_MAKE="MAKE=${MAKE-make}"
2568fi
2569
ad6254c5
AK
2570if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2572set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2573echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575if test "${ac_cv_prog_RANLIB+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2577else
2578 if test -n "$RANLIB"; then
2579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2580else
ad6254c5
AK
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
2594
795ca3e5
AK
2595fi
2596fi
ad6254c5 2597RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2598if test -n "$RANLIB"; then
ad6254c5
AK
2599 echo "$as_me:$LINENO: result: $RANLIB" >&5
2600echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2601else
ad6254c5
AK
2602 echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6
8106cdd5
AK
2604fi
2605
795ca3e5 2606fi
ad6254c5
AK
2607if test -z "$ac_cv_prog_RANLIB"; then
2608 ac_ct_RANLIB=$RANLIB
2609 # Extract the first word of "ranlib", so it can be a program name with args.
2610set dummy ranlib; ac_word=$2
2611echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2613if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2615else
ad6254c5
AK
2616 if test -n "$ac_ct_RANLIB"; then
2617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_ac_ct_RANLIB="ranlib"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
795ca3e5 2631done
8106cdd5 2632
ad6254c5 2633 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2634fi
80992638 2635fi
ad6254c5
AK
2636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2637if test -n "$ac_ct_RANLIB"; then
2638 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2639echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2640else
ad6254c5
AK
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
8106cdd5 2643fi
8106cdd5 2644
ad6254c5 2645 RANLIB=$ac_ct_RANLIB
80992638 2646else
ad6254c5 2647 RANLIB="$ac_cv_prog_RANLIB"
80992638 2648fi
795ca3e5 2649
8a2fc586
AK
2650# Extract the first word of "cflow", so it can be a program name with args.
2651set dummy cflow; ac_word=$2
2652echo "$as_me:$LINENO: checking for $ac_word" >&5
2653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2654if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657 case $CFLOW_CMD in
2658 [\\/]* | ?:[\\/]*)
2659 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
2660 ;;
2661 *)
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2672 fi
2673done
2674done
2675
2676 ;;
2677esac
2678fi
2679CFLOW_CMD=$ac_cv_path_CFLOW_CMD
2680
2681if test -n "$CFLOW_CMD"; then
2682 echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
2683echo "${ECHO_T}$CFLOW_CMD" >&6
2684else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687fi
2688
2689# Extract the first word of "cscope", so it can be a program name with args.
2690set dummy cscope; ac_word=$2
2691echo "$as_me:$LINENO: checking for $ac_word" >&5
2692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696 case $CSCOPE_CMD in
2697 [\\/]* | ?:[\\/]*)
2698 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
2699 ;;
2700 *)
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2711 fi
2712done
2713done
2714
2715 ;;
2716esac
2717fi
2718CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
2719
2720if test -n "$CSCOPE_CMD"; then
2721 echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
2722echo "${ECHO_T}$CSCOPE_CMD" >&6
2723else
2724 echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
2726fi
2727
795ca3e5 2728
ad6254c5
AK
2729################################################################################
2730
2731
2732
2733
2734
2735
2736ac_header_dirent=no
2737for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2738 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2739echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2740echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2741if eval "test \"\${$as_ac_Header+set}\" = set"; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2743else
ad6254c5 2744 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
2750#include <sys/types.h>
2751#include <$ac_hdr>
2752
2753int
2754main ()
2755{
2756if ((DIR *) 0)
2757return 0;
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext
2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2764 (eval $ac_compile) 2>conftest.er1
ad6254c5 2765 ac_status=$?
8a2fc586
AK
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
ad6254c5
AK
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
8a2fc586
AK
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 eval "$as_ac_Header=yes"
8106cdd5 2785else
ad6254c5
AK
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789eval "$as_ac_Header=no"
795ca3e5 2790fi
8a2fc586 2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 2792fi
ad6254c5
AK
2793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2795if test `eval echo '${'$as_ac_Header'}'` = yes; then
2796 cat >>confdefs.h <<_ACEOF
2797#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2798_ACEOF
2799
2800ac_header_dirent=$ac_hdr; break
795ca3e5 2801fi
8106cdd5 2802
ad6254c5
AK
2803done
2804# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2805if test $ac_header_dirent = dirent.h; then
2806 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2807echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2808if test "${ac_cv_search_opendir+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2810else
ad6254c5
AK
2811 ac_func_search_save_LIBS=$LIBS
2812ac_cv_search_opendir=no
2813cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
2819
2820/* Override any gcc2 internal prototype to avoid an error. */
2821#ifdef __cplusplus
2822extern "C"
2823#endif
2824/* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
2826char opendir ();
2827int
2828main ()
2829{
2830opendir ();
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext conftest$ac_exeext
2836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2837 (eval $ac_link) 2>conftest.er1
ad6254c5 2838 ac_status=$?
8a2fc586
AK
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
ad6254c5
AK
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
8a2fc586
AK
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_search_opendir="none required"
795ca3e5 2858else
ad6254c5
AK
2859 echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
8a2fc586
AK
2863rm -f conftest.err conftest.$ac_objext \
2864 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2865if test "$ac_cv_search_opendir" = no; then
2866 for ac_lib in dir; do
2867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2868 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2869/* confdefs.h. */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h. */
795ca3e5 2874
ad6254c5
AK
2875/* Override any gcc2 internal prototype to avoid an error. */
2876#ifdef __cplusplus
2877extern "C"
2878#endif
2879/* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2881char opendir ();
2882int
2883main ()
2884{
2885opendir ();
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext conftest$ac_exeext
2891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2892 (eval $ac_link) 2>conftest.er1
ad6254c5 2893 ac_status=$?
8a2fc586
AK
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
ad6254c5
AK
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
8a2fc586
AK
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_search_opendir="-l$ac_lib"
2913break
795ca3e5 2914else
ad6254c5
AK
2915 echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2917
2918fi
8a2fc586
AK
2919rm -f conftest.err conftest.$ac_objext \
2920 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2921 done
795ca3e5 2922fi
ad6254c5
AK
2923LIBS=$ac_func_search_save_LIBS
2924fi
2925echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2926echo "${ECHO_T}$ac_cv_search_opendir" >&6
2927if test "$ac_cv_search_opendir" != no; then
2928 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2929
2930fi
2931
795ca3e5 2932else
ad6254c5
AK
2933 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2934echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2935if test "${ac_cv_search_opendir+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937else
2938 ac_func_search_save_LIBS=$LIBS
2939ac_cv_search_opendir=no
2940cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h. */
80992638 2946
ad6254c5
AK
2947/* Override any gcc2 internal prototype to avoid an error. */
2948#ifdef __cplusplus
2949extern "C"
2950#endif
2951/* We use char because int might match the return type of a gcc2
2952 builtin and then its argument prototype would still apply. */
2953char opendir ();
2954int
2955main ()
2956{
2957opendir ();
2958 ;
2959 return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext conftest$ac_exeext
2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2964 (eval $ac_link) 2>conftest.er1
ad6254c5 2965 ac_status=$?
8a2fc586
AK
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
ad6254c5
AK
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
8a2fc586
AK
2971 { ac_try='test -z "$ac_c_werror_flag"
2972 || test ! -s conftest.err'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; } &&
2978 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_cv_search_opendir="none required"
795ca3e5 2985else
ad6254c5
AK
2986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989fi
8a2fc586
AK
2990rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2992if test "$ac_cv_search_opendir" = no; then
2993 for ac_lib in x; do
2994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2995 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001
3002/* Override any gcc2 internal prototype to avoid an error. */
3003#ifdef __cplusplus
3004extern "C"
3005#endif
3006/* We use char because int might match the return type of a gcc2
3007 builtin and then its argument prototype would still apply. */
3008char opendir ();
3009int
3010main ()
3011{
3012opendir ();
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext conftest$ac_exeext
3018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 3019 (eval $ac_link) 2>conftest.er1
ad6254c5 3020 ac_status=$?
8a2fc586
AK
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
ad6254c5
AK
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
8a2fc586
AK
3026 { ac_try='test -z "$ac_c_werror_flag"
3027 || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_search_opendir="-l$ac_lib"
3040break
3041else
3042 echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
80992638 3044
795ca3e5 3045fi
8a2fc586
AK
3046rm -f conftest.err conftest.$ac_objext \
3047 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
3048 done
3049fi
3050LIBS=$ac_func_search_save_LIBS
795ca3e5 3051fi
ad6254c5
AK
3052echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3053echo "${ECHO_T}$ac_cv_search_opendir" >&6
3054if test "$ac_cv_search_opendir" != no; then
3055 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 3056
ad6254c5 3057fi
8106cdd5 3058
795ca3e5 3059fi
8106cdd5 3060
ad6254c5
AK
3061ac_ext=c
3062ac_cpp='$CPP $CPPFLAGS'
3063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3067echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3068# On Suns, sometimes $CPP names a directory.
3069if test -n "$CPP" && test -d "$CPP"; then
3070 CPP=
3071fi
3072if test -z "$CPP"; then
3073 if test "${ac_cv_prog_CPP+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076 # Double quotes because CPP needs to be expanded
3077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3078 do
3079 ac_preproc_ok=false
3080for ac_c_preproc_warn_flag in '' yes
8106cdd5 3081do
ad6254c5
AK
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3089/* confdefs.h. */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h. */
3094#ifdef __STDC__
3095# include <limits.h>
3096#else
3097# include <assert.h>
3098#endif
8a2fc586 3099 Syntax error
ad6254c5
AK
3100_ACEOF
3101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null; then
3109 if test -s conftest.err; then
3110 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3112 else
3113 ac_cpp_err=
3114 fi
3115else
3116 ac_cpp_err=yes
8106cdd5 3117fi
ad6254c5
AK
3118if test -z "$ac_cpp_err"; then
3119 :
3120else
3121 echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 # Broken: fails on valid input.
3125continue
3126fi
3127rm -f conftest.err conftest.$ac_ext
3128
3129 # OK, works on sane cases. Now check whether non-existent headers
3130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
3137#include <ac_nonexistent.h>
3138_ACEOF
3139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3150 else
3151 ac_cpp_err=
3152 fi
3153else
3154 ac_cpp_err=yes
8106cdd5 3155fi
ad6254c5
AK
3156if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3158continue
80992638 3159else
ad6254c5
AK
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 # Passes both tests.
3164ac_preproc_ok=:
3165break
795ca3e5 3166fi
ad6254c5
AK
3167rm -f conftest.err conftest.$ac_ext
3168
795ca3e5 3169done
ad6254c5
AK
3170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171rm -f conftest.err conftest.$ac_ext
3172if $ac_preproc_ok; then
3173 break
3174fi
795ca3e5 3175
ad6254c5
AK
3176 done
3177 ac_cv_prog_CPP=$CPP
795ca3e5 3178
ad6254c5
AK
3179fi
3180 CPP=$ac_cv_prog_CPP
795ca3e5 3181else
ad6254c5 3182 ac_cv_prog_CPP=$CPP
795ca3e5 3183fi
ad6254c5
AK
3184echo "$as_me:$LINENO: result: $CPP" >&5
3185echo "${ECHO_T}$CPP" >&6
3186ac_preproc_ok=false
3187for ac_c_preproc_warn_flag in '' yes
3188do
3189 # Use a header file that comes with gcc, so configuring glibc
3190 # with a fresh cross-compiler works.
3191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3192 # <limits.h> exists even on freestanding compilers.
3193 # On the NeXT, cc -E runs the code through the compiler's parser,
3194 # not just through cpp. "Syntax error" is here to catch this case.
3195 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201#ifdef __STDC__
3202# include <limits.h>
3203#else
3204# include <assert.h>
3205#endif
8a2fc586 3206 Syntax error
ad6254c5
AK
3207_ACEOF
3208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } >/dev/null; then
3216 if test -s conftest.err; then
3217 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3219 else
3220 ac_cpp_err=
3221 fi
3222else
3223 ac_cpp_err=yes
795ca3e5 3224fi
ad6254c5
AK
3225if test -z "$ac_cpp_err"; then
3226 :
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 # Broken: fails on valid input.
3232continue
3233fi
3234rm -f conftest.err conftest.$ac_ext
3235
3236 # OK, works on sane cases. Now check whether non-existent headers
3237 # can be detected and how.
3238 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#include <ac_nonexistent.h>
3245_ACEOF
3246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3257 else
3258 ac_cpp_err=
3259 fi
3260else
3261 ac_cpp_err=yes
3262fi
3263if test -z "$ac_cpp_err"; then
3264 # Broken: success on invalid input.
3265continue
3266else
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3269
ad6254c5
AK
3270 # Passes both tests.
3271ac_preproc_ok=:
3272break
795ca3e5 3273fi
ad6254c5 3274rm -f conftest.err conftest.$ac_ext
795ca3e5 3275
ad6254c5
AK
3276done
3277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3278rm -f conftest.err conftest.$ac_ext
3279if $ac_preproc_ok; then
3280 :
795ca3e5 3281else
ad6254c5
AK
3282 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3283See \`config.log' for more details." >&5
3284echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3285See \`config.log' for more details." >&2;}
3286 { (exit 1); exit 1; }; }
795ca3e5 3287fi
795ca3e5 3288
ad6254c5
AK
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296echo "$as_me:$LINENO: checking for egrep" >&5
3297echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298if test "${ac_cv_prog_egrep+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302 then ac_cv_prog_egrep='grep -E'
3303 else ac_cv_prog_egrep='egrep'
3304 fi
795ca3e5 3305fi
ad6254c5
AK
3306echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308 EGREP=$ac_cv_prog_egrep
80992638 3309
795ca3e5 3310
ad6254c5
AK
3311echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3312echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3313if test "${ac_cv_header_stdc+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3315else
ad6254c5 3316 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
80992638 3322#include <stdlib.h>
ad6254c5
AK
3323#include <stdarg.h>
3324#include <string.h>
3325#include <float.h>
3326
3327int
3328main ()
3329{
3330
3331 ;
3332 return 0;
3333}
3334_ACEOF
3335rm -f conftest.$ac_objext
3336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3337 (eval $ac_compile) 2>conftest.er1
ad6254c5 3338 ac_status=$?
8a2fc586
AK
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
ad6254c5
AK
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
8a2fc586
AK
3344 { ac_try='test -z "$ac_c_werror_flag"
3345 || test ! -s conftest.err'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353 (eval $ac_try) 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_header_stdc=yes
795ca3e5 3358else
ad6254c5
AK
3359 echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362ac_cv_header_stdc=no
795ca3e5 3363fi
8a2fc586 3364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3365
3366if test $ac_cv_header_stdc = yes; then
3367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3369/* confdefs.h. */
3370_ACEOF
3371cat confdefs.h >>conftest.$ac_ext
3372cat >>conftest.$ac_ext <<_ACEOF
3373/* end confdefs.h. */
3374#include <string.h>
8106cdd5 3375
ad6254c5
AK
3376_ACEOF
3377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 $EGREP "memchr" >/dev/null 2>&1; then
3379 :
3380else
3381 ac_cv_header_stdc=no
80992638 3382fi
ad6254c5 3383rm -f conftest*
795ca3e5
AK
3384
3385fi
3386
ad6254c5
AK
3387if test $ac_cv_header_stdc = yes; then
3388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3389 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
80992638 3395#include <stdlib.h>
ad6254c5
AK
3396
3397_ACEOF
80992638 3398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3399 $EGREP "free" >/dev/null 2>&1; then
3400 :
795ca3e5 3401else
ad6254c5 3402 ac_cv_header_stdc=no
795ca3e5 3403fi
80992638 3404rm -f conftest*
8106cdd5 3405
795ca3e5
AK
3406fi
3407
ad6254c5
AK
3408if test $ac_cv_header_stdc = yes; then
3409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3410 if test "$cross_compiling" = yes; then
3411 :
795ca3e5 3412else
ad6254c5 3413 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#include <ctype.h>
3420#if ((' ' & 0x0FF) == 0x020)
3421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3423#else
3424# define ISLOWER(c) \
8a2fc586
AK
3425 (('a' <= (c) && (c) <= 'i') \
3426 || ('j' <= (c) && (c) <= 'r') \
3427 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3429#endif
ad6254c5
AK
3430
3431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3432int
3433main ()
3434{
3435 int i;
3436 for (i = 0; i < 256; i++)
3437 if (XOR (islower (i), ISLOWER (i))
8a2fc586 3438 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3439 exit(2);
3440 exit (0);
3441}
3442_ACEOF
3443rm -f conftest$ac_exeext
3444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445 (eval $ac_link) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 :
795ca3e5 3455else
ad6254c5
AK
3456 echo "$as_me: program exited with status $ac_status" >&5
3457echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3459
ad6254c5
AK
3460( exit $ac_status )
3461ac_cv_header_stdc=no
80992638 3462fi
8a2fc586 3463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3464fi
3465fi
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469if test $ac_cv_header_stdc = yes; then
3470
3471cat >>confdefs.h <<\_ACEOF
3472#define STDC_HEADERS 1
3473_ACEOF
795ca3e5
AK
3474
3475fi
3476
ad6254c5
AK
3477echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3478echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3479if test "${ac_cv_header_sys_wait_h+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3481else
ad6254c5 3482 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3483/* confdefs.h. */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h. */
80992638 3488#include <sys/types.h>
ad6254c5
AK
3489#include <sys/wait.h>
3490#ifndef WEXITSTATUS
3491# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3492#endif
3493#ifndef WIFEXITED
3494# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3495#endif
3496
3497int
3498main ()
3499{
3500 int s;
3501 wait (&s);
3502 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3509 (eval $ac_compile) 2>conftest.er1
ad6254c5 3510 ac_status=$?
8a2fc586
AK
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
ad6254c5
AK
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
8a2fc586
AK
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_header_sys_wait_h=yes
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534ac_cv_header_sys_wait_h=no
8106cdd5 3535fi
8a2fc586 3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3537fi
ad6254c5
AK
3538echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3539echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3540if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3541
ad6254c5
AK
3542cat >>confdefs.h <<\_ACEOF
3543#define HAVE_SYS_WAIT_H 1
3544_ACEOF
795ca3e5
AK
3545
3546fi
3547
ad6254c5
AK
3548echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3549echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3550if test "${ac_cv_header_time+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3552else
ad6254c5 3553 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
795ca3e5
AK
3559#include <sys/types.h>
3560#include <sys/time.h>
3561#include <time.h>
ad6254c5
AK
3562
3563int
3564main ()
3565{
3566if ((struct tm *) 0)
3567return 0;
3568 ;
3569 return 0;
3570}
3571_ACEOF
3572rm -f conftest.$ac_objext
3573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3574 (eval $ac_compile) 2>conftest.er1
ad6254c5 3575 ac_status=$?
8a2fc586
AK
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
ad6254c5
AK
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
8a2fc586
AK
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
795ca3e5
AK
3594 ac_cv_header_time=yes
3595else
ad6254c5
AK
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599ac_cv_header_time=no
795ca3e5 3600fi
8a2fc586 3601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3602fi
ad6254c5
AK
3603echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3604echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3605if test $ac_cv_header_time = yes; then
ad6254c5
AK
3606
3607cat >>confdefs.h <<\_ACEOF
795ca3e5 3608#define TIME_WITH_SYS_TIME 1
ad6254c5 3609_ACEOF
b896caa1 3610
8106cdd5 3611fi
b896caa1 3612
b896caa1 3613
ad6254c5 3614# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3615
b896caa1
AK
3616
3617
795ca3e5 3618
8106cdd5 3619
80992638 3620
795ca3e5 3621
a38df97f 3622
80992638 3623
ad6254c5 3624for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 3625 inttypes.h stdint.h unistd.h
ad6254c5
AK
3626do
3627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3628echo "$as_me:$LINENO: checking for $ac_header" >&5
3629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3630if eval "test \"\${$as_ac_Header+set}\" = set"; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632else
3633 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639$ac_includes_default
3640
3641#include <$ac_header>
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3645 (eval $ac_compile) 2>conftest.er1
ad6254c5 3646 ac_status=$?
8a2fc586
AK
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
ad6254c5
AK
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
8a2fc586
AK
3652 { ac_try='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 eval "$as_ac_Header=yes"
3666else
3667 echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3669
ad6254c5
AK
3670eval "$as_ac_Header=no"
3671fi
8a2fc586 3672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 3673fi
ad6254c5
AK
3674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3676if test `eval echo '${'$as_ac_Header'}'` = yes; then
3677 cat >>confdefs.h <<_ACEOF
3678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3679_ACEOF
a38df97f 3680
80992638
AK
3681fi
3682
ad6254c5
AK
3683done
3684
7d1552c9 3685
7d1552c9 3686
80992638 3687
5a52dca9 3688
5a52dca9 3689
ad6254c5
AK
3690
3691
3692
3693
3694
3695for 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
3696do
3697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3698if eval "test \"\${$as_ac_Header+set}\" = set"; then
3699 echo "$as_me:$LINENO: checking for $ac_header" >&5
3700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3701if eval "test \"\${$as_ac_Header+set}\" = set"; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703fi
3704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3706else
3707 # Is the header compilable?
3708echo "$as_me:$LINENO: checking $ac_header usability" >&5
3709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3710cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3711/* confdefs.h. */
3712_ACEOF
3713cat confdefs.h >>conftest.$ac_ext
3714cat >>conftest.$ac_ext <<_ACEOF
3715/* end confdefs.h. */
3716$ac_includes_default
3717#include <$ac_header>
3718_ACEOF
3719rm -f conftest.$ac_objext
3720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3721 (eval $ac_compile) 2>conftest.er1
ad6254c5 3722 ac_status=$?
8a2fc586
AK
3723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
ad6254c5
AK
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
8a2fc586
AK
3728 { ac_try='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 ac_header_compiler=yes
3742else
3743 echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
3745
3746ac_header_compiler=no
3747fi
8a2fc586 3748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3750echo "${ECHO_T}$ac_header_compiler" >&6
3751
3752# Is the header present?
3753echo "$as_me:$LINENO: checking $ac_header presence" >&5
3754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3755cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3756/* confdefs.h. */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h. */
3761#include <$ac_header>
3762_ACEOF
3763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } >/dev/null; then
3771 if test -s conftest.err; then
3772 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3774 else
3775 ac_cpp_err=
3776 fi
3777else
3778 ac_cpp_err=yes
3779fi
3780if test -z "$ac_cpp_err"; then
3781 ac_header_preproc=yes
3782else
3783 echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786 ac_header_preproc=no
3787fi
3788rm -f conftest.err conftest.$ac_ext
3789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3790echo "${ECHO_T}$ac_header_preproc" >&6
3791
3792# So? What about this header?
8a2fc586
AK
3793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3794 yes:no: )
ad6254c5
AK
3795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3799 ac_header_preproc=yes
ad6254c5 3800 ;;
8a2fc586 3801 no:yes:* )
ad6254c5
AK
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3814 (
3815 cat <<\_ASBOX
8a2fc586
AK
3816## ------------------------------------------ ##
3817## Report this to the AC_PACKAGE_NAME lists. ##
3818## ------------------------------------------ ##
ad6254c5
AK
3819_ASBOX
3820 ) |
3821 sed "s/^/$as_me: WARNING: /" >&2
3822 ;;
3823esac
3824echo "$as_me:$LINENO: checking for $ac_header" >&5
3825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3826if eval "test \"\${$as_ac_Header+set}\" = set"; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
8a2fc586 3829 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 3830fi
ad6254c5
AK
3831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3833
3834fi
3835if test `eval echo '${'$as_ac_Header'}'` = yes; then
3836 cat >>confdefs.h <<_ACEOF
3837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3838_ACEOF
b896caa1 3839
d8ac0fbc 3840else
ad6254c5
AK
3841 { { echo "$as_me:$LINENO: error: bailing out" >&5
3842echo "$as_me: error: bailing out" >&2;}
3843 { (exit 1); exit 1; }; }
80992638
AK
3844fi
3845
ad6254c5 3846done
d8ac0fbc 3847
d8ac0fbc 3848
d8ac0fbc 3849
80992638 3850
d3c8211f 3851
d3c8211f 3852
d3c8211f 3853
80992638 3854
4922197a 3855
4922197a 3856
ad6254c5
AK
3857
3858
3859
3860for 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
3861do
3862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863if eval "test \"\${$as_ac_Header+set}\" = set"; then
3864 echo "$as_me:$LINENO: checking for $ac_header" >&5
3865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3866if eval "test \"\${$as_ac_Header+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868fi
3869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3871else
3872 # Is the header compilable?
3873echo "$as_me:$LINENO: checking $ac_header usability" >&5
3874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3875cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3876/* confdefs.h. */
3877_ACEOF
3878cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF
3880/* end confdefs.h. */
3881$ac_includes_default
3882#include <$ac_header>
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3886 (eval $ac_compile) 2>conftest.er1
ad6254c5 3887 ac_status=$?
8a2fc586
AK
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
ad6254c5
AK
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
8a2fc586
AK
3893 { ac_try='test -z "$ac_c_werror_flag"
3894 || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_header_compiler=yes
3907else
3908 echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911ac_header_compiler=no
3912fi
8a2fc586 3913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3914echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3915echo "${ECHO_T}$ac_header_compiler" >&6
3916
3917# Is the header present?
3918echo "$as_me:$LINENO: checking $ac_header presence" >&5
3919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3920cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
3926#include <$ac_header>
3927_ACEOF
3928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null; then
3936 if test -s conftest.err; then
3937 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3939 else
3940 ac_cpp_err=
3941 fi
3942else
3943 ac_cpp_err=yes
4922197a 3944fi
ad6254c5
AK
3945if test -z "$ac_cpp_err"; then
3946 ac_header_preproc=yes
3947else
3948 echo "$as_me: failed program was:" >&5
3949sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 ac_header_preproc=no
3952fi
3953rm -f conftest.err conftest.$ac_ext
3954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3955echo "${ECHO_T}$ac_header_preproc" >&6
3956
3957# So? What about this header?
8a2fc586
AK
3958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3959 yes:no: )
ad6254c5
AK
3960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3964 ac_header_preproc=yes
ad6254c5 3965 ;;
8a2fc586 3966 no:yes:* )
ad6254c5
AK
3967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3979 (
3980 cat <<\_ASBOX
8a2fc586
AK
3981## ------------------------------------------ ##
3982## Report this to the AC_PACKAGE_NAME lists. ##
3983## ------------------------------------------ ##
ad6254c5
AK
3984_ASBOX
3985 ) |
3986 sed "s/^/$as_me: WARNING: /" >&2
3987 ;;
3988esac
3989echo "$as_me:$LINENO: checking for $ac_header" >&5
3990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3991if eval "test \"\${$as_ac_Header+set}\" = set"; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
8a2fc586 3994 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
3995fi
3996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3998
3999fi
4000if test `eval echo '${'$as_ac_Header'}'` = yes; then
4001 cat >>confdefs.h <<_ACEOF
4002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4003_ACEOF
4922197a 4004
4922197a 4005else
ad6254c5
AK
4006 { { echo "$as_me:$LINENO: error: bailing out" >&5
4007echo "$as_me: error: bailing out" >&2;}
4008 { (exit 1); exit 1; }; }
80992638
AK
4009fi
4010
ad6254c5 4011done
4922197a 4012
4922197a 4013
ad6254c5
AK
4014case "$host_os" in
4015 linux*)
4922197a 4016
ad6254c5
AK
4017
4018
4019for ac_header in asm/byteorder.h linux/fs.h malloc.h
4020do
4021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022if eval "test \"\${$as_ac_Header+set}\" = set"; then
4023 echo "$as_me:$LINENO: checking for $ac_header" >&5
4024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4025if eval "test \"\${$as_ac_Header+set}\" = set"; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027fi
4028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 4030else
ad6254c5
AK
4031 # Is the header compilable?
4032echo "$as_me:$LINENO: checking $ac_header usability" >&5
4033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4034cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4035/* confdefs.h. */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h. */
4040$ac_includes_default
4041#include <$ac_header>
4042_ACEOF
4043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4045 (eval $ac_compile) 2>conftest.er1
ad6254c5 4046 ac_status=$?
8a2fc586
AK
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
ad6254c5
AK
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
8a2fc586
AK
4052 { ac_try='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_header_compiler=yes
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070ac_header_compiler=no
4071fi
8a2fc586 4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4074echo "${ECHO_T}$ac_header_compiler" >&6
4075
4076# Is the header present?
4077echo "$as_me:$LINENO: checking $ac_header presence" >&5
4078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4079cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4080/* confdefs.h. */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h. */
4085#include <$ac_header>
4086_ACEOF
4087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } >/dev/null; then
4095 if test -s conftest.err; then
4096 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4098 else
4099 ac_cpp_err=
4100 fi
4101else
4102 ac_cpp_err=yes
4103fi
4104if test -z "$ac_cpp_err"; then
4105 ac_header_preproc=yes
4106else
4107 echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 ac_header_preproc=no
4111fi
4112rm -f conftest.err conftest.$ac_ext
4113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4114echo "${ECHO_T}$ac_header_preproc" >&6
4115
4116# So? What about this header?
8a2fc586
AK
4117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4118 yes:no: )
ad6254c5
AK
4119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4123 ac_header_preproc=yes
ad6254c5 4124 ;;
8a2fc586 4125 no:yes:* )
ad6254c5
AK
4126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4138 (
4139 cat <<\_ASBOX
8a2fc586
AK
4140## ------------------------------------------ ##
4141## Report this to the AC_PACKAGE_NAME lists. ##
4142## ------------------------------------------ ##
ad6254c5
AK
4143_ASBOX
4144 ) |
4145 sed "s/^/$as_me: WARNING: /" >&2
4146 ;;
4147esac
4148echo "$as_me:$LINENO: checking for $ac_header" >&5
4149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4150if eval "test \"\${$as_ac_Header+set}\" = set"; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
8a2fc586 4153 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4154fi
ad6254c5
AK
4155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 4157
ad6254c5
AK
4158fi
4159if test `eval echo '${'$as_ac_Header'}'` = yes; then
4160 cat >>confdefs.h <<_ACEOF
4161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4162_ACEOF
795ca3e5 4163
795ca3e5 4164else
ad6254c5
AK
4165 { { echo "$as_me:$LINENO: error: bailing out" >&5
4166echo "$as_me: error: bailing out" >&2;}
4167 { (exit 1); exit 1; }; }
80992638
AK
4168fi
4169
ad6254c5
AK
4170done
4171 ;;
4172 darwin*)
4173
795ca3e5 4174
ad6254c5
AK
4175for ac_header in machine/endian.h sys/disk.h
4176do
4177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183fi
4184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4186else
4187 # Is the header compilable?
4188echo "$as_me:$LINENO: checking $ac_header usability" >&5
4189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4190cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196$ac_includes_default
4197#include <$ac_header>
4198_ACEOF
4199rm -f conftest.$ac_objext
4200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4201 (eval $ac_compile) 2>conftest.er1
ad6254c5 4202 ac_status=$?
8a2fc586
AK
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
ad6254c5
AK
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
8a2fc586
AK
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler=yes
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226ac_header_compiler=no
4227fi
8a2fc586 4228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4230echo "${ECHO_T}$ac_header_compiler" >&6
4231
4232# Is the header present?
4233echo "$as_me:$LINENO: checking $ac_header presence" >&5
4234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4235cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h. */
4241#include <$ac_header>
4242_ACEOF
4243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4254 else
4255 ac_cpp_err=
4256 fi
4257else
4258 ac_cpp_err=yes
4259fi
4260if test -z "$ac_cpp_err"; then
4261 ac_header_preproc=yes
4262else
4263 echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_header_preproc=no
4267fi
4268rm -f conftest.err conftest.$ac_ext
4269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4270echo "${ECHO_T}$ac_header_preproc" >&6
4271
4272# So? What about this header?
8a2fc586
AK
4273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4274 yes:no: )
ad6254c5
AK
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4279 ac_header_preproc=yes
ad6254c5 4280 ;;
8a2fc586 4281 no:yes:* )
ad6254c5
AK
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4294 (
4295 cat <<\_ASBOX
8a2fc586
AK
4296## ------------------------------------------ ##
4297## Report this to the AC_PACKAGE_NAME lists. ##
4298## ------------------------------------------ ##
ad6254c5
AK
4299_ASBOX
4300 ) |
4301 sed "s/^/$as_me: WARNING: /" >&2
4302 ;;
4303esac
4304echo "$as_me:$LINENO: checking for $ac_header" >&5
4305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
8a2fc586 4309 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4310fi
ad6254c5
AK
4311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4313
ad6254c5
AK
4314fi
4315if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318_ACEOF
4319
4320else
4321 { { echo "$as_me:$LINENO: error: bailing out" >&5
4322echo "$as_me: error: bailing out" >&2;}
4323 { (exit 1); exit 1; }; }
80992638
AK
4324fi
4325
ad6254c5
AK
4326done
4327 ;;
4328esac
d3c8211f 4329
80992638 4330################################################################################
ad6254c5
AK
4331echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4332echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4333if test "${ac_cv_c_const+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4335else
ad6254c5 4336 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346/* FIXME: Include the comments suggested by Paul. */
4347#ifndef __cplusplus
4348 /* Ultrix mips cc rejects this. */
4349 typedef int charset[2];
4350 const charset x;
4351 /* SunOS 4.1.1 cc rejects this. */
4352 char const *const *ccp;
4353 char **p;
4354 /* NEC SVR4.0.2 mips cc rejects this. */
4355 struct point {int x, y;};
4356 static struct point const zero = {0,0};
4357 /* AIX XL C 1.02.0.0 rejects this.
4358 It does not let you subtract one const X* pointer from another in
4359 an arm of an if-expression whose if-part is not a constant
4360 expression */
4361 const char *g = "string";
4362 ccp = &g + (g ? g-g : 0);
4363 /* HPUX 7.0 cc rejects these. */
4364 ++ccp;
4365 p = (char**) ccp;
4366 ccp = (char const *const *) p;
4367 { /* SCO 3.2v4 cc rejects this. */
4368 char *t;
4369 char const *s = 0 ? (char *) 0 : (char const *) 0;
4370
4371 *t++ = 0;
4372 }
4373 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4374 int x[] = {25, 17};
4375 const int *foo = &x[0];
4376 ++foo;
4377 }
4378 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4379 typedef const int *iptr;
4380 iptr p = 0;
4381 ++p;
4382 }
4383 { /* AIX XL C 1.02.0.0 rejects this saying
4384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4385 struct s { int j; const int *ap[3]; };
4386 struct s *b; b->j = 5;
4387 }
4388 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4389 const int foo = 10;
4390 }
4391#endif
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397rm -f conftest.$ac_objext
4398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4399 (eval $ac_compile) 2>conftest.er1
ad6254c5 4400 ac_status=$?
8a2fc586
AK
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
ad6254c5
AK
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
8a2fc586
AK
4406 { ac_try='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
ad6254c5
AK
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8a2fc586
AK
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
ad6254c5
AK
4419 ac_cv_c_const=yes
4420else
4421 echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424ac_cv_c_const=no
4425fi
8a2fc586 4426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4427fi
ad6254c5
AK
4428echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4429echo "${ECHO_T}$ac_cv_c_const" >&6
4430if test $ac_cv_c_const = no; then
80992638 4431
ad6254c5
AK
4432cat >>confdefs.h <<\_ACEOF
4433#define const
4434_ACEOF
80992638 4435
d3c8211f 4436fi
d3c8211f 4437
ad6254c5
AK
4438echo "$as_me:$LINENO: checking for inline" >&5
4439echo $ECHO_N "checking for inline... $ECHO_C" >&6
4440if test "${ac_cv_c_inline+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4442else
ad6254c5
AK
4443 ac_cv_c_inline=no
4444for ac_kw in inline __inline__ __inline; do
4445 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451#ifndef __cplusplus
4452typedef int foo_t;
4453static $ac_kw foo_t static_foo () {return 0; }
4454$ac_kw foo_t foo () {return 0; }
4455#endif
80992638 4456
ad6254c5
AK
4457_ACEOF
4458rm -f conftest.$ac_objext
4459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4460 (eval $ac_compile) 2>conftest.er1
ad6254c5 4461 ac_status=$?
8a2fc586
AK
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
ad6254c5
AK
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
8a2fc586
AK
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 ac_cv_c_inline=$ac_kw; break
4481else
4482 echo "$as_me: failed program was:" >&5
4483sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4484
8ce0cbda 4485fi
8a2fc586 4486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4487done
8ce0cbda 4488
8ce0cbda 4489fi
ad6254c5
AK
4490echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4491echo "${ECHO_T}$ac_cv_c_inline" >&6
8a2fc586
AK
4492
4493
ad6254c5
AK
4494case $ac_cv_c_inline in
4495 inline | yes) ;;
8a2fc586
AK
4496 *)
4497 case $ac_cv_c_inline in
4498 no) ac_val=;;
4499 *) ac_val=$ac_cv_c_inline;;
4500 esac
4501 cat >>confdefs.h <<_ACEOF
4502#ifndef __cplusplus
4503#define inline $ac_val
4504#endif
c1c065a3 4505_ACEOF
8a2fc586 4506 ;;
ad6254c5 4507esac
8ce0cbda 4508
ad6254c5
AK
4509echo "$as_me:$LINENO: checking for off_t" >&5
4510echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4511if test "${ac_cv_type_off_t+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520$ac_includes_default
4521int
4522main ()
4523{
4524if ((off_t *) 0)
4525 return 0;
4526if (sizeof (off_t))
4527 return 0;
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532rm -f conftest.$ac_objext
4533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4534 (eval $ac_compile) 2>conftest.er1
ad6254c5 4535 ac_status=$?
8a2fc586
AK
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
ad6254c5
AK
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
8a2fc586
AK
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 ac_cv_type_off_t=yes
4555else
4556 echo "$as_me: failed program was:" >&5
4557sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4558
ad6254c5 4559ac_cv_type_off_t=no
80992638 4560fi
8a2fc586 4561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4562fi
4563echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4564echo "${ECHO_T}$ac_cv_type_off_t" >&6
4565if test $ac_cv_type_off_t = yes; then
4566 :
4567else
80992638 4568
ad6254c5
AK
4569cat >>confdefs.h <<_ACEOF
4570#define off_t long
4571_ACEOF
199e490e 4572
b896caa1
AK
4573fi
4574
ad6254c5
AK
4575echo "$as_me:$LINENO: checking for pid_t" >&5
4576echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4577if test "${ac_cv_type_pid_t+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4581/* confdefs.h. */
4582_ACEOF
4583cat confdefs.h >>conftest.$ac_ext
4584cat >>conftest.$ac_ext <<_ACEOF
4585/* end confdefs.h. */
4586$ac_includes_default
4587int
4588main ()
4589{
4590if ((pid_t *) 0)
4591 return 0;
4592if (sizeof (pid_t))
4593 return 0;
4594 ;
4595 return 0;
4596}
4597_ACEOF
4598rm -f conftest.$ac_objext
4599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4600 (eval $ac_compile) 2>conftest.er1
ad6254c5 4601 ac_status=$?
8a2fc586
AK
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
ad6254c5
AK
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
8a2fc586
AK
4607 { ac_try='test -z "$ac_c_werror_flag"
4608 || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_type_pid_t=yes
4621else
4622 echo "$as_me: failed program was:" >&5
4623sed 's/^/| /' conftest.$ac_ext >&5
4624
4625ac_cv_type_pid_t=no
4626fi
8a2fc586 4627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4628fi
ad6254c5
AK
4629echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4630echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4631if test $ac_cv_type_pid_t = yes; then
4632 :
4633else
80992638 4634
ad6254c5
AK
4635cat >>confdefs.h <<_ACEOF
4636#define pid_t int
4637_ACEOF
2dc95e1c 4638
2dc95e1c
AK
4639fi
4640
ad6254c5
AK
4641echo "$as_me:$LINENO: checking for size_t" >&5
4642echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4643if test "${ac_cv_type_size_t+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4645else
ad6254c5 4646 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652$ac_includes_default
4653int
4654main ()
4655{
4656if ((size_t *) 0)
4657 return 0;
4658if (sizeof (size_t))
4659 return 0;
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4666 (eval $ac_compile) 2>conftest.er1
ad6254c5 4667 ac_status=$?
8a2fc586
AK
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
ad6254c5
AK
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
8a2fc586
AK
4673 { ac_try='test -z "$ac_c_werror_flag"
4674 || test ! -s conftest.err'
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_type_size_t=yes
4687else
4688 echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691ac_cv_type_size_t=no
80992638 4692fi
8a2fc586 4693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4694fi
4695echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4696echo "${ECHO_T}$ac_cv_type_size_t" >&6
4697if test $ac_cv_type_size_t = yes; then
4698 :
4699else
80992638 4700
ad6254c5
AK
4701cat >>confdefs.h <<_ACEOF
4702#define size_t unsigned
4703_ACEOF
8106cdd5 4704
8106cdd5
AK
4705fi
4706
ad6254c5
AK
4707echo "$as_me:$LINENO: checking for mode_t" >&5
4708echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4709if test "${ac_cv_type_mode_t+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
4718$ac_includes_default
4719int
4720main ()
4721{
4722if ((mode_t *) 0)
4723 return 0;
4724if (sizeof (mode_t))
4725 return 0;
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730rm -f conftest.$ac_objext
4731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4732 (eval $ac_compile) 2>conftest.er1
ad6254c5 4733 ac_status=$?
8a2fc586
AK
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
ad6254c5
AK
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
8a2fc586
AK
4739 { ac_try='test -z "$ac_c_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_type_mode_t=yes
4753else
4754 echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757ac_cv_type_mode_t=no
80992638 4758fi
8a2fc586 4759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4760fi
4761echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4762echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4763if test $ac_cv_type_mode_t = yes; then
4764 :
4765else
80992638 4766
ad6254c5
AK
4767cat >>confdefs.h <<_ACEOF
4768#define mode_t int
4769_ACEOF
4770
4771fi
4772
4773
4774echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4775echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4776if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4780/* confdefs.h. */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h. */
4785$ac_includes_default
4786int
4787main ()
4788{
4789static struct stat ac_aggr;
4790if (ac_aggr.st_rdev)
4791return 0;
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4798 (eval $ac_compile) 2>conftest.er1
ad6254c5 4799 ac_status=$?
8a2fc586
AK
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
ad6254c5
AK
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
8a2fc586
AK
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_cv_member_struct_stat_st_rdev=yes
4819else
4820 echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
4829$ac_includes_default
4830int
4831main ()
4832{
4833static struct stat ac_aggr;
4834if (sizeof ac_aggr.st_rdev)
4835return 0;
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext
4841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4842 (eval $ac_compile) 2>conftest.er1
ad6254c5 4843 ac_status=$?
8a2fc586
AK
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
ad6254c5
AK
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
8a2fc586
AK
4849 { ac_try='test -z "$ac_c_werror_flag"
4850 || test ! -s conftest.err'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 (eval $ac_try) 2>&5
4853 ac_status=$?
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; } &&
4856 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 ac_cv_member_struct_stat_st_rdev=yes
4863else
4864 echo "$as_me: failed program was:" >&5
4865sed 's/^/| /' conftest.$ac_ext >&5
4866
4867ac_cv_member_struct_stat_st_rdev=no
4868fi
8a2fc586 4869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4870fi
8a2fc586 4871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4872fi
4873echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4874echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4875if test $ac_cv_member_struct_stat_st_rdev = yes; then
4876
4877cat >>confdefs.h <<_ACEOF
4878#define HAVE_STRUCT_STAT_ST_RDEV 1
4879_ACEOF
4880
4881
4882cat >>confdefs.h <<\_ACEOF
4883#define HAVE_ST_RDEV 1
4884_ACEOF
4885
4886fi
4887
4888
4889echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4890echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4891if test "${ac_cv_struct_tm+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4895/* confdefs.h. */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h. */
4900#include <sys/types.h>
4901#include <time.h>
4902
4903int
4904main ()
4905{
4906struct tm *tp; tp->tm_sec;
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911rm -f conftest.$ac_objext
4912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4913 (eval $ac_compile) 2>conftest.er1
ad6254c5 4914 ac_status=$?
8a2fc586
AK
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
ad6254c5
AK
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
8a2fc586
AK
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_cv_struct_tm=time.h
4934else
4935 echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938ac_cv_struct_tm=sys/time.h
4939fi
8a2fc586 4940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4941fi
4942echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4943echo "${ECHO_T}$ac_cv_struct_tm" >&6
4944if test $ac_cv_struct_tm = sys/time.h; then
4945
4946cat >>confdefs.h <<\_ACEOF
4947#define TM_IN_SYS_TIME 1
4948_ACEOF
4949
4950fi
809fae91 4951
795ca3e5 4952
80992638 4953################################################################################
ad6254c5
AK
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4969do
4970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4971echo "$as_me:$LINENO: checking for $ac_func" >&5
4972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4973if eval "test \"\${$as_ac_var+set}\" = set"; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4975else
ad6254c5 4976 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
8a2fc586
AK
4982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4984#define $ac_func innocuous_$ac_func
4985
ad6254c5
AK
4986/* System header to define __stub macros and hopefully few prototypes,
4987 which can conflict with char $ac_func (); below.
4988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 <limits.h> exists even on freestanding compilers. */
8a2fc586 4990
ad6254c5
AK
4991#ifdef __STDC__
4992# include <limits.h>
4993#else
4994# include <assert.h>
4995#endif
8a2fc586
AK
4996
4997#undef $ac_func
4998
ad6254c5
AK
4999/* Override any gcc2 internal prototype to avoid an error. */
5000#ifdef __cplusplus
5001extern "C"
5002{
5003#endif
5004/* We use char because int might match the return type of a gcc2
5005 builtin and then its argument prototype would still apply. */
5006char $ac_func ();
5007/* The GNU C library defines this for functions which it implements
5008 to always fail with ENOSYS. Some functions are actually named
5009 something starting with __ and the normal name is an alias. */
5010#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5011choke me
5012#else
5013char (*f) () = $ac_func;
5014#endif
5015#ifdef __cplusplus
5016}
5017#endif
5018
5019int
5020main ()
5021{
5022return f != $ac_func;
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext conftest$ac_exeext
5028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5029 (eval $ac_link) 2>conftest.er1
ad6254c5 5030 ac_status=$?
8a2fc586
AK
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
ad6254c5
AK
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
8a2fc586
AK
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 eval "$as_ac_var=yes"
795ca3e5 5050else
ad6254c5
AK
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054eval "$as_ac_var=no"
795ca3e5 5055fi
8a2fc586
AK
5056rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5058fi
5059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5060echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5061if test `eval echo '${'$as_ac_var'}'` = yes; then
5062 cat >>confdefs.h <<_ACEOF
5063#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5064_ACEOF
5065
5066else
5067 { { echo "$as_me:$LINENO: error: bailing out" >&5
5068echo "$as_me: error: bailing out" >&2;}
5069 { (exit 1); exit 1; }; }
5070fi
5071done
795ca3e5 5072
ad6254c5
AK
5073# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5074# for constant arguments. Useless!
5075echo "$as_me:$LINENO: checking for working alloca.h" >&5
5076echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5077if test "${ac_cv_working_alloca_h+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */
5086#include <alloca.h>
5087int
5088main ()
5089{
5090char *p = (char *) alloca (2 * sizeof (int));
5091 ;
5092 return 0;
5093}
5094_ACEOF
5095rm -f conftest.$ac_objext conftest$ac_exeext
5096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5097 (eval $ac_link) 2>conftest.er1
ad6254c5 5098 ac_status=$?
8a2fc586
AK
5099 grep -v '^ *+' conftest.er1 >conftest.err
5100 rm -f conftest.er1
5101 cat conftest.err >&5
ad6254c5
AK
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
8a2fc586
AK
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_working_alloca_h=yes
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5121
ad6254c5
AK
5122ac_cv_working_alloca_h=no
5123fi
8a2fc586
AK
5124rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5126fi
5127echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5128echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5129if test $ac_cv_working_alloca_h = yes; then
5130
5131cat >>confdefs.h <<\_ACEOF
5132#define HAVE_ALLOCA_H 1
5133_ACEOF
5134
5135fi
5136
5137echo "$as_me:$LINENO: checking for alloca" >&5
5138echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5139if test "${ac_cv_func_alloca_works+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5143/* confdefs.h. */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */
5148#ifdef __GNUC__
5149# define alloca __builtin_alloca
5150#else
5151# ifdef _MSC_VER
5152# include <malloc.h>
5153# define alloca _alloca
5154# else
5155# if HAVE_ALLOCA_H
5156# include <alloca.h>
5157# else
5158# ifdef _AIX
5159 #pragma alloca
5160# else
5161# ifndef alloca /* predefined by HP cc +Olibcalls */
5162char *alloca ();
5163# endif
5164# endif
5165# endif
5166# endif
5167#endif
5168
5169int
5170main ()
5171{
5172char *p = (char *) alloca (1);
5173 ;
5174 return 0;
5175}
5176_ACEOF
5177rm -f conftest.$ac_objext conftest$ac_exeext
5178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5179 (eval $ac_link) 2>conftest.er1
ad6254c5 5180 ac_status=$?
8a2fc586
AK
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
ad6254c5
AK
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
8a2fc586
AK
5186 { ac_try='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_func_alloca_works=yes
5200else
5201 echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204ac_cv_func_alloca_works=no
5205fi
8a2fc586
AK
5206rm -f conftest.err conftest.$ac_objext \
5207 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5208fi
5209echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5210echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5211
5212if test $ac_cv_func_alloca_works = yes; then
5213
5214cat >>confdefs.h <<\_ACEOF
5215#define HAVE_ALLOCA 1
5216_ACEOF
5217
5218else
5219 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5220# that cause trouble. Some versions do not even contain alloca or
5221# contain a buggy version. If you still want to use their alloca,
5222# use ar to extract alloca.o from them instead of compiling alloca.c.
5223
5224ALLOCA=alloca.$ac_objext
5225
5226cat >>confdefs.h <<\_ACEOF
5227#define C_ALLOCA 1
5228_ACEOF
5229
5230
5231echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5232echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5233if test "${ac_cv_os_cray+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
5242#if defined(CRAY) && ! defined(CRAY2)
5243webecray
5244#else
5245wenotbecray
5246#endif
5247
5248_ACEOF
795ca3e5 5249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5250 $EGREP "webecray" >/dev/null 2>&1; then
5251 ac_cv_os_cray=yes
5252else
5253 ac_cv_os_cray=no
795ca3e5
AK
5254fi
5255rm -f conftest*
5256
795ca3e5 5257fi
ad6254c5
AK
5258echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5259echo "${ECHO_T}$ac_cv_os_cray" >&6
5260if test $ac_cv_os_cray = yes; then
5261 for ac_func in _getb67 GETB67 getb67; do
5262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5263echo "$as_me:$LINENO: checking for $ac_func" >&5
5264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5265if eval "test \"\${$as_ac_var+set}\" = set"; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
8a2fc586
AK
5274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5276#define $ac_func innocuous_$ac_func
5277
ad6254c5
AK
5278/* System header to define __stub macros and hopefully few prototypes,
5279 which can conflict with char $ac_func (); below.
5280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5281 <limits.h> exists even on freestanding compilers. */
8a2fc586 5282
ad6254c5
AK
5283#ifdef __STDC__
5284# include <limits.h>
5285#else
5286# include <assert.h>
5287#endif
8a2fc586
AK
5288
5289#undef $ac_func
5290
ad6254c5
AK
5291/* Override any gcc2 internal prototype to avoid an error. */
5292#ifdef __cplusplus
5293extern "C"
5294{
5295#endif
5296/* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5298char $ac_func ();
5299/* The GNU C library defines this for functions which it implements
5300 to always fail with ENOSYS. Some functions are actually named
5301 something starting with __ and the normal name is an alias. */
5302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5303choke me
5304#else
5305char (*f) () = $ac_func;
5306#endif
5307#ifdef __cplusplus
5308}
5309#endif
5310
5311int
5312main ()
5313{
5314return f != $ac_func;
5315 ;
5316 return 0;
5317}
5318_ACEOF
5319rm -f conftest.$ac_objext conftest$ac_exeext
5320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5321 (eval $ac_link) 2>conftest.er1
ad6254c5 5322 ac_status=$?
8a2fc586
AK
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
ad6254c5
AK
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
8a2fc586
AK
5328 { ac_try='test -z "$ac_c_werror_flag"
5329 || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 (eval $ac_try) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5341 eval "$as_ac_var=yes"
5342else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346eval "$as_ac_var=no"
5347fi
8a2fc586
AK
5348rm -f conftest.err conftest.$ac_objext \
5349 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5350fi
5351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5353if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5354
ad6254c5
AK
5355cat >>confdefs.h <<_ACEOF
5356#define CRAY_STACKSEG_END $ac_func
5357_ACEOF
5358
5359 break
5360fi
5361
5362 done
5363fi
5364
5365echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5366echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5367if test "${ac_cv_c_stack_direction+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370 if test "$cross_compiling" = yes; then
5371 ac_cv_c_stack_direction=0
5372else
5373 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
5379int
5380find_stack_direction ()
5381{
5382 static char *addr = 0;
5383 auto char dummy;
5384 if (addr == 0)
5385 {
5386 addr = &dummy;
5387 return find_stack_direction ();
5388 }
5389 else
5390 return (&dummy > addr) ? 1 : -1;
5391}
5392
5393int
5394main ()
5395{
5396 exit (find_stack_direction () < 0);
5397}
5398_ACEOF
5399rm -f conftest$ac_exeext
5400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401 (eval $ac_link) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_c_stack_direction=1
5411else
5412 echo "$as_me: program exited with status $ac_status" >&5
5413echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416( exit $ac_status )
5417ac_cv_c_stack_direction=-1
5418fi
8a2fc586 5419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5420fi
5421fi
5422echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5423echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5424
5425cat >>confdefs.h <<_ACEOF
5426#define STACK_DIRECTION $ac_cv_c_stack_direction
5427_ACEOF
5428
5429
5430fi
5431
5432echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5433echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5434if test "${ac_cv_func_closedir_void+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437 if test "$cross_compiling" = yes; then
5438 ac_cv_func_closedir_void=yes
5439else
5440 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5441/* confdefs.h. */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h. */
5446$ac_includes_default
5447#include <$ac_header_dirent>
5448#ifndef __cplusplus
5449int closedir ();
5450#endif
5451
5452int
5453main ()
5454{
5455exit (closedir (opendir (".")) != 0);
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460rm -f conftest$ac_exeext
5461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_func_closedir_void=no
5472else
5473 echo "$as_me: program exited with status $ac_status" >&5
5474echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477( exit $ac_status )
5478ac_cv_func_closedir_void=yes
5479fi
8a2fc586 5480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5481fi
5482fi
5483echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5484echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5485if test $ac_cv_func_closedir_void = yes; then
5486
5487cat >>confdefs.h <<\_ACEOF
5488#define CLOSEDIR_VOID 1
5489_ACEOF
5490
5491fi
5492
5493
5494
5495for ac_header in unistd.h vfork.h
5496do
5497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5498if eval "test \"\${$as_ac_Header+set}\" = set"; then
5499 echo "$as_me:$LINENO: checking for $ac_header" >&5
5500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5501if eval "test \"\${$as_ac_Header+set}\" = set"; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503fi
5504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5506else
5507 # Is the header compilable?
5508echo "$as_me:$LINENO: checking $ac_header usability" >&5
5509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5510cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5511/* confdefs.h. */
5512_ACEOF
5513cat confdefs.h >>conftest.$ac_ext
5514cat >>conftest.$ac_ext <<_ACEOF
5515/* end confdefs.h. */
5516$ac_includes_default
5517#include <$ac_header>
5518_ACEOF
5519rm -f conftest.$ac_objext
5520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 5521 (eval $ac_compile) 2>conftest.er1
ad6254c5 5522 ac_status=$?
8a2fc586
AK
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
ad6254c5
AK
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
8a2fc586
AK
5528 { ac_try='test -z "$ac_c_werror_flag"
5529 || test ! -s conftest.err'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 (eval $ac_try) 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; } &&
5535 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 (eval $ac_try) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5541 ac_header_compiler=yes
5542else
5543 echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546ac_header_compiler=no
5547fi
8a2fc586 5548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5550echo "${ECHO_T}$ac_header_compiler" >&6
5551
5552# Is the header present?
5553echo "$as_me:$LINENO: checking $ac_header presence" >&5
5554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5555cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h. */
5561#include <$ac_header>
5562_ACEOF
5563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } >/dev/null; then
5571 if test -s conftest.err; then
5572 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 5573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
5574 else
5575 ac_cpp_err=
795ca3e5 5576 fi
ad6254c5
AK
5577else
5578 ac_cpp_err=yes
5579fi
5580if test -z "$ac_cpp_err"; then
5581 ac_header_preproc=yes
5582else
5583 echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 ac_header_preproc=no
5587fi
5588rm -f conftest.err conftest.$ac_ext
5589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5590echo "${ECHO_T}$ac_header_preproc" >&6
5591
5592# So? What about this header?
8a2fc586
AK
5593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5594 yes:no: )
ad6254c5
AK
5595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
5597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5599 ac_header_preproc=yes
ad6254c5 5600 ;;
8a2fc586 5601 no:yes:* )
ad6254c5
AK
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
5610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
5614 (
5615 cat <<\_ASBOX
8a2fc586
AK
5616## ------------------------------------------ ##
5617## Report this to the AC_PACKAGE_NAME lists. ##
5618## ------------------------------------------ ##
ad6254c5
AK
5619_ASBOX
5620 ) |
5621 sed "s/^/$as_me: WARNING: /" >&2
5622 ;;
5623esac
5624echo "$as_me:$LINENO: checking for $ac_header" >&5
5625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5626if eval "test \"\${$as_ac_Header+set}\" = set"; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
8a2fc586 5629 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
5630fi
5631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5633
795ca3e5 5634fi
ad6254c5
AK
5635if test `eval echo '${'$as_ac_Header'}'` = yes; then
5636 cat >>confdefs.h <<_ACEOF
5637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638_ACEOF
5639
5640fi
5641
5642done
795ca3e5 5643
ad6254c5
AK
5644
5645
5646for ac_func in fork vfork
5647do
5648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5649echo "$as_me:$LINENO: checking for $ac_func" >&5
5650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5651if eval "test \"\${$as_ac_var+set}\" = set"; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5653else
ad6254c5 5654 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
8a2fc586
AK
5660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5662#define $ac_func innocuous_$ac_func
5663
ad6254c5
AK
5664/* System header to define __stub macros and hopefully few prototypes,
5665 which can conflict with char $ac_func (); below.
5666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5667 <limits.h> exists even on freestanding compilers. */
8a2fc586 5668
ad6254c5
AK
5669#ifdef __STDC__
5670# include <limits.h>
5671#else
5672# include <assert.h>
795ca3e5 5673#endif
8a2fc586
AK
5674
5675#undef $ac_func
5676
ad6254c5 5677/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5678#ifdef __cplusplus
ad6254c5
AK
5679extern "C"
5680{
5681#endif
5682/* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5684char $ac_func ();
5685/* The GNU C library defines this for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5689choke me
795ca3e5 5690#else
ad6254c5
AK
5691char (*f) () = $ac_func;
5692#endif
5693#ifdef __cplusplus
5694}
795ca3e5
AK
5695#endif
5696
ad6254c5
AK
5697int
5698main ()
5699{
5700return f != $ac_func;
5701 ;
5702 return 0;
5703}
5704_ACEOF
5705rm -f conftest.$ac_objext conftest$ac_exeext
5706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5707 (eval $ac_link) 2>conftest.er1
ad6254c5 5708 ac_status=$?
8a2fc586
AK
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
ad6254c5
AK
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
8a2fc586
AK
5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 eval "$as_ac_var=yes"
795ca3e5 5728else
ad6254c5
AK
5729 echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732eval "$as_ac_var=no"
795ca3e5 5733fi
8a2fc586
AK
5734rm -f conftest.err conftest.$ac_objext \
5735 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5736fi
5737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5739if test `eval echo '${'$as_ac_var'}'` = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5742_ACEOF
5743
5744fi
5745done
5746
5747if test "x$ac_cv_func_fork" = xyes; then
5748 echo "$as_me:$LINENO: checking for working fork" >&5
5749echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5750if test "${ac_cv_func_fork_works+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 if test "$cross_compiling" = yes; then
5754 ac_cv_func_fork_works=cross
5755else
5756 cat >conftest.$ac_ext <<_ACEOF
5757/* By Ruediger Kuhlmann. */
5758 #include <sys/types.h>
5759 #if HAVE_UNISTD_H
5760 # include <unistd.h>
5761 #endif
5762 /* Some systems only have a dummy stub for fork() */
5763 int main ()
5764 {
8a2fc586
AK
5765 if (fork() < 0)
5766 exit (1);
5767 exit (0);
ad6254c5
AK
5768 }
5769_ACEOF
5770rm -f conftest$ac_exeext
5771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5772 (eval $ac_link) 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_func_fork_works=yes
5782else
5783 echo "$as_me: program exited with status $ac_status" >&5
5784echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787( exit $ac_status )
5788ac_cv_func_fork_works=no
5789fi
8a2fc586 5790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5791fi
5792fi
5793echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5794echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5795
5796else
5797 ac_cv_func_fork_works=$ac_cv_func_fork
5798fi
5799if test "x$ac_cv_func_fork_works" = xcross; then
5800 case $host in
5801 *-*-amigaos* | *-*-msdosdjgpp*)
5802 # Override, as these systems have only a dummy fork() stub
5803 ac_cv_func_fork_works=no
5804 ;;
5805 *)
5806 ac_cv_func_fork_works=yes
5807 ;;
5808 esac
5809 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5810echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5811fi
5812ac_cv_func_vfork_works=$ac_cv_func_vfork
5813if test "x$ac_cv_func_vfork" = xyes; then
5814 echo "$as_me:$LINENO: checking for working vfork" >&5
5815echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5816if test "${ac_cv_func_vfork_works+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819 if test "$cross_compiling" = yes; then
5820 ac_cv_func_vfork_works=cross
5821else
5822 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
5828/* Thanks to Paul Eggert for this test. */
5829#include <stdio.h>
5830#include <stdlib.h>
5831#include <sys/types.h>
5832#include <sys/stat.h>
5833#include <sys/wait.h>
5834#if HAVE_UNISTD_H
5835# include <unistd.h>
5836#endif
5837#if HAVE_VFORK_H
5838# include <vfork.h>
5839#endif
5840/* On some sparc systems, changes by the child to local and incoming
5841 argument registers are propagated back to the parent. The compiler
5842 is told about this with #include <vfork.h>, but some compilers
5843 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5844 static variable whose address is put into a register that is
5845 clobbered by the vfork. */
5846static void
5847#ifdef __cplusplus
5848sparc_address_test (int arg)
5849# else
5850sparc_address_test (arg) int arg;
5851#endif
5852{
5853 static pid_t child;
5854 if (!child) {
5855 child = vfork ();
5856 if (child < 0) {
5857 perror ("vfork");
5858 _exit(2);
5859 }
5860 if (!child) {
5861 arg = getpid();
5862 write(-1, "", 0);
5863 _exit (arg);
5864 }
5865 }
5866}
5867
5868int
5869main ()
5870{
5871 pid_t parent = getpid ();
5872 pid_t child;
5873
5874 sparc_address_test (0);
5875
5876 child = vfork ();
5877
5878 if (child == 0) {
5879 /* Here is another test for sparc vfork register problems. This
5880 test uses lots of local variables, at least as many local
5881 variables as main has allocated so far including compiler
5882 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5883 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5884 reuse the register of parent for one of the local variables,
5885 since it will think that parent can't possibly be used any more
5886 in this routine. Assigning to the local variable will thus
5887 munge parent in the parent process. */
5888 pid_t
5889 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5890 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5891 /* Convince the compiler that p..p7 are live; otherwise, it might
5892 use the same hardware register for all 8 local variables. */
5893 if (p != p1 || p != p2 || p != p3 || p != p4
5894 || p != p5 || p != p6 || p != p7)
5895 _exit(1);
5896
5897 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5898 from child file descriptors. If the child closes a descriptor
5899 before it execs or exits, this munges the parent's descriptor
5900 as well. Test for this by closing stdout in the child. */
5901 _exit(close(fileno(stdout)) != 0);
5902 } else {
5903 int status;
5904 struct stat st;
5905
5906 while (wait(&status) != child)
5907 ;
5908 exit(
5909 /* Was there some problem with vforking? */
5910 child < 0
5911
5912 /* Did the child fail? (This shouldn't happen.) */
5913 || status
5914
5915 /* Did the vfork/compiler bug occur? */
5916 || parent != getpid()
5917
5918 /* Did the file descriptor bug occur? */
5919 || fstat(fileno(stdout), &st) != 0
5920 );
5921 }
5922}
5923_ACEOF
5924rm -f conftest$ac_exeext
5925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_cv_func_vfork_works=yes
5936else
5937 echo "$as_me: program exited with status $ac_status" >&5
5938echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941( exit $ac_status )
5942ac_cv_func_vfork_works=no
5943fi
8a2fc586 5944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5945fi
5946fi
5947echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5948echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5949
5950fi;
5951if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 5952 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
5953 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5954echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5955fi
5956
5957if test "x$ac_cv_func_vfork_works" = xyes; then
5958
5959cat >>confdefs.h <<\_ACEOF
5960#define HAVE_WORKING_VFORK 1
5961_ACEOF
5962
5963else
5964
5965cat >>confdefs.h <<\_ACEOF
5966#define vfork fork
5967_ACEOF
5968
5969fi
5970if test "x$ac_cv_func_fork_works" = xyes; then
5971
5972cat >>confdefs.h <<\_ACEOF
5973#define HAVE_WORKING_FORK 1
5974_ACEOF
5975
5976fi
5977
5978echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5979echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5980if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983 rm -f conftest.sym conftest.file
5984echo >conftest.file
5985if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5986 if test "$cross_compiling" = yes; then
5987 ac_cv_func_lstat_dereferences_slashed_symlink=no
5988else
5989 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h. */
5995$ac_includes_default
5996int
5997main ()
5998{
5999struct stat sbuf;
6000 /* Linux will dereference the symlink and fail.
8a2fc586
AK
6001 That is better in the sense that it means we will not
6002 have to compile and use the lstat wrapper. */
ad6254c5
AK
6003 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6004 ;
6005 return 0;
6006}
6007_ACEOF
6008rm -f conftest$ac_exeext
6009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6010 (eval $ac_link) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6020else
6021 echo "$as_me: program exited with status $ac_status" >&5
6022echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025( exit $ac_status )
6026ac_cv_func_lstat_dereferences_slashed_symlink=no
6027fi
8a2fc586 6028rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6029fi
6030else
6031 # If the `ln -s' command failed, then we probably don't even
6032 # have an lstat function.
6033 ac_cv_func_lstat_dereferences_slashed_symlink=no
6034fi
6035rm -f conftest.sym conftest.file
6036
6037fi
6038echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6039echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
6040
6041test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6042
6043cat >>confdefs.h <<_ACEOF
6044#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6045_ACEOF
6046
6047
6048if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8a2fc586
AK
6049 case $LIBOBJS in
6050 "lstat.$ac_objext" | \
6051 *" lstat.$ac_objext" | \
6052 "lstat.$ac_objext "* | \
6053 *" lstat.$ac_objext "* ) ;;
6054 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6055esac
6056
ad6254c5
AK
6057fi
6058
6059echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6060echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
6061if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 if test "$cross_compiling" = yes; then
6065 ac_cv_func_lstat_empty_string_bug=yes
6066else
6067 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073$ac_includes_default
6074int
6075main ()
6076{
6077struct stat sbuf;
6078 exit (lstat ("", &sbuf) ? 1 : 0);
6079 ;
6080 return 0;
6081}
6082_ACEOF
6083rm -f conftest$ac_exeext
6084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6086 ac_status=$?
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_func_lstat_empty_string_bug=yes
6095else
6096 echo "$as_me: program exited with status $ac_status" >&5
6097echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100( exit $ac_status )
6101ac_cv_func_lstat_empty_string_bug=no
6102fi
8a2fc586 6103rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6104fi
6105fi
6106echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6107echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
6108if test $ac_cv_func_lstat_empty_string_bug = yes; then
8a2fc586
AK
6109 case $LIBOBJS in
6110 "lstat.$ac_objext" | \
6111 *" lstat.$ac_objext" | \
6112 "lstat.$ac_objext "* | \
6113 *" lstat.$ac_objext "* ) ;;
6114 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6115esac
6116
ad6254c5
AK
6117
6118cat >>confdefs.h <<_ACEOF
6119#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6120_ACEOF
6121
6122fi
6123
6124
6125for ac_header in stdlib.h
6126do
6127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6128if eval "test \"\${$as_ac_Header+set}\" = set"; then
6129 echo "$as_me:$LINENO: checking for $ac_header" >&5
6130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6131if eval "test \"\${$as_ac_Header+set}\" = set"; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133fi
6134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6136else
6137 # Is the header compilable?
6138echo "$as_me:$LINENO: checking $ac_header usability" >&5
6139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6140cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
6146$ac_includes_default
6147#include <$ac_header>
6148_ACEOF
6149rm -f conftest.$ac_objext
6150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6151 (eval $ac_compile) 2>conftest.er1
ad6254c5 6152 ac_status=$?
8a2fc586
AK
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
ad6254c5
AK
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
8a2fc586
AK
6158 { ac_try='test -z "$ac_c_werror_flag"
6159 || test ! -s conftest.err'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 (eval $ac_try) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; } &&
6165 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_header_compiler=yes
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176ac_header_compiler=no
6177fi
8a2fc586 6178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6180echo "${ECHO_T}$ac_header_compiler" >&6
6181
6182# Is the header present?
6183echo "$as_me:$LINENO: checking $ac_header presence" >&5
6184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6185cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191#include <$ac_header>
6192_ACEOF
6193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } >/dev/null; then
6201 if test -s conftest.err; then
6202 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6204 else
6205 ac_cpp_err=
6206 fi
6207else
6208 ac_cpp_err=yes
6209fi
6210if test -z "$ac_cpp_err"; then
6211 ac_header_preproc=yes
6212else
6213 echo "$as_me: failed program was:" >&5
6214sed 's/^/| /' conftest.$ac_ext >&5
6215
6216 ac_header_preproc=no
6217fi
6218rm -f conftest.err conftest.$ac_ext
6219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6220echo "${ECHO_T}$ac_header_preproc" >&6
6221
6222# So? What about this header?
8a2fc586
AK
6223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6224 yes:no: )
ad6254c5
AK
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6229 ac_header_preproc=yes
ad6254c5 6230 ;;
8a2fc586 6231 no:yes:* )
ad6254c5
AK
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6244 (
6245 cat <<\_ASBOX
8a2fc586
AK
6246## ------------------------------------------ ##
6247## Report this to the AC_PACKAGE_NAME lists. ##
6248## ------------------------------------------ ##
ad6254c5
AK
6249_ASBOX
6250 ) |
6251 sed "s/^/$as_me: WARNING: /" >&2
6252 ;;
6253esac
6254echo "$as_me:$LINENO: checking for $ac_header" >&5
6255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6256if eval "test \"\${$as_ac_Header+set}\" = set"; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
8a2fc586 6259 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6260fi
6261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6263
6264fi
6265if test `eval echo '${'$as_ac_Header'}'` = yes; then
6266 cat >>confdefs.h <<_ACEOF
6267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6268_ACEOF
6269
6270fi
6271
6272done
6273
6274echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6275echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6276if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 if test "$cross_compiling" = yes; then
6280 ac_cv_func_malloc_0_nonnull=no
6281else
6282 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
6288#if STDC_HEADERS || HAVE_STDLIB_H
6289# include <stdlib.h>
6290#else
6291char *malloc ();
6292#endif
6293
6294int
6295main ()
6296{
6297exit (malloc (0) ? 0 : 1);
6298 ;
6299 return 0;
6300}
6301_ACEOF
6302rm -f conftest$ac_exeext
6303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6304 (eval $ac_link) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_func_malloc_0_nonnull=yes
6314else
6315 echo "$as_me: program exited with status $ac_status" >&5
6316echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
6319( exit $ac_status )
6320ac_cv_func_malloc_0_nonnull=no
6321fi
8a2fc586 6322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6323fi
6324fi
6325echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6326echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6327if test $ac_cv_func_malloc_0_nonnull = yes; then
6328
6329cat >>confdefs.h <<\_ACEOF
6330#define HAVE_MALLOC 1
6331_ACEOF
6332
6333else
6334 cat >>confdefs.h <<\_ACEOF
6335#define HAVE_MALLOC 0
6336_ACEOF
6337
8a2fc586
AK
6338 case $LIBOBJS in
6339 "malloc.$ac_objext" | \
6340 *" malloc.$ac_objext" | \
6341 "malloc.$ac_objext "* | \
6342 *" malloc.$ac_objext "* ) ;;
6343 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6344esac
6345
ad6254c5
AK
6346
6347cat >>confdefs.h <<\_ACEOF
6348#define malloc rpl_malloc
6349_ACEOF
6350
6351fi
6352
6353
6354
6355echo "$as_me:$LINENO: checking for working memcmp" >&5
6356echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6357if test "${ac_cv_func_memcmp_working+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 if test "$cross_compiling" = yes; then
6361 ac_cv_func_memcmp_working=no
6362else
6363 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6364/* confdefs.h. */
6365_ACEOF
6366cat confdefs.h >>conftest.$ac_ext
6367cat >>conftest.$ac_ext <<_ACEOF
6368/* end confdefs.h. */
8a2fc586 6369$ac_includes_default
ad6254c5
AK
6370int
6371main ()
6372{
6373
6374 /* Some versions of memcmp are not 8-bit clean. */
6375 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6376 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6377 exit (1);
6378
6379 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6380 or more and with at least one buffer not starting on a 4-byte boundary.
6381 William Lewis provided this test program. */
6382 {
6383 char foo[21];
6384 char bar[21];
6385 int i;
6386 for (i = 0; i < 4; i++)
6387 {
8a2fc586
AK
6388 char *a = foo + i;
6389 char *b = bar + i;
6390 strcpy (a, "--------01111111");
6391 strcpy (b, "--------10000000");
6392 if (memcmp (a, b, 16) >= 0)
6393 exit (1);
ad6254c5
AK
6394 }
6395 exit (0);
6396 }
6397
6398 ;
6399 return 0;
6400}
6401_ACEOF
6402rm -f conftest$ac_exeext
6403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_func_memcmp_working=yes
6414else
6415 echo "$as_me: program exited with status $ac_status" >&5
6416echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419( exit $ac_status )
6420ac_cv_func_memcmp_working=no
6421fi
8a2fc586 6422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6423fi
6424fi
6425echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6426echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8a2fc586
AK
6427test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6428 "memcmp.$ac_objext" | \
6429 *" memcmp.$ac_objext" | \
6430 "memcmp.$ac_objext "* | \
6431 *" memcmp.$ac_objext "* ) ;;
6432 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6433esac
6434
ad6254c5
AK
6435
6436
6437
6438for ac_header in stdlib.h unistd.h
6439do
6440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6441if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442 echo "$as_me:$LINENO: checking for $ac_header" >&5
6443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6444if eval "test \"\${$as_ac_Header+set}\" = set"; then
6445 echo $ECHO_N "(cached) $ECHO_C" >&6
6446fi
6447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6449else
6450 # Is the header compilable?
6451echo "$as_me:$LINENO: checking $ac_header usability" >&5
6452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6453cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459$ac_includes_default
6460#include <$ac_header>
6461_ACEOF
6462rm -f conftest.$ac_objext
6463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6464 (eval $ac_compile) 2>conftest.er1
ad6254c5 6465 ac_status=$?
8a2fc586
AK
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
ad6254c5
AK
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
8a2fc586
AK
6471 { ac_try='test -z "$ac_c_werror_flag"
6472 || test ! -s conftest.err'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 ac_header_compiler=yes
6485else
6486 echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489ac_header_compiler=no
6490fi
8a2fc586 6491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6493echo "${ECHO_T}$ac_header_compiler" >&6
6494
6495# Is the header present?
6496echo "$as_me:$LINENO: checking $ac_header presence" >&5
6497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6498cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
6504#include <$ac_header>
6505_ACEOF
6506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } >/dev/null; then
6514 if test -s conftest.err; then
6515 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6517 else
6518 ac_cpp_err=
6519 fi
6520else
6521 ac_cpp_err=yes
6522fi
6523if test -z "$ac_cpp_err"; then
6524 ac_header_preproc=yes
6525else
6526 echo "$as_me: failed program was:" >&5
6527sed 's/^/| /' conftest.$ac_ext >&5
6528
6529 ac_header_preproc=no
6530fi
6531rm -f conftest.err conftest.$ac_ext
6532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6533echo "${ECHO_T}$ac_header_preproc" >&6
6534
6535# So? What about this header?
8a2fc586
AK
6536case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6537 yes:no: )
ad6254c5
AK
6538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6542 ac_header_preproc=yes
ad6254c5 6543 ;;
8a2fc586 6544 no:yes:* )
ad6254c5
AK
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6557 (
6558 cat <<\_ASBOX
8a2fc586
AK
6559## ------------------------------------------ ##
6560## Report this to the AC_PACKAGE_NAME lists. ##
6561## ------------------------------------------ ##
ad6254c5
AK
6562_ASBOX
6563 ) |
6564 sed "s/^/$as_me: WARNING: /" >&2
6565 ;;
6566esac
6567echo "$as_me:$LINENO: checking for $ac_header" >&5
6568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6569if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
8a2fc586 6572 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6573fi
6574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6576
6577fi
6578if test `eval echo '${'$as_ac_Header'}'` = yes; then
6579 cat >>confdefs.h <<_ACEOF
6580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6581_ACEOF
6582
6583fi
6584
6585done
6586
6587
6588for ac_func in getpagesize
6589do
6590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6591echo "$as_me:$LINENO: checking for $ac_func" >&5
6592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6593if eval "test \"\${$as_ac_var+set}\" = set"; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6597/* confdefs.h. */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */
8a2fc586
AK
6602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6604#define $ac_func innocuous_$ac_func
6605
ad6254c5
AK
6606/* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char $ac_func (); below.
6608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6609 <limits.h> exists even on freestanding compilers. */
8a2fc586 6610
ad6254c5
AK
6611#ifdef __STDC__
6612# include <limits.h>
6613#else
6614# include <assert.h>
6615#endif
8a2fc586
AK
6616
6617#undef $ac_func
6618
ad6254c5
AK
6619/* Override any gcc2 internal prototype to avoid an error. */
6620#ifdef __cplusplus
6621extern "C"
6622{
6623#endif
6624/* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6626char $ac_func ();
6627/* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */
6630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6631choke me
6632#else
6633char (*f) () = $ac_func;
6634#endif
6635#ifdef __cplusplus
6636}
6637#endif
6638
6639int
6640main ()
6641{
6642return f != $ac_func;
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext
6648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 6649 (eval $ac_link) 2>conftest.er1
ad6254c5 6650 ac_status=$?
8a2fc586
AK
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
ad6254c5
AK
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
8a2fc586
AK
6656 { ac_try='test -z "$ac_c_werror_flag"
6657 || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 eval "$as_ac_var=yes"
6670else
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674eval "$as_ac_var=no"
6675fi
8a2fc586
AK
6676rm -f conftest.err conftest.$ac_objext \
6677 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6678fi
6679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6680echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6681if test `eval echo '${'$as_ac_var'}'` = yes; then
6682 cat >>confdefs.h <<_ACEOF
6683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6684_ACEOF
6685
6686fi
6687done
6688
6689echo "$as_me:$LINENO: checking for working mmap" >&5
6690echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6691if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 if test "$cross_compiling" = yes; then
6695 ac_cv_func_mmap_fixed_mapped=no
6696else
6697 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6698/* confdefs.h. */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */
6703$ac_includes_default
6704/* malloc might have been renamed as rpl_malloc. */
6705#undef malloc
6706
6707/* Thanks to Mike Haertel and Jim Avera for this test.
6708 Here is a matrix of mmap possibilities:
6709 mmap private not fixed
6710 mmap private fixed at somewhere currently unmapped
6711 mmap private fixed at somewhere already mapped
6712 mmap shared not fixed
6713 mmap shared fixed at somewhere currently unmapped
6714 mmap shared fixed at somewhere already mapped
6715 For private mappings, we should verify that changes cannot be read()
6716 back from the file, nor mmap's back from the file at a different
6717 address. (There have been systems where private was not correctly
6718 implemented like the infamous i386 svr4.0, and systems where the
6719 VM page cache was not coherent with the file system buffer cache
6720 like early versions of FreeBSD and possibly contemporary NetBSD.)
6721 For shared mappings, we should conversely verify that changes get
6722 propagated back to all the places they're supposed to be.
6723
6724 Grep wants private fixed already mapped.
6725 The main things grep needs to know about mmap are:
6726 * does it exist and is it safe to write into the mmap'd area
6727 * how to use it (BSD variants) */
6728
6729#include <fcntl.h>
6730#include <sys/mman.h>
6731
6732#if !STDC_HEADERS && !HAVE_STDLIB_H
6733char *malloc ();
6734#endif
6735
6736/* This mess was copied from the GNU getpagesize.h. */
6737#if !HAVE_GETPAGESIZE
6738/* Assume that all systems that can run configure have sys/param.h. */
6739# if !HAVE_SYS_PARAM_H
6740# define HAVE_SYS_PARAM_H 1
6741# endif
6742
6743# ifdef _SC_PAGESIZE
6744# define getpagesize() sysconf(_SC_PAGESIZE)
6745# else /* no _SC_PAGESIZE */
6746# if HAVE_SYS_PARAM_H
6747# include <sys/param.h>
6748# ifdef EXEC_PAGESIZE
6749# define getpagesize() EXEC_PAGESIZE
6750# else /* no EXEC_PAGESIZE */
6751# ifdef NBPG
6752# define getpagesize() NBPG * CLSIZE
6753# ifndef CLSIZE
6754# define CLSIZE 1
6755# endif /* no CLSIZE */
6756# else /* no NBPG */
6757# ifdef NBPC
6758# define getpagesize() NBPC
6759# else /* no NBPC */
6760# ifdef PAGESIZE
6761# define getpagesize() PAGESIZE
6762# endif /* PAGESIZE */
6763# endif /* no NBPC */
6764# endif /* no NBPG */
6765# endif /* no EXEC_PAGESIZE */
6766# else /* no HAVE_SYS_PARAM_H */
6767# define getpagesize() 8192 /* punt totally */
6768# endif /* no HAVE_SYS_PARAM_H */
6769# endif /* no _SC_PAGESIZE */
6770
6771#endif /* no HAVE_GETPAGESIZE */
6772
6773int
6774main ()
6775{
6776 char *data, *data2, *data3;
6777 int i, pagesize;
6778 int fd;
6779
6780 pagesize = getpagesize ();
6781
6782 /* First, make a file with some known garbage in it. */
6783 data = (char *) malloc (pagesize);
6784 if (!data)
6785 exit (1);
6786 for (i = 0; i < pagesize; ++i)
6787 *(data + i) = rand ();
6788 umask (0);
6789 fd = creat ("conftest.mmap", 0600);
6790 if (fd < 0)
6791 exit (1);
6792 if (write (fd, data, pagesize) != pagesize)
6793 exit (1);
6794 close (fd);
6795
6796 /* Next, try to mmap the file at a fixed address which already has
6797 something else allocated at it. If we can, also make sure that
6798 we see the same garbage. */
6799 fd = open ("conftest.mmap", O_RDWR);
6800 if (fd < 0)
6801 exit (1);
6802 data2 = (char *) malloc (2 * pagesize);
6803 if (!data2)
6804 exit (1);
8a2fc586 6805 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6806 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 6807 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6808 exit (1);
6809 for (i = 0; i < pagesize; ++i)
6810 if (*(data + i) != *(data2 + i))
6811 exit (1);
6812
6813 /* Finally, make sure that changes to the mapped area do not
6814 percolate back to the file as seen by read(). (This is a bug on
6815 some variants of i386 svr4.0.) */
6816 for (i = 0; i < pagesize; ++i)
6817 *(data2 + i) = *(data2 + i) + 1;
6818 data3 = (char *) malloc (pagesize);
6819 if (!data3)
6820 exit (1);
6821 if (read (fd, data3, pagesize) != pagesize)
6822 exit (1);
6823 for (i = 0; i < pagesize; ++i)
6824 if (*(data + i) != *(data3 + i))
6825 exit (1);
6826 close (fd);
6827 exit (0);
6828}
6829_ACEOF
6830rm -f conftest$ac_exeext
6831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832 (eval $ac_link) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_cv_func_mmap_fixed_mapped=yes
6842else
6843 echo "$as_me: program exited with status $ac_status" >&5
6844echo "$as_me: failed program was:" >&5
6845sed 's/^/| /' conftest.$ac_ext >&5
6846
6847( exit $ac_status )
6848ac_cv_func_mmap_fixed_mapped=no
6849fi
8a2fc586 6850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6851fi
6852fi
6853echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6854echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6855if test $ac_cv_func_mmap_fixed_mapped = yes; then
6856
6857cat >>confdefs.h <<\_ACEOF
6858#define HAVE_MMAP 1
6859_ACEOF
6860
6861fi
6862rm -f conftest.mmap
6863
6864echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6865echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6866if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869 if test "$cross_compiling" = yes; then
6870 ac_cv_func_stat_empty_string_bug=yes
6871else
6872 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878$ac_includes_default
6879int
6880main ()
6881{
6882struct stat sbuf;
6883 exit (stat ("", &sbuf) ? 1 : 0);
6884 ;
6885 return 0;
6886}
6887_ACEOF
6888rm -f conftest$ac_exeext
6889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_func_stat_empty_string_bug=yes
6900else
6901 echo "$as_me: program exited with status $ac_status" >&5
6902echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905( exit $ac_status )
6906ac_cv_func_stat_empty_string_bug=no
6907fi
8a2fc586 6908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6909fi
6910fi
6911echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6912echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6913if test $ac_cv_func_stat_empty_string_bug = yes; then
8a2fc586
AK
6914 case $LIBOBJS in
6915 "stat.$ac_objext" | \
6916 *" stat.$ac_objext" | \
6917 "stat.$ac_objext "* | \
6918 *" stat.$ac_objext "* ) ;;
6919 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
6920esac
6921
ad6254c5
AK
6922
6923cat >>confdefs.h <<_ACEOF
6924#define HAVE_STAT_EMPTY_STRING_BUG 1
6925_ACEOF
6926
6927fi
6928
6929echo "$as_me:$LINENO: checking for working strtod" >&5
6930echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6931if test "${ac_cv_func_strtod+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934 if test "$cross_compiling" = yes; then
6935 ac_cv_func_strtod=no
6936else
6937 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6938/* confdefs.h. */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h. */
6943
6944double strtod ();
6945int
6946main()
6947{
6948 {
6949 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6950 char *string = " +69";
6951 char *term;
6952 double value;
6953 value = strtod (string, &term);
6954 if (value != 69 || term != (string + 4))
6955 exit (1);
6956 }
6957
6958 {
6959 /* Under Solaris 2.4, strtod returns the wrong value for the
6960 terminating character under some conditions. */
6961 char *string = "NaN";
6962 char *term;
6963 strtod (string, &term);
6964 if (term != string && *(term - 1) == 0)
6965 exit (1);
6966 }
6967 exit (0);
6968}
6969
6970_ACEOF
6971rm -f conftest$ac_exeext
6972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_cv_func_strtod=yes
6983else
6984 echo "$as_me: program exited with status $ac_status" >&5
6985echo "$as_me: failed program was:" >&5
6986sed 's/^/| /' conftest.$ac_ext >&5
6987
6988( exit $ac_status )
6989ac_cv_func_strtod=no
6990fi
8a2fc586 6991rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6992fi
6993fi
6994echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6995echo "${ECHO_T}$ac_cv_func_strtod" >&6
6996if test $ac_cv_func_strtod = no; then
8a2fc586
AK
6997 case $LIBOBJS in
6998 "strtod.$ac_objext" | \
6999 *" strtod.$ac_objext" | \
7000 "strtod.$ac_objext "* | \
7001 *" strtod.$ac_objext "* ) ;;
7002 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
7003esac
7004
ad6254c5
AK
7005echo "$as_me:$LINENO: checking for pow" >&5
7006echo $ECHO_N "checking for pow... $ECHO_C" >&6
7007if test "${ac_cv_func_pow+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7011/* confdefs.h. */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h. */
8a2fc586
AK
7016/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7018#define pow innocuous_pow
7019
ad6254c5
AK
7020/* System header to define __stub macros and hopefully few prototypes,
7021 which can conflict with char pow (); below.
7022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7023 <limits.h> exists even on freestanding compilers. */
8a2fc586 7024
ad6254c5
AK
7025#ifdef __STDC__
7026# include <limits.h>
7027#else
7028# include <assert.h>
7029#endif
8a2fc586
AK
7030
7031#undef pow
7032
ad6254c5
AK
7033/* Override any gcc2 internal prototype to avoid an error. */
7034#ifdef __cplusplus
7035extern "C"
7036{
7037#endif
7038/* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7040char pow ();
7041/* The GNU C library defines this for functions which it implements
7042 to always fail with ENOSYS. Some functions are actually named
7043 something starting with __ and the normal name is an alias. */
7044#if defined (__stub_pow) || defined (__stub___pow)
7045choke me
7046#else
7047char (*f) () = pow;
7048#endif
7049#ifdef __cplusplus
7050}
7051#endif
7052
7053int
7054main ()
7055{
7056return f != pow;
7057 ;
7058 return 0;
7059}
7060_ACEOF
7061rm -f conftest.$ac_objext conftest$ac_exeext
7062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7063 (eval $ac_link) 2>conftest.er1
ad6254c5 7064 ac_status=$?
8a2fc586
AK
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
ad6254c5
AK
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } &&
8a2fc586
AK
7070 { ac_try='test -z "$ac_c_werror_flag"
7071 || test ! -s conftest.err'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; } &&
7077 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079 (eval $ac_try) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_func_pow=yes
7084else
7085 echo "$as_me: failed program was:" >&5
7086sed 's/^/| /' conftest.$ac_ext >&5
7087
7088ac_cv_func_pow=no
7089fi
8a2fc586
AK
7090rm -f conftest.err conftest.$ac_objext \
7091 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7092fi
7093echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7094echo "${ECHO_T}$ac_cv_func_pow" >&6
7095
7096if test $ac_cv_func_pow = no; then
7097 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7098echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7099if test "${ac_cv_lib_m_pow+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102 ac_check_lib_save_LIBS=$LIBS
7103LIBS="-lm $LIBS"
7104cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
7110
7111/* Override any gcc2 internal prototype to avoid an error. */
7112#ifdef __cplusplus
7113extern "C"
7114#endif
7115/* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7117char pow ();
7118int
7119main ()
7120{
7121pow ();
7122 ;
7123 return 0;
7124}
7125_ACEOF
7126rm -f conftest.$ac_objext conftest$ac_exeext
7127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7128 (eval $ac_link) 2>conftest.er1
ad6254c5 7129 ac_status=$?
8a2fc586
AK
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
ad6254c5
AK
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
8a2fc586
AK
7135 { ac_try='test -z "$ac_c_werror_flag"
7136 || test ! -s conftest.err'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; } &&
7142 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 ac_cv_lib_m_pow=yes
7149else
7150 echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153ac_cv_lib_m_pow=no
7154fi
8a2fc586
AK
7155rm -f conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7157LIBS=$ac_check_lib_save_LIBS
7158fi
7159echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7160echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7161if test $ac_cv_lib_m_pow = yes; then
7162 POW_LIB=-lm
7163else
7164 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7165echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7166fi
7167
7168fi
7169
7170fi
7171
7172
7173################################################################################
7174
7175
7176################################################################################
7177# Check whether --enable-jobs or --disable-jobs was given.
7178if test "${enable_jobs+set}" = set; then
7179 enableval="$enable_jobs"
7180 JOBS=-j$enableval
7181else
7182 JOBS=-j2
7183fi;
7184
7185################################################################################
7186echo "$as_me:$LINENO: checking file owner" >&5
7187echo $ECHO_N "checking file owner... $ECHO_C" >&6
7188OWNER="root"
7189
7190
7191# Check whether --with-user or --without-user was given.
7192if test "${with_user+set}" = set; then
7193 withval="$with_user"
7194 OWNER="$withval"
7195fi;
7196echo "$as_me:$LINENO: result: $OWNER" >&5
7197echo "${ECHO_T}$OWNER" >&6
7198
7199if test x$OWNER != x; then
7200 OWNER="-o $OWNER"
7201fi
7202
7203################################################################################
7204echo "$as_me:$LINENO: checking group owner" >&5
7205echo $ECHO_N "checking group owner... $ECHO_C" >&6
7206GROUP="root"
7207
7208# Check whether --with-group or --without-group was given.
7209if test "${with_group+set}" = set; then
7210 withval="$with_group"
7211 GROUP="$withval"
7212fi;
7213echo "$as_me:$LINENO: result: $GROUP" >&5
7214echo "${ECHO_T}$GROUP" >&6
7215
7216if test x$GROUP != x; then
7217 GROUP="-g $GROUP"
7218fi
7219
7220################################################################################
7221echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7222echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
7223# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
7224if test "${enable_lvm1_fallback+set}" = set; then
7225 enableval="$enable_lvm1_fallback"
7226 LVM1_FALLBACK=$enableval
7227else
7228 LVM1_FALLBACK=no
7229fi;
7230echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7231echo "${ECHO_T}$LVM1_FALLBACK" >&6
7232
7233if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
7234
7235cat >>confdefs.h <<\_ACEOF
7236#define LVM1_FALLBACK 1
7237_ACEOF
7238
ad6254c5
AK
7239fi
7240
7241################################################################################
7242echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7243echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
7244
7245# Check whether --with-lvm1 or --without-lvm1 was given.
7246if test "${with_lvm1+set}" = set; then
7247 withval="$with_lvm1"
7248 LVM1="$withval"
7249else
7250 LVM1="internal"
7251fi;
7252echo "$as_me:$LINENO: result: $LVM1" >&5
7253echo "${ECHO_T}$LVM1" >&6
7254
7255if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7256 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7257" >&5
7258echo "$as_me: error: --with-lvm1 parameter invalid
7259" >&2;}
7260 { (exit 1); exit 1; }; }
7261fi;
7262
7263if test x$LVM1 = xinternal; then
72b2cb61
AK
7264
7265cat >>confdefs.h <<\_ACEOF
7266#define LVM1_INTERNAL 1
7267_ACEOF
7268
ad6254c5
AK
7269fi
7270
7271################################################################################
7272echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7273echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
7274
7275# Check whether --with-pool or --without-pool was given.
7276if test "${with_pool+set}" = set; then
7277 withval="$with_pool"
7278 POOL="$withval"
7279else
7280 POOL="internal"
7281fi;
7282echo "$as_me:$LINENO: result: $POOL" >&5
7283echo "${ECHO_T}$POOL" >&6
7284
7285if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7286 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7287" >&5
7288echo "$as_me: error: --with-pool parameter invalid
7289" >&2;}
7290 { (exit 1); exit 1; }; }
7291fi;
7292
7293if test x$POOL = xinternal; then
72b2cb61
AK
7294
7295cat >>confdefs.h <<\_ACEOF
7296#define POOL_INTERNAL 1
7297_ACEOF
7298
ad6254c5
AK
7299fi
7300
7301################################################################################
7302echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7303echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
7304
7305# Check whether --with-cluster or --without-cluster was given.
7306if test "${with_cluster+set}" = set; then
7307 withval="$with_cluster"
7308 CLUSTER="$withval"
7309fi;
7310echo "$as_me:$LINENO: result: $CLUSTER" >&5
7311echo "${ECHO_T}$CLUSTER" >&6
7312
7313if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7314 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7315" >&5
7316echo "$as_me: error: --with-cluster parameter invalid
7317" >&2;}
7318 { (exit 1); exit 1; }; }
7319fi;
7320
7321if test x$CLUSTER = xinternal; then
72b2cb61
AK
7322
7323cat >>confdefs.h <<\_ACEOF
7324#define CLUSTER_LOCKING_INTERNAL 1
7325_ACEOF
7326
ad6254c5
AK
7327fi
7328
7329################################################################################
7330echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7331echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
7332
7333# Check whether --with-snapshots or --without-snapshots was given.
7334if test "${with_snapshots+set}" = set; then
7335 withval="$with_snapshots"
7336 SNAPSHOTS="$withval"
7337else
7338 SNAPSHOTS="internal"
7339fi;
7340echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7341echo "${ECHO_T}$SNAPSHOTS" >&6
7342
7343if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7344 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7345" >&5
7346echo "$as_me: error: --with-snapshots parameter invalid
7347" >&2;}
7348 { (exit 1); exit 1; }; }
7349fi;
7350
7351if test x$SNAPSHOTS = xinternal; then
72b2cb61
AK
7352
7353cat >>confdefs.h <<\_ACEOF
7354#define SNAPSHOT_INTERNAL 1
7355_ACEOF
7356
ad6254c5
AK
7357fi
7358
7359################################################################################
7360echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7361echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
7362
7363# Check whether --with-mirrors or --without-mirrors was given.
7364if test "${with_mirrors+set}" = set; then
7365 withval="$with_mirrors"
7366 MIRRORS="$withval"
7367else
7368 MIRRORS="internal"
7369fi;
7370echo "$as_me:$LINENO: result: $MIRRORS" >&5
7371echo "${ECHO_T}$MIRRORS" >&6
7372
7373if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7374 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7375" >&5
7376echo "$as_me: error: --with-mirrors parameter invalid
7377" >&2;}
7378 { (exit 1); exit 1; }; }
7379fi;
7380
7381if test x$MIRRORS = xinternal; then
72b2cb61
AK
7382
7383cat >>confdefs.h <<\_ACEOF
7384#define MIRRORED_INTERNAL 1
7385_ACEOF
7386
ad6254c5
AK
7387fi
7388
7389################################################################################
7390echo "$as_me:$LINENO: checking whether to use static linking" >&5
7391echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
7392# Check whether --enable-static_link or --disable-static_link was given.
7393if test "${enable_static_link+set}" = set; then
7394 enableval="$enable_static_link"
7395 STATIC_LINK=$enableval
7396else
7397 STATIC_LINK=no
7398fi;
7399echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7400echo "${ECHO_T}$STATIC_LINK" >&6
7401
7402################################################################################
7403echo "$as_me:$LINENO: checking whether to enable readline" >&5
7404echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
7405# Check whether --enable-readline or --disable-readline was given.
7406if test "${enable_readline+set}" = set; then
7407 enableval="$enable_readline"
7408 READLINE=$enableval
7409else
7410 READLINE=no
7411fi;
7412echo "$as_me:$LINENO: result: $READLINE" >&5
7413echo "${ECHO_T}$READLINE" >&6
7414
7415if test x$READLINE = xyes; then
72b2cb61
AK
7416
7417cat >>confdefs.h <<\_ACEOF
7418#define READLINE_SUPPORT 1
7419_ACEOF
7420
ad6254c5
AK
7421fi
7422
7423################################################################################
7424echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7425echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
7426# Check whether --enable-selinux or --disable-selinux was given.
7427if test "${enable_selinux+set}" = set; then
7428 enableval="$enable_selinux"
7429 SELINUX=$enableval
7430fi;
7431echo "$as_me:$LINENO: result: $SELINUX" >&5
7432echo "${ECHO_T}$SELINUX" >&6
7433
7434################################################################################
7435echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7436echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
7437
7438# Check whether --with-clvmd or --without-clvmd was given.
7439if test "${with_clvmd+set}" = set; then
7440 withval="$with_clvmd"
a266258f 7441 CLVMD="$withval"
ad6254c5 7442else
a266258f 7443 CLVMD="none"
ad6254c5 7444fi;
a266258f 7445if test x$CLVMD = xyes; then
5c7fc7c4 7446 CLVMD=all
b1098701 7447fi
ad6254c5
AK
7448echo "$as_me:$LINENO: result: $CLVMD" >&5
7449echo "${ECHO_T}$CLVMD" >&6
7450
a266258f 7451if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7452 CLUSTER=internal
7453fi
7454
7455################################################################################
7456echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7457echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
7458# Check whether --enable-debug or --disable-debug was given.
7459if test "${enable_debug+set}" = set; then
7460 enableval="$enable_debug"
7461 DEBUG=$enableval
7462else
7463 DEBUG=no
7464fi;
7465echo "$as_me:$LINENO: result: $DEBUG" >&5
7466echo "${ECHO_T}$DEBUG" >&6
7467
7468if test x$DEBUG = xyes; then
7469 COPTIMISE_FLAG=
8a2fc586
AK
7470else
7471 CSCOPE_CMD=
ad6254c5
AK
7472fi
7473
7474################################################################################
7475echo "$as_me:$LINENO: checking for C optimisation flag" >&5
7476echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
7477
7478# Check whether --with-optimisation or --without-optimisation was given.
7479if test "${with_optimisation+set}" = set; then
7480 withval="$with_optimisation"
7481 COPTIMISE_FLAG="$withval"
7482fi;
7483echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
7484echo "${ECHO_T}$COPTIMISE_FLAG" >&6
7485
7486################################################################################
7487echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
7488echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
7489# Check whether --enable-devmapper or --disable-devmapper was given.
7490if test "${enable_devmapper+set}" = set; then
7491 enableval="$enable_devmapper"
7492 DEVMAPPER=$enableval
7493fi;
7494echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
7495echo "${ECHO_T}$DEVMAPPER" >&6
7496
7497if test x$DEVMAPPER = xyes; then
72b2cb61
AK
7498
7499cat >>confdefs.h <<\_ACEOF
7500#define DEVMAPPER_SUPPORT 1
7501_ACEOF
7502
ad6254c5
AK
7503fi
7504
7505################################################################################
7506echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
7507echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
7508# Check whether --enable-o_direct or --disable-o_direct was given.
7509if test "${enable_o_direct+set}" = set; then
7510 enableval="$enable_o_direct"
7511 ODIRECT=$enableval
7512fi;
7513echo "$as_me:$LINENO: result: $ODIRECT" >&5
7514echo "${ECHO_T}$ODIRECT" >&6
7515
7516if test x$ODIRECT = xyes; then
72b2cb61
AK
7517
7518cat >>confdefs.h <<\_ACEOF
7519#define O_DIRECT_SUPPORT 1
7520_ACEOF
7521
ad6254c5
AK
7522fi
7523
7524################################################################################
7525echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
7526echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
7527# Check whether --enable-cmdlib or --disable-cmdlib was given.
7528if test "${enable_cmdlib+set}" = set; then
7529 enableval="$enable_cmdlib"
7530 CMDLIB=$enableval
7531else
7532 CMDLIB=no
7533fi;
7534echo "$as_me:$LINENO: result: $CMDLIB" >&5
7535echo "${ECHO_T}$CMDLIB" >&6
7536
ad6254c5
AK
7537################################################################################
7538echo "$as_me:$LINENO: checking whether to build fsadm" >&5
7539echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
7540# Check whether --enable-fsadm or --disable-fsadm was given.
7541if test "${enable_fsadm+set}" = set; then
7542 enableval="$enable_fsadm"
7543 FSADM=$enableval
7544fi;
7545echo "$as_me:$LINENO: result: $FSADM" >&5
7546echo "${ECHO_T}$FSADM" >&6
7547
06f62ad1
AK
7548################################################################################
7549echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
7550echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6
7551# Check whether --enable-dmeventd or --disable-dmeventd was given.
7552if test "${enable_dmeventd+set}" = set; then
7553 enableval="$enable_dmeventd"
7554 DMEVENTD=$enableval
7555fi;
7556echo "$as_me:$LINENO: result: $DMEVENTD" >&5
7557echo "${ECHO_T}$DMEVENTD" >&6
7558
7559if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
7560{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
7561" >&5
7562echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
7563" >&2;}
7564 { (exit 1); exit 1; }; }
7565fi
7566
15d91f5a 7567if test x$DMEVENTD = xyes; then
72b2cb61
AK
7568
7569cat >>confdefs.h <<\_ACEOF
7570#define DMEVENTD 1
7571_ACEOF
7572
15d91f5a 7573fi
ad6254c5
AK
7574################################################################################
7575if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
7576 then exec_prefix="";
7577fi;
7578
7579################################################################################
7580if test $ac_cv_c_compiler_gnu = yes; then
7581 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7582echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7583if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586 ac_pattern="Autoconf.*'x'"
7587 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
7593#include <sgtty.h>
7594Autoconf TIOCGETP
7595_ACEOF
7596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7597 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7598 ac_cv_prog_gcc_traditional=yes
7599else
7600 ac_cv_prog_gcc_traditional=no
7601fi
7602rm -f conftest*
7603
7604
7605 if test $ac_cv_prog_gcc_traditional = no; then
7606 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7607/* confdefs.h. */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
7611/* end confdefs.h. */
7612#include <termio.h>
7613Autoconf TCGETA
7614_ACEOF
7615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7616 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7617 ac_cv_prog_gcc_traditional=yes
7618fi
7619rm -f conftest*
7620
7621 fi
7622fi
7623echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7624echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7625 if test $ac_cv_prog_gcc_traditional = yes; then
7626 CC="$CC -traditional"
7627 fi
7628fi
7629
7630echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7631echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7632if test "${ac_cv_type_signal+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
7641#include <sys/types.h>
7642#include <signal.h>
7643#ifdef signal
7644# undef signal
7645#endif
7646#ifdef __cplusplus
7647extern "C" void (*signal (int, void (*)(int)))(int);
7648#else
7649void (*signal ()) ();
7650#endif
7651
7652int
7653main ()
7654{
7655int i;
7656 ;
7657 return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext
7661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 7662 (eval $ac_compile) 2>conftest.er1
ad6254c5 7663 ac_status=$?
8a2fc586
AK
7664 grep -v '^ *+' conftest.er1 >conftest.err
7665 rm -f conftest.er1
7666 cat conftest.err >&5
ad6254c5
AK
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
8a2fc586
AK
7669 { ac_try='test -z "$ac_c_werror_flag"
7670 || test ! -s conftest.err'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672 (eval $ac_try) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; } &&
7676 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_cv_type_signal=void
7683else
7684 echo "$as_me: failed program was:" >&5
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
7687ac_cv_type_signal=int
7688fi
8a2fc586 7689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7690fi
7691echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7692echo "${ECHO_T}$ac_cv_type_signal" >&6
7693
7694cat >>confdefs.h <<_ACEOF
7695#define RETSIGTYPE $ac_cv_type_signal
7696_ACEOF
7697
7698
7699
7700for ac_func in vprintf
7701do
7702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7703echo "$as_me:$LINENO: checking for $ac_func" >&5
7704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7705if eval "test \"\${$as_ac_var+set}\" = set"; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7709/* confdefs.h. */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h. */
8a2fc586
AK
7714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7716#define $ac_func innocuous_$ac_func
7717
ad6254c5
AK
7718/* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char $ac_func (); below.
7720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 <limits.h> exists even on freestanding compilers. */
8a2fc586 7722
ad6254c5
AK
7723#ifdef __STDC__
7724# include <limits.h>
7725#else
7726# include <assert.h>
7727#endif
8a2fc586
AK
7728
7729#undef $ac_func
7730
ad6254c5
AK
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734{
7735#endif
7736/* We use char because int might match the return type of a gcc2
7737 builtin and then its argument prototype would still apply. */
7738char $ac_func ();
7739/* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7743choke me
7744#else
7745char (*f) () = $ac_func;
7746#endif
7747#ifdef __cplusplus
7748}
7749#endif
7750
7751int
7752main ()
7753{
7754return f != $ac_func;
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext conftest$ac_exeext
7760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7761 (eval $ac_link) 2>conftest.er1
ad6254c5 7762 ac_status=$?
8a2fc586
AK
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
ad6254c5
AK
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
8a2fc586
AK
7768 { ac_try='test -z "$ac_c_werror_flag"
7769 || test ! -s conftest.err'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 eval "$as_ac_var=yes"
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786eval "$as_ac_var=no"
7787fi
8a2fc586
AK
7788rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7790fi
7791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7793if test `eval echo '${'$as_ac_var'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7796_ACEOF
7797
7798echo "$as_me:$LINENO: checking for _doprnt" >&5
7799echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7800if test "${ac_cv_func__doprnt+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
8a2fc586
AK
7809/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7811#define _doprnt innocuous__doprnt
7812
ad6254c5
AK
7813/* System header to define __stub macros and hopefully few prototypes,
7814 which can conflict with char _doprnt (); below.
7815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7816 <limits.h> exists even on freestanding compilers. */
8a2fc586 7817
ad6254c5
AK
7818#ifdef __STDC__
7819# include <limits.h>
7820#else
7821# include <assert.h>
7822#endif
8a2fc586
AK
7823
7824#undef _doprnt
7825
ad6254c5
AK
7826/* Override any gcc2 internal prototype to avoid an error. */
7827#ifdef __cplusplus
7828extern "C"
7829{
7830#endif
7831/* We use char because int might match the return type of a gcc2
7832 builtin and then its argument prototype would still apply. */
7833char _doprnt ();
7834/* The GNU C library defines this for functions which it implements
7835 to always fail with ENOSYS. Some functions are actually named
7836 something starting with __ and the normal name is an alias. */
7837#if defined (__stub__doprnt) || defined (__stub____doprnt)
7838choke me
7839#else
7840char (*f) () = _doprnt;
7841#endif
7842#ifdef __cplusplus
7843}
7844#endif
7845
7846int
7847main ()
7848{
7849return f != _doprnt;
7850 ;
7851 return 0;
7852}
7853_ACEOF
7854rm -f conftest.$ac_objext conftest$ac_exeext
7855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7856 (eval $ac_link) 2>conftest.er1
ad6254c5 7857 ac_status=$?
8a2fc586
AK
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
ad6254c5
AK
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } &&
8a2fc586
AK
7863 { ac_try='test -z "$ac_c_werror_flag"
7864 || test ! -s conftest.err'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; } &&
7870 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 ac_cv_func__doprnt=yes
7877else
7878 echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881ac_cv_func__doprnt=no
7882fi
8a2fc586
AK
7883rm -f conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7885fi
7886echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7887echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7888if test $ac_cv_func__doprnt = yes; then
7889
7890cat >>confdefs.h <<\_ACEOF
7891#define HAVE_DOPRNT 1
7892_ACEOF
7893
7894fi
7895
7896fi
7897done
7898
7899
7900
7901
7902
7903for ac_func in mkdir rmdir uname
7904do
7905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7906echo "$as_me:$LINENO: checking for $ac_func" >&5
7907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7908if eval "test \"\${$as_ac_var+set}\" = set"; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7912/* confdefs.h. */
7913_ACEOF
7914cat confdefs.h >>conftest.$ac_ext
7915cat >>conftest.$ac_ext <<_ACEOF
7916/* end confdefs.h. */
8a2fc586
AK
7917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7919#define $ac_func innocuous_$ac_func
7920
ad6254c5
AK
7921/* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char $ac_func (); below.
7923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7924 <limits.h> exists even on freestanding compilers. */
8a2fc586 7925
ad6254c5
AK
7926#ifdef __STDC__
7927# include <limits.h>
7928#else
7929# include <assert.h>
7930#endif
8a2fc586
AK
7931
7932#undef $ac_func
7933
ad6254c5
AK
7934/* Override any gcc2 internal prototype to avoid an error. */
7935#ifdef __cplusplus
7936extern "C"
7937{
7938#endif
7939/* We use char because int might match the return type of a gcc2
7940 builtin and then its argument prototype would still apply. */
7941char $ac_func ();
7942/* The GNU C library defines this for functions which it implements
7943 to always fail with ENOSYS. Some functions are actually named
7944 something starting with __ and the normal name is an alias. */
7945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7946choke me
7947#else
7948char (*f) () = $ac_func;
7949#endif
7950#ifdef __cplusplus
7951}
7952#endif
7953
7954int
7955main ()
7956{
7957return f != $ac_func;
7958 ;
7959 return 0;
7960}
7961_ACEOF
7962rm -f conftest.$ac_objext conftest$ac_exeext
7963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7964 (eval $ac_link) 2>conftest.er1
ad6254c5 7965 ac_status=$?
8a2fc586
AK
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
ad6254c5
AK
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
8a2fc586
AK
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 eval "$as_ac_var=yes"
7985else
7986 echo "$as_me: failed program was:" >&5
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
7989eval "$as_ac_var=no"
7990fi
8a2fc586
AK
7991rm -f conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7993fi
7994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7996if test `eval echo '${'$as_ac_var'}'` = yes; then
7997 cat >>confdefs.h <<_ACEOF
7998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7999_ACEOF
8000
8001else
8002 { { echo "$as_me:$LINENO: error: bailing out" >&5
8003echo "$as_me: error: bailing out" >&2;}
8004 { (exit 1); exit 1; }; }
8005fi
8006done
8007
8008
8009################################################################################
8010if test x$READLINE = xyes; then
8011 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8012echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8013if test "${ac_cv_search_tgetent+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 ac_func_search_save_LIBS=$LIBS
8017ac_cv_search_tgetent=no
8018cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8019/* confdefs.h. */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */
8024
8025/* Override any gcc2 internal prototype to avoid an error. */
8026#ifdef __cplusplus
8027extern "C"
8028#endif
8029/* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031char tgetent ();
8032int
8033main ()
8034{
8035tgetent ();
8036 ;
8037 return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext conftest$ac_exeext
8041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8042 (eval $ac_link) 2>conftest.er1
ad6254c5 8043 ac_status=$?
8a2fc586
AK
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
ad6254c5
AK
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8a2fc586
AK
8049 { ac_try='test -z "$ac_c_werror_flag"
8050 || test ! -s conftest.err'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_search_tgetent="none required"
8063else
8064 echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067fi
8a2fc586
AK
8068rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8070if test "$ac_cv_search_tgetent" = no; then
8071 for ac_lib in ncurses curses termcap termlib; do
8072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8073 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
8079
8080/* Override any gcc2 internal prototype to avoid an error. */
8081#ifdef __cplusplus
8082extern "C"
8083#endif
8084/* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8086char tgetent ();
8087int
8088main ()
8089{
8090tgetent ();
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext conftest$ac_exeext
8096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8097 (eval $ac_link) 2>conftest.er1
ad6254c5 8098 ac_status=$?
8a2fc586
AK
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
ad6254c5
AK
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8a2fc586
AK
8104 { ac_try='test -z "$ac_c_werror_flag"
8105 || test ! -s conftest.err'
8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 (eval $ac_try) 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_search_tgetent="-l$ac_lib"
8118break
8119else
8120 echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
8123fi
8a2fc586
AK
8124rm -f conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8126 done
8127fi
8128LIBS=$ac_func_search_save_LIBS
8129fi
8130echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8131echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8132if test "$ac_cv_search_tgetent" != no; then
8133 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8134
8135else
8136 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8137--enable-readline option (which is enabled by default). Either disable readline
8138support with --disable-readline or download and install termcap from:
8139 ftp.gnu.org/gnu/termcap
8140Note: if you are using precompiled packages you will also need the development
8141 package as well (which may be called termcap-devel or something similar).
8142Note: (n)curses also seems to work as a substitute for termcap. This was
8143 not found either - but you could try installing that as well.
8144" >&5
8145echo "$as_me: error: termcap could not be found which is required for the
8146--enable-readline option (which is enabled by default). Either disable readline
8147support with --disable-readline or download and install termcap from:
8148 ftp.gnu.org/gnu/termcap
8149Note: if you are using precompiled packages you will also need the development
8150 package as well (which may be called termcap-devel or something similar).
8151Note: (n)curses also seems to work as a substitute for termcap. This was
8152 not found either - but you could try installing that as well.
8153" >&2;}
8154 { (exit 1); exit 1; }; }
8155
8156fi
8157
8158fi
8159
8160################################################################################
8161echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8162echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8163if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 ac_check_lib_save_LIBS=$LIBS
8167LIBS="-ldl $LIBS"
8168cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h. */
8174
8175/* Override any gcc2 internal prototype to avoid an error. */
8176#ifdef __cplusplus
8177extern "C"
8178#endif
8179/* We use char because int might match the return type of a gcc2
8180 builtin and then its argument prototype would still apply. */
8181char dlopen ();
8182int
8183main ()
8184{
8185dlopen ();
8186 ;
8187 return 0;
8188}
8189_ACEOF
8190rm -f conftest.$ac_objext conftest$ac_exeext
8191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8192 (eval $ac_link) 2>conftest.er1
ad6254c5 8193 ac_status=$?
8a2fc586
AK
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
ad6254c5
AK
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8a2fc586
AK
8199 { ac_try='test -z "$ac_c_werror_flag"
8200 || test ! -s conftest.err'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 (eval $ac_try) 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 ac_cv_lib_dl_dlopen=yes
8213else
8214 echo "$as_me: failed program was:" >&5
8215sed 's/^/| /' conftest.$ac_ext >&5
8216
8217ac_cv_lib_dl_dlopen=no
8218fi
8a2fc586
AK
8219rm -f conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8221LIBS=$ac_check_lib_save_LIBS
8222fi
8223echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8224echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8225if test $ac_cv_lib_dl_dlopen = yes; then
8226 HAVE_LIBDL=yes
8227else
8228 HAVE_LIBDL=no
8229fi
8230
8231
7e9e9502 8232if [ "x$HAVE_LIBDL" = xyes ]; then
72b2cb61
AK
8233
8234cat >>confdefs.h <<\_ACEOF
8235#define HAVE_LIBDL 1
8236_ACEOF
8237
ad6254c5
AK
8238 LIBS="-ldl $LIBS"
8239else
8240 HAVE_LIBDL=no
8241fi
8242
8243################################################################################
8244if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8245 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8246 \) -a "x$STATIC_LINK" = xyes ];
8247 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8248" >&5
8249echo "$as_me: error: Features cannot be 'shared' when building statically
8250" >&2;}
8251 { (exit 1); exit 1; }; }
8252fi
8253
8254################################################################################
8255if test x$SELINUX = xyes; then
8a2fc586
AK
8256 echo "$as_me:$LINENO: checking for sepol_check_context function" >&5
8257echo $ECHO_N "checking for sepol_check_context function... $ECHO_C" >&6
8258 echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8259echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6
8260if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262else
8263 ac_check_lib_save_LIBS=$LIBS
8264LIBS="-lsepol $LIBS"
8265cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h. */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h. */
8271
8272/* Override any gcc2 internal prototype to avoid an error. */
8273#ifdef __cplusplus
8274extern "C"
8275#endif
8276/* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8278char sepol_check_context ();
8279int
8280main ()
8281{
8282sepol_check_context ();
8283 ;
8284 return 0;
8285}
8286_ACEOF
8287rm -f conftest.$ac_objext conftest$ac_exeext
8288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag"
8297 || test ! -s conftest.err'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest$ac_exeext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_cv_lib_sepol_sepol_check_context=yes
8310else
8311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314ac_cv_lib_sepol_sepol_check_context=no
8315fi
8316rm -f conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318LIBS=$ac_check_lib_save_LIBS
8319fi
8320echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8321echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6
8322if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8323 HAVE_SEPOL=yes
8324else
8325 HAVE_SEPOL=no
8326fi
8327
8328 echo "$as_me:$LINENO: result: $HAVE_SEPOL" >&5
8329echo "${ECHO_T}$HAVE_SEPOL" >&6
8330
8331 if test x$HAVE_SEPOL = xyes; then
8332 LIBS="-lsepol $LIBS"
8333 fi
8334
ad6254c5
AK
8335 echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5
8336echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6
8337 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8338echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
8339if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 ac_check_lib_save_LIBS=$LIBS
8343LIBS="-lselinux $LIBS"
8344cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
8350
8351/* Override any gcc2 internal prototype to avoid an error. */
8352#ifdef __cplusplus
8353extern "C"
8354#endif
8355/* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8357char is_selinux_enabled ();
8358int
8359main ()
8360{
8361is_selinux_enabled ();
8362 ;
8363 return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext conftest$ac_exeext
8367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8368 (eval $ac_link) 2>conftest.er1
ad6254c5 8369 ac_status=$?
8a2fc586
AK
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
ad6254c5
AK
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8a2fc586
AK
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
8388 ac_cv_lib_selinux_is_selinux_enabled=yes
8389else
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393ac_cv_lib_selinux_is_selinux_enabled=no
8394fi
8a2fc586
AK
8395rm -f conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8397LIBS=$ac_check_lib_save_LIBS
8398fi
8399echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8400echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
8401if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8402 HAVE_SELINUX=yes
8403else
8404 HAVE_SELINUX=no
8405fi
8406
8407 echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5
8408echo "${ECHO_T}$HAVE_SELINUX" >&6
8409
8410 if test x$HAVE_SELINUX = xyes; then
72b2cb61
AK
8411
8412cat >>confdefs.h <<\_ACEOF
8413#define HAVE_SELINUX 1
8414_ACEOF
8415
ad6254c5
AK
8416 LIBS="-lselinux $LIBS"
8417 else
8418 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8419echo "$as_me: WARNING: Disabling selinux" >&2;}
8420 fi
8421fi
8422
8423################################################################################
8424
8425for ac_header in getopt.h
8426do
8427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8428if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429 echo "$as_me:$LINENO: checking for $ac_header" >&5
8430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8431if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433fi
8434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8436else
8437 # Is the header compilable?
8438echo "$as_me:$LINENO: checking $ac_header usability" >&5
8439echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8440cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446$ac_includes_default
8447#include <$ac_header>
8448_ACEOF
8449rm -f conftest.$ac_objext
8450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8451 (eval $ac_compile) 2>conftest.er1
ad6254c5 8452 ac_status=$?
8a2fc586
AK
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
ad6254c5
AK
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8a2fc586
AK
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_header_compiler=yes
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476ac_header_compiler=no
8477fi
8a2fc586 8478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8480echo "${ECHO_T}$ac_header_compiler" >&6
8481
8482# Is the header present?
8483echo "$as_me:$LINENO: checking $ac_header presence" >&5
8484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8485cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8486/* confdefs.h. */
8487_ACEOF
8488cat confdefs.h >>conftest.$ac_ext
8489cat >>conftest.$ac_ext <<_ACEOF
8490/* end confdefs.h. */
8491#include <$ac_header>
8492_ACEOF
8493if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } >/dev/null; then
8501 if test -s conftest.err; then
8502 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 8503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8504 else
8505 ac_cpp_err=
8506 fi
8507else
8508 ac_cpp_err=yes
8509fi
8510if test -z "$ac_cpp_err"; then
8511 ac_header_preproc=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_header_preproc=no
8517fi
8518rm -f conftest.err conftest.$ac_ext
8519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8520echo "${ECHO_T}$ac_header_preproc" >&6
8521
8522# So? What about this header?
8a2fc586
AK
8523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8524 yes:no: )
ad6254c5
AK
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8529 ac_header_preproc=yes
ad6254c5 8530 ;;
8a2fc586 8531 no:yes:* )
ad6254c5
AK
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8544 (
8545 cat <<\_ASBOX
8a2fc586
AK
8546## ------------------------------------------ ##
8547## Report this to the AC_PACKAGE_NAME lists. ##
8548## ------------------------------------------ ##
ad6254c5
AK
8549_ASBOX
8550 ) |
8551 sed "s/^/$as_me: WARNING: /" >&2
8552 ;;
8553esac
8554echo "$as_me:$LINENO: checking for $ac_header" >&5
8555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8556if eval "test \"\${$as_ac_Header+set}\" = set"; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8a2fc586 8559 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8560fi
8561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8563
8564fi
8565if test `eval echo '${'$as_ac_Header'}'` = yes; then
8566 cat >>confdefs.h <<_ACEOF
8567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568_ACEOF
72b2cb61
AK
8569
8570cat >>confdefs.h <<\_ACEOF
8571#define HAVE_GETOPTLONG 1
8572_ACEOF
8573
ad6254c5
AK
8574fi
8575
8576done
8577
8578
8579################################################################################
8580if test x$READLINE = xyes; then
8581
8582echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8583echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8584if test "${ac_cv_lib_readline_readline+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587 ac_check_lib_save_LIBS=$LIBS
8588LIBS="-lreadline $LIBS"
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
8596/* Override any gcc2 internal prototype to avoid an error. */
8597#ifdef __cplusplus
8598extern "C"
8599#endif
8600/* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8602char readline ();
8603int
8604main ()
8605{
8606readline ();
8607 ;
8608 return 0;
8609}
8610_ACEOF
8611rm -f conftest.$ac_objext conftest$ac_exeext
8612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8613 (eval $ac_link) 2>conftest.er1
ad6254c5 8614 ac_status=$?
8a2fc586
AK
8615 grep -v '^ *+' conftest.er1 >conftest.err
8616 rm -f conftest.er1
8617 cat conftest.err >&5
ad6254c5
AK
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8a2fc586
AK
8620 { ac_try='test -z "$ac_c_werror_flag"
8621 || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_readline_readline=yes
8634else
8635 echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638ac_cv_lib_readline_readline=no
8639fi
8a2fc586
AK
8640rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8642LIBS=$ac_check_lib_save_LIBS
8643fi
8644echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8645echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8646if test $ac_cv_lib_readline_readline = yes; then
8647 cat >>confdefs.h <<_ACEOF
8648#define HAVE_LIBREADLINE 1
8649_ACEOF
8650
8651 LIBS="-lreadline $LIBS"
8652
8653else
8654 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
8655--enable-readline option (which is enabled by default). Either disable readline
8656support with --disable-readline or download and install readline from:
8657 ftp.gnu.org/gnu/readline
8658Note: if you are using precompiled packages you will also need the development
8659package as well (which may be called readline-devel or something similar).
8660" >&5
8661echo "$as_me: error: GNU Readline could not be found which is required for the
8662--enable-readline option (which is enabled by default). Either disable readline
8663support with --disable-readline or download and install readline from:
8664 ftp.gnu.org/gnu/readline
8665Note: if you are using precompiled packages you will also need the development
8666package as well (which may be called readline-devel or something similar).
8667" >&2;}
8668 { (exit 1); exit 1; }; }
8669
8670fi
8671
8672 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
8673echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
8674if test "${ac_cv_func_rl_completion_matches+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676else
8677 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
8a2fc586
AK
8683/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
8684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8685#define rl_completion_matches innocuous_rl_completion_matches
8686
ad6254c5
AK
8687/* System header to define __stub macros and hopefully few prototypes,
8688 which can conflict with char rl_completion_matches (); below.
8689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8690 <limits.h> exists even on freestanding compilers. */
8a2fc586 8691
ad6254c5
AK
8692#ifdef __STDC__
8693# include <limits.h>
8694#else
8695# include <assert.h>
8696#endif
8a2fc586
AK
8697
8698#undef rl_completion_matches
8699
ad6254c5
AK
8700/* Override any gcc2 internal prototype to avoid an error. */
8701#ifdef __cplusplus
8702extern "C"
8703{
8704#endif
8705/* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8707char rl_completion_matches ();
8708/* The GNU C library defines this for functions which it implements
8709 to always fail with ENOSYS. Some functions are actually named
8710 something starting with __ and the normal name is an alias. */
8711#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
8712choke me
8713#else
8714char (*f) () = rl_completion_matches;
8715#endif
8716#ifdef __cplusplus
8717}
8718#endif
8719
8720int
8721main ()
8722{
8723return f != rl_completion_matches;
8724 ;
8725 return 0;
8726}
8727_ACEOF
8728rm -f conftest.$ac_objext conftest$ac_exeext
8729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8730 (eval $ac_link) 2>conftest.er1
ad6254c5 8731 ac_status=$?
8a2fc586
AK
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
ad6254c5
AK
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8a2fc586
AK
8737 { ac_try='test -z "$ac_c_werror_flag"
8738 || test ! -s conftest.err'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_cv_func_rl_completion_matches=yes
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755ac_cv_func_rl_completion_matches=no
8756fi
8a2fc586
AK
8757rm -f conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8759fi
8760echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
8761echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
8762if test $ac_cv_func_rl_completion_matches = yes; then
ad6254c5 8763
72b2cb61
AK
8764cat >>confdefs.h <<\_ACEOF
8765#define HAVE_RL_COMPLETION_MATCHES 1
8766_ACEOF
8767
8768fi
ad6254c5
AK
8769
8770fi
8771
8772################################################################################
8773echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
8774echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
8775# Check whether --enable-nls or --disable-nls was given.
8776if test "${enable_nls+set}" = set; then
8777 enableval="$enable_nls"
8778 INTL=$enableval
8779else
8780 INTL=no
8781fi;
8782echo "$as_me:$LINENO: result: $INTL" >&5
8783echo "${ECHO_T}$INTL" >&6
8784
8785if test x$INTL = xyes; then
8786 INTL_PACKAGE="lvm2"
8787 # Extract the first word of "msgfmt", so it can be a program name with args.
8788set dummy msgfmt; ac_word=$2
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
8790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791if test "${ac_cv_path_MSGFMT+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794 case $MSGFMT in
8795 [\\/]* | ?:[\\/]*)
8796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8797 ;;
8798 *)
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810done
8811done
8812
8813 ;;
8814esac
8815fi
8816MSGFMT=$ac_cv_path_MSGFMT
8817
8818if test -n "$MSGFMT"; then
8819 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8820echo "${ECHO_T}$MSGFMT" >&6
8821else
8822 echo "$as_me:$LINENO: result: no" >&5
8823echo "${ECHO_T}no" >&6
8824fi
8825
8826 if [ "x$MSGFMT" == x ];
8827 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8828 " >&5
8829echo "$as_me: error: msgfmt not found in path $PATH
8830 " >&2;}
8831 { (exit 1); exit 1; }; }
8832 fi;
8833
8834
8835# Check whether --with-localedir or --without-localedir was given.
8836if test "${with_localedir+set}" = set; then
8837 withval="$with_localedir"
8838 LOCALEDIR="$withval"
8839else
8840 LOCALEDIR='${prefix}/share/locale'
8841fi;
8842fi
8843
8844################################################################################
8845
8846# Check whether --with-confdir or --without-confdir was given.
8847if test "${with_confdir+set}" = set; then
8848 withval="$with_confdir"
8849 CONFDIR="$withval"
8850else
8851 CONFDIR='/etc'
8852fi;
8853
8854
8855# Check whether --with-staticdir or --without-staticdir was given.
8856if test "${with_staticdir+set}" = set; then
8857 withval="$with_staticdir"
8858 STATICDIR="$withval"
8859else
8860 STATICDIR='${exec_prefix}/sbin'
8861fi;
8862
8863################################################################################
8864if test x$READLINE = xyes; then
8865
8866
8867for ac_header in readline/readline.h readline/history.h
8868do
8869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8870if eval "test \"\${$as_ac_Header+set}\" = set"; then
8871 echo "$as_me:$LINENO: checking for $ac_header" >&5
8872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8873if eval "test \"\${$as_ac_Header+set}\" = set"; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875fi
8876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8878else
8879 # Is the header compilable?
8880echo "$as_me:$LINENO: checking $ac_header usability" >&5
8881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8882cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h. */
8888$ac_includes_default
8889#include <$ac_header>
8890_ACEOF
8891rm -f conftest.$ac_objext
8892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8893 (eval $ac_compile) 2>conftest.er1
ad6254c5 8894 ac_status=$?
8a2fc586
AK
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
ad6254c5
AK
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8a2fc586
AK
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_header_compiler=yes
8914else
8915 echo "$as_me: failed program was:" >&5
8916sed 's/^/| /' conftest.$ac_ext >&5
8917
8918ac_header_compiler=no
8919fi
8a2fc586 8920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8922echo "${ECHO_T}$ac_header_compiler" >&6
8923
8924# Is the header present?
8925echo "$as_me:$LINENO: checking $ac_header presence" >&5
8926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8927cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8928/* confdefs.h. */
8929_ACEOF
8930cat confdefs.h >>conftest.$ac_ext
8931cat >>conftest.$ac_ext <<_ACEOF
8932/* end confdefs.h. */
8933#include <$ac_header>
8934_ACEOF
8935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8937 ac_status=$?
8938 grep -v '^ *+' conftest.er1 >conftest.err
8939 rm -f conftest.er1
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } >/dev/null; then
8943 if test -s conftest.err; then
8944 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 8945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8946 else
8947 ac_cpp_err=
8948 fi
8949else
8950 ac_cpp_err=yes
8951fi
8952if test -z "$ac_cpp_err"; then
8953 ac_header_preproc=yes
8954else
8955 echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 ac_header_preproc=no
8959fi
8960rm -f conftest.err conftest.$ac_ext
8961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8962echo "${ECHO_T}$ac_header_preproc" >&6
8963
8964# So? What about this header?
8a2fc586
AK
8965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8966 yes:no: )
ad6254c5
AK
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
8969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8971 ac_header_preproc=yes
ad6254c5 8972 ;;
8a2fc586 8973 no:yes:* )
ad6254c5
AK
8974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
8976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8977echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8981echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
8984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8986 (
8987 cat <<\_ASBOX
8a2fc586
AK
8988## ------------------------------------------ ##
8989## Report this to the AC_PACKAGE_NAME lists. ##
8990## ------------------------------------------ ##
ad6254c5
AK
8991_ASBOX
8992 ) |
8993 sed "s/^/$as_me: WARNING: /" >&2
8994 ;;
8995esac
8996echo "$as_me:$LINENO: checking for $ac_header" >&5
8997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8998if eval "test \"\${$as_ac_Header+set}\" = set"; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else
8a2fc586 9001 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9002fi
9003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9005
9006fi
9007if test `eval echo '${'$as_ac_Header'}'` = yes; then
9008 cat >>confdefs.h <<_ACEOF
9009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9010_ACEOF
9011
9012else
9013 { { echo "$as_me:$LINENO: error: bailing out" >&5
9014echo "$as_me: error: bailing out" >&2;}
9015 { (exit 1); exit 1; }; }
9016fi
9017
9018done
9019
9020fi
9021
5c7fc7c4 9022if test x$CLVMD != xnone; then
ad6254c5
AK
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033for 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
9034do
9035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037 echo "$as_me:$LINENO: checking for $ac_header" >&5
9038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9039if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9041fi
9042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9044else
9045 # Is the header compilable?
9046echo "$as_me:$LINENO: checking $ac_header usability" >&5
9047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9048cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9049/* confdefs.h. */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h. */
9054$ac_includes_default
9055#include <$ac_header>
9056_ACEOF
9057rm -f conftest.$ac_objext
9058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9059 (eval $ac_compile) 2>conftest.er1
ad6254c5 9060 ac_status=$?
8a2fc586
AK
9061 grep -v '^ *+' conftest.er1 >conftest.err
9062 rm -f conftest.er1
9063 cat conftest.err >&5
ad6254c5
AK
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
8a2fc586
AK
9066 { ac_try='test -z "$ac_c_werror_flag"
9067 || test ! -s conftest.err'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_header_compiler=yes
9080else
9081 echo "$as_me: failed program was:" >&5
9082sed 's/^/| /' conftest.$ac_ext >&5
9083
9084ac_header_compiler=no
9085fi
8a2fc586 9086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088echo "${ECHO_T}$ac_header_compiler" >&6
9089
9090# Is the header present?
9091echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9093cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099#include <$ac_header>
9100_ACEOF
9101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null; then
9109 if test -s conftest.err; then
9110 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9112 else
9113 ac_cpp_err=
9114 fi
9115else
9116 ac_cpp_err=yes
9117fi
9118if test -z "$ac_cpp_err"; then
9119 ac_header_preproc=yes
9120else
9121 echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
9124 ac_header_preproc=no
9125fi
9126rm -f conftest.err conftest.$ac_ext
9127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128echo "${ECHO_T}$ac_header_preproc" >&6
9129
9130# So? What about this header?
8a2fc586
AK
9131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9132 yes:no: )
ad6254c5
AK
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9137 ac_header_preproc=yes
ad6254c5 9138 ;;
8a2fc586 9139 no:yes:* )
ad6254c5
AK
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9152 (
9153 cat <<\_ASBOX
8a2fc586
AK
9154## ------------------------------------------ ##
9155## Report this to the AC_PACKAGE_NAME lists. ##
9156## ------------------------------------------ ##
ad6254c5
AK
9157_ASBOX
9158 ) |
9159 sed "s/^/$as_me: WARNING: /" >&2
9160 ;;
9161esac
9162echo "$as_me:$LINENO: checking for $ac_header" >&5
9163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9164if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166else
8a2fc586 9167 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9168fi
9169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9171
9172fi
9173if test `eval echo '${'$as_ac_Header'}'` = yes; then
9174 cat >>confdefs.h <<_ACEOF
9175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9176_ACEOF
9177
9178else
9179 { { echo "$as_me:$LINENO: error: bailing out" >&5
9180echo "$as_me: error: bailing out" >&2;}
9181 { (exit 1); exit 1; }; }
795ca3e5
AK
9182fi
9183
ad6254c5
AK
9184done
9185
9186
795ca3e5 9187
8106cdd5 9188
ad6254c5
AK
9189
9190
9191for ac_func in dup2 getmntent memmove select socket
9192do
9193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9194echo "$as_me:$LINENO: checking for $ac_func" >&5
9195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9196if eval "test \"\${$as_ac_var+set}\" = set"; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9198else
ad6254c5 9199 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9200/* confdefs.h. */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
9204/* end confdefs.h. */
8a2fc586
AK
9205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207#define $ac_func innocuous_$ac_func
9208
795ca3e5 9209/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9210 which can conflict with char $ac_func (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
8a2fc586 9213
ad6254c5
AK
9214#ifdef __STDC__
9215# include <limits.h>
9216#else
9217# include <assert.h>
9218#endif
8a2fc586
AK
9219
9220#undef $ac_func
9221
795ca3e5 9222/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9223#ifdef __cplusplus
9224extern "C"
9225{
9226#endif
795ca3e5 9227/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9228 builtin and then its argument prototype would still apply. */
9229char $ac_func ();
795ca3e5
AK
9230/* The GNU C library defines this for functions which it implements
9231 to always fail with ENOSYS. Some functions are actually named
9232 something starting with __ and the normal name is an alias. */
ad6254c5 9233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
9234choke me
9235#else
ad6254c5
AK
9236char (*f) () = $ac_func;
9237#endif
9238#ifdef __cplusplus
9239}
795ca3e5
AK
9240#endif
9241
ad6254c5
AK
9242int
9243main ()
9244{
9245return f != $ac_func;
9246 ;
9247 return 0;
9248}
9249_ACEOF
9250rm -f conftest.$ac_objext conftest$ac_exeext
9251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9252 (eval $ac_link) 2>conftest.er1
ad6254c5 9253 ac_status=$?
8a2fc586
AK
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
ad6254c5
AK
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
8a2fc586
AK
9259 { ac_try='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 eval "$as_ac_var=yes"
795ca3e5 9273else
ad6254c5
AK
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277eval "$as_ac_var=no"
80992638 9278fi
8a2fc586
AK
9279rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9281fi
ad6254c5
AK
9282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9284if test `eval echo '${'$as_ac_var'}'` = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9287_ACEOF
80992638
AK
9288
9289else
ad6254c5
AK
9290 { { echo "$as_me:$LINENO: error: bailing out" >&5
9291echo "$as_me: error: bailing out" >&2;}
9292 { (exit 1); exit 1; }; }
8106cdd5 9293fi
ad6254c5 9294done
795ca3e5 9295
ad6254c5
AK
9296 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9297echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9298echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9299if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9301else
ad6254c5
AK
9302 ac_check_lib_save_LIBS=$LIBS
9303LIBS="-lsun $LIBS"
9304cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9305/* confdefs.h. */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
9309/* end confdefs.h. */
9310
795ca3e5 9311/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9312#ifdef __cplusplus
9313extern "C"
9314#endif
795ca3e5 9315/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9316 builtin and then its argument prototype would still apply. */
9317char getmntent ();
9318int
9319main ()
9320{
9321getmntent ();
9322 ;
9323 return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext conftest$ac_exeext
9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9328 (eval $ac_link) 2>conftest.er1
ad6254c5 9329 ac_status=$?
8a2fc586
AK
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
ad6254c5
AK
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
8a2fc586
AK
9335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_lib_sun_getmntent=yes
9349else
9350 echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
80992638 9352
ad6254c5
AK
9353ac_cv_lib_sun_getmntent=no
9354fi
8a2fc586
AK
9355rm -f conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9357LIBS=$ac_check_lib_save_LIBS
9358fi
9359echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9360echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9361if test $ac_cv_lib_sun_getmntent = yes; then
9362 LIBS="-lsun $LIBS"
9363else
9364 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9365echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9366if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369 ac_check_lib_save_LIBS=$LIBS
9370LIBS="-lseq $LIBS"
9371cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9372/* confdefs.h. */
9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h. */
80992638 9377
ad6254c5
AK
9378/* Override any gcc2 internal prototype to avoid an error. */
9379#ifdef __cplusplus
9380extern "C"
795ca3e5 9381#endif
ad6254c5
AK
9382/* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384char getmntent ();
9385int
9386main ()
9387{
9388getmntent ();
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9395 (eval $ac_link) 2>conftest.er1
ad6254c5 9396 ac_status=$?
8a2fc586
AK
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
ad6254c5
AK
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
8a2fc586
AK
9402 { ac_try='test -z "$ac_c_werror_flag"
9403 || test ! -s conftest.err'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_cv_lib_seq_getmntent=yes
795ca3e5 9416else
ad6254c5
AK
9417 echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
9420ac_cv_lib_seq_getmntent=no
795ca3e5 9421fi
8a2fc586
AK
9422rm -f conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9424LIBS=$ac_check_lib_save_LIBS
795ca3e5 9425fi
ad6254c5
AK
9426echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9427echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9428if test $ac_cv_lib_seq_getmntent = yes; then
9429 LIBS="-lseq $LIBS"
9430else
9431 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9432echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9433if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435else
9436 ac_check_lib_save_LIBS=$LIBS
9437LIBS="-lgen $LIBS"
9438cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9439/* confdefs.h. */
9440_ACEOF
9441cat confdefs.h >>conftest.$ac_ext
9442cat >>conftest.$ac_ext <<_ACEOF
9443/* end confdefs.h. */
795ca3e5 9444
ad6254c5
AK
9445/* Override any gcc2 internal prototype to avoid an error. */
9446#ifdef __cplusplus
9447extern "C"
9448#endif
9449/* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451char getmntent ();
9452int
9453main ()
9454{
9455getmntent ();
9456 ;
9457 return 0;
9458}
9459_ACEOF
9460rm -f conftest.$ac_objext conftest$ac_exeext
9461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9462 (eval $ac_link) 2>conftest.er1
ad6254c5 9463 ac_status=$?
8a2fc586
AK
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
ad6254c5
AK
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
8a2fc586
AK
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_cv_lib_gen_getmntent=yes
80992638 9483else
ad6254c5
AK
9484 echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
9487ac_cv_lib_gen_getmntent=no
9488fi
8a2fc586
AK
9489rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9491LIBS=$ac_check_lib_save_LIBS
9492fi
9493echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9494echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9495if test $ac_cv_lib_gen_getmntent = yes; then
9496 LIBS="-lgen $LIBS"
795ca3e5
AK
9497fi
9498
9499fi
9500
ad6254c5
AK
9501fi
9502
9503
9504for ac_func in getmntent
795ca3e5 9505do
ad6254c5
AK
9506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9507echo "$as_me:$LINENO: checking for $ac_func" >&5
9508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9509if eval "test \"\${$as_ac_var+set}\" = set"; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9513/* confdefs.h. */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h. */
8a2fc586
AK
9518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9520#define $ac_func innocuous_$ac_func
9521
795ca3e5 9522/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9523 which can conflict with char $ac_func (); below.
9524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9525 <limits.h> exists even on freestanding compilers. */
8a2fc586 9526
ad6254c5
AK
9527#ifdef __STDC__
9528# include <limits.h>
9529#else
9530# include <assert.h>
9531#endif
8a2fc586
AK
9532
9533#undef $ac_func
9534
795ca3e5 9535/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9536#ifdef __cplusplus
9537extern "C"
9538{
9539#endif
795ca3e5 9540/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9541 builtin and then its argument prototype would still apply. */
9542char $ac_func ();
795ca3e5
AK
9543/* The GNU C library defines this for functions which it implements
9544 to always fail with ENOSYS. Some functions are actually named
9545 something starting with __ and the normal name is an alias. */
9546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9547choke me
9548#else
ad6254c5
AK
9549char (*f) () = $ac_func;
9550#endif
9551#ifdef __cplusplus
9552}
795ca3e5
AK
9553#endif
9554
ad6254c5
AK
9555int
9556main ()
9557{
9558return f != $ac_func;
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext conftest$ac_exeext
9564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9565 (eval $ac_link) 2>conftest.er1
ad6254c5 9566 ac_status=$?
8a2fc586
AK
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
ad6254c5
AK
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
8a2fc586
AK
9572 { ac_try='test -z "$ac_c_werror_flag"
9573 || test ! -s conftest.err'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 eval "$as_ac_var=yes"
795ca3e5 9586else
ad6254c5
AK
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590eval "$as_ac_var=no"
795ca3e5 9591fi
8a2fc586
AK
9592rm -f conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9594fi
ad6254c5
AK
9595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9597if test `eval echo '${'$as_ac_var'}'` = yes; then
9598 cat >>confdefs.h <<_ACEOF
9599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9600_ACEOF
795ca3e5 9601
795ca3e5
AK
9602fi
9603done
9604
9605
ad6254c5
AK
9606# AC_FUNC_REALLOC
9607
9608
9609for ac_header in sys/select.h sys/socket.h
9610do
9611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9612if eval "test \"\${$as_ac_Header+set}\" = set"; then
9613 echo "$as_me:$LINENO: checking for $ac_header" >&5
9614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9615if eval "test \"\${$as_ac_Header+set}\" = set"; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617fi
9618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 9620else
ad6254c5
AK
9621 # Is the header compilable?
9622echo "$as_me:$LINENO: checking $ac_header usability" >&5
9623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9624cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
9630$ac_includes_default
9631#include <$ac_header>
9632_ACEOF
9633rm -f conftest.$ac_objext
9634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9635 (eval $ac_compile) 2>conftest.er1
ad6254c5 9636 ac_status=$?
8a2fc586
AK
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
ad6254c5
AK
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
8a2fc586
AK
9642 { ac_try='test -z "$ac_c_werror_flag"
9643 || test ! -s conftest.err'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; } &&
9649 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_header_compiler=yes
80992638 9656else
ad6254c5
AK
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660ac_header_compiler=no
9661fi
8a2fc586 9662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9664echo "${ECHO_T}$ac_header_compiler" >&6
9665
9666# Is the header present?
9667echo "$as_me:$LINENO: checking $ac_header presence" >&5
9668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9669cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9670/* confdefs.h. */
9671_ACEOF
9672cat confdefs.h >>conftest.$ac_ext
9673cat >>conftest.$ac_ext <<_ACEOF
9674/* end confdefs.h. */
9675#include <$ac_header>
9676_ACEOF
9677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9679 ac_status=$?
9680 grep -v '^ *+' conftest.er1 >conftest.err
9681 rm -f conftest.er1
9682 cat conftest.err >&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } >/dev/null; then
9685 if test -s conftest.err; then
9686 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9688 else
9689 ac_cpp_err=
9690 fi
9691else
9692 ac_cpp_err=yes
795ca3e5 9693fi
ad6254c5
AK
9694if test -z "$ac_cpp_err"; then
9695 ac_header_preproc=yes
9696else
9697 echo "$as_me: failed program was:" >&5
9698sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_header_preproc=no
9701fi
9702rm -f conftest.err conftest.$ac_ext
9703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704echo "${ECHO_T}$ac_header_preproc" >&6
9705
9706# So? What about this header?
8a2fc586
AK
9707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9708 yes:no: )
ad6254c5
AK
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713 ac_header_preproc=yes
ad6254c5 9714 ;;
8a2fc586 9715 no:yes:* )
ad6254c5
AK
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9728 (
9729 cat <<\_ASBOX
8a2fc586
AK
9730## ------------------------------------------ ##
9731## Report this to the AC_PACKAGE_NAME lists. ##
9732## ------------------------------------------ ##
ad6254c5
AK
9733_ASBOX
9734 ) |
9735 sed "s/^/$as_me: WARNING: /" >&2
9736 ;;
9737esac
9738echo "$as_me:$LINENO: checking for $ac_header" >&5
9739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9740if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
8a2fc586 9743 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9744fi
ad6254c5
AK
9745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 9747
795ca3e5 9748fi
ad6254c5
AK
9749if test `eval echo '${'$as_ac_Header'}'` = yes; then
9750 cat >>confdefs.h <<_ACEOF
9751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9752_ACEOF
9753
795ca3e5
AK
9754fi
9755
ad6254c5
AK
9756done
9757
9758echo "$as_me:$LINENO: checking types of arguments for select" >&5
9759echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9760if test "${ac_cv_func_select_args+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9762else
ad6254c5
AK
9763 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9764 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9765 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9766 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772$ac_includes_default
9773#if HAVE_SYS_SELECT_H
9774# include <sys/select.h>
9775#endif
9776#if HAVE_SYS_SOCKET_H
9777# include <sys/socket.h>
9778#endif
9779
9780int
9781main ()
9782{
9783extern int select ($ac_arg1,
8a2fc586
AK
9784 $ac_arg234, $ac_arg234, $ac_arg234,
9785 $ac_arg5);
ad6254c5
AK
9786 ;
9787 return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext
9791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9792 (eval $ac_compile) 2>conftest.er1
ad6254c5 9793 ac_status=$?
8a2fc586
AK
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
ad6254c5
AK
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
8a2fc586
AK
9799 { ac_try='test -z "$ac_c_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9813else
9814 echo "$as_me: failed program was:" >&5
9815sed 's/^/| /' conftest.$ac_ext >&5
9816
9817fi
8a2fc586 9818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9819 done
9820 done
9821done
9822# Provide a safe default value.
9823: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9824
26e7f2e0 9825fi
ad6254c5
AK
9826echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9827echo "${ECHO_T}$ac_cv_func_select_args" >&6
9828ac_save_IFS=$IFS; IFS=','
9829set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9830IFS=$ac_save_IFS
9831shift
9832
9833cat >>confdefs.h <<_ACEOF
9834#define SELECT_TYPE_ARG1 $1
9835_ACEOF
9836
9837
9838cat >>confdefs.h <<_ACEOF
9839#define SELECT_TYPE_ARG234 ($2)
9840_ACEOF
9841
9842
9843cat >>confdefs.h <<_ACEOF
9844#define SELECT_TYPE_ARG5 ($3)
9845_ACEOF
9846
80992638 9847rm -f conftest*
80992638 9848
8106cdd5 9849fi
ad6254c5
AK
9850
9851if test x$FSADM = xyes; then
9852
9853
9854
9855for ac_header in fstab.h sys/mount.h sys/vfs.h
9856do
9857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9858if eval "test \"\${$as_ac_Header+set}\" = set"; then
9859 echo "$as_me:$LINENO: checking for $ac_header" >&5
9860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863fi
9864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9866else
9867 # Is the header compilable?
9868echo "$as_me:$LINENO: checking $ac_header usability" >&5
9869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9870cat >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#include <$ac_header>
9878_ACEOF
9879rm -f conftest.$ac_objext
9880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9881 (eval $ac_compile) 2>conftest.er1
ad6254c5 9882 ac_status=$?
8a2fc586
AK
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
ad6254c5
AK
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } &&
8a2fc586
AK
9888 { ac_try='test -z "$ac_c_werror_flag"
9889 || test ! -s conftest.err'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 (eval $ac_try) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; } &&
9895 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_header_compiler=yes
9902else
9903 echo "$as_me: failed program was:" >&5
9904sed 's/^/| /' conftest.$ac_ext >&5
9905
9906ac_header_compiler=no
9907fi
8a2fc586 9908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9910echo "${ECHO_T}$ac_header_compiler" >&6
9911
9912# Is the header present?
9913echo "$as_me:$LINENO: checking $ac_header presence" >&5
9914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9915cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9916/* confdefs.h. */
9917_ACEOF
9918cat confdefs.h >>conftest.$ac_ext
9919cat >>conftest.$ac_ext <<_ACEOF
9920/* end confdefs.h. */
9921#include <$ac_header>
9922_ACEOF
9923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } >/dev/null; then
9931 if test -s conftest.err; then
9932 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9934 else
9935 ac_cpp_err=
9936 fi
9937else
9938 ac_cpp_err=yes
9939fi
9940if test -z "$ac_cpp_err"; then
9941 ac_header_preproc=yes
9942else
9943 echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 ac_header_preproc=no
9947fi
9948rm -f conftest.err conftest.$ac_ext
9949echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9950echo "${ECHO_T}$ac_header_preproc" >&6
9951
9952# So? What about this header?
8a2fc586
AK
9953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9954 yes:no: )
ad6254c5
AK
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9959 ac_header_preproc=yes
ad6254c5 9960 ;;
8a2fc586 9961 no:yes:* )
ad6254c5
AK
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9974 (
9975 cat <<\_ASBOX
8a2fc586
AK
9976## ------------------------------------------ ##
9977## Report this to the AC_PACKAGE_NAME lists. ##
9978## ------------------------------------------ ##
ad6254c5
AK
9979_ASBOX
9980 ) |
9981 sed "s/^/$as_me: WARNING: /" >&2
9982 ;;
9983esac
9984echo "$as_me:$LINENO: checking for $ac_header" >&5
9985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9986if eval "test \"\${$as_ac_Header+set}\" = set"; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9988else
8a2fc586 9989 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 9990fi
ad6254c5
AK
9991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 9993
ad6254c5
AK
9994fi
9995if test `eval echo '${'$as_ac_Header'}'` = yes; then
9996 cat >>confdefs.h <<_ACEOF
9997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9998_ACEOF
26e7f2e0 9999
d68a82ec 10000else
ad6254c5
AK
10001 { { echo "$as_me:$LINENO: error: bailing out" >&5
10002echo "$as_me: error: bailing out" >&2;}
10003 { (exit 1); exit 1; }; }
26e7f2e0
AK
10004fi
10005
ad6254c5 10006done
036f273a 10007
ad6254c5
AK
10008
10009for ac_func in memmove
10010do
10011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10012echo "$as_me:$LINENO: checking for $ac_func" >&5
10013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10014if eval "test \"\${$as_ac_var+set}\" = set"; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 10016else
ad6254c5 10017 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
8a2fc586
AK
10023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10025#define $ac_func innocuous_$ac_func
10026
ad6254c5
AK
10027/* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char $ac_func (); below.
10029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030 <limits.h> exists even on freestanding compilers. */
8a2fc586 10031
ad6254c5
AK
10032#ifdef __STDC__
10033# include <limits.h>
10034#else
10035# include <assert.h>
10036#endif
8a2fc586
AK
10037
10038#undef $ac_func
10039
036f273a 10040/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10041#ifdef __cplusplus
10042extern "C"
10043{
10044#endif
036f273a 10045/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10046 builtin and then its argument prototype would still apply. */
10047char $ac_func ();
10048/* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10052choke me
10053#else
10054char (*f) () = $ac_func;
10055#endif
10056#ifdef __cplusplus
10057}
10058#endif
80992638 10059
ad6254c5
AK
10060int
10061main ()
10062{
10063return f != $ac_func;
10064 ;
10065 return 0;
10066}
10067_ACEOF
10068rm -f conftest.$ac_objext conftest$ac_exeext
10069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10070 (eval $ac_link) 2>conftest.er1
ad6254c5 10071 ac_status=$?
8a2fc586
AK
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
ad6254c5
AK
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
8a2fc586
AK
10077 { ac_try='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10081 ac_status=$?
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10087 ac_status=$?
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 eval "$as_ac_var=yes"
036f273a 10091else
ad6254c5
AK
10092 echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095eval "$as_ac_var=no"
036f273a 10096fi
8a2fc586
AK
10097rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10099fi
10100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10102if test `eval echo '${'$as_ac_var'}'` = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10105_ACEOF
036f273a 10106
ad6254c5
AK
10107else
10108 { { echo "$as_me:$LINENO: error: bailing out" >&5
10109echo "$as_me: error: bailing out" >&2;}
10110 { (exit 1); exit 1; }; }
10111fi
10112done
036f273a 10113
036f273a 10114fi
d68a82ec 10115
ad6254c5
AK
10116if test x$CLUSTER != xnone; then
10117
10118
10119for ac_header in sys/socket.h sys/un.h
b896caa1 10120do
ad6254c5
AK
10121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122if eval "test \"\${$as_ac_Header+set}\" = set"; then
10123 echo "$as_me:$LINENO: checking for $ac_header" >&5
10124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10125if eval "test \"\${$as_ac_Header+set}\" = set"; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127fi
10128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10130else
10131 # Is the header compilable?
10132echo "$as_me:$LINENO: checking $ac_header usability" >&5
10133echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10134cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10135/* confdefs.h. */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h. */
10140$ac_includes_default
10141#include <$ac_header>
10142_ACEOF
10143rm -f conftest.$ac_objext
10144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10145 (eval $ac_compile) 2>conftest.er1
ad6254c5 10146 ac_status=$?
8a2fc586
AK
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
ad6254c5
AK
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
8a2fc586
AK
10152 { ac_try='test -z "$ac_c_werror_flag"
10153 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5
10156 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_header_compiler=yes
10166else
10167 echo "$as_me: failed program was:" >&5
10168sed 's/^/| /' conftest.$ac_ext >&5
10169
10170ac_header_compiler=no
10171fi
8a2fc586 10172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10173echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10174echo "${ECHO_T}$ac_header_compiler" >&6
10175
10176# Is the header present?
10177echo "$as_me:$LINENO: checking $ac_header presence" >&5
10178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10179cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10180/* confdefs.h. */
10181_ACEOF
10182cat confdefs.h >>conftest.$ac_ext
10183cat >>conftest.$ac_ext <<_ACEOF
10184/* end confdefs.h. */
10185#include <$ac_header>
10186_ACEOF
10187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } >/dev/null; then
10195 if test -s conftest.err; then
10196 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10198 else
10199 ac_cpp_err=
10200 fi
10201else
10202 ac_cpp_err=yes
8106cdd5 10203fi
ad6254c5
AK
10204if test -z "$ac_cpp_err"; then
10205 ac_header_preproc=yes
10206else
10207 echo "$as_me: failed program was:" >&5
10208sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_header_preproc=no
10211fi
10212rm -f conftest.err conftest.$ac_ext
10213echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214echo "${ECHO_T}$ac_header_preproc" >&6
10215
10216# So? What about this header?
8a2fc586
AK
10217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218 yes:no: )
ad6254c5
AK
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10223 ac_header_preproc=yes
ad6254c5 10224 ;;
8a2fc586 10225 no:yes:* )
ad6254c5
AK
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10238 (
10239 cat <<\_ASBOX
8a2fc586
AK
10240## ------------------------------------------ ##
10241## Report this to the AC_PACKAGE_NAME lists. ##
10242## ------------------------------------------ ##
ad6254c5
AK
10243_ASBOX
10244 ) |
10245 sed "s/^/$as_me: WARNING: /" >&2
10246 ;;
10247esac
10248echo "$as_me:$LINENO: checking for $ac_header" >&5
10249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10250if eval "test \"\${$as_ac_Header+set}\" = set"; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252else
8a2fc586 10253 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10254fi
ad6254c5
AK
10255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10257
10258fi
10259if test `eval echo '${'$as_ac_Header'}'` = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10262_ACEOF
10263
80992638 10264else
ad6254c5
AK
10265 { { echo "$as_me:$LINENO: error: bailing out" >&5
10266echo "$as_me: error: bailing out" >&2;}
10267 { (exit 1); exit 1; }; }
b896caa1 10268fi
ad6254c5 10269
b896caa1
AK
10270done
10271
10272
ad6254c5
AK
10273for ac_func in socket
10274do
10275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10276echo "$as_me:$LINENO: checking for $ac_func" >&5
10277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10278if eval "test \"\${$as_ac_var+set}\" = set"; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10280else
ad6254c5 10281 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10282/* confdefs.h. */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h. */
8a2fc586
AK
10287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289#define $ac_func innocuous_$ac_func
10290
ad6254c5
AK
10291/* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char $ac_func (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
8a2fc586 10295
ad6254c5
AK
10296#ifdef __STDC__
10297# include <limits.h>
10298#else
10299# include <assert.h>
10300#endif
8a2fc586
AK
10301
10302#undef $ac_func
10303
795ca3e5 10304/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10305#ifdef __cplusplus
10306extern "C"
10307{
10308#endif
795ca3e5 10309/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10310 builtin and then its argument prototype would still apply. */
10311char $ac_func ();
10312/* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10316choke me
10317#else
10318char (*f) () = $ac_func;
10319#endif
10320#ifdef __cplusplus
10321}
10322#endif
10323
10324int
10325main ()
10326{
10327return f != $ac_func;
10328 ;
10329 return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
10333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10334 (eval $ac_link) 2>conftest.er1
ad6254c5 10335 ac_status=$?
8a2fc586
AK
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
ad6254c5
AK
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
8a2fc586
AK
10341 { ac_try='test -z "$ac_c_werror_flag"
10342 || test ! -s conftest.err'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 eval "$as_ac_var=yes"
10355else
10356 echo "$as_me: failed program was:" >&5
10357sed 's/^/| /' conftest.$ac_ext >&5
10358
10359eval "$as_ac_var=no"
10360fi
8a2fc586
AK
10361rm -f conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10363fi
10364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10366if test `eval echo '${'$as_ac_var'}'` = yes; then
10367 cat >>confdefs.h <<_ACEOF
10368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10369_ACEOF
10370
10371else
10372 { { echo "$as_me:$LINENO: error: bailing out" >&5
10373echo "$as_me: error: bailing out" >&2;}
10374 { (exit 1); exit 1; }; }
10375fi
10376done
10377
10378fi
10379
10380if test x$HAVE_LIBDL = xyes; then
10381
10382for ac_header in dlfcn.h
10383do
10384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10385if eval "test \"\${$as_ac_Header+set}\" = set"; then
10386 echo "$as_me:$LINENO: checking for $ac_header" >&5
10387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10388if eval "test \"\${$as_ac_Header+set}\" = set"; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390fi
10391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10393else
10394 # Is the header compilable?
10395echo "$as_me:$LINENO: checking $ac_header usability" >&5
10396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10397cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10398/* confdefs.h. */
10399_ACEOF
10400cat confdefs.h >>conftest.$ac_ext
10401cat >>conftest.$ac_ext <<_ACEOF
10402/* end confdefs.h. */
10403$ac_includes_default
10404#include <$ac_header>
10405_ACEOF
10406rm -f conftest.$ac_objext
10407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10408 (eval $ac_compile) 2>conftest.er1
ad6254c5 10409 ac_status=$?
8a2fc586
AK
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
ad6254c5
AK
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
8a2fc586
AK
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_header_compiler=yes
10429else
10430 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
10433ac_header_compiler=no
10434fi
8a2fc586 10435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10437echo "${ECHO_T}$ac_header_compiler" >&6
10438
10439# Is the header present?
10440echo "$as_me:$LINENO: checking $ac_header presence" >&5
10441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10442cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10443/* confdefs.h. */
10444_ACEOF
10445cat confdefs.h >>conftest.$ac_ext
10446cat >>conftest.$ac_ext <<_ACEOF
10447/* end confdefs.h. */
10448#include <$ac_header>
10449_ACEOF
10450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } >/dev/null; then
10458 if test -s conftest.err; then
10459 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10461 else
10462 ac_cpp_err=
10463 fi
10464else
10465 ac_cpp_err=yes
10466fi
10467if test -z "$ac_cpp_err"; then
10468 ac_header_preproc=yes
10469else
10470 echo "$as_me: failed program was:" >&5
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 ac_header_preproc=no
10474fi
10475rm -f conftest.err conftest.$ac_ext
10476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10477echo "${ECHO_T}$ac_header_preproc" >&6
10478
10479# So? What about this header?
8a2fc586
AK
10480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10481 yes:no: )
ad6254c5
AK
10482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10486 ac_header_preproc=yes
ad6254c5 10487 ;;
8a2fc586 10488 no:yes:* )
ad6254c5
AK
10489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10501 (
10502 cat <<\_ASBOX
8a2fc586
AK
10503## ------------------------------------------ ##
10504## Report this to the AC_PACKAGE_NAME lists. ##
10505## ------------------------------------------ ##
ad6254c5
AK
10506_ASBOX
10507 ) |
10508 sed "s/^/$as_me: WARNING: /" >&2
10509 ;;
10510esac
10511echo "$as_me:$LINENO: checking for $ac_header" >&5
10512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10513if eval "test \"\${$as_ac_Header+set}\" = set"; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
8a2fc586 10516 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10517fi
ad6254c5
AK
10518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 10520
8106cdd5 10521fi
ad6254c5
AK
10522if test `eval echo '${'$as_ac_Header'}'` = yes; then
10523 cat >>confdefs.h <<_ACEOF
10524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10525_ACEOF
795ca3e5
AK
10526
10527else
ad6254c5
AK
10528 { { echo "$as_me:$LINENO: error: bailing out" >&5
10529echo "$as_me: error: bailing out" >&2;}
10530 { (exit 1); exit 1; }; }
795ca3e5
AK
10531fi
10532
ad6254c5 10533done
80992638 10534
ad6254c5 10535fi
80992638 10536
ad6254c5 10537if test x$INTL = xyes; then
83912faa 10538
ad6254c5
AK
10539for ac_header in libintl.h
10540do
10541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10542if eval "test \"\${$as_ac_Header+set}\" = set"; then
10543 echo "$as_me:$LINENO: checking for $ac_header" >&5
10544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10545if eval "test \"\${$as_ac_Header+set}\" = set"; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547fi
10548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10550else
ad6254c5
AK
10551 # Is the header compilable?
10552echo "$as_me:$LINENO: checking $ac_header usability" >&5
10553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10554cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560$ac_includes_default
10561#include <$ac_header>
10562_ACEOF
10563rm -f conftest.$ac_objext
10564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10565 (eval $ac_compile) 2>conftest.er1
ad6254c5 10566 ac_status=$?
8a2fc586
AK
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
ad6254c5
AK
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
8a2fc586
AK
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 ac_header_compiler=yes
10586else
10587 echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590ac_header_compiler=no
10591fi
8a2fc586 10592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10594echo "${ECHO_T}$ac_header_compiler" >&6
10595
10596# Is the header present?
10597echo "$as_me:$LINENO: checking $ac_header presence" >&5
10598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10599cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10600/* confdefs.h. */
10601_ACEOF
10602cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */
10605#include <$ac_header>
10606_ACEOF
10607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } >/dev/null; then
10615 if test -s conftest.err; then
10616 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10618 else
10619 ac_cpp_err=
10620 fi
10621else
10622 ac_cpp_err=yes
795ca3e5 10623fi
ad6254c5
AK
10624if test -z "$ac_cpp_err"; then
10625 ac_header_preproc=yes
10626else
10627 echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_header_preproc=no
10631fi
10632rm -f conftest.err conftest.$ac_ext
10633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10634echo "${ECHO_T}$ac_header_preproc" >&6
10635
10636# So? What about this header?
8a2fc586
AK
10637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10638 yes:no: )
ad6254c5
AK
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10643 ac_header_preproc=yes
ad6254c5 10644 ;;
8a2fc586 10645 no:yes:* )
ad6254c5
AK
10646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10653echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10658 (
10659 cat <<\_ASBOX
8a2fc586
AK
10660## ------------------------------------------ ##
10661## Report this to the AC_PACKAGE_NAME lists. ##
10662## ------------------------------------------ ##
ad6254c5
AK
10663_ASBOX
10664 ) |
10665 sed "s/^/$as_me: WARNING: /" >&2
10666 ;;
10667esac
10668echo "$as_me:$LINENO: checking for $ac_header" >&5
10669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10670if eval "test \"\${$as_ac_Header+set}\" = set"; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10672else
8a2fc586 10673 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10674fi
ad6254c5
AK
10675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10677
69792976 10678fi
ad6254c5
AK
10679if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680 cat >>confdefs.h <<_ACEOF
10681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682_ACEOF
69792976 10683
69792976 10684else
ad6254c5
AK
10685 { { echo "$as_me:$LINENO: error: bailing out" >&5
10686echo "$as_me: error: bailing out" >&2;}
10687 { (exit 1); exit 1; }; }
80992638
AK
10688fi
10689
ad6254c5 10690done
69792976 10691
ad6254c5
AK
10692fi
10693
ad6254c5
AK
10694
10695for ac_header in libdevmapper.h
10696do
10697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10698if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo "$as_me:$LINENO: checking for $ac_header" >&5
10700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10701if eval "test \"\${$as_ac_Header+set}\" = set"; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10703fi
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10706else
ad6254c5
AK
10707 # Is the header compilable?
10708echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10710cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716$ac_includes_default
10717#include <$ac_header>
10718_ACEOF
10719rm -f conftest.$ac_objext
10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10721 (eval $ac_compile) 2>conftest.er1
ad6254c5 10722 ac_status=$?
8a2fc586
AK
10723 grep -v '^ *+' conftest.er1 >conftest.err
10724 rm -f conftest.er1
10725 cat conftest.err >&5
ad6254c5
AK
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
8a2fc586
AK
10728 { ac_try='test -z "$ac_c_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10732 ac_status=$?
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_header_compiler=yes
10742else
10743 echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746ac_header_compiler=no
10747fi
8a2fc586 10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750echo "${ECHO_T}$ac_header_compiler" >&6
10751
10752# Is the header present?
10753echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10755cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761#include <$ac_header>
10762_ACEOF
10763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null; then
10771 if test -s conftest.err; then
10772 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10774 else
10775 ac_cpp_err=
10776 fi
10777else
10778 ac_cpp_err=yes
69792976 10779fi
ad6254c5
AK
10780if test -z "$ac_cpp_err"; then
10781 ac_header_preproc=yes
10782else
10783 echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_header_preproc=no
10787fi
10788rm -f conftest.err conftest.$ac_ext
10789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790echo "${ECHO_T}$ac_header_preproc" >&6
10791
10792# So? What about this header?
8a2fc586
AK
10793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 yes:no: )
ad6254c5
AK
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10799 ac_header_preproc=yes
ad6254c5 10800 ;;
8a2fc586 10801 no:yes:* )
ad6254c5
AK
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10814 (
10815 cat <<\_ASBOX
8a2fc586
AK
10816## ------------------------------------------ ##
10817## Report this to the AC_PACKAGE_NAME lists. ##
10818## ------------------------------------------ ##
ad6254c5
AK
10819_ASBOX
10820 ) |
10821 sed "s/^/$as_me: WARNING: /" >&2
10822 ;;
10823esac
10824echo "$as_me:$LINENO: checking for $ac_header" >&5
10825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10826if eval "test \"\${$as_ac_Header+set}\" = set"; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10828else
8a2fc586 10829 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10830fi
ad6254c5
AK
10831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10833
ad6254c5
AK
10834fi
10835if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10838_ACEOF
69792976 10839
69792976 10840else
ad6254c5
AK
10841 { { echo "$as_me:$LINENO: error: bailing out" >&5
10842echo "$as_me: error: bailing out" >&2;}
10843 { (exit 1); exit 1; }; }
83912faa
AK
10844fi
10845
ad6254c5
AK
10846done
10847
4a7f3eb2 10848
ad6254c5
AK
10849if test x$HAVE_SELINUX = xyes; then
10850
10851for ac_header in selinux/selinux.h
10852do
10853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10854if eval "test \"\${$as_ac_Header+set}\" = set"; then
10855 echo "$as_me:$LINENO: checking for $ac_header" >&5
10856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10857if eval "test \"\${$as_ac_Header+set}\" = set"; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859fi
10860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10862else
ad6254c5
AK
10863 # Is the header compilable?
10864echo "$as_me:$LINENO: checking $ac_header usability" >&5
10865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10866cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10867/* confdefs.h. */
10868_ACEOF
10869cat confdefs.h >>conftest.$ac_ext
10870cat >>conftest.$ac_ext <<_ACEOF
10871/* end confdefs.h. */
10872$ac_includes_default
10873#include <$ac_header>
10874_ACEOF
10875rm -f conftest.$ac_objext
10876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10877 (eval $ac_compile) 2>conftest.er1
ad6254c5 10878 ac_status=$?
8a2fc586
AK
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
ad6254c5
AK
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
8a2fc586
AK
10884 { ac_try='test -z "$ac_c_werror_flag"
10885 || test ! -s conftest.err'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 ac_header_compiler=yes
10898else
10899 echo "$as_me: failed program was:" >&5
10900sed 's/^/| /' conftest.$ac_ext >&5
10901
10902ac_header_compiler=no
10903fi
8a2fc586 10904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10905echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10906echo "${ECHO_T}$ac_header_compiler" >&6
10907
10908# Is the header present?
10909echo "$as_me:$LINENO: checking $ac_header presence" >&5
10910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10911cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
10917#include <$ac_header>
10918_ACEOF
10919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10921 ac_status=$?
10922 grep -v '^ *+' conftest.er1 >conftest.err
10923 rm -f conftest.er1
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } >/dev/null; then
10927 if test -s conftest.err; then
10928 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10930 else
10931 ac_cpp_err=
10932 fi
10933else
10934 ac_cpp_err=yes
10935fi
10936if test -z "$ac_cpp_err"; then
10937 ac_header_preproc=yes
10938else
10939 echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_header_preproc=no
10943fi
10944rm -f conftest.err conftest.$ac_ext
10945echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10946echo "${ECHO_T}$ac_header_preproc" >&6
10947
10948# So? What about this header?
8a2fc586
AK
10949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10950 yes:no: )
ad6254c5
AK
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10954echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10955 ac_header_preproc=yes
ad6254c5 10956 ;;
8a2fc586 10957 no:yes:* )
ad6254c5
AK
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10959echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10961echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10963echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10965echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10969echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10970 (
10971 cat <<\_ASBOX
8a2fc586
AK
10972## ------------------------------------------ ##
10973## Report this to the AC_PACKAGE_NAME lists. ##
10974## ------------------------------------------ ##
ad6254c5
AK
10975_ASBOX
10976 ) |
10977 sed "s/^/$as_me: WARNING: /" >&2
10978 ;;
10979esac
10980echo "$as_me:$LINENO: checking for $ac_header" >&5
10981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
8a2fc586 10985 eval "$as_ac_Header=\$ac_header_preproc"
80992638 10986fi
ad6254c5
AK
10987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10989
ad6254c5
AK
10990fi
10991if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994_ACEOF
0a62c911 10995
0a62c911 10996else
ad6254c5
AK
10997 { { echo "$as_me:$LINENO: error: bailing out" >&5
10998echo "$as_me: error: bailing out" >&2;}
10999 { (exit 1); exit 1; }; }
80992638
AK
11000fi
11001
ad6254c5 11002done
0a62c911 11003
ad6254c5 11004fi
0a62c911 11005
a653923f
AK
11006################################################################################
11007# Extract the first word of "modprobe", so it can be a program name with args.
11008set dummy modprobe; ac_word=$2
11009echo "$as_me:$LINENO: checking for $ac_word" >&5
11010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
72b2cb61
AK
11011if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 case $MODPROBE_CMD in
11015 [\\/]* | ?:[\\/]*)
11016 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
11017 ;;
11018 *)
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $PATH
11021do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
11027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11029 fi
11030done
11031done
11032
11033 ;;
11034esac
11035fi
11036MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
11037
11038if test -n "$MODPROBE_CMD"; then
11039 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
11040echo "${ECHO_T}$MODPROBE_CMD" >&6
11041else
11042 echo "$as_me:$LINENO: result: no" >&5
11043echo "${ECHO_T}no" >&6
11044fi
11045
a653923f
AK
11046
11047if test x$MODPROBE_CMD != x; then
72b2cb61
AK
11048
11049cat >>confdefs.h <<_ACEOF
11050#define MODPROBE_CMD "$MODPROBE_CMD"
11051_ACEOF
11052
a653923f
AK
11053fi
11054
80992638 11055################################################################################
fae0c576
AK
11056if test "-f VERSION"; then
11057 LVM_VERSION="\"`cat VERSION`\""
11058else
11059 LVM_VERSION="Unknown"
11060fi
11061
80992638 11062################################################################################
fae0c576 11063
83912faa 11064
795ca3e5
AK
11065
11066
11067
11068
11069
11070
5a52dca9 11071
8ef2b021 11072
199e490e 11073
69792976
AK
11074
11075
11076
11077
8106cdd5
AK
11078
11079
11080
11081
11082
d68a82ec 11083
036f273a 11084
7d1552c9 11085
8106cdd5 11086
0a62c911 11087
8106cdd5 11088
4a7f3eb2 11089
4922197a
AK
11090
11091
d8ac0fbc 11092
1a9ea74d 11093
8a2fc586
AK
11094
11095
11096
8ce0cbda 11097
d3c8211f
AK
11098
11099
80992638 11100################################################################################
06f62ad1 11101 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 tools/Makefile tools/version.h tools/fsadm/Makefile test/mm/Makefile test/device/Makefile test/format1/Makefile test/regex/Makefile test/filters/Makefile"
ad6254c5 11102cat >confcache <<\_ACEOF
795ca3e5
AK
11103# This file is a shell script that caches the results of configure
11104# tests run on this system so they can be shared between configure
ad6254c5
AK
11105# scripts and configure runs, see configure's option --config-cache.
11106# It is not useful on other systems. If it contains results you don't
11107# want to keep, you may remove or edit it.
795ca3e5 11108#
ad6254c5
AK
11109# config.status only pays attention to the cache file if you give it
11110# the --recheck option to rerun configure.
795ca3e5 11111#
ad6254c5
AK
11112# `ac_cv_env_foo' variables (set or unset) will be overridden when
11113# loading this file, other *unset* `ac_cv_foo' will be assigned the
11114# following values.
11115
11116_ACEOF
11117
795ca3e5
AK
11118# The following way of writing the cache mishandles newlines in values,
11119# but we know of no workaround that is simple, portable, and efficient.
11120# So, don't put newlines in cache variables' values.
11121# Ultrix sh set writes to stderr and can't be redirected directly,
11122# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
11123{
11124 (set) 2>&1 |
11125 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11126 *ac_space=\ *)
11127 # `set' does not quote correctly, so add quotes (double-quote
11128 # substitution turns \\\\ into \\, and sed turns \\ into \).
11129 sed -n \
8a2fc586
AK
11130 "s/'/'\\\\''/g;
11131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
11132 ;;
11133 *)
11134 # `set' quotes correctly as required by POSIX, so do not add quotes.
11135 sed -n \
8a2fc586 11136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
11137 ;;
11138 esac;
11139} |
11140 sed '
11141 t clear
11142 : clear
11143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11144 t end
11145 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11146 : end' >>confcache
11147if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 11148 if test -w $cache_file; then
ad6254c5
AK
11149 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11150 cat confcache >$cache_file
795ca3e5
AK
11151 else
11152 echo "not updating unwritable cache $cache_file"
11153 fi
11154fi
11155rm -f confcache
11156
795ca3e5
AK
11157test "x$prefix" = xNONE && prefix=$ac_default_prefix
11158# Let make expand exec_prefix.
11159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11160
ad6254c5
AK
11161# VPATH may cause trouble with some makes, so we remove $(srcdir),
11162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11163# trailing colons and then remove the whole line if VPATH becomes empty
11164# (actually we leave an empty line to preserve line numbers).
795ca3e5 11165if test "x$srcdir" = x.; then
8a2fc586 11166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
11167s/:*\$(srcdir):*/:/;
11168s/:*\${srcdir}:*/:/;
11169s/:*@srcdir@:*/:/;
8a2fc586 11170s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 11171s/:*$//;
8a2fc586 11172s/^[^=]*=[ ]*$//;
ad6254c5 11173}'
795ca3e5
AK
11174fi
11175
72b2cb61 11176DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
11177
11178ac_libobjs=
11179ac_ltlibobjs=
11180for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11181 # 1. Remove the extension, and $U if already installed.
11182 ac_i=`echo "$ac_i" |
8a2fc586 11183 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
11184 # 2. Add them.
11185 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11186 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11187done
11188LIBOBJS=$ac_libobjs
80992638 11189
ad6254c5
AK
11190LTLIBOBJS=$ac_ltlibobjs
11191
11192
11193
11194: ${CONFIG_STATUS=./config.status}
11195ac_clean_files_save=$ac_clean_files
11196ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11197{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11198echo "$as_me: creating $CONFIG_STATUS" >&6;}
11199cat >$CONFIG_STATUS <<_ACEOF
11200#! $SHELL
11201# Generated by $as_me.
795ca3e5 11202# Run this file to recreate the current configuration.
795ca3e5 11203# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11204# configure, is in config.log if it exists.
11205
11206debug=false
11207ac_cs_recheck=false
11208ac_cs_silent=false
11209SHELL=\${CONFIG_SHELL-$SHELL}
11210_ACEOF
11211
11212cat >>$CONFIG_STATUS <<\_ACEOF
11213## --------------------- ##
11214## M4sh Initialization. ##
11215## --------------------- ##
11216
11217# Be Bourne compatible
11218if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11219 emulate sh
11220 NULLCMD=:
11221 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11222 # is contrary to our usage. Disable this feature.
11223 alias -g '${1+"$@"}'='"$@"'
11224elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11225 set -o posix
11226fi
8a2fc586 11227DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11228
11229# Support unset when possible.
8a2fc586 11230if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11231 as_unset=unset
11232else
11233 as_unset=false
11234fi
8106cdd5 11235
ad6254c5
AK
11236
11237# Work around bugs in pre-3.0 UWIN ksh.
11238$as_unset ENV MAIL MAILPATH
11239PS1='$ '
11240PS2='> '
11241PS4='+ '
11242
11243# NLS nuisances.
11244for as_var in \
11245 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11246 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11247 LC_TELEPHONE LC_TIME
8106cdd5 11248do
8a2fc586 11249 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11250 eval $as_var=C; export $as_var
11251 else
11252 $as_unset $as_var
11253 fi
8106cdd5
AK
11254done
11255
ad6254c5
AK
11256# Required to use basename.
11257if expr a : '\(a\)' >/dev/null 2>&1; then
11258 as_expr=expr
11259else
11260 as_expr=false
11261fi
8106cdd5 11262
ad6254c5
AK
11263if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11264 as_basename=basename
11265else
11266 as_basename=false
11267fi
11268
11269
11270# Name of the executable.
11271as_me=`$as_basename "$0" ||
11272$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11273 X"$0" : 'X\(//\)$' \| \
11274 X"$0" : 'X\(/\)$' \| \
11275 . : '\(.\)' 2>/dev/null ||
11276echo X/"$0" |
11277 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11278 /^X\/\(\/\/\)$/{ s//\1/; q; }
11279 /^X\/\(\/\).*/{ s//\1/; q; }
11280 s/.*/./; q'`
11281
11282
11283# PATH needs CR, and LINENO needs CR and PATH.
11284# Avoid depending upon Character Ranges.
11285as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11287as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11288as_cr_digits='0123456789'
11289as_cr_alnum=$as_cr_Letters$as_cr_digits
11290
11291# The user is always right.
11292if test "${PATH_SEPARATOR+set}" != set; then
11293 echo "#! /bin/sh" >conf$$.sh
11294 echo "exit 0" >>conf$$.sh
11295 chmod +x conf$$.sh
11296 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11297 PATH_SEPARATOR=';'
80992638 11298 else
ad6254c5 11299 PATH_SEPARATOR=:
80992638 11300 fi
ad6254c5
AK
11301 rm -f conf$$.sh
11302fi
11303
11304
11305 as_lineno_1=$LINENO
11306 as_lineno_2=$LINENO
11307 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11308 test "x$as_lineno_1" != "x$as_lineno_2" &&
11309 test "x$as_lineno_3" = "x$as_lineno_2" || {
11310 # Find who we are. Look in the path if we contain no path at all
11311 # relative or not.
11312 case $0 in
11313 *[\\/]* ) as_myself=$0 ;;
11314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315for as_dir in $PATH
11316do
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11320done
11321
11322 ;;
11323 esac
11324 # We did not find ourselves, most probably we were run as `sh COMMAND'
11325 # in which case we are not to be found in the path.
11326 if test "x$as_myself" = x; then
11327 as_myself=$0
11328 fi
11329 if test ! -f "$as_myself"; then
11330 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11331echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11332 { (exit 1); exit 1; }; }
8106cdd5 11333 fi
ad6254c5
AK
11334 case $CONFIG_SHELL in
11335 '')
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for as_base in sh bash ksh sh5; do
11342 case $as_dir in
11343 /*)
11344 if ("$as_dir/$as_base" -c '
11345 as_lineno_1=$LINENO
11346 as_lineno_2=$LINENO
11347 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11348 test "x$as_lineno_1" != "x$as_lineno_2" &&
11349 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11350 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11351 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11352 CONFIG_SHELL=$as_dir/$as_base
11353 export CONFIG_SHELL
11354 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11355 fi;;
11356 esac
11357 done
80992638 11358done
ad6254c5 11359;;
795ca3e5
AK
11360 esac
11361
ad6254c5
AK
11362 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11363 # uniformly replaced by the line number. The first 'sed' inserts a
11364 # line-number line before each line; the second 'sed' does the real
11365 # work. The second script uses 'N' to pair each line-number line
11366 # with the numbered line, and appends trailing '-' during
11367 # substitution so that $LINENO is not a special case at line end.
11368 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11369 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11370 sed '=' <$as_myself |
11371 sed '
11372 N
11373 s,$,-,
11374 : loop
11375 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11376 t loop
11377 s,-$,,
11378 s,^['$as_cr_digits']*\n,,
11379 ' >$as_me.lineno &&
11380 chmod +x $as_me.lineno ||
11381 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11382echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11383 { (exit 1); exit 1; }; }
11384
11385 # Don't try to exec as it changes $[0], causing all sort of problems
11386 # (the dirname of $[0] is not the place where we might find the
11387 # original and so on. Autoconf is especially sensible to this).
11388 . ./$as_me.lineno
11389 # Exit status is that of the last command.
11390 exit
11391}
11392
11393
11394case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11395 *c*,-n*) ECHO_N= ECHO_C='
11396' ECHO_T=' ' ;;
11397 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11398 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11399esac
11400
11401if expr a : '\(a\)' >/dev/null 2>&1; then
11402 as_expr=expr
11403else
11404 as_expr=false
11405fi
80992638 11406
ad6254c5
AK
11407rm -f conf$$ conf$$.exe conf$$.file
11408echo >conf$$.file
11409if ln -s conf$$.file conf$$ 2>/dev/null; then
11410 # We could just check for DJGPP; but this test a) works b) is more generic
11411 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11412 if test -f conf$$.exe; then
11413 # Don't use ln at all; we don't have any links
11414 as_ln_s='cp -p'
8106cdd5 11415 else
ad6254c5 11416 as_ln_s='ln -s'
80992638 11417 fi
ad6254c5
AK
11418elif ln conf$$.file conf$$ 2>/dev/null; then
11419 as_ln_s=ln
11420else
11421 as_ln_s='cp -p'
11422fi
11423rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 11424
ad6254c5
AK
11425if mkdir -p . 2>/dev/null; then
11426 as_mkdir_p=:
11427else
8a2fc586 11428 test -d ./-p && rmdir ./-p
ad6254c5
AK
11429 as_mkdir_p=false
11430fi
11431
11432as_executable_p="test -f"
11433
11434# Sed expression to map a string onto a valid CPP name.
8a2fc586 11435as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11436
11437# Sed expression to map a string onto a valid variable name.
8a2fc586 11438as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11439
11440
11441# IFS
11442# We need space, tab and new line, in precisely that order.
11443as_nl='
11444'
11445IFS=" $as_nl"
11446
11447# CDPATH.
11448$as_unset CDPATH
11449
11450exec 6>&1
11451
11452# Open the log real soon, to keep \$[0] and so on meaningful, and to
11453# report actual input values of CONFIG_FILES etc. instead of their
11454# values after options handling. Logging --version etc. is OK.
11455exec 5>>config.log
11456{
11457 echo
11458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11459## Running $as_me. ##
11460_ASBOX
11461} >&5
11462cat >&5 <<_CSEOF
11463
11464This file was extended by $as_me, which was
8a2fc586 11465generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
11466
11467 CONFIG_FILES = $CONFIG_FILES
11468 CONFIG_HEADERS = $CONFIG_HEADERS
11469 CONFIG_LINKS = $CONFIG_LINKS
11470 CONFIG_COMMANDS = $CONFIG_COMMANDS
11471 $ $0 $@
11472
11473_CSEOF
11474echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11475echo >&5
11476_ACEOF
11477
11478# Files that config.status was made for.
11479if test -n "$ac_config_files"; then
11480 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11481fi
11482
11483if test -n "$ac_config_headers"; then
11484 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11485fi
11486
11487if test -n "$ac_config_links"; then
11488 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11489fi
11490
11491if test -n "$ac_config_commands"; then
11492 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11493fi
11494
11495cat >>$CONFIG_STATUS <<\_ACEOF
11496
11497ac_cs_usage="\
11498\`$as_me' instantiates files from templates according to the
11499current configuration.
11500
11501Usage: $0 [OPTIONS] [FILE]...
11502
11503 -h, --help print this help, then exit
11504 -V, --version print version number, then exit
11505 -q, --quiet do not print progress messages
11506 -d, --debug don't remove temporary files
11507 --recheck update $as_me by reconfiguring in the same conditions
11508 --file=FILE[:TEMPLATE]
8a2fc586 11509 instantiate the configuration file FILE
72b2cb61
AK
11510 --header=FILE[:TEMPLATE]
11511 instantiate the configuration header FILE
ad6254c5
AK
11512
11513Configuration files:
11514$config_files
11515
72b2cb61
AK
11516Configuration headers:
11517$config_headers
11518
ad6254c5
AK
11519Report bugs to <bug-autoconf@gnu.org>."
11520_ACEOF
11521
11522cat >>$CONFIG_STATUS <<_ACEOF
11523ac_cs_version="\\
11524config.status
8a2fc586 11525configured by $0, generated by GNU Autoconf 2.59,
ad6254c5
AK
11526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11527
8a2fc586 11528Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
11529This config.status script is free software; the Free Software Foundation
11530gives unlimited permission to copy, distribute and modify it."
11531srcdir=$srcdir
11532INSTALL="$INSTALL"
11533_ACEOF
11534
11535cat >>$CONFIG_STATUS <<\_ACEOF
11536# If no file are specified by the user, then we need to provide default
11537# value. By we need to know if files were specified by the user.
11538ac_need_defaults=:
11539while test $# != 0
11540do
11541 case $1 in
11542 --*=*)
11543 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11544 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11545 ac_shift=:
11546 ;;
11547 -*)
11548 ac_option=$1
11549 ac_optarg=$2
11550 ac_shift=shift
11551 ;;
11552 *) # This is not an option, so the user has probably given explicit
11553 # arguments.
11554 ac_option=$1
11555 ac_need_defaults=false;;
11556 esac
11557
11558 case $ac_option in
11559 # Handling of the options.
11560_ACEOF
11561cat >>$CONFIG_STATUS <<\_ACEOF
11562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11563 ac_cs_recheck=: ;;
11564 --version | --vers* | -V )
11565 echo "$ac_cs_version"; exit 0 ;;
11566 --he | --h)
11567 # Conflict between --help and --header
11568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11569Try \`$0 --help' for more information." >&5
11570echo "$as_me: error: ambiguous option: $1
11571Try \`$0 --help' for more information." >&2;}
11572 { (exit 1); exit 1; }; };;
11573 --help | --hel | -h )
11574 echo "$ac_cs_usage"; exit 0 ;;
11575 --debug | --d* | -d )
11576 debug=: ;;
11577 --file | --fil | --fi | --f )
11578 $ac_shift
11579 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11580 ac_need_defaults=false;;
11581 --header | --heade | --head | --hea )
11582 $ac_shift
11583 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11584 ac_need_defaults=false;;
11585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11587 ac_cs_silent=: ;;
11588
11589 # This is an error.
11590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11591Try \`$0 --help' for more information." >&5
11592echo "$as_me: error: unrecognized option: $1
11593Try \`$0 --help' for more information." >&2;}
11594 { (exit 1); exit 1; }; } ;;
11595
11596 *) ac_config_targets="$ac_config_targets $1" ;;
11597
11598 esac
11599 shift
11600done
11601
11602ac_configure_extra_args=
11603
11604if $ac_cs_silent; then
11605 exec 6>/dev/null
11606 ac_configure_extra_args="$ac_configure_extra_args --silent"
11607fi
11608
11609_ACEOF
11610cat >>$CONFIG_STATUS <<_ACEOF
11611if \$ac_cs_recheck; then
11612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11614fi
11615
11616_ACEOF
11617
11618
11619
11620
11621
11622cat >>$CONFIG_STATUS <<\_ACEOF
11623for ac_config_target in $ac_config_targets
11624do
11625 case "$ac_config_target" in
11626 # Handling of arguments.
11627 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11628 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11629 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11630 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
06f62ad1
AK
11631 "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11632 "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
ad6254c5
AK
11633 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11634 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11635 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11636 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11637 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11638 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11639 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11640 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11641 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11642 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11643 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11644 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11645 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11646 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11647 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11648 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11649 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11650 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
72b2cb61 11651 "lib/misc/configure.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
ad6254c5
AK
11652 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11653echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11654 { (exit 1); exit 1; }; };;
80992638 11655 esac
ad6254c5
AK
11656done
11657
11658# If the user did not use the arguments to specify the items to instantiate,
11659# then the envvar interface is used. Set only those that are not.
11660# We use the long form for the default assignment because of an extremely
11661# bizarre bug on SunOS 4.1.3.
11662if $ac_need_defaults; then
11663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11665fi
11666
11667# Have a temporary directory for convenience. Make it in the build tree
11668# simply because there is no reason to put it here, and in addition,
11669# creating and moving files from /tmp can sometimes cause problems.
11670# Create a temporary directory, and hook for its removal unless debugging.
11671$debug ||
11672{
11673 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11674 trap '{ (exit 1); exit 1; }' 1 2 13 15
11675}
11676
11677# Create a (secure) tmp directory for tmp files.
11678
11679{
11680 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11681 test -n "$tmp" && test -d "$tmp"
11682} ||
11683{
11684 tmp=./confstat$$-$RANDOM
11685 (umask 077 && mkdir $tmp)
11686} ||
11687{
11688 echo "$me: cannot create a temporary directory in ." >&2
11689 { (exit 1); exit 1; }
11690}
11691
11692_ACEOF
11693
11694cat >>$CONFIG_STATUS <<_ACEOF
11695
11696#
11697# CONFIG_FILES section.
11698#
11699
11700# No need to generate the scripts if there are no CONFIG_FILES.
11701# This happens for instance when ./config.status config.h
11702if test -n "\$CONFIG_FILES"; then
11703 # Protect against being on the right side of a sed subst in config.status.
11704 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11705 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11706s,@SHELL@,$SHELL,;t t
11707s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11708s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11709s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11710s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11711s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11712s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11713s,@exec_prefix@,$exec_prefix,;t t
11714s,@prefix@,$prefix,;t t
11715s,@program_transform_name@,$program_transform_name,;t t
11716s,@bindir@,$bindir,;t t
11717s,@sbindir@,$sbindir,;t t
11718s,@libexecdir@,$libexecdir,;t t
11719s,@datadir@,$datadir,;t t
11720s,@sysconfdir@,$sysconfdir,;t t
11721s,@sharedstatedir@,$sharedstatedir,;t t
11722s,@localstatedir@,$localstatedir,;t t
11723s,@libdir@,$libdir,;t t
11724s,@includedir@,$includedir,;t t
11725s,@oldincludedir@,$oldincludedir,;t t
11726s,@infodir@,$infodir,;t t
11727s,@mandir@,$mandir,;t t
11728s,@build_alias@,$build_alias,;t t
11729s,@host_alias@,$host_alias,;t t
11730s,@target_alias@,$target_alias,;t t
11731s,@DEFS@,$DEFS,;t t
11732s,@ECHO_C@,$ECHO_C,;t t
11733s,@ECHO_N@,$ECHO_N,;t t
11734s,@ECHO_T@,$ECHO_T,;t t
11735s,@LIBS@,$LIBS,;t t
11736s,@build@,$build,;t t
11737s,@build_cpu@,$build_cpu,;t t
11738s,@build_vendor@,$build_vendor,;t t
11739s,@build_os@,$build_os,;t t
11740s,@host@,$host,;t t
11741s,@host_cpu@,$host_cpu,;t t
11742s,@host_vendor@,$host_vendor,;t t
11743s,@host_os@,$host_os,;t t
11744s,@target@,$target,;t t
11745s,@target_cpu@,$target_cpu,;t t
11746s,@target_vendor@,$target_vendor,;t t
11747s,@target_os@,$target_os,;t t
11748s,@AWK@,$AWK,;t t
11749s,@CC@,$CC,;t t
11750s,@CFLAGS@,$CFLAGS,;t t
11751s,@LDFLAGS@,$LDFLAGS,;t t
11752s,@CPPFLAGS@,$CPPFLAGS,;t t
11753s,@ac_ct_CC@,$ac_ct_CC,;t t
11754s,@EXEEXT@,$EXEEXT,;t t
11755s,@OBJEXT@,$OBJEXT,;t t
11756s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11757s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11758s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11759s,@LN_S@,$LN_S,;t t
11760s,@SET_MAKE@,$SET_MAKE,;t t
11761s,@RANLIB@,$RANLIB,;t t
11762s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8a2fc586
AK
11763s,@CFLOW_CMD@,$CFLOW_CMD,;t t
11764s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t
ad6254c5
AK
11765s,@CPP@,$CPP,;t t
11766s,@EGREP@,$EGREP,;t t
11767s,@ALLOCA@,$ALLOCA,;t t
11768s,@LIBOBJS@,$LIBOBJS,;t t
11769s,@POW_LIB@,$POW_LIB,;t t
11770s,@MSGFMT@,$MSGFMT,;t t
a653923f 11771s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
11772s,@JOBS@,$JOBS,;t t
11773s,@STATIC_LINK@,$STATIC_LINK,;t t
11774s,@LVM1@,$LVM1,;t t
11775s,@POOL@,$POOL,;t t
11776s,@SNAPSHOTS@,$SNAPSHOTS,;t t
11777s,@MIRRORS@,$MIRRORS,;t t
11778s,@OWNER@,$OWNER,;t t
11779s,@GROUP@,$GROUP,;t t
11780s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
11781s,@CLDFLAGS@,$CLDFLAGS,;t t
11782s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
11783s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
11784s,@LDDEPS@,$LDDEPS,;t t
c1c065a3 11785s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
ad6254c5
AK
11786s,@LVM_VERSION@,$LVM_VERSION,;t t
11787s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
11788s,@DEBUG@,$DEBUG,;t t
11789s,@DEVMAPPER@,$DEVMAPPER,;t t
11790s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
11791s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
11792s,@CMDLIB@,$CMDLIB,;t t
11793s,@LOCALEDIR@,$LOCALEDIR,;t t
11794s,@CONFDIR@,$CONFDIR,;t t
11795s,@STATICDIR@,$STATICDIR,;t t
11796s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
11797s,@INTL@,$INTL,;t t
11798s,@CLVMD@,$CLVMD,;t t
11799s,@CLUSTER@,$CLUSTER,;t t
11800s,@FSADM@,$FSADM,;t t
06f62ad1 11801s,@DMEVENTD@,$DMEVENTD,;t t
ad6254c5
AK
11802s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11803CEOF
11804
11805_ACEOF
11806
11807 cat >>$CONFIG_STATUS <<\_ACEOF
11808 # Split the substitutions into bite-sized pieces for seds with
11809 # small command number limits, like on Digital OSF/1 and HP-UX.
11810 ac_max_sed_lines=48
11811 ac_sed_frag=1 # Number of current file.
11812 ac_beg=1 # First line for current file.
11813 ac_end=$ac_max_sed_lines # Line after last line for current file.
11814 ac_more_lines=:
11815 ac_sed_cmds=
11816 while $ac_more_lines; do
11817 if test $ac_beg -gt 1; then
11818 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11819 else
11820 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11821 fi
11822 if test ! -s $tmp/subs.frag; then
11823 ac_more_lines=false
11824 else
11825 # The purpose of the label and of the branching condition is to
11826 # speed up the sed processing (if there are no `@' at all, there
11827 # is no need to browse any of the substitutions).
11828 # These are the two extra sed commands mentioned above.
11829 (echo ':t
11830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11831 if test -z "$ac_sed_cmds"; then
8a2fc586 11832 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 11833 else
8a2fc586 11834 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
11835 fi
11836 ac_sed_frag=`expr $ac_sed_frag + 1`
11837 ac_beg=$ac_end
11838 ac_end=`expr $ac_end + $ac_max_sed_lines`
11839 fi
11840 done
11841 if test -z "$ac_sed_cmds"; then
11842 ac_sed_cmds=cat
11843 fi
11844fi # test -n "$CONFIG_FILES"
8106cdd5 11845
ad6254c5
AK
11846_ACEOF
11847cat >>$CONFIG_STATUS <<\_ACEOF
11848for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11850 case $ac_file in
11851 - | *:- | *:-:* ) # input from stdin
8a2fc586
AK
11852 cat >$tmp/stdin
11853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8a2fc586 11856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11857 * ) ac_file_in=$ac_file.in ;;
80992638 11858 esac
8106cdd5 11859
ad6254c5
AK
11860 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11861 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11862$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11863 X"$ac_file" : 'X\(//\)[^/]' \| \
11864 X"$ac_file" : 'X\(//\)$' \| \
11865 X"$ac_file" : 'X\(/\)' \| \
11866 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11867echo X"$ac_file" |
11868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11870 /^X\(\/\/\)$/{ s//\1/; q; }
11871 /^X\(\/\).*/{ s//\1/; q; }
11872 s/.*/./; q'`
11873 { if $as_mkdir_p; then
11874 mkdir -p "$ac_dir"
11875 else
11876 as_dir="$ac_dir"
11877 as_dirs=
11878 while test ! -d "$as_dir"; do
11879 as_dirs="$as_dir $as_dirs"
11880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11882 X"$as_dir" : 'X\(//\)[^/]' \| \
11883 X"$as_dir" : 'X\(//\)$' \| \
11884 X"$as_dir" : 'X\(/\)' \| \
11885 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11886echo X"$as_dir" |
11887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11889 /^X\(\/\/\)$/{ s//\1/; q; }
11890 /^X\(\/\).*/{ s//\1/; q; }
11891 s/.*/./; q'`
11892 done
11893 test ! -n "$as_dirs" || mkdir $as_dirs
11894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11895echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11896 { (exit 1); exit 1; }; }; }
11897
11898 ac_builddir=.
11899
11900if test "$ac_dir" != .; then
11901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11902 # A "../" for each directory in $ac_dir_suffix.
11903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11904else
11905 ac_dir_suffix= ac_top_builddir=
11906fi
11907
11908case $srcdir in
11909 .) # No --srcdir option. We are building in place.
11910 ac_srcdir=.
11911 if test -z "$ac_top_builddir"; then
11912 ac_top_srcdir=.
11913 else
11914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11915 fi ;;
11916 [\\/]* | ?:[\\/]* ) # Absolute path.
11917 ac_srcdir=$srcdir$ac_dir_suffix;
11918 ac_top_srcdir=$srcdir ;;
11919 *) # Relative path.
11920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11922esac
8a2fc586
AK
11923
11924# Do not use `cd foo && pwd` to compute absolute paths, because
11925# the directories may not exist.
11926case `pwd` in
11927.) ac_abs_builddir="$ac_dir";;
11928*)
11929 case "$ac_dir" in
11930 .) ac_abs_builddir=`pwd`;;
11931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11933 esac;;
11934esac
11935case $ac_abs_builddir in
11936.) ac_abs_top_builddir=${ac_top_builddir}.;;
11937*)
11938 case ${ac_top_builddir}. in
11939 .) ac_abs_top_builddir=$ac_abs_builddir;;
11940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11942 esac;;
11943esac
11944case $ac_abs_builddir in
11945.) ac_abs_srcdir=$ac_srcdir;;
11946*)
11947 case $ac_srcdir in
11948 .) ac_abs_srcdir=$ac_abs_builddir;;
11949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11951 esac;;
11952esac
11953case $ac_abs_builddir in
11954.) ac_abs_top_srcdir=$ac_top_srcdir;;
11955*)
11956 case $ac_top_srcdir in
11957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11960 esac;;
11961esac
ad6254c5
AK
11962
11963
11964 case $INSTALL in
11965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11966 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
11967 esac
11968
ad6254c5
AK
11969 if test x"$ac_file" != x-; then
11970 { echo "$as_me:$LINENO: creating $ac_file" >&5
11971echo "$as_me: creating $ac_file" >&6;}
11972 rm -f "$ac_file"
11973 fi
11974 # Let's still pretend it is `configure' which instantiates (i.e., don't
11975 # use $as_me), people would be surprised to read:
11976 # /* config.h. Generated by config.status. */
11977 if test x"$ac_file" = x-; then
11978 configure_input=
11979 else
11980 configure_input="$ac_file. "
11981 fi
11982 configure_input=$configure_input"Generated from `echo $ac_file_in |
8a2fc586 11983 sed 's,.*/,,'` by configure."
ad6254c5
AK
11984
11985 # First look for the input files in the build tree, otherwise in the
11986 # src tree.
11987 ac_file_inputs=`IFS=:
11988 for f in $ac_file_in; do
11989 case $f in
11990 -) echo $tmp/stdin ;;
11991 [\\/$]*)
8a2fc586
AK
11992 # Absolute (can't be DOS-style, as IFS=:)
11993 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11994echo "$as_me: error: cannot find input file: $f" >&2;}
11995 { (exit 1); exit 1; }; }
8a2fc586 11996 echo "$f";;
ad6254c5 11997 *) # Relative
8a2fc586
AK
11998 if test -f "$f"; then
11999 # Build tree
12000 echo "$f"
12001 elif test -f "$srcdir/$f"; then
12002 # Source tree
12003 echo "$srcdir/$f"
12004 else
12005 # /dev/null tree
12006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
12007echo "$as_me: error: cannot find input file: $f" >&2;}
12008 { (exit 1); exit 1; }; }
8a2fc586 12009 fi;;
ad6254c5
AK
12010 esac
12011 done` || { (exit 1); exit 1; }
12012_ACEOF
12013cat >>$CONFIG_STATUS <<_ACEOF
12014 sed "$ac_vpsub
12015$extrasub
12016_ACEOF
12017cat >>$CONFIG_STATUS <<\_ACEOF
12018:t
12019/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12020s,@configure_input@,$configure_input,;t t
12021s,@srcdir@,$ac_srcdir,;t t
12022s,@abs_srcdir@,$ac_abs_srcdir,;t t
12023s,@top_srcdir@,$ac_top_srcdir,;t t
12024s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12025s,@builddir@,$ac_builddir,;t t
12026s,@abs_builddir@,$ac_abs_builddir,;t t
12027s,@top_builddir@,$ac_top_builddir,;t t
12028s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12029s,@INSTALL@,$ac_INSTALL,;t t
12030" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12031 rm -f $tmp/stdin
12032 if test x"$ac_file" != x-; then
12033 mv $tmp/out $ac_file
12034 else
12035 cat $tmp/out
12036 rm -f $tmp/out
12037 fi
795ca3e5 12038
ad6254c5
AK
12039done
12040_ACEOF
72b2cb61
AK
12041cat >>$CONFIG_STATUS <<\_ACEOF
12042
12043#
12044# CONFIG_HEADER section.
12045#
12046
12047# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12048# NAME is the cpp macro being defined and VALUE is the value it is being given.
12049#
12050# ac_d sets the value in "#define NAME VALUE" lines.
12051ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12052ac_dB='[ ].*$,\1#\2'
12053ac_dC=' '
12054ac_dD=',;t'
12055# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12056ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12057ac_uB='$,\1#\2define\3'
12058ac_uC=' '
12059ac_uD=',;t'
12060
12061for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12063 case $ac_file in
12064 - | *:- | *:-:* ) # input from stdin
12065 cat >$tmp/stdin
12066 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12068 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12070 * ) ac_file_in=$ac_file.in ;;
12071 esac
12072
12073 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12074echo "$as_me: creating $ac_file" >&6;}
12075
12076 # First look for the input files in the build tree, otherwise in the
12077 # src tree.
12078 ac_file_inputs=`IFS=:
12079 for f in $ac_file_in; do
12080 case $f in
12081 -) echo $tmp/stdin ;;
12082 [\\/$]*)
12083 # Absolute (can't be DOS-style, as IFS=:)
12084 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12085echo "$as_me: error: cannot find input file: $f" >&2;}
12086 { (exit 1); exit 1; }; }
12087 # Do quote $f, to prevent DOS paths from being IFS'd.
12088 echo "$f";;
12089 *) # Relative
12090 if test -f "$f"; then
12091 # Build tree
12092 echo "$f"
12093 elif test -f "$srcdir/$f"; then
12094 # Source tree
12095 echo "$srcdir/$f"
12096 else
12097 # /dev/null tree
12098 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12099echo "$as_me: error: cannot find input file: $f" >&2;}
12100 { (exit 1); exit 1; }; }
12101 fi;;
12102 esac
12103 done` || { (exit 1); exit 1; }
12104 # Remove the trailing spaces.
12105 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12106
12107_ACEOF
12108
12109# Transform confdefs.h into two sed scripts, `conftest.defines' and
12110# `conftest.undefs', that substitutes the proper values into
12111# config.h.in to produce config.h. The first handles `#define'
12112# templates, and the second `#undef' templates.
12113# And first: Protect against being on the right side of a sed subst in
12114# config.status. Protect against being in an unquoted here document
12115# in config.status.
12116rm -f conftest.defines conftest.undefs
12117# Using a here document instead of a string reduces the quoting nightmare.
12118# Putting comments in sed scripts is not portable.
12119#
12120# `end' is used to avoid that the second main sed command (meant for
12121# 0-ary CPP macros) applies to n-ary macro definitions.
12122# See the Autoconf documentation for `clear'.
12123cat >confdef2sed.sed <<\_ACEOF
12124s/[\\&,]/\\&/g
12125s,[\\$`],\\&,g
12126t clear
12127: clear
12128s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12129t end
12130s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12131: end
12132_ACEOF
12133# If some macros were called several times there might be several times
12134# the same #defines, which is useless. Nevertheless, we may not want to
12135# sort them, since we want the *last* AC-DEFINE to be honored.
12136uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12137sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12138rm -f confdef2sed.sed
12139
12140# This sed command replaces #undef with comments. This is necessary, for
12141# example, in the case of _POSIX_SOURCE, which is predefined and required
12142# on some systems where configure will not decide to define it.
12143cat >>conftest.undefs <<\_ACEOF
12144s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12145_ACEOF
12146
12147# Break up conftest.defines because some shells have a limit on the size
12148# of here documents, and old seds have small limits too (100 cmds).
12149echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12150echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12151echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12152echo ' :' >>$CONFIG_STATUS
12153rm -f conftest.tail
12154while grep . conftest.defines >/dev/null
12155do
12156 # Write a limited-size here document to $tmp/defines.sed.
12157 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12158 # Speed up: don't consider the non `#define' lines.
12159 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12160 # Work around the forget-to-reset-the-flag bug.
12161 echo 't clr' >>$CONFIG_STATUS
12162 echo ': clr' >>$CONFIG_STATUS
12163 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12164 echo 'CEOF
12165 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12166 rm -f $tmp/in
12167 mv $tmp/out $tmp/in
12168' >>$CONFIG_STATUS
12169 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12170 rm -f conftest.defines
12171 mv conftest.tail conftest.defines
12172done
12173rm -f conftest.defines
12174echo ' fi # grep' >>$CONFIG_STATUS
12175echo >>$CONFIG_STATUS
12176
12177# Break up conftest.undefs because some shells have a limit on the size
12178# of here documents, and old seds have small limits too (100 cmds).
12179echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12180rm -f conftest.tail
12181while grep . conftest.undefs >/dev/null
12182do
12183 # Write a limited-size here document to $tmp/undefs.sed.
12184 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12185 # Speed up: don't consider the non `#undef'
12186 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12187 # Work around the forget-to-reset-the-flag bug.
12188 echo 't clr' >>$CONFIG_STATUS
12189 echo ': clr' >>$CONFIG_STATUS
12190 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12191 echo 'CEOF
12192 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12193 rm -f $tmp/in
12194 mv $tmp/out $tmp/in
12195' >>$CONFIG_STATUS
12196 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12197 rm -f conftest.undefs
12198 mv conftest.tail conftest.undefs
12199done
12200rm -f conftest.undefs
12201
12202cat >>$CONFIG_STATUS <<\_ACEOF
12203 # Let's still pretend it is `configure' which instantiates (i.e., don't
12204 # use $as_me), people would be surprised to read:
12205 # /* config.h. Generated by config.status. */
12206 if test x"$ac_file" = x-; then
12207 echo "/* Generated by configure. */" >$tmp/config.h
12208 else
12209 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12210 fi
12211 cat $tmp/in >>$tmp/config.h
12212 rm -f $tmp/in
12213 if test x"$ac_file" != x-; then
12214 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12215 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12216echo "$as_me: $ac_file is unchanged" >&6;}
12217 else
12218 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12219$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12220 X"$ac_file" : 'X\(//\)[^/]' \| \
12221 X"$ac_file" : 'X\(//\)$' \| \
12222 X"$ac_file" : 'X\(/\)' \| \
12223 . : '\(.\)' 2>/dev/null ||
12224echo X"$ac_file" |
12225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12227 /^X\(\/\/\)$/{ s//\1/; q; }
12228 /^X\(\/\).*/{ s//\1/; q; }
12229 s/.*/./; q'`
12230 { if $as_mkdir_p; then
12231 mkdir -p "$ac_dir"
12232 else
12233 as_dir="$ac_dir"
12234 as_dirs=
12235 while test ! -d "$as_dir"; do
12236 as_dirs="$as_dir $as_dirs"
12237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12239 X"$as_dir" : 'X\(//\)[^/]' \| \
12240 X"$as_dir" : 'X\(//\)$' \| \
12241 X"$as_dir" : 'X\(/\)' \| \
12242 . : '\(.\)' 2>/dev/null ||
12243echo X"$as_dir" |
12244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12246 /^X\(\/\/\)$/{ s//\1/; q; }
12247 /^X\(\/\).*/{ s//\1/; q; }
12248 s/.*/./; q'`
12249 done
12250 test ! -n "$as_dirs" || mkdir $as_dirs
12251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12252echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12253 { (exit 1); exit 1; }; }; }
12254
12255 rm -f $ac_file
12256 mv $tmp/config.h $ac_file
12257 fi
12258 else
12259 cat $tmp/config.h
12260 rm -f $tmp/config.h
12261 fi
12262done
12263_ACEOF
795ca3e5 12264
ad6254c5 12265cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 12266
ad6254c5
AK
12267{ (exit 0); exit 0; }
12268_ACEOF
795ca3e5 12269chmod +x $CONFIG_STATUS
ad6254c5
AK
12270ac_clean_files=$ac_clean_files_save
12271
12272
12273# configure is writing to config.log, and then calls config.status.
12274# config.status does its own redirection, appending to config.log.
12275# Unfortunately, on DOS this fails, as config.log is still kept open
12276# by configure, so config.status won't be able to write to it; its
12277# output is simply discarded. So we exec the FD to /dev/null,
12278# effectively closing config.log, so it can be properly (re)opened and
12279# appended to by config.status. When coming back to configure, we
12280# need to make the FD available again.
12281if test "$no_create" != yes; then
12282 ac_cs_success=:
12283 ac_config_status_args=
12284 test "$silent" = yes &&
12285 ac_config_status_args="$ac_config_status_args --quiet"
12286 exec 5>/dev/null
12287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12288 exec 5>>config.log
12289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12290 # would make configure fail if this is the last instruction.
12291 $ac_cs_success || { (exit 1); exit 1; }
12292fi
795ca3e5 12293
2dc95e1c
AK
12294
12295if test x$ODIRECT != xyes; then
ad6254c5
AK
12296 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12297echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12298fi
809fae91
AK
12299
12300if test x$FSADM == xyes; then
ad6254c5
AK
12301 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12302echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12303fi
06f62ad1
AK
12304
12305if test x$DMEVENTD == xyes; then
12306 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12307echo "$as_me: WARNING: dmeventd support is untested" >&2;}
12308fi
This page took 1.513639 seconds and 5 git commands to generate.