]> sourceware.org Git - lvm2.git/blame - configure
sign fix
[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
8a2fc586 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 LVM_DEFS 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
80992638 1334################################################################################
795ca3e5
AK
1335ac_aux_dir=
1336for ac_dir in autoconf $srcdir/autoconf; do
1337 if test -f $ac_dir/install-sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 break
1341 elif 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
ad6254c5
AK
1345 elif test -f $ac_dir/shtool; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 break
795ca3e5
AK
1349 fi
1350done
1351if test -z "$ac_aux_dir"; then
ad6254c5
AK
1352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1353echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1354 { (exit 1); exit 1; }; }
795ca3e5 1355fi
ad6254c5
AK
1356ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1359
1360
ad6254c5 1361################################################################################
8ce0cbda 1362# Make sure we can run config.sub.
ad6254c5
AK
1363$ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366 { (exit 1); exit 1; }; }
1367
1368echo "$as_me:$LINENO: checking build system type" >&5
1369echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372else
1373 ac_cv_build_alias=$build_alias
1374test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376test -z "$ac_cv_build_alias" &&
1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
1380ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1384
1385fi
1386echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387echo "${ECHO_T}$ac_cv_build" >&6
1388build=$ac_cv_build
1389build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392
1393
1394echo "$as_me:$LINENO: checking host system type" >&5
1395echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398else
1399 ac_cv_host_alias=$host_alias
1400test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407fi
1408echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409echo "${ECHO_T}$ac_cv_host" >&6
1410host=$ac_cv_host
1411host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1412host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1413host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1414
1415
1416echo "$as_me:$LINENO: checking target system type" >&5
1417echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 ac_cv_target_alias=$target_alias
1422test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
8ce0cbda 1428
ad6254c5
AK
1429fi
1430echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431echo "${ECHO_T}$ac_cv_target" >&6
1432target=$ac_cv_target
1433target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1436
8ce0cbda 1437
ad6254c5
AK
1438# The aliases save the names the user supplied, while $host etc.
1439# will get canonicalized.
1440test -n "$target_alias" &&
8ce0cbda
AK
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1442 NONENONEs,x,x, &&
1443 program_prefix=${target_alias}-
1444
8ce0cbda
AK
1445case "$host_os" in
1446 linux*)
1447 CFLAGS="$CFLAGS"
1448 COPTIMISE_FLAG="-O2"
1449 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1450 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1451 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1452 LDDEPS="$LDDEPS .export.sym"
1453 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
e4c11ad1 1454 LIB_SUFFIX="so"
8ce0cbda
AK
1455 DEVMAPPER=yes
1456 ODIRECT=yes
1457 SELINUX=yes
1458 CLUSTER=internal
1459 FSADM=no ;;
1460 darwin*)
1461 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1462 COPTIMISE_FLAG="-O2"
1463 CLDFLAGS="$CLDFLAGS"
1464 CLDWHOLEARCHIVE="-all_load"
1465 CLDNOWHOLEARCHIVE=
1466 LDDEPS="$LDDEPS"
1467 LDFLAGS="$LDFLAGS"
e4c11ad1 1468 LIB_SUFFIX="dylib"
a653923f 1469 DEVMAPPER=yes
8ce0cbda
AK
1470 ODIRECT=no
1471 SELINUX=no
1472 CLUSTER=none
1473 FSADM=no ;;
1474esac
1475
80992638 1476################################################################################
ad6254c5 1477for ac_prog in gawk mawk nawk awk
795ca3e5 1478do
ad6254c5 1479 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1480set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_AWK+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1485else
1486 if test -n "$AWK"; then
1487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1488else
ad6254c5
AK
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_AWK="$ac_prog"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
795ca3e5
AK
1503fi
1504fi
ad6254c5 1505AWK=$ac_cv_prog_AWK
795ca3e5 1506if test -n "$AWK"; then
ad6254c5
AK
1507 echo "$as_me:$LINENO: result: $AWK" >&5
1508echo "${ECHO_T}$AWK" >&6
795ca3e5 1509else
ad6254c5
AK
1510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
795ca3e5
AK
1512fi
1513
ad6254c5
AK
1514 test -n "$AWK" && break
1515done
1516
1517ac_ext=c
1518ac_cpp='$CPP $CPPFLAGS'
1519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1521ac_compiler_gnu=$ac_cv_c_compiler_gnu
1522if test -n "$ac_tool_prefix"; then
1523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1524set dummy ${ac_tool_prefix}gcc; ac_word=$2
1525echo "$as_me:$LINENO: checking for $ac_word" >&5
1526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527if test "${ac_cv_prog_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test.
1532else
1533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534for as_dir in $PATH
1535do
1536 IFS=$as_save_IFS
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 break 2
1543 fi
1544done
8106cdd5
AK
1545done
1546
ad6254c5
AK
1547fi
1548fi
1549CC=$ac_cv_prog_CC
1550if test -n "$CC"; then
1551 echo "$as_me:$LINENO: result: $CC" >&5
1552echo "${ECHO_T}$CC" >&6
1553else
1554 echo "$as_me:$LINENO: result: no" >&5
1555echo "${ECHO_T}no" >&6
1556fi
1557
1558fi
1559if test -z "$ac_cv_prog_CC"; then
1560 ac_ct_CC=$CC
1561 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1562set dummy gcc; ac_word=$2
ad6254c5
AK
1563echo "$as_me:$LINENO: checking for $ac_word" >&5
1564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567else
1568 if test -n "$ac_ct_CC"; then
1569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1570else
1571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572for as_dir in $PATH
1573do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 ac_cv_prog_ac_ct_CC="gcc"
1579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 break 2
1581 fi
1582done
1583done
1584
1585fi
1586fi
1587ac_ct_CC=$ac_cv_prog_ac_ct_CC
1588if test -n "$ac_ct_CC"; then
1589 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1590echo "${ECHO_T}$ac_ct_CC" >&6
1591else
1592 echo "$as_me:$LINENO: result: no" >&5
1593echo "${ECHO_T}no" >&6
1594fi
1595
1596 CC=$ac_ct_CC
1597else
1598 CC="$ac_cv_prog_CC"
1599fi
1600
1601if test -z "$CC"; then
1602 if test -n "$ac_tool_prefix"; then
1603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1604set dummy ${ac_tool_prefix}cc; ac_word=$2
1605echo "$as_me:$LINENO: checking for $ac_word" >&5
1606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1607if test "${ac_cv_prog_CC+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1609else
1610 if test -n "$CC"; then
1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1612else
ad6254c5
AK
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
8106cdd5
AK
1627fi
1628fi
ad6254c5 1629CC=$ac_cv_prog_CC
8106cdd5 1630if test -n "$CC"; then
ad6254c5
AK
1631 echo "$as_me:$LINENO: result: $CC" >&5
1632echo "${ECHO_T}$CC" >&6
1633else
1634 echo "$as_me:$LINENO: result: no" >&5
1635echo "${ECHO_T}no" >&6
1636fi
1637
1638fi
1639if test -z "$ac_cv_prog_CC"; then
1640 ac_ct_CC=$CC
1641 # Extract the first word of "cc", so it can be a program name with args.
1642set dummy cc; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646 echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648 if test -n "$ac_ct_CC"; then
1649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658 ac_cv_prog_ac_ct_CC="cc"
1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 break 2
1661 fi
1662done
1663done
1664
1665fi
1666fi
1667ac_ct_CC=$ac_cv_prog_ac_ct_CC
1668if test -n "$ac_ct_CC"; then
1669 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1670echo "${ECHO_T}$ac_ct_CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676 CC=$ac_ct_CC
8106cdd5 1677else
ad6254c5 1678 CC="$ac_cv_prog_CC"
8106cdd5
AK
1679fi
1680
ad6254c5 1681fi
795ca3e5
AK
1682if test -z "$CC"; then
1683 # Extract the first word of "cc", so it can be a program name with args.
1684set dummy cc; ac_word=$2
ad6254c5
AK
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1689else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692else
795ca3e5 1693 ac_prog_rejected=no
ad6254c5
AK
1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1702 ac_prog_rejected=yes
1703 continue
1704 fi
1705 ac_cv_prog_CC="cc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
1710done
1711
795ca3e5
AK
1712if test $ac_prog_rejected = yes; then
1713 # We found a bogon in the path, so make sure we never use it.
1714 set dummy $ac_cv_prog_CC
1715 shift
ad6254c5 1716 if test $# != 0; then
795ca3e5
AK
1717 # We chose a different compiler from the bogus one.
1718 # However, it has the same basename, so the bogon will be chosen
1719 # first if we set CC to just the basename; use the full file name.
1720 shift
ad6254c5 1721 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1722 fi
1723fi
1724fi
1725fi
ad6254c5 1726CC=$ac_cv_prog_CC
795ca3e5 1727if test -n "$CC"; then
ad6254c5
AK
1728 echo "$as_me:$LINENO: result: $CC" >&5
1729echo "${ECHO_T}$CC" >&6
795ca3e5 1730else
ad6254c5
AK
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
795ca3e5
AK
1733fi
1734
ad6254c5
AK
1735fi
1736if test -z "$CC"; then
1737 if test -n "$ac_tool_prefix"; then
1738 for ac_prog in cl
1739 do
1740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1742echo "$as_me:$LINENO: checking for $ac_word" >&5
1743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1746else
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1749else
ad6254c5
AK
1750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751for as_dir in $PATH
1752do
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 break 2
1760 fi
1761done
1762done
1763
795ca3e5
AK
1764fi
1765fi
ad6254c5 1766CC=$ac_cv_prog_CC
795ca3e5 1767if test -n "$CC"; then
ad6254c5
AK
1768 echo "$as_me:$LINENO: result: $CC" >&5
1769echo "${ECHO_T}$CC" >&6
795ca3e5 1770else
ad6254c5
AK
1771 echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
795ca3e5 1773fi
ad6254c5
AK
1774
1775 test -n "$CC" && break
1776 done
1777fi
1778if test -z "$CC"; then
1779 ac_ct_CC=$CC
1780 for ac_prog in cl
1781do
1782 # Extract the first word of "$ac_prog", so it can be a program name with args.
1783set dummy $ac_prog; ac_word=$2
1784echo "$as_me:$LINENO: checking for $ac_word" >&5
1785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789 if test -n "$ac_ct_CC"; then
1790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1791else
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_ac_ct_CC="$ac_prog"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
795ca3e5 1802 fi
ad6254c5
AK
1803done
1804done
1805
1806fi
1807fi
1808ac_ct_CC=$ac_cv_prog_ac_ct_CC
1809if test -n "$ac_ct_CC"; then
1810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1811echo "${ECHO_T}$ac_ct_CC" >&6
1812else
1813 echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
795ca3e5
AK
1815fi
1816
ad6254c5
AK
1817 test -n "$ac_ct_CC" && break
1818done
795ca3e5 1819
ad6254c5
AK
1820 CC=$ac_ct_CC
1821fi
1822
1823fi
1824
1825
1826test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1827See \`config.log' for more details." >&5
1828echo "$as_me: error: no acceptable C compiler found in \$PATH
1829See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1831
1832# Provide some information about the compiler.
1833echo "$as_me:$LINENO:" \
1834 "checking for C compiler version" >&5
1835ac_compiler=`set X $ac_compile; echo $2`
1836{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1837 (eval $ac_compiler --version </dev/null >&5) 2>&5
1838 ac_status=$?
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }
1841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1842 (eval $ac_compiler -v </dev/null >&5) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1847 (eval $ac_compiler -V </dev/null >&5) 2>&5
1848 ac_status=$?
1849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850 (exit $ac_status); }
1851
1852cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
1853/* confdefs.h. */
1854_ACEOF
1855cat confdefs.h >>conftest.$ac_ext
1856cat >>conftest.$ac_ext <<_ACEOF
1857/* end confdefs.h. */
1858
1859int
1860main ()
1861{
1862
1863 ;
1864 return 0;
1865}
1866_ACEOF
1867ac_clean_files_save=$ac_clean_files
1868ac_clean_files="$ac_clean_files a.out a.exe b.out"
1869# Try to create an executable without -o first, disregard a.out.
1870# It will help us diagnose broken compilers, and finding out an intuition
1871# of exeext.
8a2fc586
AK
1872echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1873echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ad6254c5
AK
1874ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1875if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1876 (eval $ac_link_default) 2>&5
1877 ac_status=$?
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }; then
1880 # Find the output, starting from the most likely. This scheme is
1881# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1882# resort.
1883
1884# Be careful to initialize this variable, since it used to be cached.
1885# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1886ac_cv_exeext=
1887# b.out is created by i960 compilers.
1888for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1889do
1890 test -f "$ac_file" || continue
1891 case $ac_file in
1892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
8a2fc586 1893 ;;
ad6254c5 1894 conftest.$ac_ext )
8a2fc586
AK
1895 # This is the source file.
1896 ;;
ad6254c5 1897 [ab].out )
8a2fc586
AK
1898 # We found the default executable, but exeext='' is most
1899 # certainly right.
1900 break;;
ad6254c5 1901 *.* )
8a2fc586
AK
1902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1903 # FIXME: I believe we export ac_cv_exeext for Libtool,
1904 # but it would be cool to find out if it's true. Does anybody
1905 # maintain Libtool? --akim.
1906 export ac_cv_exeext
1907 break;;
ad6254c5 1908 * )
8a2fc586 1909 break;;
ad6254c5
AK
1910 esac
1911done
1912else
1913 echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1917See \`config.log' for more details." >&5
1918echo "$as_me: error: C compiler cannot create executables
1919See \`config.log' for more details." >&2;}
1920 { (exit 77); exit 77; }; }
1921fi
1922
1923ac_exeext=$ac_cv_exeext
1924echo "$as_me:$LINENO: result: $ac_file" >&5
1925echo "${ECHO_T}$ac_file" >&6
1926
1927# Check the compiler produces executables we can run. If not, either
1928# the compiler is broken, or we cross compile.
1929echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1930echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1931# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1932# If not cross compiling, check that we can run a simple program.
1933if test "$cross_compiling" != yes; then
1934 if { ac_try='./$ac_file'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
1940 cross_compiling=no
795ca3e5 1941 else
ad6254c5
AK
1942 if test "$cross_compiling" = maybe; then
1943 cross_compiling=yes
1944 else
1945 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1946If you meant to cross compile, use \`--host'.
1947See \`config.log' for more details." >&5
1948echo "$as_me: error: cannot run C compiled programs.
1949If you meant to cross compile, use \`--host'.
1950See \`config.log' for more details." >&2;}
1951 { (exit 1); exit 1; }; }
1952 fi
795ca3e5 1953 fi
80992638 1954fi
ad6254c5
AK
1955echo "$as_me:$LINENO: result: yes" >&5
1956echo "${ECHO_T}yes" >&6
1957
1958rm -f a.out a.exe conftest$ac_cv_exeext b.out
1959ac_clean_files=$ac_clean_files_save
1960# Check the compiler produces executables we can run. If not, either
1961# the compiler is broken, or we cross compile.
1962echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1963echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1964echo "$as_me:$LINENO: result: $cross_compiling" >&5
1965echo "${ECHO_T}$cross_compiling" >&6
1966
1967echo "$as_me:$LINENO: checking for suffix of executables" >&5
1968echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1970 (eval $ac_link) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1975# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1976# work properly (i.e., refer to `conftest.exe'), while it won't with
1977# `rm'.
1978for ac_file in conftest.exe conftest conftest.*; do
1979 test -f "$ac_file" || continue
1980 case $ac_file in
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586
AK
1983 export ac_cv_exeext
1984 break;;
ad6254c5
AK
1985 * ) break;;
1986 esac
1987done
80992638 1988else
ad6254c5
AK
1989 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1990See \`config.log' for more details." >&5
1991echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1992See \`config.log' for more details." >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
1996rm -f conftest$ac_cv_exeext
1997echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1998echo "${ECHO_T}$ac_cv_exeext" >&6
1999
2000rm -f conftest.$ac_ext
2001EXEEXT=$ac_cv_exeext
2002ac_exeext=$EXEEXT
2003echo "$as_me:$LINENO: checking for suffix of object files" >&5
2004echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2005if test "${ac_cv_objext+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2007else
ad6254c5 2008 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */
2014
2015int
2016main ()
2017{
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023rm -f conftest.o conftest.obj
2024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }; then
2029 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2030 case $ac_file in
2031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2033 break;;
2034 esac
2035done
2036else
2037 echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: cannot compute suffix of object files: cannot compile
2043See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2045fi
2046
2047rm -f conftest.$ac_cv_objext conftest.$ac_ext
2048fi
2049echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2050echo "${ECHO_T}$ac_cv_objext" >&6
2051OBJEXT=$ac_cv_objext
2052ac_objext=$OBJEXT
2053echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2054echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2055if test "${ac_cv_c_compiler_gnu+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2059/* confdefs.h. */
2060_ACEOF
2061cat confdefs.h >>conftest.$ac_ext
2062cat >>conftest.$ac_ext <<_ACEOF
2063/* end confdefs.h. */
2064
2065int
2066main ()
2067{
2068#ifndef __GNUC__
2069 choke me
2070#endif
80992638 2071
ad6254c5
AK
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076rm -f conftest.$ac_objext
2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2078 (eval $ac_compile) 2>conftest.er1
ad6254c5 2079 ac_status=$?
8a2fc586
AK
2080 grep -v '^ *+' conftest.er1 >conftest.err
2081 rm -f conftest.er1
2082 cat conftest.err >&5
ad6254c5
AK
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
8a2fc586
AK
2085 { ac_try='test -z "$ac_c_werror_flag"
2086 || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_compiler_gnu=yes
80992638 2099else
ad6254c5
AK
2100 echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103ac_compiler_gnu=no
8106cdd5 2104fi
8a2fc586 2105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2106ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2107
ad6254c5
AK
2108fi
2109echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111GCC=`test $ac_compiler_gnu = yes && echo yes`
2112ac_test_CFLAGS=${CFLAGS+set}
2113ac_save_CFLAGS=$CFLAGS
2114CFLAGS="-g"
2115echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2119else
ad6254c5 2120 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126
2127int
2128main ()
2129{
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2137 (eval $ac_compile) 2>conftest.er1
ad6254c5 2138 ac_status=$?
8a2fc586
AK
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
ad6254c5
AK
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
8a2fc586
AK
2144 { ac_try='test -z "$ac_c_werror_flag"
2145 || test ! -s conftest.err'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; } &&
2151 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
795ca3e5
AK
2157 ac_cv_prog_cc_g=yes
2158else
ad6254c5
AK
2159 echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
80992638 2161
ad6254c5 2162ac_cv_prog_cc_g=no
8106cdd5 2163fi
8a2fc586 2164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2165fi
2166echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2168if test "$ac_test_CFLAGS" = set; then
ad6254c5 2169 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2170elif test $ac_cv_prog_cc_g = yes; then
2171 if test "$GCC" = yes; then
2172 CFLAGS="-g -O2"
2173 else
2174 CFLAGS="-g"
2175 fi
2176else
2177 if test "$GCC" = yes; then
2178 CFLAGS="-O2"
2179 else
2180 CFLAGS=
2181 fi
2182fi
ad6254c5
AK
2183echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2184echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2185if test "${ac_cv_prog_cc_stdc+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188 ac_cv_prog_cc_stdc=no
2189ac_save_CC=$CC
2190cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196#include <stdarg.h>
2197#include <stdio.h>
2198#include <sys/types.h>
2199#include <sys/stat.h>
2200/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2201struct buf { int x; };
2202FILE * (*rcsopen) (struct buf *, struct stat *, int);
2203static char *e (p, i)
2204 char **p;
2205 int i;
2206{
2207 return p[i];
2208}
2209static char *f (char * (*g) (char **, int), char **p, ...)
2210{
2211 char *s;
2212 va_list v;
2213 va_start (v,p);
2214 s = g (p, va_arg (v,int));
2215 va_end (v);
2216 return s;
2217}
8a2fc586
AK
2218
2219/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2220 function prototypes and stuff, but not '\xHH' hex character constants.
2221 These don't provoke an error unfortunately, instead are silently treated
2222 as 'x'. The following induces an error, until -std1 is added to get
2223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2224 array size at least. It's necessary to write '\x00'==0 to get something
2225 that's true only with -std1. */
2226int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227
ad6254c5
AK
2228int test (int i, double x);
2229struct s1 {int (*f) (int a);};
2230struct s2 {int (*f) (double a);};
2231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2232int argc;
2233char **argv;
2234int
2235main ()
2236{
2237return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242# Don't try gcc -ansi; that turns off useful extensions and
2243# breaks some systems' header files.
2244# AIX -qlanglvl=ansi
2245# Ultrix and OSF/1 -std1
2246# HP-UX 10.20 and later -Ae
2247# HP-UX older versions -Aa -D_HPUX_SOURCE
2248# SVR4 -Xc -D__EXTENSIONS__
2249for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250do
2251 CC="$ac_save_CC $ac_arg"
2252 rm -f conftest.$ac_objext
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2254 (eval $ac_compile) 2>conftest.er1
ad6254c5 2255 ac_status=$?
8a2fc586
AK
2256 grep -v '^ *+' conftest.er1 >conftest.err
2257 rm -f conftest.er1
2258 cat conftest.err >&5
ad6254c5
AK
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
8a2fc586
AK
2261 { ac_try='test -z "$ac_c_werror_flag"
2262 || test ! -s conftest.err'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; } &&
2268 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; }; then
2274 ac_cv_prog_cc_stdc=$ac_arg
2275break
2276else
2277 echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280fi
8a2fc586 2281rm -f conftest.err conftest.$ac_objext
ad6254c5
AK
2282done
2283rm -f conftest.$ac_ext conftest.$ac_objext
2284CC=$ac_save_CC
2285
2286fi
2287
2288case "x$ac_cv_prog_cc_stdc" in
2289 x|xno)
2290 echo "$as_me:$LINENO: result: none needed" >&5
2291echo "${ECHO_T}none needed" >&6 ;;
2292 *)
2293 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2294echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2295 CC="$CC $ac_cv_prog_cc_stdc" ;;
2296esac
2297
2298# Some people use a C++ compiler to compile C. Since we use `exit',
2299# in C++ we need to declare it. In case someone uses the same compiler
2300# for both compiling C and C++ we need to have the C++ compiler decide
2301# the declaration of exit, since it's the most demanding environment.
2302cat >conftest.$ac_ext <<_ACEOF
2303#ifndef __cplusplus
2304 choke me
2305#endif
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2309 (eval $ac_compile) 2>conftest.er1
ad6254c5 2310 ac_status=$?
8a2fc586
AK
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
ad6254c5
AK
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
8a2fc586
AK
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 for ac_declaration in \
8a2fc586 2330 '' \
ad6254c5
AK
2331 'extern "C" void std::exit (int) throw (); using std::exit;' \
2332 'extern "C" void std::exit (int); using std::exit;' \
2333 'extern "C" void exit (int) throw ();' \
2334 'extern "C" void exit (int);' \
2335 'void exit (int);'
2336do
2337 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2338/* confdefs.h. */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h. */
c1c065a3 2343$ac_declaration
8a2fc586 2344#include <stdlib.h>
ad6254c5
AK
2345int
2346main ()
2347{
2348exit (42);
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2355 (eval $ac_compile) 2>conftest.er1
ad6254c5 2356 ac_status=$?
8a2fc586
AK
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
ad6254c5
AK
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
8a2fc586
AK
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 :
2376else
2377 echo "$as_me: failed program was:" >&5
2378sed 's/^/| /' conftest.$ac_ext >&5
2379
2380continue
2381fi
8a2fc586 2382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2383 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2384/* confdefs.h. */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h. */
2389$ac_declaration
2390int
2391main ()
2392{
2393exit (42);
2394 ;
2395 return 0;
2396}
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2400 (eval $ac_compile) 2>conftest.er1
ad6254c5 2401 ac_status=$?
8a2fc586
AK
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
ad6254c5
AK
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
8a2fc586
AK
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 break
2421else
2422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425fi
8a2fc586 2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2427done
2428rm -f conftest*
2429if test -n "$ac_declaration"; then
2430 echo '#ifdef __cplusplus' >>confdefs.h
2431 echo $ac_declaration >>confdefs.h
2432 echo '#endif' >>confdefs.h
2433fi
2434
2435else
2436 echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439fi
8a2fc586 2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2441ac_ext=c
2442ac_cpp='$CPP $CPPFLAGS'
2443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2446
2447# Find a good install program. We prefer a C program (faster),
2448# so one script is as good as another. But avoid the broken or
2449# incompatible versions:
2450# SysV /etc/install, /usr/sbin/install
2451# SunOS /usr/etc/install
2452# IRIX /sbin/install
2453# AIX /bin/install
ad6254c5 2454# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2455# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2456# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2457# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8a2fc586 2458# OS/2's system install, which has a completely different semantic
795ca3e5 2459# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2460echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2461echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2462if test -z "$INSTALL"; then
ad6254c5
AK
2463if test "${ac_cv_path_install+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 # Account for people who put trailing slashes in PATH elements.
2472case $as_dir/ in
2473 ./ | .// | /cC/* | \
2474 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8a2fc586 2475 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2476 /usr/ucb/* ) ;;
2477 *)
2478 # OSF1 and SCO ODT 3.0 have their own names for install.
2479 # Don't use installbsd from OSF since it installs stuff as root
2480 # by default.
2481 for ac_prog in ginstall scoinst install; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
8a2fc586
AK
2483 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2484 if test $ac_prog = install &&
2485 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486 # AIX install. It has an incompatible calling convention.
2487 :
2488 elif test $ac_prog = install &&
2489 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # program-specific install script used by HP pwplus--don't use.
2491 :
2492 else
2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 break 3
2495 fi
2496 fi
795ca3e5 2497 done
ad6254c5
AK
2498 done
2499 ;;
2500esac
2501done
2502
795ca3e5
AK
2503
2504fi
2505 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2506 INSTALL=$ac_cv_path_install
795ca3e5
AK
2507 else
2508 # As a last resort, use the slow shell script. We don't cache a
2509 # path for INSTALL within a source directory, because that will
2510 # break other packages using the cache if that directory is
2511 # removed, or if the path is relative.
ad6254c5 2512 INSTALL=$ac_install_sh
795ca3e5
AK
2513 fi
2514fi
ad6254c5
AK
2515echo "$as_me:$LINENO: result: $INSTALL" >&5
2516echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2517
2518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519# It thinks the first close brace ends the variable substitution.
2520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
ad6254c5 2522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2523
2524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
ad6254c5
AK
2526echo "$as_me:$LINENO: checking whether ln -s works" >&5
2527echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2528LN_S=$as_ln_s
2529if test "$LN_S" = "ln -s"; then
2530 echo "$as_me:$LINENO: result: yes" >&5
2531echo "${ECHO_T}yes" >&6
80992638 2532else
ad6254c5
AK
2533 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2534echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2535fi
2536
ad6254c5
AK
2537echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8a2fc586 2539set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ad6254c5
AK
2540if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2542else
ad6254c5 2543 cat >conftest.make <<\_ACEOF
795ca3e5 2544all:
ad6254c5
AK
2545 @echo 'ac_maketemp="$(MAKE)"'
2546_ACEOF
795ca3e5 2547# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2548eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2549if test -n "$ac_maketemp"; then
2550 eval ac_cv_prog_make_${ac_make}_set=yes
2551else
2552 eval ac_cv_prog_make_${ac_make}_set=no
2553fi
ad6254c5 2554rm -f conftest.make
795ca3e5
AK
2555fi
2556if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2557 echo "$as_me:$LINENO: result: yes" >&5
2558echo "${ECHO_T}yes" >&6
795ca3e5
AK
2559 SET_MAKE=
2560else
ad6254c5
AK
2561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
795ca3e5
AK
2563 SET_MAKE="MAKE=${MAKE-make}"
2564fi
2565
ad6254c5
AK
2566if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2568set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2569echo "$as_me:$LINENO: checking for $ac_word" >&5
2570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571if test "${ac_cv_prog_RANLIB+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2573else
2574 if test -n "$RANLIB"; then
2575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2576else
ad6254c5
AK
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588done
2589done
2590
795ca3e5
AK
2591fi
2592fi
ad6254c5 2593RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2594if test -n "$RANLIB"; then
ad6254c5
AK
2595 echo "$as_me:$LINENO: result: $RANLIB" >&5
2596echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2597else
ad6254c5
AK
2598 echo "$as_me:$LINENO: result: no" >&5
2599echo "${ECHO_T}no" >&6
8106cdd5
AK
2600fi
2601
795ca3e5 2602fi
ad6254c5
AK
2603if test -z "$ac_cv_prog_RANLIB"; then
2604 ac_ct_RANLIB=$RANLIB
2605 # Extract the first word of "ranlib", so it can be a program name with args.
2606set dummy ranlib; ac_word=$2
2607echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2611else
ad6254c5
AK
2612 if test -n "$ac_ct_RANLIB"; then
2613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622 ac_cv_prog_ac_ct_RANLIB="ranlib"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
795ca3e5 2627done
8106cdd5 2628
ad6254c5 2629 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2630fi
80992638 2631fi
ad6254c5
AK
2632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2633if test -n "$ac_ct_RANLIB"; then
2634 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2635echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2636else
ad6254c5
AK
2637 echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6
8106cdd5 2639fi
8106cdd5 2640
ad6254c5 2641 RANLIB=$ac_ct_RANLIB
80992638 2642else
ad6254c5 2643 RANLIB="$ac_cv_prog_RANLIB"
80992638 2644fi
795ca3e5 2645
8a2fc586
AK
2646# Extract the first word of "cflow", so it can be a program name with args.
2647set dummy cflow; ac_word=$2
2648echo "$as_me:$LINENO: checking for $ac_word" >&5
2649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 case $CFLOW_CMD in
2654 [\\/]* | ?:[\\/]*)
2655 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
2656 ;;
2657 *)
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
2666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669done
2670done
2671
2672 ;;
2673esac
2674fi
2675CFLOW_CMD=$ac_cv_path_CFLOW_CMD
2676
2677if test -n "$CFLOW_CMD"; then
2678 echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
2679echo "${ECHO_T}$CFLOW_CMD" >&6
2680else
2681 echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6
2683fi
2684
2685# Extract the first word of "cscope", so it can be a program name with args.
2686set dummy cscope; ac_word=$2
2687echo "$as_me:$LINENO: checking for $ac_word" >&5
2688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2689if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692 case $CSCOPE_CMD in
2693 [\\/]* | ?:[\\/]*)
2694 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
2695 ;;
2696 *)
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
2705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708done
2709done
2710
2711 ;;
2712esac
2713fi
2714CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
2715
2716if test -n "$CSCOPE_CMD"; then
2717 echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
2718echo "${ECHO_T}$CSCOPE_CMD" >&6
2719else
2720 echo "$as_me:$LINENO: result: no" >&5
2721echo "${ECHO_T}no" >&6
2722fi
2723
795ca3e5 2724
ad6254c5
AK
2725################################################################################
2726
2727
2728
2729
2730
2731
2732ac_header_dirent=no
2733for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2734 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2735echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2736echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2737if eval "test \"\${$as_ac_Header+set}\" = set"; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2739else
ad6254c5 2740 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2741/* confdefs.h. */
2742_ACEOF
2743cat confdefs.h >>conftest.$ac_ext
2744cat >>conftest.$ac_ext <<_ACEOF
2745/* end confdefs.h. */
2746#include <sys/types.h>
2747#include <$ac_hdr>
2748
2749int
2750main ()
2751{
2752if ((DIR *) 0)
2753return 0;
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext
2759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 2760 (eval $ac_compile) 2>conftest.er1
ad6254c5 2761 ac_status=$?
8a2fc586
AK
2762 grep -v '^ *+' conftest.er1 >conftest.err
2763 rm -f conftest.er1
2764 cat conftest.err >&5
ad6254c5
AK
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
8a2fc586
AK
2767 { ac_try='test -z "$ac_c_werror_flag"
2768 || test ! -s conftest.err'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 (eval $ac_try) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; } &&
2774 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 eval "$as_ac_Header=yes"
8106cdd5 2781else
ad6254c5
AK
2782 echo "$as_me: failed program was:" >&5
2783sed 's/^/| /' conftest.$ac_ext >&5
2784
2785eval "$as_ac_Header=no"
795ca3e5 2786fi
8a2fc586 2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 2788fi
ad6254c5
AK
2789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2791if test `eval echo '${'$as_ac_Header'}'` = yes; then
2792 cat >>confdefs.h <<_ACEOF
2793#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2794_ACEOF
2795
2796ac_header_dirent=$ac_hdr; break
795ca3e5 2797fi
8106cdd5 2798
ad6254c5
AK
2799done
2800# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2801if test $ac_header_dirent = dirent.h; then
2802 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2803echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2804if test "${ac_cv_search_opendir+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2806else
ad6254c5
AK
2807 ac_func_search_save_LIBS=$LIBS
2808ac_cv_search_opendir=no
2809cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2810/* confdefs.h. */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h. */
2815
2816/* Override any gcc2 internal prototype to avoid an error. */
2817#ifdef __cplusplus
2818extern "C"
2819#endif
2820/* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2822char opendir ();
2823int
2824main ()
2825{
2826opendir ();
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext conftest$ac_exeext
2832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2833 (eval $ac_link) 2>conftest.er1
ad6254c5 2834 ac_status=$?
8a2fc586
AK
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
ad6254c5
AK
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
8a2fc586
AK
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_search_opendir="none required"
795ca3e5 2854else
ad6254c5
AK
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
8a2fc586
AK
2859rm -f conftest.err conftest.$ac_objext \
2860 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2861if test "$ac_cv_search_opendir" = no; then
2862 for ac_lib in dir; do
2863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2864 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
795ca3e5 2870
ad6254c5
AK
2871/* Override any gcc2 internal prototype to avoid an error. */
2872#ifdef __cplusplus
2873extern "C"
2874#endif
2875/* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2877char opendir ();
2878int
2879main ()
2880{
2881opendir ();
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext conftest$ac_exeext
2887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2888 (eval $ac_link) 2>conftest.er1
ad6254c5 2889 ac_status=$?
8a2fc586
AK
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
ad6254c5
AK
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
8a2fc586
AK
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 ac_cv_search_opendir="-l$ac_lib"
2909break
795ca3e5 2910else
ad6254c5
AK
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2913
2914fi
8a2fc586
AK
2915rm -f conftest.err conftest.$ac_objext \
2916 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2917 done
795ca3e5 2918fi
ad6254c5
AK
2919LIBS=$ac_func_search_save_LIBS
2920fi
2921echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2922echo "${ECHO_T}$ac_cv_search_opendir" >&6
2923if test "$ac_cv_search_opendir" != no; then
2924 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2925
2926fi
2927
795ca3e5 2928else
ad6254c5
AK
2929 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2930echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2931if test "${ac_cv_search_opendir+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 ac_func_search_save_LIBS=$LIBS
2935ac_cv_search_opendir=no
2936cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2937/* confdefs.h. */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h. */
80992638 2942
ad6254c5
AK
2943/* Override any gcc2 internal prototype to avoid an error. */
2944#ifdef __cplusplus
2945extern "C"
2946#endif
2947/* We use char because int might match the return type of a gcc2
2948 builtin and then its argument prototype would still apply. */
2949char opendir ();
2950int
2951main ()
2952{
2953opendir ();
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958rm -f conftest.$ac_objext conftest$ac_exeext
2959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 2960 (eval $ac_link) 2>conftest.er1
ad6254c5 2961 ac_status=$?
8a2fc586
AK
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
ad6254c5
AK
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
8a2fc586
AK
2967 { ac_try='test -z "$ac_c_werror_flag"
2968 || test ! -s conftest.err'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_cv_search_opendir="none required"
795ca3e5 2981else
ad6254c5
AK
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985fi
8a2fc586
AK
2986rm -f conftest.err conftest.$ac_objext \
2987 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2988if test "$ac_cv_search_opendir" = no; then
2989 for ac_lib in x; do
2990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2991 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2992/* confdefs.h. */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h. */
2997
2998/* Override any gcc2 internal prototype to avoid an error. */
2999#ifdef __cplusplus
3000extern "C"
3001#endif
3002/* We use char because int might match the return type of a gcc2
3003 builtin and then its argument prototype would still apply. */
3004char opendir ();
3005int
3006main ()
3007{
3008opendir ();
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext conftest$ac_exeext
3014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 3015 (eval $ac_link) 2>conftest.er1
ad6254c5 3016 ac_status=$?
8a2fc586
AK
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
ad6254c5
AK
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } &&
8a2fc586
AK
3022 { ac_try='test -z "$ac_c_werror_flag"
3023 || test ! -s conftest.err'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; }; then
3035 ac_cv_search_opendir="-l$ac_lib"
3036break
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
80992638 3040
795ca3e5 3041fi
8a2fc586
AK
3042rm -f conftest.err conftest.$ac_objext \
3043 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
3044 done
3045fi
3046LIBS=$ac_func_search_save_LIBS
795ca3e5 3047fi
ad6254c5
AK
3048echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3049echo "${ECHO_T}$ac_cv_search_opendir" >&6
3050if test "$ac_cv_search_opendir" != no; then
3051 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 3052
ad6254c5 3053fi
8106cdd5 3054
795ca3e5 3055fi
8106cdd5 3056
ad6254c5
AK
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3063echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3064# On Suns, sometimes $CPP names a directory.
3065if test -n "$CPP" && test -d "$CPP"; then
3066 CPP=
3067fi
3068if test -z "$CPP"; then
3069 if test "${ac_cv_prog_CPP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072 # Double quotes because CPP needs to be expanded
3073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3074 do
3075 ac_preproc_ok=false
3076for ac_c_preproc_warn_flag in '' yes
8106cdd5 3077do
ad6254c5
AK
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#ifdef __STDC__
3091# include <limits.h>
3092#else
3093# include <assert.h>
3094#endif
8a2fc586 3095 Syntax error
ad6254c5
AK
3096_ACEOF
3097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3099 ac_status=$?
3100 grep -v '^ *+' conftest.er1 >conftest.err
3101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null; then
3105 if test -s conftest.err; then
3106 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3108 else
3109 ac_cpp_err=
3110 fi
3111else
3112 ac_cpp_err=yes
8106cdd5 3113fi
ad6254c5
AK
3114if test -z "$ac_cpp_err"; then
3115 :
3116else
3117 echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 # Broken: fails on valid input.
3121continue
3122fi
3123rm -f conftest.err conftest.$ac_ext
3124
3125 # OK, works on sane cases. Now check whether non-existent headers
3126 # can be detected and how.
3127 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
3133#include <ac_nonexistent.h>
3134_ACEOF
3135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3146 else
3147 ac_cpp_err=
3148 fi
3149else
3150 ac_cpp_err=yes
8106cdd5 3151fi
ad6254c5
AK
3152if test -z "$ac_cpp_err"; then
3153 # Broken: success on invalid input.
3154continue
80992638 3155else
ad6254c5
AK
3156 echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 # Passes both tests.
3160ac_preproc_ok=:
3161break
795ca3e5 3162fi
ad6254c5
AK
3163rm -f conftest.err conftest.$ac_ext
3164
795ca3e5 3165done
ad6254c5
AK
3166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167rm -f conftest.err conftest.$ac_ext
3168if $ac_preproc_ok; then
3169 break
3170fi
795ca3e5 3171
ad6254c5
AK
3172 done
3173 ac_cv_prog_CPP=$CPP
795ca3e5 3174
ad6254c5
AK
3175fi
3176 CPP=$ac_cv_prog_CPP
795ca3e5 3177else
ad6254c5 3178 ac_cv_prog_CPP=$CPP
795ca3e5 3179fi
ad6254c5
AK
3180echo "$as_me:$LINENO: result: $CPP" >&5
3181echo "${ECHO_T}$CPP" >&6
3182ac_preproc_ok=false
3183for ac_c_preproc_warn_flag in '' yes
3184do
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error" is here to catch this case.
3191 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3192/* confdefs.h. */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h. */
3197#ifdef __STDC__
3198# include <limits.h>
3199#else
3200# include <assert.h>
3201#endif
8a2fc586 3202 Syntax error
ad6254c5
AK
3203_ACEOF
3204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } >/dev/null; then
3212 if test -s conftest.err; then
3213 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3215 else
3216 ac_cpp_err=
3217 fi
3218else
3219 ac_cpp_err=yes
795ca3e5 3220fi
ad6254c5
AK
3221if test -z "$ac_cpp_err"; then
3222 :
3223else
3224 echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227 # Broken: fails on valid input.
3228continue
3229fi
3230rm -f conftest.err conftest.$ac_ext
3231
3232 # OK, works on sane cases. Now check whether non-existent headers
3233 # can be detected and how.
3234 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h. */
3240#include <ac_nonexistent.h>
3241_ACEOF
3242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3253 else
3254 ac_cpp_err=
3255 fi
3256else
3257 ac_cpp_err=yes
3258fi
3259if test -z "$ac_cpp_err"; then
3260 # Broken: success on invalid input.
3261continue
3262else
3263 echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3265
ad6254c5
AK
3266 # Passes both tests.
3267ac_preproc_ok=:
3268break
795ca3e5 3269fi
ad6254c5 3270rm -f conftest.err conftest.$ac_ext
795ca3e5 3271
ad6254c5
AK
3272done
3273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3274rm -f conftest.err conftest.$ac_ext
3275if $ac_preproc_ok; then
3276 :
795ca3e5 3277else
ad6254c5
AK
3278 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3279See \`config.log' for more details." >&5
3280echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3281See \`config.log' for more details." >&2;}
3282 { (exit 1); exit 1; }; }
795ca3e5 3283fi
795ca3e5 3284
ad6254c5
AK
3285ac_ext=c
3286ac_cpp='$CPP $CPPFLAGS'
3287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292echo "$as_me:$LINENO: checking for egrep" >&5
3293echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3294if test "${ac_cv_prog_egrep+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3298 then ac_cv_prog_egrep='grep -E'
3299 else ac_cv_prog_egrep='egrep'
3300 fi
795ca3e5 3301fi
ad6254c5
AK
3302echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3303echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3304 EGREP=$ac_cv_prog_egrep
80992638 3305
795ca3e5 3306
ad6254c5
AK
3307echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3308echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3309if test "${ac_cv_header_stdc+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3311else
ad6254c5 3312 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3313/* confdefs.h. */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h. */
80992638 3318#include <stdlib.h>
ad6254c5
AK
3319#include <stdarg.h>
3320#include <string.h>
3321#include <float.h>
3322
3323int
3324main ()
3325{
3326
3327 ;
3328 return 0;
3329}
3330_ACEOF
3331rm -f conftest.$ac_objext
3332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3333 (eval $ac_compile) 2>conftest.er1
ad6254c5 3334 ac_status=$?
8a2fc586
AK
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
ad6254c5
AK
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
8a2fc586
AK
3340 { ac_try='test -z "$ac_c_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_header_stdc=yes
795ca3e5 3354else
ad6254c5
AK
3355 echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358ac_cv_header_stdc=no
795ca3e5 3359fi
8a2fc586 3360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3361
3362if test $ac_cv_header_stdc = yes; then
3363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3364 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#include <string.h>
8106cdd5 3371
ad6254c5
AK
3372_ACEOF
3373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "memchr" >/dev/null 2>&1; then
3375 :
3376else
3377 ac_cv_header_stdc=no
80992638 3378fi
ad6254c5 3379rm -f conftest*
795ca3e5
AK
3380
3381fi
3382
ad6254c5
AK
3383if test $ac_cv_header_stdc = yes; then
3384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h. */
80992638 3391#include <stdlib.h>
ad6254c5
AK
3392
3393_ACEOF
80992638 3394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3395 $EGREP "free" >/dev/null 2>&1; then
3396 :
795ca3e5 3397else
ad6254c5 3398 ac_cv_header_stdc=no
795ca3e5 3399fi
80992638 3400rm -f conftest*
8106cdd5 3401
795ca3e5
AK
3402fi
3403
ad6254c5
AK
3404if test $ac_cv_header_stdc = yes; then
3405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3406 if test "$cross_compiling" = yes; then
3407 :
795ca3e5 3408else
ad6254c5 3409 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#include <ctype.h>
3416#if ((' ' & 0x0FF) == 0x020)
3417# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3418# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3419#else
3420# define ISLOWER(c) \
8a2fc586
AK
3421 (('a' <= (c) && (c) <= 'i') \
3422 || ('j' <= (c) && (c) <= 'r') \
3423 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3424# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3425#endif
ad6254c5
AK
3426
3427#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3428int
3429main ()
3430{
3431 int i;
3432 for (i = 0; i < 256; i++)
3433 if (XOR (islower (i), ISLOWER (i))
8a2fc586 3434 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3435 exit(2);
3436 exit (0);
3437}
3438_ACEOF
3439rm -f conftest$ac_exeext
3440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441 (eval $ac_link) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 :
795ca3e5 3451else
ad6254c5
AK
3452 echo "$as_me: program exited with status $ac_status" >&5
3453echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3455
ad6254c5
AK
3456( exit $ac_status )
3457ac_cv_header_stdc=no
80992638 3458fi
8a2fc586 3459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3460fi
3461fi
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3464echo "${ECHO_T}$ac_cv_header_stdc" >&6
3465if test $ac_cv_header_stdc = yes; then
3466
3467cat >>confdefs.h <<\_ACEOF
3468#define STDC_HEADERS 1
3469_ACEOF
795ca3e5
AK
3470
3471fi
3472
ad6254c5
AK
3473echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3474echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3475if test "${ac_cv_header_sys_wait_h+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3477else
ad6254c5 3478 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3479/* confdefs.h. */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h. */
80992638 3484#include <sys/types.h>
ad6254c5
AK
3485#include <sys/wait.h>
3486#ifndef WEXITSTATUS
3487# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3488#endif
3489#ifndef WIFEXITED
3490# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3491#endif
3492
3493int
3494main ()
3495{
3496 int s;
3497 wait (&s);
3498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3499 ;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest.$ac_objext
3504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3505 (eval $ac_compile) 2>conftest.er1
ad6254c5 3506 ac_status=$?
8a2fc586
AK
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
ad6254c5
AK
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
8a2fc586
AK
3512 { ac_try='test -z "$ac_c_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 (eval $ac_try) 2>&5
3516 ac_status=$?
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 (eval $ac_try) 2>&5
3522 ac_status=$?
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_cv_header_sys_wait_h=yes
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530ac_cv_header_sys_wait_h=no
8106cdd5 3531fi
8a2fc586 3532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3533fi
ad6254c5
AK
3534echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3535echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3536if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3537
ad6254c5
AK
3538cat >>confdefs.h <<\_ACEOF
3539#define HAVE_SYS_WAIT_H 1
3540_ACEOF
795ca3e5
AK
3541
3542fi
3543
ad6254c5
AK
3544echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3545echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3546if test "${ac_cv_header_time+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3548else
ad6254c5 3549 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
795ca3e5
AK
3555#include <sys/types.h>
3556#include <sys/time.h>
3557#include <time.h>
ad6254c5
AK
3558
3559int
3560main ()
3561{
3562if ((struct tm *) 0)
3563return 0;
3564 ;
3565 return 0;
3566}
3567_ACEOF
3568rm -f conftest.$ac_objext
3569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3570 (eval $ac_compile) 2>conftest.er1
ad6254c5 3571 ac_status=$?
8a2fc586
AK
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
ad6254c5
AK
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
8a2fc586
AK
3577 { ac_try='test -z "$ac_c_werror_flag"
3578 || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
795ca3e5
AK
3590 ac_cv_header_time=yes
3591else
ad6254c5
AK
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595ac_cv_header_time=no
795ca3e5 3596fi
8a2fc586 3597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3598fi
ad6254c5
AK
3599echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3600echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3601if test $ac_cv_header_time = yes; then
ad6254c5
AK
3602
3603cat >>confdefs.h <<\_ACEOF
795ca3e5 3604#define TIME_WITH_SYS_TIME 1
ad6254c5 3605_ACEOF
b896caa1 3606
8106cdd5 3607fi
b896caa1 3608
b896caa1 3609
ad6254c5 3610# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3611
b896caa1
AK
3612
3613
795ca3e5 3614
8106cdd5 3615
80992638 3616
795ca3e5 3617
a38df97f 3618
80992638 3619
ad6254c5 3620for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8a2fc586 3621 inttypes.h stdint.h unistd.h
ad6254c5
AK
3622do
3623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3624echo "$as_me:$LINENO: checking for $ac_header" >&5
3625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3626if eval "test \"\${$as_ac_Header+set}\" = set"; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628else
3629 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
3635$ac_includes_default
3636
3637#include <$ac_header>
3638_ACEOF
3639rm -f conftest.$ac_objext
3640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3641 (eval $ac_compile) 2>conftest.er1
ad6254c5 3642 ac_status=$?
8a2fc586
AK
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
ad6254c5
AK
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
8a2fc586
AK
3648 { ac_try='test -z "$ac_c_werror_flag"
3649 || test ! -s conftest.err'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; } &&
3655 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 eval "$as_ac_Header=yes"
3662else
3663 echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3665
ad6254c5
AK
3666eval "$as_ac_Header=no"
3667fi
8a2fc586 3668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 3669fi
ad6254c5
AK
3670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3672if test `eval echo '${'$as_ac_Header'}'` = yes; then
3673 cat >>confdefs.h <<_ACEOF
3674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3675_ACEOF
a38df97f 3676
80992638
AK
3677fi
3678
ad6254c5
AK
3679done
3680
7d1552c9 3681
7d1552c9 3682
80992638 3683
5a52dca9 3684
5a52dca9 3685
ad6254c5
AK
3686
3687
3688
3689
3690
3691for 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
3692do
3693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695 echo "$as_me:$LINENO: checking for $ac_header" >&5
3696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3697if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699fi
3700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3702else
3703 # Is the header compilable?
3704echo "$as_me:$LINENO: checking $ac_header usability" >&5
3705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3706cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3707/* confdefs.h. */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h. */
3712$ac_includes_default
3713#include <$ac_header>
3714_ACEOF
3715rm -f conftest.$ac_objext
3716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3717 (eval $ac_compile) 2>conftest.er1
ad6254c5 3718 ac_status=$?
8a2fc586
AK
3719 grep -v '^ *+' conftest.er1 >conftest.err
3720 rm -f conftest.er1
3721 cat conftest.err >&5
ad6254c5
AK
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
8a2fc586
AK
3724 { ac_try='test -z "$ac_c_werror_flag"
3725 || test ! -s conftest.err'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; } &&
3731 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; }; then
3737 ac_header_compiler=yes
3738else
3739 echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742ac_header_compiler=no
3743fi
8a2fc586 3744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3746echo "${ECHO_T}$ac_header_compiler" >&6
3747
3748# Is the header present?
3749echo "$as_me:$LINENO: checking $ac_header presence" >&5
3750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3751cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757#include <$ac_header>
3758_ACEOF
3759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } >/dev/null; then
3767 if test -s conftest.err; then
3768 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3770 else
3771 ac_cpp_err=
3772 fi
3773else
3774 ac_cpp_err=yes
3775fi
3776if test -z "$ac_cpp_err"; then
3777 ac_header_preproc=yes
3778else
3779 echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 ac_header_preproc=no
3783fi
3784rm -f conftest.err conftest.$ac_ext
3785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3786echo "${ECHO_T}$ac_header_preproc" >&6
3787
3788# So? What about this header?
8a2fc586
AK
3789case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3790 yes:no: )
ad6254c5
AK
3791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3795 ac_header_preproc=yes
ad6254c5 3796 ;;
8a2fc586 3797 no:yes:* )
ad6254c5
AK
3798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3805echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3810 (
3811 cat <<\_ASBOX
8a2fc586
AK
3812## ------------------------------------------ ##
3813## Report this to the AC_PACKAGE_NAME lists. ##
3814## ------------------------------------------ ##
ad6254c5
AK
3815_ASBOX
3816 ) |
3817 sed "s/^/$as_me: WARNING: /" >&2
3818 ;;
3819esac
3820echo "$as_me:$LINENO: checking for $ac_header" >&5
3821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3822if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
8a2fc586 3825 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 3826fi
ad6254c5
AK
3827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3829
3830fi
3831if test `eval echo '${'$as_ac_Header'}'` = yes; then
3832 cat >>confdefs.h <<_ACEOF
3833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3834_ACEOF
b896caa1 3835
d8ac0fbc 3836else
ad6254c5
AK
3837 { { echo "$as_me:$LINENO: error: bailing out" >&5
3838echo "$as_me: error: bailing out" >&2;}
3839 { (exit 1); exit 1; }; }
80992638
AK
3840fi
3841
ad6254c5 3842done
d8ac0fbc 3843
d8ac0fbc 3844
d8ac0fbc 3845
80992638 3846
d3c8211f 3847
d3c8211f 3848
d3c8211f 3849
80992638 3850
4922197a 3851
4922197a 3852
ad6254c5
AK
3853
3854
3855
3856for 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
3857do
3858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3859if eval "test \"\${$as_ac_Header+set}\" = set"; then
3860 echo "$as_me:$LINENO: checking for $ac_header" >&5
3861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3862if eval "test \"\${$as_ac_Header+set}\" = set"; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864fi
3865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3867else
3868 # Is the header compilable?
3869echo "$as_me:$LINENO: checking $ac_header usability" >&5
3870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3871cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877$ac_includes_default
3878#include <$ac_header>
3879_ACEOF
3880rm -f conftest.$ac_objext
3881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 3882 (eval $ac_compile) 2>conftest.er1
ad6254c5 3883 ac_status=$?
8a2fc586
AK
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
ad6254c5
AK
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } &&
8a2fc586
AK
3889 { ac_try='test -z "$ac_c_werror_flag"
3890 || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_header_compiler=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907ac_header_compiler=no
3908fi
8a2fc586 3909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3911echo "${ECHO_T}$ac_header_compiler" >&6
3912
3913# Is the header present?
3914echo "$as_me:$LINENO: checking $ac_header presence" >&5
3915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3916cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922#include <$ac_header>
3923_ACEOF
3924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } >/dev/null; then
3932 if test -s conftest.err; then
3933 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 3934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3935 else
3936 ac_cpp_err=
3937 fi
3938else
3939 ac_cpp_err=yes
4922197a 3940fi
ad6254c5
AK
3941if test -z "$ac_cpp_err"; then
3942 ac_header_preproc=yes
3943else
3944 echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 ac_header_preproc=no
3948fi
3949rm -f conftest.err conftest.$ac_ext
3950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3951echo "${ECHO_T}$ac_header_preproc" >&6
3952
3953# So? What about this header?
8a2fc586
AK
3954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3955 yes:no: )
ad6254c5
AK
3956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
3958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3960 ac_header_preproc=yes
ad6254c5 3961 ;;
8a2fc586 3962 no:yes:* )
ad6254c5
AK
3963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
3965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3970echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
3973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3975 (
3976 cat <<\_ASBOX
8a2fc586
AK
3977## ------------------------------------------ ##
3978## Report this to the AC_PACKAGE_NAME lists. ##
3979## ------------------------------------------ ##
ad6254c5
AK
3980_ASBOX
3981 ) |
3982 sed "s/^/$as_me: WARNING: /" >&2
3983 ;;
3984esac
3985echo "$as_me:$LINENO: checking for $ac_header" >&5
3986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3987if eval "test \"\${$as_ac_Header+set}\" = set"; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
8a2fc586 3990 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
3991fi
3992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3994
3995fi
3996if test `eval echo '${'$as_ac_Header'}'` = yes; then
3997 cat >>confdefs.h <<_ACEOF
3998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3999_ACEOF
4922197a 4000
4922197a 4001else
ad6254c5
AK
4002 { { echo "$as_me:$LINENO: error: bailing out" >&5
4003echo "$as_me: error: bailing out" >&2;}
4004 { (exit 1); exit 1; }; }
80992638
AK
4005fi
4006
ad6254c5 4007done
4922197a 4008
4922197a 4009
ad6254c5
AK
4010case "$host_os" in
4011 linux*)
4922197a 4012
ad6254c5
AK
4013
4014
4015for ac_header in asm/byteorder.h linux/fs.h malloc.h
4016do
4017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo "$as_me:$LINENO: checking for $ac_header" >&5
4020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4021if eval "test \"\${$as_ac_Header+set}\" = set"; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023fi
4024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 4026else
ad6254c5
AK
4027 # Is the header compilable?
4028echo "$as_me:$LINENO: checking $ac_header usability" >&5
4029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4030cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036$ac_includes_default
4037#include <$ac_header>
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4041 (eval $ac_compile) 2>conftest.er1
ad6254c5 4042 ac_status=$?
8a2fc586
AK
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
ad6254c5
AK
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
8a2fc586
AK
4048 { ac_try='test -z "$ac_c_werror_flag"
4049 || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 ac_header_compiler=yes
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066ac_header_compiler=no
4067fi
8a2fc586 4068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4070echo "${ECHO_T}$ac_header_compiler" >&6
4071
4072# Is the header present?
4073echo "$as_me:$LINENO: checking $ac_header presence" >&5
4074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4075cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081#include <$ac_header>
4082_ACEOF
4083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4085 ac_status=$?
4086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } >/dev/null; then
4091 if test -s conftest.err; then
4092 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4094 else
4095 ac_cpp_err=
4096 fi
4097else
4098 ac_cpp_err=yes
4099fi
4100if test -z "$ac_cpp_err"; then
4101 ac_header_preproc=yes
4102else
4103 echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106 ac_header_preproc=no
4107fi
4108rm -f conftest.err conftest.$ac_ext
4109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4110echo "${ECHO_T}$ac_header_preproc" >&6
4111
4112# So? What about this header?
8a2fc586
AK
4113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4114 yes:no: )
ad6254c5
AK
4115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4119 ac_header_preproc=yes
ad6254c5 4120 ;;
8a2fc586 4121 no:yes:* )
ad6254c5
AK
4122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4134 (
4135 cat <<\_ASBOX
8a2fc586
AK
4136## ------------------------------------------ ##
4137## Report this to the AC_PACKAGE_NAME lists. ##
4138## ------------------------------------------ ##
ad6254c5
AK
4139_ASBOX
4140 ) |
4141 sed "s/^/$as_me: WARNING: /" >&2
4142 ;;
4143esac
4144echo "$as_me:$LINENO: checking for $ac_header" >&5
4145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4146if eval "test \"\${$as_ac_Header+set}\" = set"; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
8a2fc586 4149 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4150fi
ad6254c5
AK
4151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 4153
ad6254c5
AK
4154fi
4155if test `eval echo '${'$as_ac_Header'}'` = yes; then
4156 cat >>confdefs.h <<_ACEOF
4157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4158_ACEOF
795ca3e5 4159
795ca3e5 4160else
ad6254c5
AK
4161 { { echo "$as_me:$LINENO: error: bailing out" >&5
4162echo "$as_me: error: bailing out" >&2;}
4163 { (exit 1); exit 1; }; }
80992638
AK
4164fi
4165
ad6254c5
AK
4166done
4167 ;;
4168 darwin*)
4169
795ca3e5 4170
ad6254c5
AK
4171for ac_header in machine/endian.h sys/disk.h
4172do
4173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174if eval "test \"\${$as_ac_Header+set}\" = set"; then
4175 echo "$as_me:$LINENO: checking for $ac_header" >&5
4176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4177if eval "test \"\${$as_ac_Header+set}\" = set"; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179fi
4180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182else
4183 # Is the header compilable?
4184echo "$as_me:$LINENO: checking $ac_header usability" >&5
4185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4186cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192$ac_includes_default
4193#include <$ac_header>
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4197 (eval $ac_compile) 2>conftest.er1
ad6254c5 4198 ac_status=$?
8a2fc586
AK
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
ad6254c5
AK
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
8a2fc586
AK
4204 { ac_try='test -z "$ac_c_werror_flag"
4205 || test ! -s conftest.err'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_header_compiler=yes
4218else
4219 echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222ac_header_compiler=no
4223fi
8a2fc586 4224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4226echo "${ECHO_T}$ac_header_compiler" >&6
4227
4228# Is the header present?
4229echo "$as_me:$LINENO: checking $ac_header presence" >&5
4230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4231cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
4237#include <$ac_header>
4238_ACEOF
4239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } >/dev/null; then
4247 if test -s conftest.err; then
4248 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 4249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4250 else
4251 ac_cpp_err=
4252 fi
4253else
4254 ac_cpp_err=yes
4255fi
4256if test -z "$ac_cpp_err"; then
4257 ac_header_preproc=yes
4258else
4259 echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 ac_header_preproc=no
4263fi
4264rm -f conftest.err conftest.$ac_ext
4265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4266echo "${ECHO_T}$ac_header_preproc" >&6
4267
4268# So? What about this header?
8a2fc586
AK
4269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4270 yes:no: )
ad6254c5
AK
4271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
4273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4275 ac_header_preproc=yes
ad6254c5 4276 ;;
8a2fc586 4277 no:yes:* )
ad6254c5
AK
4278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
4280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4290 (
4291 cat <<\_ASBOX
8a2fc586
AK
4292## ------------------------------------------ ##
4293## Report this to the AC_PACKAGE_NAME lists. ##
4294## ------------------------------------------ ##
ad6254c5
AK
4295_ASBOX
4296 ) |
4297 sed "s/^/$as_me: WARNING: /" >&2
4298 ;;
4299esac
4300echo "$as_me:$LINENO: checking for $ac_header" >&5
4301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304else
8a2fc586 4305 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4306fi
ad6254c5
AK
4307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4309
ad6254c5
AK
4310fi
4311if test `eval echo '${'$as_ac_Header'}'` = yes; then
4312 cat >>confdefs.h <<_ACEOF
4313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314_ACEOF
4315
4316else
4317 { { echo "$as_me:$LINENO: error: bailing out" >&5
4318echo "$as_me: error: bailing out" >&2;}
4319 { (exit 1); exit 1; }; }
80992638
AK
4320fi
4321
ad6254c5
AK
4322done
4323 ;;
4324esac
d3c8211f 4325
80992638 4326################################################################################
ad6254c5
AK
4327echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4328echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4329if test "${ac_cv_c_const+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4331else
ad6254c5 4332 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4333/* confdefs.h. */
4334_ACEOF
4335cat confdefs.h >>conftest.$ac_ext
4336cat >>conftest.$ac_ext <<_ACEOF
4337/* end confdefs.h. */
4338
4339int
4340main ()
4341{
4342/* FIXME: Include the comments suggested by Paul. */
4343#ifndef __cplusplus
4344 /* Ultrix mips cc rejects this. */
4345 typedef int charset[2];
4346 const charset x;
4347 /* SunOS 4.1.1 cc rejects this. */
4348 char const *const *ccp;
4349 char **p;
4350 /* NEC SVR4.0.2 mips cc rejects this. */
4351 struct point {int x, y;};
4352 static struct point const zero = {0,0};
4353 /* AIX XL C 1.02.0.0 rejects this.
4354 It does not let you subtract one const X* pointer from another in
4355 an arm of an if-expression whose if-part is not a constant
4356 expression */
4357 const char *g = "string";
4358 ccp = &g + (g ? g-g : 0);
4359 /* HPUX 7.0 cc rejects these. */
4360 ++ccp;
4361 p = (char**) ccp;
4362 ccp = (char const *const *) p;
4363 { /* SCO 3.2v4 cc rejects this. */
4364 char *t;
4365 char const *s = 0 ? (char *) 0 : (char const *) 0;
4366
4367 *t++ = 0;
4368 }
4369 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4370 int x[] = {25, 17};
4371 const int *foo = &x[0];
4372 ++foo;
4373 }
4374 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4375 typedef const int *iptr;
4376 iptr p = 0;
4377 ++p;
4378 }
4379 { /* AIX XL C 1.02.0.0 rejects this saying
4380 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4381 struct s { int j; const int *ap[3]; };
4382 struct s *b; b->j = 5;
4383 }
4384 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4385 const int foo = 10;
4386 }
4387#endif
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4395 (eval $ac_compile) 2>conftest.er1
ad6254c5 4396 ac_status=$?
8a2fc586
AK
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
ad6254c5
AK
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
8a2fc586
AK
4402 { ac_try='test -z "$ac_c_werror_flag"
4403 || test ! -s conftest.err'
ad6254c5
AK
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8a2fc586
AK
4408 (exit $ac_status); }; } &&
4409 { ac_try='test -s conftest.$ac_objext'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
ad6254c5
AK
4415 ac_cv_c_const=yes
4416else
4417 echo "$as_me: failed program was:" >&5
4418sed 's/^/| /' conftest.$ac_ext >&5
4419
4420ac_cv_c_const=no
4421fi
8a2fc586 4422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4423fi
ad6254c5
AK
4424echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4425echo "${ECHO_T}$ac_cv_c_const" >&6
4426if test $ac_cv_c_const = no; then
80992638 4427
ad6254c5
AK
4428cat >>confdefs.h <<\_ACEOF
4429#define const
4430_ACEOF
80992638 4431
d3c8211f 4432fi
d3c8211f 4433
ad6254c5
AK
4434echo "$as_me:$LINENO: checking for inline" >&5
4435echo $ECHO_N "checking for inline... $ECHO_C" >&6
4436if test "${ac_cv_c_inline+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4438else
ad6254c5
AK
4439 ac_cv_c_inline=no
4440for ac_kw in inline __inline__ __inline; do
4441 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4442/* confdefs.h. */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h. */
4447#ifndef __cplusplus
4448typedef int foo_t;
4449static $ac_kw foo_t static_foo () {return 0; }
4450$ac_kw foo_t foo () {return 0; }
4451#endif
80992638 4452
ad6254c5
AK
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4456 (eval $ac_compile) 2>conftest.er1
ad6254c5 4457 ac_status=$?
8a2fc586
AK
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
ad6254c5
AK
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
8a2fc586
AK
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_cv_c_inline=$ac_kw; break
4477else
4478 echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4480
8ce0cbda 4481fi
8a2fc586 4482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4483done
8ce0cbda 4484
8ce0cbda 4485fi
ad6254c5
AK
4486echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4487echo "${ECHO_T}$ac_cv_c_inline" >&6
8a2fc586
AK
4488
4489
ad6254c5
AK
4490case $ac_cv_c_inline in
4491 inline | yes) ;;
8a2fc586
AK
4492 *)
4493 case $ac_cv_c_inline in
4494 no) ac_val=;;
4495 *) ac_val=$ac_cv_c_inline;;
4496 esac
4497 cat >>confdefs.h <<_ACEOF
4498#ifndef __cplusplus
4499#define inline $ac_val
4500#endif
c1c065a3 4501_ACEOF
8a2fc586 4502 ;;
ad6254c5 4503esac
8ce0cbda 4504
ad6254c5
AK
4505echo "$as_me:$LINENO: checking for off_t" >&5
4506echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4507if test "${ac_cv_type_off_t+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4511/* confdefs.h. */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h. */
4516$ac_includes_default
4517int
4518main ()
4519{
4520if ((off_t *) 0)
4521 return 0;
4522if (sizeof (off_t))
4523 return 0;
4524 ;
4525 return 0;
4526}
4527_ACEOF
4528rm -f conftest.$ac_objext
4529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4530 (eval $ac_compile) 2>conftest.er1
ad6254c5 4531 ac_status=$?
8a2fc586
AK
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
ad6254c5
AK
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
8a2fc586
AK
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_type_off_t=yes
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4554
ad6254c5 4555ac_cv_type_off_t=no
80992638 4556fi
8a2fc586 4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4558fi
4559echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4560echo "${ECHO_T}$ac_cv_type_off_t" >&6
4561if test $ac_cv_type_off_t = yes; then
4562 :
4563else
80992638 4564
ad6254c5
AK
4565cat >>confdefs.h <<_ACEOF
4566#define off_t long
4567_ACEOF
199e490e 4568
b896caa1
AK
4569fi
4570
ad6254c5
AK
4571echo "$as_me:$LINENO: checking for pid_t" >&5
4572echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4573if test "${ac_cv_type_pid_t+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4577/* confdefs.h. */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */
4582$ac_includes_default
4583int
4584main ()
4585{
4586if ((pid_t *) 0)
4587 return 0;
4588if (sizeof (pid_t))
4589 return 0;
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594rm -f conftest.$ac_objext
4595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4596 (eval $ac_compile) 2>conftest.er1
ad6254c5 4597 ac_status=$?
8a2fc586
AK
4598 grep -v '^ *+' conftest.er1 >conftest.err
4599 rm -f conftest.er1
4600 cat conftest.err >&5
ad6254c5
AK
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
8a2fc586
AK
4603 { ac_try='test -z "$ac_c_werror_flag"
4604 || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_type_pid_t=yes
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_cv_type_pid_t=no
4622fi
8a2fc586 4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4624fi
ad6254c5
AK
4625echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4626echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4627if test $ac_cv_type_pid_t = yes; then
4628 :
4629else
80992638 4630
ad6254c5
AK
4631cat >>confdefs.h <<_ACEOF
4632#define pid_t int
4633_ACEOF
2dc95e1c 4634
2dc95e1c
AK
4635fi
4636
ad6254c5
AK
4637echo "$as_me:$LINENO: checking for size_t" >&5
4638echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4639if test "${ac_cv_type_size_t+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4641else
ad6254c5 4642 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648$ac_includes_default
4649int
4650main ()
4651{
4652if ((size_t *) 0)
4653 return 0;
4654if (sizeof (size_t))
4655 return 0;
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660rm -f conftest.$ac_objext
4661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4662 (eval $ac_compile) 2>conftest.er1
ad6254c5 4663 ac_status=$?
8a2fc586
AK
4664 grep -v '^ *+' conftest.er1 >conftest.err
4665 rm -f conftest.er1
4666 cat conftest.err >&5
ad6254c5
AK
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } &&
8a2fc586
AK
4669 { ac_try='test -z "$ac_c_werror_flag"
4670 || test ! -s conftest.err'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_cv_type_size_t=yes
4683else
4684 echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687ac_cv_type_size_t=no
80992638 4688fi
8a2fc586 4689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4690fi
4691echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4692echo "${ECHO_T}$ac_cv_type_size_t" >&6
4693if test $ac_cv_type_size_t = yes; then
4694 :
4695else
80992638 4696
ad6254c5
AK
4697cat >>confdefs.h <<_ACEOF
4698#define size_t unsigned
4699_ACEOF
8106cdd5 4700
8106cdd5
AK
4701fi
4702
ad6254c5
AK
4703echo "$as_me:$LINENO: checking for mode_t" >&5
4704echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4705if test "${ac_cv_type_mode_t+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707else
4708 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714$ac_includes_default
4715int
4716main ()
4717{
4718if ((mode_t *) 0)
4719 return 0;
4720if (sizeof (mode_t))
4721 return 0;
4722 ;
4723 return 0;
4724}
4725_ACEOF
4726rm -f conftest.$ac_objext
4727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4728 (eval $ac_compile) 2>conftest.er1
ad6254c5 4729 ac_status=$?
8a2fc586
AK
4730 grep -v '^ *+' conftest.er1 >conftest.err
4731 rm -f conftest.er1
4732 cat conftest.err >&5
ad6254c5
AK
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } &&
8a2fc586
AK
4735 { ac_try='test -z "$ac_c_werror_flag"
4736 || test ! -s conftest.err'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_type_mode_t=yes
4749else
4750 echo "$as_me: failed program was:" >&5
4751sed 's/^/| /' conftest.$ac_ext >&5
4752
4753ac_cv_type_mode_t=no
80992638 4754fi
8a2fc586 4755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4756fi
4757echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4758echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4759if test $ac_cv_type_mode_t = yes; then
4760 :
4761else
80992638 4762
ad6254c5
AK
4763cat >>confdefs.h <<_ACEOF
4764#define mode_t int
4765_ACEOF
4766
4767fi
4768
4769
4770echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4771echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4772if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
4781$ac_includes_default
4782int
4783main ()
4784{
4785static struct stat ac_aggr;
4786if (ac_aggr.st_rdev)
4787return 0;
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4794 (eval $ac_compile) 2>conftest.er1
ad6254c5 4795 ac_status=$?
8a2fc586
AK
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
ad6254c5
AK
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
8a2fc586
AK
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 ac_cv_member_struct_stat_st_rdev=yes
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4820/* confdefs.h. */
4821_ACEOF
4822cat confdefs.h >>conftest.$ac_ext
4823cat >>conftest.$ac_ext <<_ACEOF
4824/* end confdefs.h. */
4825$ac_includes_default
4826int
4827main ()
4828{
4829static struct stat ac_aggr;
4830if (sizeof ac_aggr.st_rdev)
4831return 0;
4832 ;
4833 return 0;
4834}
4835_ACEOF
4836rm -f conftest.$ac_objext
4837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4838 (eval $ac_compile) 2>conftest.er1
ad6254c5 4839 ac_status=$?
8a2fc586
AK
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
ad6254c5
AK
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
8a2fc586
AK
4845 { ac_try='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_member_struct_stat_st_rdev=yes
4859else
4860 echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863ac_cv_member_struct_stat_st_rdev=no
4864fi
8a2fc586 4865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4866fi
8a2fc586 4867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4868fi
4869echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4870echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4871if test $ac_cv_member_struct_stat_st_rdev = yes; then
4872
4873cat >>confdefs.h <<_ACEOF
4874#define HAVE_STRUCT_STAT_ST_RDEV 1
4875_ACEOF
4876
4877
4878cat >>confdefs.h <<\_ACEOF
4879#define HAVE_ST_RDEV 1
4880_ACEOF
4881
4882fi
4883
4884
4885echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4886echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4887if test "${ac_cv_struct_tm+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896#include <sys/types.h>
4897#include <time.h>
4898
4899int
4900main ()
4901{
4902struct tm *tp; tp->tm_sec;
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext
4908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 4909 (eval $ac_compile) 2>conftest.er1
ad6254c5 4910 ac_status=$?
8a2fc586
AK
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
ad6254c5
AK
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
8a2fc586
AK
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_cv_struct_tm=time.h
4930else
4931 echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934ac_cv_struct_tm=sys/time.h
4935fi
8a2fc586 4936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4937fi
4938echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4939echo "${ECHO_T}$ac_cv_struct_tm" >&6
4940if test $ac_cv_struct_tm = sys/time.h; then
4941
4942cat >>confdefs.h <<\_ACEOF
4943#define TM_IN_SYS_TIME 1
4944_ACEOF
4945
4946fi
809fae91 4947
795ca3e5 4948
80992638 4949################################################################################
ad6254c5
AK
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4965do
4966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4967echo "$as_me:$LINENO: checking for $ac_func" >&5
4968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4969if eval "test \"\${$as_ac_var+set}\" = set"; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4971else
ad6254c5 4972 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4973/* confdefs.h. */
4974_ACEOF
4975cat confdefs.h >>conftest.$ac_ext
4976cat >>conftest.$ac_ext <<_ACEOF
4977/* end confdefs.h. */
8a2fc586
AK
4978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4980#define $ac_func innocuous_$ac_func
4981
ad6254c5
AK
4982/* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func (); below.
4984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 <limits.h> exists even on freestanding compilers. */
8a2fc586 4986
ad6254c5
AK
4987#ifdef __STDC__
4988# include <limits.h>
4989#else
4990# include <assert.h>
4991#endif
8a2fc586
AK
4992
4993#undef $ac_func
4994
ad6254c5
AK
4995/* Override any gcc2 internal prototype to avoid an error. */
4996#ifdef __cplusplus
4997extern "C"
4998{
4999#endif
5000/* We use char because int might match the return type of a gcc2
5001 builtin and then its argument prototype would still apply. */
5002char $ac_func ();
5003/* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
5006#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5007choke me
5008#else
5009char (*f) () = $ac_func;
5010#endif
5011#ifdef __cplusplus
5012}
5013#endif
5014
5015int
5016main ()
5017{
5018return f != $ac_func;
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023rm -f conftest.$ac_objext conftest$ac_exeext
5024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5025 (eval $ac_link) 2>conftest.er1
ad6254c5 5026 ac_status=$?
8a2fc586
AK
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
ad6254c5
AK
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
8a2fc586
AK
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 eval "$as_ac_var=yes"
795ca3e5 5046else
ad6254c5
AK
5047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050eval "$as_ac_var=no"
795ca3e5 5051fi
8a2fc586
AK
5052rm -f conftest.err conftest.$ac_objext \
5053 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5054fi
5055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5057if test `eval echo '${'$as_ac_var'}'` = yes; then
5058 cat >>confdefs.h <<_ACEOF
5059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5060_ACEOF
5061
5062else
5063 { { echo "$as_me:$LINENO: error: bailing out" >&5
5064echo "$as_me: error: bailing out" >&2;}
5065 { (exit 1); exit 1; }; }
5066fi
5067done
795ca3e5 5068
ad6254c5
AK
5069# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5070# for constant arguments. Useless!
5071echo "$as_me:$LINENO: checking for working alloca.h" >&5
5072echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5073if test "${ac_cv_working_alloca_h+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082#include <alloca.h>
5083int
5084main ()
5085{
5086char *p = (char *) alloca (2 * sizeof (int));
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext conftest$ac_exeext
5092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5093 (eval $ac_link) 2>conftest.er1
ad6254c5 5094 ac_status=$?
8a2fc586
AK
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
ad6254c5
AK
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
8a2fc586
AK
5100 { ac_try='test -z "$ac_c_werror_flag"
5101 || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_cv_working_alloca_h=yes
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5117
ad6254c5
AK
5118ac_cv_working_alloca_h=no
5119fi
8a2fc586
AK
5120rm -f conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5122fi
5123echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5124echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5125if test $ac_cv_working_alloca_h = yes; then
5126
5127cat >>confdefs.h <<\_ACEOF
5128#define HAVE_ALLOCA_H 1
5129_ACEOF
5130
5131fi
5132
5133echo "$as_me:$LINENO: checking for alloca" >&5
5134echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5135if test "${ac_cv_func_alloca_works+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5139/* confdefs.h. */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h. */
5144#ifdef __GNUC__
5145# define alloca __builtin_alloca
5146#else
5147# ifdef _MSC_VER
5148# include <malloc.h>
5149# define alloca _alloca
5150# else
5151# if HAVE_ALLOCA_H
5152# include <alloca.h>
5153# else
5154# ifdef _AIX
5155 #pragma alloca
5156# else
5157# ifndef alloca /* predefined by HP cc +Olibcalls */
5158char *alloca ();
5159# endif
5160# endif
5161# endif
5162# endif
5163#endif
5164
5165int
5166main ()
5167{
5168char *p = (char *) alloca (1);
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173rm -f conftest.$ac_objext conftest$ac_exeext
5174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5175 (eval $ac_link) 2>conftest.er1
ad6254c5 5176 ac_status=$?
8a2fc586
AK
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
ad6254c5
AK
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
8a2fc586
AK
5182 { ac_try='test -z "$ac_c_werror_flag"
5183 || test ! -s conftest.err'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; } &&
5189 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5195 ac_cv_func_alloca_works=yes
5196else
5197 echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200ac_cv_func_alloca_works=no
5201fi
8a2fc586
AK
5202rm -f conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5204fi
5205echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5206echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5207
5208if test $ac_cv_func_alloca_works = yes; then
5209
5210cat >>confdefs.h <<\_ACEOF
5211#define HAVE_ALLOCA 1
5212_ACEOF
5213
5214else
5215 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5216# that cause trouble. Some versions do not even contain alloca or
5217# contain a buggy version. If you still want to use their alloca,
5218# use ar to extract alloca.o from them instead of compiling alloca.c.
5219
5220ALLOCA=alloca.$ac_objext
5221
5222cat >>confdefs.h <<\_ACEOF
5223#define C_ALLOCA 1
5224_ACEOF
5225
5226
5227echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5228echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5229if test "${ac_cv_os_cray+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5233/* confdefs.h. */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h. */
5238#if defined(CRAY) && ! defined(CRAY2)
5239webecray
5240#else
5241wenotbecray
5242#endif
5243
5244_ACEOF
795ca3e5 5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5246 $EGREP "webecray" >/dev/null 2>&1; then
5247 ac_cv_os_cray=yes
5248else
5249 ac_cv_os_cray=no
795ca3e5
AK
5250fi
5251rm -f conftest*
5252
795ca3e5 5253fi
ad6254c5
AK
5254echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5255echo "${ECHO_T}$ac_cv_os_cray" >&6
5256if test $ac_cv_os_cray = yes; then
5257 for ac_func in _getb67 GETB67 getb67; do
5258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5259echo "$as_me:$LINENO: checking for $ac_func" >&5
5260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5261if eval "test \"\${$as_ac_var+set}\" = set"; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5265/* confdefs.h. */
5266_ACEOF
5267cat confdefs.h >>conftest.$ac_ext
5268cat >>conftest.$ac_ext <<_ACEOF
5269/* end confdefs.h. */
8a2fc586
AK
5270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5272#define $ac_func innocuous_$ac_func
5273
ad6254c5
AK
5274/* System header to define __stub macros and hopefully few prototypes,
5275 which can conflict with char $ac_func (); below.
5276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5277 <limits.h> exists even on freestanding compilers. */
8a2fc586 5278
ad6254c5
AK
5279#ifdef __STDC__
5280# include <limits.h>
5281#else
5282# include <assert.h>
5283#endif
8a2fc586
AK
5284
5285#undef $ac_func
5286
ad6254c5
AK
5287/* Override any gcc2 internal prototype to avoid an error. */
5288#ifdef __cplusplus
5289extern "C"
5290{
5291#endif
5292/* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5294char $ac_func ();
5295/* The GNU C library defines this for functions which it implements
5296 to always fail with ENOSYS. Some functions are actually named
5297 something starting with __ and the normal name is an alias. */
5298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5299choke me
5300#else
5301char (*f) () = $ac_func;
5302#endif
5303#ifdef __cplusplus
5304}
5305#endif
5306
5307int
5308main ()
5309{
5310return f != $ac_func;
5311 ;
5312 return 0;
5313}
5314_ACEOF
5315rm -f conftest.$ac_objext conftest$ac_exeext
5316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5317 (eval $ac_link) 2>conftest.er1
ad6254c5 5318 ac_status=$?
8a2fc586
AK
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
ad6254c5
AK
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
8a2fc586
AK
5324 { ac_try='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 eval "$as_ac_var=yes"
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342eval "$as_ac_var=no"
5343fi
8a2fc586
AK
5344rm -f conftest.err conftest.$ac_objext \
5345 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5346fi
5347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5349if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5350
ad6254c5
AK
5351cat >>confdefs.h <<_ACEOF
5352#define CRAY_STACKSEG_END $ac_func
5353_ACEOF
5354
5355 break
5356fi
5357
5358 done
5359fi
5360
5361echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5362echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5363if test "${ac_cv_c_stack_direction+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 if test "$cross_compiling" = yes; then
5367 ac_cv_c_stack_direction=0
5368else
5369 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375int
5376find_stack_direction ()
5377{
5378 static char *addr = 0;
5379 auto char dummy;
5380 if (addr == 0)
5381 {
5382 addr = &dummy;
5383 return find_stack_direction ();
5384 }
5385 else
5386 return (&dummy > addr) ? 1 : -1;
5387}
5388
5389int
5390main ()
5391{
5392 exit (find_stack_direction () < 0);
5393}
5394_ACEOF
5395rm -f conftest$ac_exeext
5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397 (eval $ac_link) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_cv_c_stack_direction=1
5407else
5408 echo "$as_me: program exited with status $ac_status" >&5
5409echo "$as_me: failed program was:" >&5
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
5412( exit $ac_status )
5413ac_cv_c_stack_direction=-1
5414fi
8a2fc586 5415rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5416fi
5417fi
5418echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5419echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5420
5421cat >>confdefs.h <<_ACEOF
5422#define STACK_DIRECTION $ac_cv_c_stack_direction
5423_ACEOF
5424
5425
5426fi
5427
5428echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5429echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5430if test "${ac_cv_func_closedir_void+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 if test "$cross_compiling" = yes; then
5434 ac_cv_func_closedir_void=yes
5435else
5436 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h. */
5442$ac_includes_default
5443#include <$ac_header_dirent>
5444#ifndef __cplusplus
5445int closedir ();
5446#endif
5447
5448int
5449main ()
5450{
5451exit (closedir (opendir (".")) != 0);
5452 ;
5453 return 0;
5454}
5455_ACEOF
5456rm -f conftest$ac_exeext
5457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; }; then
5467 ac_cv_func_closedir_void=no
5468else
5469 echo "$as_me: program exited with status $ac_status" >&5
5470echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473( exit $ac_status )
5474ac_cv_func_closedir_void=yes
5475fi
8a2fc586 5476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5477fi
5478fi
5479echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5480echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5481if test $ac_cv_func_closedir_void = yes; then
5482
5483cat >>confdefs.h <<\_ACEOF
5484#define CLOSEDIR_VOID 1
5485_ACEOF
5486
5487fi
5488
5489
5490
5491for ac_header in unistd.h vfork.h
5492do
5493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494if eval "test \"\${$as_ac_Header+set}\" = set"; then
5495 echo "$as_me:$LINENO: checking for $ac_header" >&5
5496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5497if eval "test \"\${$as_ac_Header+set}\" = set"; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499fi
5500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502else
5503 # Is the header compilable?
5504echo "$as_me:$LINENO: checking $ac_header usability" >&5
5505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5506cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5507/* confdefs.h. */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
5512$ac_includes_default
5513#include <$ac_header>
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 5517 (eval $ac_compile) 2>conftest.er1
ad6254c5 5518 ac_status=$?
8a2fc586
AK
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
ad6254c5
AK
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
8a2fc586
AK
5524 { ac_try='test -z "$ac_c_werror_flag"
5525 || test ! -s conftest.err'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; } &&
5531 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_header_compiler=yes
5538else
5539 echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542ac_header_compiler=no
5543fi
8a2fc586 5544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5545echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5546echo "${ECHO_T}$ac_header_compiler" >&6
5547
5548# Is the header present?
5549echo "$as_me:$LINENO: checking $ac_header presence" >&5
5550echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5551cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h. */
5557#include <$ac_header>
5558_ACEOF
5559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev/null; then
5567 if test -s conftest.err; then
5568 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 5569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
5570 else
5571 ac_cpp_err=
795ca3e5 5572 fi
ad6254c5
AK
5573else
5574 ac_cpp_err=yes
5575fi
5576if test -z "$ac_cpp_err"; then
5577 ac_header_preproc=yes
5578else
5579 echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582 ac_header_preproc=no
5583fi
5584rm -f conftest.err conftest.$ac_ext
5585echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5586echo "${ECHO_T}$ac_header_preproc" >&6
5587
5588# So? What about this header?
8a2fc586
AK
5589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5590 yes:no: )
ad6254c5
AK
5591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
5593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5595 ac_header_preproc=yes
ad6254c5 5596 ;;
8a2fc586 5597 no:yes:* )
ad6254c5
AK
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
5606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
5608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
5610 (
5611 cat <<\_ASBOX
8a2fc586
AK
5612## ------------------------------------------ ##
5613## Report this to the AC_PACKAGE_NAME lists. ##
5614## ------------------------------------------ ##
ad6254c5
AK
5615_ASBOX
5616 ) |
5617 sed "s/^/$as_me: WARNING: /" >&2
5618 ;;
5619esac
5620echo "$as_me:$LINENO: checking for $ac_header" >&5
5621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5622if eval "test \"\${$as_ac_Header+set}\" = set"; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
8a2fc586 5625 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
5626fi
5627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5629
795ca3e5 5630fi
ad6254c5
AK
5631if test `eval echo '${'$as_ac_Header'}'` = yes; then
5632 cat >>confdefs.h <<_ACEOF
5633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5634_ACEOF
5635
5636fi
5637
5638done
795ca3e5 5639
ad6254c5
AK
5640
5641
5642for ac_func in fork vfork
5643do
5644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5645echo "$as_me:$LINENO: checking for $ac_func" >&5
5646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5647if eval "test \"\${$as_ac_var+set}\" = set"; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5649else
ad6254c5 5650 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5651/* confdefs.h. */
5652_ACEOF
5653cat confdefs.h >>conftest.$ac_ext
5654cat >>conftest.$ac_ext <<_ACEOF
5655/* end confdefs.h. */
8a2fc586
AK
5656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5658#define $ac_func innocuous_$ac_func
5659
ad6254c5
AK
5660/* System header to define __stub macros and hopefully few prototypes,
5661 which can conflict with char $ac_func (); below.
5662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5663 <limits.h> exists even on freestanding compilers. */
8a2fc586 5664
ad6254c5
AK
5665#ifdef __STDC__
5666# include <limits.h>
5667#else
5668# include <assert.h>
795ca3e5 5669#endif
8a2fc586
AK
5670
5671#undef $ac_func
5672
ad6254c5 5673/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5674#ifdef __cplusplus
ad6254c5
AK
5675extern "C"
5676{
5677#endif
5678/* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5680char $ac_func ();
5681/* The GNU C library defines this for functions which it implements
5682 to always fail with ENOSYS. Some functions are actually named
5683 something starting with __ and the normal name is an alias. */
5684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5685choke me
795ca3e5 5686#else
ad6254c5
AK
5687char (*f) () = $ac_func;
5688#endif
5689#ifdef __cplusplus
5690}
795ca3e5
AK
5691#endif
5692
ad6254c5
AK
5693int
5694main ()
5695{
5696return f != $ac_func;
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext conftest$ac_exeext
5702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 5703 (eval $ac_link) 2>conftest.er1
ad6254c5 5704 ac_status=$?
8a2fc586
AK
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
ad6254c5
AK
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
8a2fc586
AK
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 eval "$as_ac_var=yes"
795ca3e5 5724else
ad6254c5
AK
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728eval "$as_ac_var=no"
795ca3e5 5729fi
8a2fc586
AK
5730rm -f conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5732fi
5733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5735if test `eval echo '${'$as_ac_var'}'` = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5738_ACEOF
5739
5740fi
5741done
5742
5743if test "x$ac_cv_func_fork" = xyes; then
5744 echo "$as_me:$LINENO: checking for working fork" >&5
5745echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5746if test "${ac_cv_func_fork_works+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 if test "$cross_compiling" = yes; then
5750 ac_cv_func_fork_works=cross
5751else
5752 cat >conftest.$ac_ext <<_ACEOF
5753/* By Ruediger Kuhlmann. */
5754 #include <sys/types.h>
5755 #if HAVE_UNISTD_H
5756 # include <unistd.h>
5757 #endif
5758 /* Some systems only have a dummy stub for fork() */
5759 int main ()
5760 {
8a2fc586
AK
5761 if (fork() < 0)
5762 exit (1);
5763 exit (0);
ad6254c5
AK
5764 }
5765_ACEOF
5766rm -f conftest$ac_exeext
5767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768 (eval $ac_link) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_cv_func_fork_works=yes
5778else
5779 echo "$as_me: program exited with status $ac_status" >&5
5780echo "$as_me: failed program was:" >&5
5781sed 's/^/| /' conftest.$ac_ext >&5
5782
5783( exit $ac_status )
5784ac_cv_func_fork_works=no
5785fi
8a2fc586 5786rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5787fi
5788fi
5789echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5790echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5791
5792else
5793 ac_cv_func_fork_works=$ac_cv_func_fork
5794fi
5795if test "x$ac_cv_func_fork_works" = xcross; then
5796 case $host in
5797 *-*-amigaos* | *-*-msdosdjgpp*)
5798 # Override, as these systems have only a dummy fork() stub
5799 ac_cv_func_fork_works=no
5800 ;;
5801 *)
5802 ac_cv_func_fork_works=yes
5803 ;;
5804 esac
5805 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5806echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5807fi
5808ac_cv_func_vfork_works=$ac_cv_func_vfork
5809if test "x$ac_cv_func_vfork" = xyes; then
5810 echo "$as_me:$LINENO: checking for working vfork" >&5
5811echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5812if test "${ac_cv_func_vfork_works+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 if test "$cross_compiling" = yes; then
5816 ac_cv_func_vfork_works=cross
5817else
5818 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824/* Thanks to Paul Eggert for this test. */
5825#include <stdio.h>
5826#include <stdlib.h>
5827#include <sys/types.h>
5828#include <sys/stat.h>
5829#include <sys/wait.h>
5830#if HAVE_UNISTD_H
5831# include <unistd.h>
5832#endif
5833#if HAVE_VFORK_H
5834# include <vfork.h>
5835#endif
5836/* On some sparc systems, changes by the child to local and incoming
5837 argument registers are propagated back to the parent. The compiler
5838 is told about this with #include <vfork.h>, but some compilers
5839 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5840 static variable whose address is put into a register that is
5841 clobbered by the vfork. */
5842static void
5843#ifdef __cplusplus
5844sparc_address_test (int arg)
5845# else
5846sparc_address_test (arg) int arg;
5847#endif
5848{
5849 static pid_t child;
5850 if (!child) {
5851 child = vfork ();
5852 if (child < 0) {
5853 perror ("vfork");
5854 _exit(2);
5855 }
5856 if (!child) {
5857 arg = getpid();
5858 write(-1, "", 0);
5859 _exit (arg);
5860 }
5861 }
5862}
5863
5864int
5865main ()
5866{
5867 pid_t parent = getpid ();
5868 pid_t child;
5869
5870 sparc_address_test (0);
5871
5872 child = vfork ();
5873
5874 if (child == 0) {
5875 /* Here is another test for sparc vfork register problems. This
5876 test uses lots of local variables, at least as many local
5877 variables as main has allocated so far including compiler
5878 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5879 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5880 reuse the register of parent for one of the local variables,
5881 since it will think that parent can't possibly be used any more
5882 in this routine. Assigning to the local variable will thus
5883 munge parent in the parent process. */
5884 pid_t
5885 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5886 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5887 /* Convince the compiler that p..p7 are live; otherwise, it might
5888 use the same hardware register for all 8 local variables. */
5889 if (p != p1 || p != p2 || p != p3 || p != p4
5890 || p != p5 || p != p6 || p != p7)
5891 _exit(1);
5892
5893 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5894 from child file descriptors. If the child closes a descriptor
5895 before it execs or exits, this munges the parent's descriptor
5896 as well. Test for this by closing stdout in the child. */
5897 _exit(close(fileno(stdout)) != 0);
5898 } else {
5899 int status;
5900 struct stat st;
5901
5902 while (wait(&status) != child)
5903 ;
5904 exit(
5905 /* Was there some problem with vforking? */
5906 child < 0
5907
5908 /* Did the child fail? (This shouldn't happen.) */
5909 || status
5910
5911 /* Did the vfork/compiler bug occur? */
5912 || parent != getpid()
5913
5914 /* Did the file descriptor bug occur? */
5915 || fstat(fileno(stdout), &st) != 0
5916 );
5917 }
5918}
5919_ACEOF
5920rm -f conftest$ac_exeext
5921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5922 (eval $ac_link) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 ac_cv_func_vfork_works=yes
5932else
5933 echo "$as_me: program exited with status $ac_status" >&5
5934echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937( exit $ac_status )
5938ac_cv_func_vfork_works=no
5939fi
8a2fc586 5940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5941fi
5942fi
5943echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5944echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5945
5946fi;
5947if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 5948 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
5949 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5950echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5951fi
5952
5953if test "x$ac_cv_func_vfork_works" = xyes; then
5954
5955cat >>confdefs.h <<\_ACEOF
5956#define HAVE_WORKING_VFORK 1
5957_ACEOF
5958
5959else
5960
5961cat >>confdefs.h <<\_ACEOF
5962#define vfork fork
5963_ACEOF
5964
5965fi
5966if test "x$ac_cv_func_fork_works" = xyes; then
5967
5968cat >>confdefs.h <<\_ACEOF
5969#define HAVE_WORKING_FORK 1
5970_ACEOF
5971
5972fi
5973
5974echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5975echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5976if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979 rm -f conftest.sym conftest.file
5980echo >conftest.file
5981if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5982 if test "$cross_compiling" = yes; then
5983 ac_cv_func_lstat_dereferences_slashed_symlink=no
5984else
5985 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
5991$ac_includes_default
5992int
5993main ()
5994{
5995struct stat sbuf;
5996 /* Linux will dereference the symlink and fail.
8a2fc586
AK
5997 That is better in the sense that it means we will not
5998 have to compile and use the lstat wrapper. */
ad6254c5
AK
5999 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
6000 ;
6001 return 0;
6002}
6003_ACEOF
6004rm -f conftest$ac_exeext
6005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6016else
6017 echo "$as_me: program exited with status $ac_status" >&5
6018echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021( exit $ac_status )
6022ac_cv_func_lstat_dereferences_slashed_symlink=no
6023fi
8a2fc586 6024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6025fi
6026else
6027 # If the `ln -s' command failed, then we probably don't even
6028 # have an lstat function.
6029 ac_cv_func_lstat_dereferences_slashed_symlink=no
6030fi
6031rm -f conftest.sym conftest.file
6032
6033fi
6034echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6035echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
6036
6037test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6038
6039cat >>confdefs.h <<_ACEOF
6040#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6041_ACEOF
6042
6043
6044if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
8a2fc586
AK
6045 case $LIBOBJS in
6046 "lstat.$ac_objext" | \
6047 *" lstat.$ac_objext" | \
6048 "lstat.$ac_objext "* | \
6049 *" lstat.$ac_objext "* ) ;;
6050 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6051esac
6052
ad6254c5
AK
6053fi
6054
6055echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6056echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
6057if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 if test "$cross_compiling" = yes; then
6061 ac_cv_func_lstat_empty_string_bug=yes
6062else
6063 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069$ac_includes_default
6070int
6071main ()
6072{
6073struct stat sbuf;
6074 exit (lstat ("", &sbuf) ? 1 : 0);
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079rm -f conftest$ac_exeext
6080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 (eval $ac_link) 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_cv_func_lstat_empty_string_bug=yes
6091else
6092 echo "$as_me: program exited with status $ac_status" >&5
6093echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096( exit $ac_status )
6097ac_cv_func_lstat_empty_string_bug=no
6098fi
8a2fc586 6099rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6100fi
6101fi
6102echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6103echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
6104if test $ac_cv_func_lstat_empty_string_bug = yes; then
8a2fc586
AK
6105 case $LIBOBJS in
6106 "lstat.$ac_objext" | \
6107 *" lstat.$ac_objext" | \
6108 "lstat.$ac_objext "* | \
6109 *" lstat.$ac_objext "* ) ;;
6110 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6111esac
6112
ad6254c5
AK
6113
6114cat >>confdefs.h <<_ACEOF
6115#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6116_ACEOF
6117
6118fi
6119
6120
6121for ac_header in stdlib.h
6122do
6123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124if eval "test \"\${$as_ac_Header+set}\" = set"; then
6125 echo "$as_me:$LINENO: checking for $ac_header" >&5
6126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6127if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129fi
6130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6132else
6133 # Is the header compilable?
6134echo "$as_me:$LINENO: checking $ac_header usability" >&5
6135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6136cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6137/* confdefs.h. */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h. */
6142$ac_includes_default
6143#include <$ac_header>
6144_ACEOF
6145rm -f conftest.$ac_objext
6146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6147 (eval $ac_compile) 2>conftest.er1
ad6254c5 6148 ac_status=$?
8a2fc586
AK
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
ad6254c5
AK
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
8a2fc586
AK
6154 { ac_try='test -z "$ac_c_werror_flag"
6155 || test ! -s conftest.err'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_header_compiler=yes
6168else
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172ac_header_compiler=no
6173fi
8a2fc586 6174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6176echo "${ECHO_T}$ac_header_compiler" >&6
6177
6178# Is the header present?
6179echo "$as_me:$LINENO: checking $ac_header presence" >&5
6180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6181cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6182/* confdefs.h. */
6183_ACEOF
6184cat confdefs.h >>conftest.$ac_ext
6185cat >>conftest.$ac_ext <<_ACEOF
6186/* end confdefs.h. */
6187#include <$ac_header>
6188_ACEOF
6189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null; then
6197 if test -s conftest.err; then
6198 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6200 else
6201 ac_cpp_err=
6202 fi
6203else
6204 ac_cpp_err=yes
6205fi
6206if test -z "$ac_cpp_err"; then
6207 ac_header_preproc=yes
6208else
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 ac_header_preproc=no
6213fi
6214rm -f conftest.err conftest.$ac_ext
6215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6216echo "${ECHO_T}$ac_header_preproc" >&6
6217
6218# So? What about this header?
8a2fc586
AK
6219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6220 yes:no: )
ad6254c5
AK
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6225 ac_header_preproc=yes
ad6254c5 6226 ;;
8a2fc586 6227 no:yes:* )
ad6254c5
AK
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6240 (
6241 cat <<\_ASBOX
8a2fc586
AK
6242## ------------------------------------------ ##
6243## Report this to the AC_PACKAGE_NAME lists. ##
6244## ------------------------------------------ ##
ad6254c5
AK
6245_ASBOX
6246 ) |
6247 sed "s/^/$as_me: WARNING: /" >&2
6248 ;;
6249esac
6250echo "$as_me:$LINENO: checking for $ac_header" >&5
6251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
8a2fc586 6255 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6256fi
6257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6259
6260fi
6261if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262 cat >>confdefs.h <<_ACEOF
6263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264_ACEOF
6265
6266fi
6267
6268done
6269
6270echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6271echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6272if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274else
6275 if test "$cross_compiling" = yes; then
6276 ac_cv_func_malloc_0_nonnull=no
6277else
6278 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284#if STDC_HEADERS || HAVE_STDLIB_H
6285# include <stdlib.h>
6286#else
6287char *malloc ();
6288#endif
6289
6290int
6291main ()
6292{
6293exit (malloc (0) ? 0 : 1);
6294 ;
6295 return 0;
6296}
6297_ACEOF
6298rm -f conftest$ac_exeext
6299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6300 (eval $ac_link) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_func_malloc_0_nonnull=yes
6310else
6311 echo "$as_me: program exited with status $ac_status" >&5
6312echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315( exit $ac_status )
6316ac_cv_func_malloc_0_nonnull=no
6317fi
8a2fc586 6318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6319fi
6320fi
6321echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6322echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6323if test $ac_cv_func_malloc_0_nonnull = yes; then
6324
6325cat >>confdefs.h <<\_ACEOF
6326#define HAVE_MALLOC 1
6327_ACEOF
6328
6329else
6330 cat >>confdefs.h <<\_ACEOF
6331#define HAVE_MALLOC 0
6332_ACEOF
6333
8a2fc586
AK
6334 case $LIBOBJS in
6335 "malloc.$ac_objext" | \
6336 *" malloc.$ac_objext" | \
6337 "malloc.$ac_objext "* | \
6338 *" malloc.$ac_objext "* ) ;;
6339 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6340esac
6341
ad6254c5
AK
6342
6343cat >>confdefs.h <<\_ACEOF
6344#define malloc rpl_malloc
6345_ACEOF
6346
6347fi
6348
6349
6350
6351echo "$as_me:$LINENO: checking for working memcmp" >&5
6352echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6353if test "${ac_cv_func_memcmp_working+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 if test "$cross_compiling" = yes; then
6357 ac_cv_func_memcmp_working=no
6358else
6359 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6360/* confdefs.h. */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h. */
8a2fc586 6365$ac_includes_default
ad6254c5
AK
6366int
6367main ()
6368{
6369
6370 /* Some versions of memcmp are not 8-bit clean. */
6371 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6372 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6373 exit (1);
6374
6375 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6376 or more and with at least one buffer not starting on a 4-byte boundary.
6377 William Lewis provided this test program. */
6378 {
6379 char foo[21];
6380 char bar[21];
6381 int i;
6382 for (i = 0; i < 4; i++)
6383 {
8a2fc586
AK
6384 char *a = foo + i;
6385 char *b = bar + i;
6386 strcpy (a, "--------01111111");
6387 strcpy (b, "--------10000000");
6388 if (memcmp (a, b, 16) >= 0)
6389 exit (1);
ad6254c5
AK
6390 }
6391 exit (0);
6392 }
6393
6394 ;
6395 return 0;
6396}
6397_ACEOF
6398rm -f conftest$ac_exeext
6399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_cv_func_memcmp_working=yes
6410else
6411 echo "$as_me: program exited with status $ac_status" >&5
6412echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415( exit $ac_status )
6416ac_cv_func_memcmp_working=no
6417fi
8a2fc586 6418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6419fi
6420fi
6421echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6422echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8a2fc586
AK
6423test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6424 "memcmp.$ac_objext" | \
6425 *" memcmp.$ac_objext" | \
6426 "memcmp.$ac_objext "* | \
6427 *" memcmp.$ac_objext "* ) ;;
6428 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6429esac
6430
ad6254c5
AK
6431
6432
6433
6434for ac_header in stdlib.h unistd.h
6435do
6436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo "$as_me:$LINENO: checking for $ac_header" >&5
6439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442fi
6443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445else
6446 # Is the header compilable?
6447echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455$ac_includes_default
6456#include <$ac_header>
6457_ACEOF
6458rm -f conftest.$ac_objext
6459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 6460 (eval $ac_compile) 2>conftest.er1
ad6254c5 6461 ac_status=$?
8a2fc586
AK
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
ad6254c5
AK
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
8a2fc586
AK
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_header_compiler=yes
6481else
6482 echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485ac_header_compiler=no
6486fi
8a2fc586 6487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489echo "${ECHO_T}$ac_header_compiler" >&6
6490
6491# Is the header present?
6492echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6494cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <$ac_header>
6501_ACEOF
6502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 6512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6513 else
6514 ac_cpp_err=
6515 fi
6516else
6517 ac_cpp_err=yes
6518fi
6519if test -z "$ac_cpp_err"; then
6520 ac_header_preproc=yes
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_header_preproc=no
6526fi
6527rm -f conftest.err conftest.$ac_ext
6528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6529echo "${ECHO_T}$ac_header_preproc" >&6
6530
6531# So? What about this header?
8a2fc586
AK
6532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6533 yes:no: )
ad6254c5
AK
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
6536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6538 ac_header_preproc=yes
ad6254c5 6539 ;;
8a2fc586 6540 no:yes:* )
ad6254c5
AK
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6553 (
6554 cat <<\_ASBOX
8a2fc586
AK
6555## ------------------------------------------ ##
6556## Report this to the AC_PACKAGE_NAME lists. ##
6557## ------------------------------------------ ##
ad6254c5
AK
6558_ASBOX
6559 ) |
6560 sed "s/^/$as_me: WARNING: /" >&2
6561 ;;
6562esac
6563echo "$as_me:$LINENO: checking for $ac_header" >&5
6564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
8a2fc586 6568 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6569fi
6570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572
6573fi
6574if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577_ACEOF
6578
6579fi
6580
6581done
6582
6583
6584for ac_func in getpagesize
6585do
6586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6587echo "$as_me:$LINENO: checking for $ac_func" >&5
6588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6589if eval "test \"\${$as_ac_var+set}\" = set"; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
8a2fc586
AK
6598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6600#define $ac_func innocuous_$ac_func
6601
ad6254c5
AK
6602/* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char $ac_func (); below.
6604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6605 <limits.h> exists even on freestanding compilers. */
8a2fc586 6606
ad6254c5
AK
6607#ifdef __STDC__
6608# include <limits.h>
6609#else
6610# include <assert.h>
6611#endif
8a2fc586
AK
6612
6613#undef $ac_func
6614
ad6254c5
AK
6615/* Override any gcc2 internal prototype to avoid an error. */
6616#ifdef __cplusplus
6617extern "C"
6618{
6619#endif
6620/* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622char $ac_func ();
6623/* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6627choke me
6628#else
6629char (*f) () = $ac_func;
6630#endif
6631#ifdef __cplusplus
6632}
6633#endif
6634
6635int
6636main ()
6637{
6638return f != $ac_func;
6639 ;
6640 return 0;
6641}
6642_ACEOF
6643rm -f conftest.$ac_objext conftest$ac_exeext
6644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 6645 (eval $ac_link) 2>conftest.er1
ad6254c5 6646 ac_status=$?
8a2fc586
AK
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
ad6254c5
AK
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
8a2fc586
AK
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 eval "$as_ac_var=yes"
6666else
6667 echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670eval "$as_ac_var=no"
6671fi
8a2fc586
AK
6672rm -f conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6674fi
6675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6677if test `eval echo '${'$as_ac_var'}'` = yes; then
6678 cat >>confdefs.h <<_ACEOF
6679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6680_ACEOF
6681
6682fi
6683done
6684
6685echo "$as_me:$LINENO: checking for working mmap" >&5
6686echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6687if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690 if test "$cross_compiling" = yes; then
6691 ac_cv_func_mmap_fixed_mapped=no
6692else
6693 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699$ac_includes_default
6700/* malloc might have been renamed as rpl_malloc. */
6701#undef malloc
6702
6703/* Thanks to Mike Haertel and Jim Avera for this test.
6704 Here is a matrix of mmap possibilities:
6705 mmap private not fixed
6706 mmap private fixed at somewhere currently unmapped
6707 mmap private fixed at somewhere already mapped
6708 mmap shared not fixed
6709 mmap shared fixed at somewhere currently unmapped
6710 mmap shared fixed at somewhere already mapped
6711 For private mappings, we should verify that changes cannot be read()
6712 back from the file, nor mmap's back from the file at a different
6713 address. (There have been systems where private was not correctly
6714 implemented like the infamous i386 svr4.0, and systems where the
6715 VM page cache was not coherent with the file system buffer cache
6716 like early versions of FreeBSD and possibly contemporary NetBSD.)
6717 For shared mappings, we should conversely verify that changes get
6718 propagated back to all the places they're supposed to be.
6719
6720 Grep wants private fixed already mapped.
6721 The main things grep needs to know about mmap are:
6722 * does it exist and is it safe to write into the mmap'd area
6723 * how to use it (BSD variants) */
6724
6725#include <fcntl.h>
6726#include <sys/mman.h>
6727
6728#if !STDC_HEADERS && !HAVE_STDLIB_H
6729char *malloc ();
6730#endif
6731
6732/* This mess was copied from the GNU getpagesize.h. */
6733#if !HAVE_GETPAGESIZE
6734/* Assume that all systems that can run configure have sys/param.h. */
6735# if !HAVE_SYS_PARAM_H
6736# define HAVE_SYS_PARAM_H 1
6737# endif
6738
6739# ifdef _SC_PAGESIZE
6740# define getpagesize() sysconf(_SC_PAGESIZE)
6741# else /* no _SC_PAGESIZE */
6742# if HAVE_SYS_PARAM_H
6743# include <sys/param.h>
6744# ifdef EXEC_PAGESIZE
6745# define getpagesize() EXEC_PAGESIZE
6746# else /* no EXEC_PAGESIZE */
6747# ifdef NBPG
6748# define getpagesize() NBPG * CLSIZE
6749# ifndef CLSIZE
6750# define CLSIZE 1
6751# endif /* no CLSIZE */
6752# else /* no NBPG */
6753# ifdef NBPC
6754# define getpagesize() NBPC
6755# else /* no NBPC */
6756# ifdef PAGESIZE
6757# define getpagesize() PAGESIZE
6758# endif /* PAGESIZE */
6759# endif /* no NBPC */
6760# endif /* no NBPG */
6761# endif /* no EXEC_PAGESIZE */
6762# else /* no HAVE_SYS_PARAM_H */
6763# define getpagesize() 8192 /* punt totally */
6764# endif /* no HAVE_SYS_PARAM_H */
6765# endif /* no _SC_PAGESIZE */
6766
6767#endif /* no HAVE_GETPAGESIZE */
6768
6769int
6770main ()
6771{
6772 char *data, *data2, *data3;
6773 int i, pagesize;
6774 int fd;
6775
6776 pagesize = getpagesize ();
6777
6778 /* First, make a file with some known garbage in it. */
6779 data = (char *) malloc (pagesize);
6780 if (!data)
6781 exit (1);
6782 for (i = 0; i < pagesize; ++i)
6783 *(data + i) = rand ();
6784 umask (0);
6785 fd = creat ("conftest.mmap", 0600);
6786 if (fd < 0)
6787 exit (1);
6788 if (write (fd, data, pagesize) != pagesize)
6789 exit (1);
6790 close (fd);
6791
6792 /* Next, try to mmap the file at a fixed address which already has
6793 something else allocated at it. If we can, also make sure that
6794 we see the same garbage. */
6795 fd = open ("conftest.mmap", O_RDWR);
6796 if (fd < 0)
6797 exit (1);
6798 data2 = (char *) malloc (2 * pagesize);
6799 if (!data2)
6800 exit (1);
8a2fc586 6801 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6802 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 6803 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6804 exit (1);
6805 for (i = 0; i < pagesize; ++i)
6806 if (*(data + i) != *(data2 + i))
6807 exit (1);
6808
6809 /* Finally, make sure that changes to the mapped area do not
6810 percolate back to the file as seen by read(). (This is a bug on
6811 some variants of i386 svr4.0.) */
6812 for (i = 0; i < pagesize; ++i)
6813 *(data2 + i) = *(data2 + i) + 1;
6814 data3 = (char *) malloc (pagesize);
6815 if (!data3)
6816 exit (1);
6817 if (read (fd, data3, pagesize) != pagesize)
6818 exit (1);
6819 for (i = 0; i < pagesize; ++i)
6820 if (*(data + i) != *(data3 + i))
6821 exit (1);
6822 close (fd);
6823 exit (0);
6824}
6825_ACEOF
6826rm -f conftest$ac_exeext
6827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_cv_func_mmap_fixed_mapped=yes
6838else
6839 echo "$as_me: program exited with status $ac_status" >&5
6840echo "$as_me: failed program was:" >&5
6841sed 's/^/| /' conftest.$ac_ext >&5
6842
6843( exit $ac_status )
6844ac_cv_func_mmap_fixed_mapped=no
6845fi
8a2fc586 6846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6847fi
6848fi
6849echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6850echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6851if test $ac_cv_func_mmap_fixed_mapped = yes; then
6852
6853cat >>confdefs.h <<\_ACEOF
6854#define HAVE_MMAP 1
6855_ACEOF
6856
6857fi
6858rm -f conftest.mmap
6859
6860echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6861echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6862if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865 if test "$cross_compiling" = yes; then
6866 ac_cv_func_stat_empty_string_bug=yes
6867else
6868 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6869/* confdefs.h. */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h. */
6874$ac_includes_default
6875int
6876main ()
6877{
6878struct stat sbuf;
6879 exit (stat ("", &sbuf) ? 1 : 0);
6880 ;
6881 return 0;
6882}
6883_ACEOF
6884rm -f conftest$ac_exeext
6885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886 (eval $ac_link) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_func_stat_empty_string_bug=yes
6896else
6897 echo "$as_me: program exited with status $ac_status" >&5
6898echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901( exit $ac_status )
6902ac_cv_func_stat_empty_string_bug=no
6903fi
8a2fc586 6904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6905fi
6906fi
6907echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6908echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6909if test $ac_cv_func_stat_empty_string_bug = yes; then
8a2fc586
AK
6910 case $LIBOBJS in
6911 "stat.$ac_objext" | \
6912 *" stat.$ac_objext" | \
6913 "stat.$ac_objext "* | \
6914 *" stat.$ac_objext "* ) ;;
6915 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
6916esac
6917
ad6254c5
AK
6918
6919cat >>confdefs.h <<_ACEOF
6920#define HAVE_STAT_EMPTY_STRING_BUG 1
6921_ACEOF
6922
6923fi
6924
6925echo "$as_me:$LINENO: checking for working strtod" >&5
6926echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6927if test "${ac_cv_func_strtod+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 if test "$cross_compiling" = yes; then
6931 ac_cv_func_strtod=no
6932else
6933 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
6939
6940double strtod ();
6941int
6942main()
6943{
6944 {
6945 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6946 char *string = " +69";
6947 char *term;
6948 double value;
6949 value = strtod (string, &term);
6950 if (value != 69 || term != (string + 4))
6951 exit (1);
6952 }
6953
6954 {
6955 /* Under Solaris 2.4, strtod returns the wrong value for the
6956 terminating character under some conditions. */
6957 char *string = "NaN";
6958 char *term;
6959 strtod (string, &term);
6960 if (term != string && *(term - 1) == 0)
6961 exit (1);
6962 }
6963 exit (0);
6964}
6965
6966_ACEOF
6967rm -f conftest$ac_exeext
6968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>&5
6970 ac_status=$?
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 ac_cv_func_strtod=yes
6979else
6980 echo "$as_me: program exited with status $ac_status" >&5
6981echo "$as_me: failed program was:" >&5
6982sed 's/^/| /' conftest.$ac_ext >&5
6983
6984( exit $ac_status )
6985ac_cv_func_strtod=no
6986fi
8a2fc586 6987rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6988fi
6989fi
6990echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6991echo "${ECHO_T}$ac_cv_func_strtod" >&6
6992if test $ac_cv_func_strtod = no; then
8a2fc586
AK
6993 case $LIBOBJS in
6994 "strtod.$ac_objext" | \
6995 *" strtod.$ac_objext" | \
6996 "strtod.$ac_objext "* | \
6997 *" strtod.$ac_objext "* ) ;;
6998 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
6999esac
7000
ad6254c5
AK
7001echo "$as_me:$LINENO: checking for pow" >&5
7002echo $ECHO_N "checking for pow... $ECHO_C" >&6
7003if test "${ac_cv_func_pow+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005else
7006 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
8a2fc586
AK
7012/* Define pow to an innocuous variant, in case <limits.h> declares pow.
7013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7014#define pow innocuous_pow
7015
ad6254c5
AK
7016/* System header to define __stub macros and hopefully few prototypes,
7017 which can conflict with char pow (); below.
7018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7019 <limits.h> exists even on freestanding compilers. */
8a2fc586 7020
ad6254c5
AK
7021#ifdef __STDC__
7022# include <limits.h>
7023#else
7024# include <assert.h>
7025#endif
8a2fc586
AK
7026
7027#undef pow
7028
ad6254c5
AK
7029/* Override any gcc2 internal prototype to avoid an error. */
7030#ifdef __cplusplus
7031extern "C"
7032{
7033#endif
7034/* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036char pow ();
7037/* The GNU C library defines this for functions which it implements
7038 to always fail with ENOSYS. Some functions are actually named
7039 something starting with __ and the normal name is an alias. */
7040#if defined (__stub_pow) || defined (__stub___pow)
7041choke me
7042#else
7043char (*f) () = pow;
7044#endif
7045#ifdef __cplusplus
7046}
7047#endif
7048
7049int
7050main ()
7051{
7052return f != pow;
7053 ;
7054 return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext conftest$ac_exeext
7058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7059 (eval $ac_link) 2>conftest.er1
ad6254c5 7060 ac_status=$?
8a2fc586
AK
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
ad6254c5
AK
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
8a2fc586
AK
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_func_pow=yes
7080else
7081 echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084ac_cv_func_pow=no
7085fi
8a2fc586
AK
7086rm -f conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7088fi
7089echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7090echo "${ECHO_T}$ac_cv_func_pow" >&6
7091
7092if test $ac_cv_func_pow = no; then
7093 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7094echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7095if test "${ac_cv_lib_m_pow+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 ac_check_lib_save_LIBS=$LIBS
7099LIBS="-lm $LIBS"
7100cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7101/* confdefs.h. */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h. */
7106
7107/* Override any gcc2 internal prototype to avoid an error. */
7108#ifdef __cplusplus
7109extern "C"
7110#endif
7111/* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */
7113char pow ();
7114int
7115main ()
7116{
7117pow ();
7118 ;
7119 return 0;
7120}
7121_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext
7123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7124 (eval $ac_link) 2>conftest.er1
ad6254c5 7125 ac_status=$?
8a2fc586
AK
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
ad6254c5
AK
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
8a2fc586
AK
7131 { ac_try='test -z "$ac_c_werror_flag"
7132 || test ! -s conftest.err'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; } &&
7138 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_m_pow=yes
7145else
7146 echo "$as_me: failed program was:" >&5
7147sed 's/^/| /' conftest.$ac_ext >&5
7148
7149ac_cv_lib_m_pow=no
7150fi
8a2fc586
AK
7151rm -f conftest.err conftest.$ac_objext \
7152 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7153LIBS=$ac_check_lib_save_LIBS
7154fi
7155echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7156echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7157if test $ac_cv_lib_m_pow = yes; then
7158 POW_LIB=-lm
7159else
7160 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7161echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7162fi
7163
7164fi
7165
7166fi
7167
7168
7169################################################################################
7170
7171
7172################################################################################
7173# Check whether --enable-jobs or --disable-jobs was given.
7174if test "${enable_jobs+set}" = set; then
7175 enableval="$enable_jobs"
7176 JOBS=-j$enableval
7177else
7178 JOBS=-j2
7179fi;
7180
7181################################################################################
7182echo "$as_me:$LINENO: checking file owner" >&5
7183echo $ECHO_N "checking file owner... $ECHO_C" >&6
7184OWNER="root"
7185
7186
7187# Check whether --with-user or --without-user was given.
7188if test "${with_user+set}" = set; then
7189 withval="$with_user"
7190 OWNER="$withval"
7191fi;
7192echo "$as_me:$LINENO: result: $OWNER" >&5
7193echo "${ECHO_T}$OWNER" >&6
7194
7195if test x$OWNER != x; then
7196 OWNER="-o $OWNER"
7197fi
7198
7199################################################################################
7200echo "$as_me:$LINENO: checking group owner" >&5
7201echo $ECHO_N "checking group owner... $ECHO_C" >&6
7202GROUP="root"
7203
7204# Check whether --with-group or --without-group was given.
7205if test "${with_group+set}" = set; then
7206 withval="$with_group"
7207 GROUP="$withval"
7208fi;
7209echo "$as_me:$LINENO: result: $GROUP" >&5
7210echo "${ECHO_T}$GROUP" >&6
7211
7212if test x$GROUP != x; then
7213 GROUP="-g $GROUP"
7214fi
7215
7216################################################################################
7217echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7218echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
7219# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
7220if test "${enable_lvm1_fallback+set}" = set; then
7221 enableval="$enable_lvm1_fallback"
7222 LVM1_FALLBACK=$enableval
7223else
7224 LVM1_FALLBACK=no
7225fi;
7226echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7227echo "${ECHO_T}$LVM1_FALLBACK" >&6
7228
7229if test x$LVM1_FALLBACK = xyes; then
8a2fc586 7230 LVM_DEFS="$LVM_DEFS -DLVM1_FALLBACK"
ad6254c5
AK
7231fi
7232
7233################################################################################
7234echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7235echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
7236
7237# Check whether --with-lvm1 or --without-lvm1 was given.
7238if test "${with_lvm1+set}" = set; then
7239 withval="$with_lvm1"
7240 LVM1="$withval"
7241else
7242 LVM1="internal"
7243fi;
7244echo "$as_me:$LINENO: result: $LVM1" >&5
7245echo "${ECHO_T}$LVM1" >&6
7246
7247if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7248 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7249" >&5
7250echo "$as_me: error: --with-lvm1 parameter invalid
7251" >&2;}
7252 { (exit 1); exit 1; }; }
7253fi;
7254
7255if test x$LVM1 = xinternal; then
8a2fc586 7256 LVM_DEFS="$LVM_DEFS -DLVM1_INTERNAL"
ad6254c5
AK
7257fi
7258
7259################################################################################
7260echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7261echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
7262
7263# Check whether --with-pool or --without-pool was given.
7264if test "${with_pool+set}" = set; then
7265 withval="$with_pool"
7266 POOL="$withval"
7267else
7268 POOL="internal"
7269fi;
7270echo "$as_me:$LINENO: result: $POOL" >&5
7271echo "${ECHO_T}$POOL" >&6
7272
7273if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7274 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7275" >&5
7276echo "$as_me: error: --with-pool parameter invalid
7277" >&2;}
7278 { (exit 1); exit 1; }; }
7279fi;
7280
7281if test x$POOL = xinternal; then
8a2fc586 7282 LVM_DEFS="$LVM_DEFS -DPOOL_INTERNAL"
ad6254c5
AK
7283fi
7284
7285################################################################################
7286echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7287echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
7288
7289# Check whether --with-cluster or --without-cluster was given.
7290if test "${with_cluster+set}" = set; then
7291 withval="$with_cluster"
7292 CLUSTER="$withval"
7293fi;
7294echo "$as_me:$LINENO: result: $CLUSTER" >&5
7295echo "${ECHO_T}$CLUSTER" >&6
7296
7297if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7298 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7299" >&5
7300echo "$as_me: error: --with-cluster parameter invalid
7301" >&2;}
7302 { (exit 1); exit 1; }; }
7303fi;
7304
7305if test x$CLUSTER = xinternal; then
8a2fc586 7306 LVM_DEFS="$LVM_DEFS -DCLUSTER_LOCKING_INTERNAL"
ad6254c5
AK
7307fi
7308
7309################################################################################
7310echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7311echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
7312
7313# Check whether --with-snapshots or --without-snapshots was given.
7314if test "${with_snapshots+set}" = set; then
7315 withval="$with_snapshots"
7316 SNAPSHOTS="$withval"
7317else
7318 SNAPSHOTS="internal"
7319fi;
7320echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7321echo "${ECHO_T}$SNAPSHOTS" >&6
7322
7323if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7324 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7325" >&5
7326echo "$as_me: error: --with-snapshots parameter invalid
7327" >&2;}
7328 { (exit 1); exit 1; }; }
7329fi;
7330
7331if test x$SNAPSHOTS = xinternal; then
8a2fc586 7332 LVM_DEFS="$LVM_DEFS -DSNAPSHOT_INTERNAL"
ad6254c5
AK
7333fi
7334
7335################################################################################
7336echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7337echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
7338
7339# Check whether --with-mirrors or --without-mirrors was given.
7340if test "${with_mirrors+set}" = set; then
7341 withval="$with_mirrors"
7342 MIRRORS="$withval"
7343else
7344 MIRRORS="internal"
7345fi;
7346echo "$as_me:$LINENO: result: $MIRRORS" >&5
7347echo "${ECHO_T}$MIRRORS" >&6
7348
7349if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7350 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7351" >&5
7352echo "$as_me: error: --with-mirrors parameter invalid
7353" >&2;}
7354 { (exit 1); exit 1; }; }
7355fi;
7356
7357if test x$MIRRORS = xinternal; then
8a2fc586 7358 LVM_DEFS="$LVM_DEFS -DMIRRORED_INTERNAL"
ad6254c5
AK
7359fi
7360
7361################################################################################
7362echo "$as_me:$LINENO: checking whether to use static linking" >&5
7363echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
7364# Check whether --enable-static_link or --disable-static_link was given.
7365if test "${enable_static_link+set}" = set; then
7366 enableval="$enable_static_link"
7367 STATIC_LINK=$enableval
7368else
7369 STATIC_LINK=no
7370fi;
7371echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7372echo "${ECHO_T}$STATIC_LINK" >&6
7373
7374################################################################################
7375echo "$as_me:$LINENO: checking whether to enable readline" >&5
7376echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
7377# Check whether --enable-readline or --disable-readline was given.
7378if test "${enable_readline+set}" = set; then
7379 enableval="$enable_readline"
7380 READLINE=$enableval
7381else
7382 READLINE=no
7383fi;
7384echo "$as_me:$LINENO: result: $READLINE" >&5
7385echo "${ECHO_T}$READLINE" >&6
7386
7387if test x$READLINE = xyes; then
8a2fc586 7388 LVM_DEFS="$LVM_DEFS -DREADLINE_SUPPORT"
ad6254c5
AK
7389fi
7390
7391################################################################################
7392echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7393echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
7394# Check whether --enable-selinux or --disable-selinux was given.
7395if test "${enable_selinux+set}" = set; then
7396 enableval="$enable_selinux"
7397 SELINUX=$enableval
7398fi;
7399echo "$as_me:$LINENO: result: $SELINUX" >&5
7400echo "${ECHO_T}$SELINUX" >&6
7401
7402################################################################################
7403echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7404echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
7405
7406# Check whether --with-clvmd or --without-clvmd was given.
7407if test "${with_clvmd+set}" = set; then
7408 withval="$with_clvmd"
a266258f 7409 CLVMD="$withval"
ad6254c5 7410else
a266258f 7411 CLVMD="none"
ad6254c5 7412fi;
a266258f 7413if test x$CLVMD = xyes; then
5c7fc7c4 7414 CLVMD=all
b1098701 7415fi
ad6254c5
AK
7416echo "$as_me:$LINENO: result: $CLVMD" >&5
7417echo "${ECHO_T}$CLVMD" >&6
7418
a266258f 7419if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7420 CLUSTER=internal
7421fi
7422
7423################################################################################
7424echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7425echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
7426# Check whether --enable-debug or --disable-debug was given.
7427if test "${enable_debug+set}" = set; then
7428 enableval="$enable_debug"
7429 DEBUG=$enableval
7430else
7431 DEBUG=no
7432fi;
7433echo "$as_me:$LINENO: result: $DEBUG" >&5
7434echo "${ECHO_T}$DEBUG" >&6
7435
7436if test x$DEBUG = xyes; then
7437 COPTIMISE_FLAG=
8a2fc586
AK
7438else
7439 CSCOPE_CMD=
ad6254c5
AK
7440fi
7441
7442################################################################################
7443echo "$as_me:$LINENO: checking for C optimisation flag" >&5
7444echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
7445
7446# Check whether --with-optimisation or --without-optimisation was given.
7447if test "${with_optimisation+set}" = set; then
7448 withval="$with_optimisation"
7449 COPTIMISE_FLAG="$withval"
7450fi;
7451echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
7452echo "${ECHO_T}$COPTIMISE_FLAG" >&6
7453
7454################################################################################
7455echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
7456echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
7457# Check whether --enable-devmapper or --disable-devmapper was given.
7458if test "${enable_devmapper+set}" = set; then
7459 enableval="$enable_devmapper"
7460 DEVMAPPER=$enableval
7461fi;
7462echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
7463echo "${ECHO_T}$DEVMAPPER" >&6
7464
7465if test x$DEVMAPPER = xyes; then
8a2fc586 7466 LVM_DEFS="$LVM_DEFS -DDEVMAPPER_SUPPORT"
ad6254c5
AK
7467fi
7468
7469################################################################################
7470echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
7471echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
7472# Check whether --enable-o_direct or --disable-o_direct was given.
7473if test "${enable_o_direct+set}" = set; then
7474 enableval="$enable_o_direct"
7475 ODIRECT=$enableval
7476fi;
7477echo "$as_me:$LINENO: result: $ODIRECT" >&5
7478echo "${ECHO_T}$ODIRECT" >&6
7479
7480if test x$ODIRECT = xyes; then
8a2fc586 7481 LVM_DEFS="$LVM_DEFS -DO_DIRECT_SUPPORT"
ad6254c5
AK
7482fi
7483
7484################################################################################
7485echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
7486echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
7487# Check whether --enable-cmdlib or --disable-cmdlib was given.
7488if test "${enable_cmdlib+set}" = set; then
7489 enableval="$enable_cmdlib"
7490 CMDLIB=$enableval
7491else
7492 CMDLIB=no
7493fi;
7494echo "$as_me:$LINENO: result: $CMDLIB" >&5
7495echo "${ECHO_T}$CMDLIB" >&6
7496
59376640 7497if test x$CMDLIB = xyes; then
8a2fc586 7498 LVM_DEFS="$LVM_DEFS -DCMDLIB"
ad6254c5
AK
7499fi
7500
7501################################################################################
7502echo "$as_me:$LINENO: checking whether to build fsadm" >&5
7503echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
7504# Check whether --enable-fsadm or --disable-fsadm was given.
7505if test "${enable_fsadm+set}" = set; then
7506 enableval="$enable_fsadm"
7507 FSADM=$enableval
7508fi;
7509echo "$as_me:$LINENO: result: $FSADM" >&5
7510echo "${ECHO_T}$FSADM" >&6
7511
06f62ad1
AK
7512################################################################################
7513echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
7514echo $ECHO_N "checking whether to use dmeventd... $ECHO_C" >&6
7515# Check whether --enable-dmeventd or --disable-dmeventd was given.
7516if test "${enable_dmeventd+set}" = set; then
7517 enableval="$enable_dmeventd"
7518 DMEVENTD=$enableval
7519fi;
7520echo "$as_me:$LINENO: result: $DMEVENTD" >&5
7521echo "${ECHO_T}$DMEVENTD" >&6
7522
7523if test x$DMEVENTD = xyes && test x$MIRRORS != xinternal; then
7524{ { echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
7525" >&5
7526echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
7527" >&2;}
7528 { (exit 1); exit 1; }; }
7529fi
7530
15d91f5a 7531if test x$DMEVENTD = xyes; then
8a2fc586 7532 LVM_DEFS="$LVM_DEFS -DDMEVENTD"
15d91f5a 7533fi
ad6254c5
AK
7534################################################################################
7535if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
7536 then exec_prefix="";
7537fi;
7538
7539################################################################################
7540if test $ac_cv_c_compiler_gnu = yes; then
7541 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7542echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7543if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 ac_pattern="Autoconf.*'x'"
7547 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7548/* confdefs.h. */
7549_ACEOF
7550cat confdefs.h >>conftest.$ac_ext
7551cat >>conftest.$ac_ext <<_ACEOF
7552/* end confdefs.h. */
7553#include <sgtty.h>
7554Autoconf TIOCGETP
7555_ACEOF
7556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7557 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7558 ac_cv_prog_gcc_traditional=yes
7559else
7560 ac_cv_prog_gcc_traditional=no
7561fi
7562rm -f conftest*
7563
7564
7565 if test $ac_cv_prog_gcc_traditional = no; then
7566 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7567/* confdefs.h. */
7568_ACEOF
7569cat confdefs.h >>conftest.$ac_ext
7570cat >>conftest.$ac_ext <<_ACEOF
7571/* end confdefs.h. */
7572#include <termio.h>
7573Autoconf TCGETA
7574_ACEOF
7575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7577 ac_cv_prog_gcc_traditional=yes
7578fi
7579rm -f conftest*
7580
7581 fi
7582fi
7583echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7584echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7585 if test $ac_cv_prog_gcc_traditional = yes; then
7586 CC="$CC -traditional"
7587 fi
7588fi
7589
7590echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7591echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7592if test "${ac_cv_type_signal+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7596/* confdefs.h. */
7597_ACEOF
7598cat confdefs.h >>conftest.$ac_ext
7599cat >>conftest.$ac_ext <<_ACEOF
7600/* end confdefs.h. */
7601#include <sys/types.h>
7602#include <signal.h>
7603#ifdef signal
7604# undef signal
7605#endif
7606#ifdef __cplusplus
7607extern "C" void (*signal (int, void (*)(int)))(int);
7608#else
7609void (*signal ()) ();
7610#endif
7611
7612int
7613main ()
7614{
7615int i;
7616 ;
7617 return 0;
7618}
7619_ACEOF
7620rm -f conftest.$ac_objext
7621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 7622 (eval $ac_compile) 2>conftest.er1
ad6254c5 7623 ac_status=$?
8a2fc586
AK
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
ad6254c5
AK
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
8a2fc586
AK
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_type_signal=void
7643else
7644 echo "$as_me: failed program was:" >&5
7645sed 's/^/| /' conftest.$ac_ext >&5
7646
7647ac_cv_type_signal=int
7648fi
8a2fc586 7649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7650fi
7651echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7652echo "${ECHO_T}$ac_cv_type_signal" >&6
7653
7654cat >>confdefs.h <<_ACEOF
7655#define RETSIGTYPE $ac_cv_type_signal
7656_ACEOF
7657
7658
7659
7660for ac_func in vprintf
7661do
7662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7663echo "$as_me:$LINENO: checking for $ac_func" >&5
7664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7665if eval "test \"\${$as_ac_var+set}\" = set"; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7669/* confdefs.h. */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h. */
8a2fc586
AK
7674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7676#define $ac_func innocuous_$ac_func
7677
ad6254c5
AK
7678/* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func (); below.
7680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681 <limits.h> exists even on freestanding compilers. */
8a2fc586 7682
ad6254c5
AK
7683#ifdef __STDC__
7684# include <limits.h>
7685#else
7686# include <assert.h>
7687#endif
8a2fc586
AK
7688
7689#undef $ac_func
7690
ad6254c5
AK
7691/* Override any gcc2 internal prototype to avoid an error. */
7692#ifdef __cplusplus
7693extern "C"
7694{
7695#endif
7696/* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7698char $ac_func ();
7699/* The GNU C library defines this for functions which it implements
7700 to always fail with ENOSYS. Some functions are actually named
7701 something starting with __ and the normal name is an alias. */
7702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7703choke me
7704#else
7705char (*f) () = $ac_func;
7706#endif
7707#ifdef __cplusplus
7708}
7709#endif
7710
7711int
7712main ()
7713{
7714return f != $ac_func;
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext conftest$ac_exeext
7720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7721 (eval $ac_link) 2>conftest.er1
ad6254c5 7722 ac_status=$?
8a2fc586
AK
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
ad6254c5
AK
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
8a2fc586
AK
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 eval "$as_ac_var=yes"
7742else
7743 echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746eval "$as_ac_var=no"
7747fi
8a2fc586
AK
7748rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7750fi
7751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7752echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7753if test `eval echo '${'$as_ac_var'}'` = yes; then
7754 cat >>confdefs.h <<_ACEOF
7755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7756_ACEOF
7757
7758echo "$as_me:$LINENO: checking for _doprnt" >&5
7759echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7760if test "${ac_cv_func__doprnt+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762else
7763 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7764/* confdefs.h. */
7765_ACEOF
7766cat confdefs.h >>conftest.$ac_ext
7767cat >>conftest.$ac_ext <<_ACEOF
7768/* end confdefs.h. */
8a2fc586
AK
7769/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7771#define _doprnt innocuous__doprnt
7772
ad6254c5
AK
7773/* System header to define __stub macros and hopefully few prototypes,
7774 which can conflict with char _doprnt (); below.
7775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7776 <limits.h> exists even on freestanding compilers. */
8a2fc586 7777
ad6254c5
AK
7778#ifdef __STDC__
7779# include <limits.h>
7780#else
7781# include <assert.h>
7782#endif
8a2fc586
AK
7783
7784#undef _doprnt
7785
ad6254c5
AK
7786/* Override any gcc2 internal prototype to avoid an error. */
7787#ifdef __cplusplus
7788extern "C"
7789{
7790#endif
7791/* We use char because int might match the return type of a gcc2
7792 builtin and then its argument prototype would still apply. */
7793char _doprnt ();
7794/* The GNU C library defines this for functions which it implements
7795 to always fail with ENOSYS. Some functions are actually named
7796 something starting with __ and the normal name is an alias. */
7797#if defined (__stub__doprnt) || defined (__stub____doprnt)
7798choke me
7799#else
7800char (*f) () = _doprnt;
7801#endif
7802#ifdef __cplusplus
7803}
7804#endif
7805
7806int
7807main ()
7808{
7809return f != _doprnt;
7810 ;
7811 return 0;
7812}
7813_ACEOF
7814rm -f conftest.$ac_objext conftest$ac_exeext
7815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7816 (eval $ac_link) 2>conftest.er1
ad6254c5 7817 ac_status=$?
8a2fc586
AK
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
ad6254c5
AK
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
8a2fc586
AK
7823 { ac_try='test -z "$ac_c_werror_flag"
7824 || test ! -s conftest.err'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7836 ac_cv_func__doprnt=yes
7837else
7838 echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
7841ac_cv_func__doprnt=no
7842fi
8a2fc586
AK
7843rm -f conftest.err conftest.$ac_objext \
7844 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7845fi
7846echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7847echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7848if test $ac_cv_func__doprnt = yes; then
7849
7850cat >>confdefs.h <<\_ACEOF
7851#define HAVE_DOPRNT 1
7852_ACEOF
7853
7854fi
7855
7856fi
7857done
7858
7859
7860
7861
7862
7863for ac_func in mkdir rmdir uname
7864do
7865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7866echo "$as_me:$LINENO: checking for $ac_func" >&5
7867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7868if eval "test \"\${$as_ac_var+set}\" = set"; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870else
7871 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7872/* confdefs.h. */
7873_ACEOF
7874cat confdefs.h >>conftest.$ac_ext
7875cat >>conftest.$ac_ext <<_ACEOF
7876/* end confdefs.h. */
8a2fc586
AK
7877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7879#define $ac_func innocuous_$ac_func
7880
ad6254c5
AK
7881/* System header to define __stub macros and hopefully few prototypes,
7882 which can conflict with char $ac_func (); below.
7883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7884 <limits.h> exists even on freestanding compilers. */
8a2fc586 7885
ad6254c5
AK
7886#ifdef __STDC__
7887# include <limits.h>
7888#else
7889# include <assert.h>
7890#endif
8a2fc586
AK
7891
7892#undef $ac_func
7893
ad6254c5
AK
7894/* Override any gcc2 internal prototype to avoid an error. */
7895#ifdef __cplusplus
7896extern "C"
7897{
7898#endif
7899/* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7901char $ac_func ();
7902/* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7906choke me
7907#else
7908char (*f) () = $ac_func;
7909#endif
7910#ifdef __cplusplus
7911}
7912#endif
7913
7914int
7915main ()
7916{
7917return f != $ac_func;
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922rm -f conftest.$ac_objext conftest$ac_exeext
7923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 7924 (eval $ac_link) 2>conftest.er1
ad6254c5 7925 ac_status=$?
8a2fc586
AK
7926 grep -v '^ *+' conftest.er1 >conftest.err
7927 rm -f conftest.er1
7928 cat conftest.err >&5
ad6254c5
AK
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
8a2fc586
AK
7931 { ac_try='test -z "$ac_c_werror_flag"
7932 || test ! -s conftest.err'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; } &&
7938 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 eval "$as_ac_var=yes"
7945else
7946 echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949eval "$as_ac_var=no"
7950fi
8a2fc586
AK
7951rm -f conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7953fi
7954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7956if test `eval echo '${'$as_ac_var'}'` = yes; then
7957 cat >>confdefs.h <<_ACEOF
7958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7959_ACEOF
7960
7961else
7962 { { echo "$as_me:$LINENO: error: bailing out" >&5
7963echo "$as_me: error: bailing out" >&2;}
7964 { (exit 1); exit 1; }; }
7965fi
7966done
7967
7968
7969################################################################################
7970if test x$READLINE = xyes; then
7971 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
7972echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
7973if test "${ac_cv_search_tgetent+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975else
7976 ac_func_search_save_LIBS=$LIBS
7977ac_cv_search_tgetent=no
7978cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7979/* confdefs.h. */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h. */
7984
7985/* Override any gcc2 internal prototype to avoid an error. */
7986#ifdef __cplusplus
7987extern "C"
7988#endif
7989/* We use char because int might match the return type of a gcc2
7990 builtin and then its argument prototype would still apply. */
7991char tgetent ();
7992int
7993main ()
7994{
7995tgetent ();
7996 ;
7997 return 0;
7998}
7999_ACEOF
8000rm -f conftest.$ac_objext conftest$ac_exeext
8001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8002 (eval $ac_link) 2>conftest.er1
ad6254c5 8003 ac_status=$?
8a2fc586
AK
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
ad6254c5
AK
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8a2fc586
AK
8009 { ac_try='test -z "$ac_c_werror_flag"
8010 || test ! -s conftest.err'
8011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 (eval $ac_try) 2>&5
8013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 ac_cv_search_tgetent="none required"
8023else
8024 echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
8027fi
8a2fc586
AK
8028rm -f conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8030if test "$ac_cv_search_tgetent" = no; then
8031 for ac_lib in ncurses curses termcap termlib; do
8032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8033 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039
8040/* Override any gcc2 internal prototype to avoid an error. */
8041#ifdef __cplusplus
8042extern "C"
8043#endif
8044/* We use char because int might match the return type of a gcc2
8045 builtin and then its argument prototype would still apply. */
8046char tgetent ();
8047int
8048main ()
8049{
8050tgetent ();
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055rm -f conftest.$ac_objext conftest$ac_exeext
8056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8057 (eval $ac_link) 2>conftest.er1
ad6254c5 8058 ac_status=$?
8a2fc586
AK
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
ad6254c5
AK
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8a2fc586
AK
8064 { ac_try='test -z "$ac_c_werror_flag"
8065 || test ! -s conftest.err'
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 ac_cv_search_tgetent="-l$ac_lib"
8078break
8079else
8080 echo "$as_me: failed program was:" >&5
8081sed 's/^/| /' conftest.$ac_ext >&5
8082
8083fi
8a2fc586
AK
8084rm -f conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8086 done
8087fi
8088LIBS=$ac_func_search_save_LIBS
8089fi
8090echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8091echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8092if test "$ac_cv_search_tgetent" != no; then
8093 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8094
8095else
8096 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
8097--enable-readline option (which is enabled by default). Either disable readline
8098support with --disable-readline or download and install termcap from:
8099 ftp.gnu.org/gnu/termcap
8100Note: if you are using precompiled packages you will also need the development
8101 package as well (which may be called termcap-devel or something similar).
8102Note: (n)curses also seems to work as a substitute for termcap. This was
8103 not found either - but you could try installing that as well.
8104" >&5
8105echo "$as_me: error: termcap could not be found which is required for the
8106--enable-readline option (which is enabled by default). Either disable readline
8107support with --disable-readline or download and install termcap from:
8108 ftp.gnu.org/gnu/termcap
8109Note: if you are using precompiled packages you will also need the development
8110 package as well (which may be called termcap-devel or something similar).
8111Note: (n)curses also seems to work as a substitute for termcap. This was
8112 not found either - but you could try installing that as well.
8113" >&2;}
8114 { (exit 1); exit 1; }; }
8115
8116fi
8117
8118fi
8119
8120################################################################################
8121echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8122echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8123if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125else
8126 ac_check_lib_save_LIBS=$LIBS
8127LIBS="-ldl $LIBS"
8128cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h. */
8134
8135/* Override any gcc2 internal prototype to avoid an error. */
8136#ifdef __cplusplus
8137extern "C"
8138#endif
8139/* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8141char dlopen ();
8142int
8143main ()
8144{
8145dlopen ();
8146 ;
8147 return 0;
8148}
8149_ACEOF
8150rm -f conftest.$ac_objext conftest$ac_exeext
8151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8152 (eval $ac_link) 2>conftest.er1
ad6254c5 8153 ac_status=$?
8a2fc586
AK
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
ad6254c5
AK
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8a2fc586
AK
8159 { ac_try='test -z "$ac_c_werror_flag"
8160 || test ! -s conftest.err'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; } &&
8166 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_lib_dl_dlopen=yes
8173else
8174 echo "$as_me: failed program was:" >&5
8175sed 's/^/| /' conftest.$ac_ext >&5
8176
8177ac_cv_lib_dl_dlopen=no
8178fi
8a2fc586
AK
8179rm -f conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8181LIBS=$ac_check_lib_save_LIBS
8182fi
8183echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8184echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8185if test $ac_cv_lib_dl_dlopen = yes; then
8186 HAVE_LIBDL=yes
8187else
8188 HAVE_LIBDL=no
8189fi
8190
8191
7e9e9502 8192if [ "x$HAVE_LIBDL" = xyes ]; then
8a2fc586 8193 LVM_DEFS="$LVM_DEFS -DHAVE_LIBDL"
ad6254c5
AK
8194 LIBS="-ldl $LIBS"
8195else
8196 HAVE_LIBDL=no
8197fi
8198
8199################################################################################
8200if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8201 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8202 \) -a "x$STATIC_LINK" = xyes ];
8203 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8204" >&5
8205echo "$as_me: error: Features cannot be 'shared' when building statically
8206" >&2;}
8207 { (exit 1); exit 1; }; }
8208fi
8209
8210################################################################################
8211if test x$SELINUX = xyes; then
8a2fc586
AK
8212 echo "$as_me:$LINENO: checking for sepol_check_context function" >&5
8213echo $ECHO_N "checking for sepol_check_context function... $ECHO_C" >&6
8214 echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
8215echo $ECHO_N "checking for sepol_check_context in -lsepol... $ECHO_C" >&6
8216if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219 ac_check_lib_save_LIBS=$LIBS
8220LIBS="-lsepol $LIBS"
8221cat >conftest.$ac_ext <<_ACEOF
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
8227
8228/* Override any gcc2 internal prototype to avoid an error. */
8229#ifdef __cplusplus
8230extern "C"
8231#endif
8232/* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234char sepol_check_context ();
8235int
8236main ()
8237{
8238sepol_check_context ();
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243rm -f conftest.$ac_objext conftest$ac_exeext
8244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag"
8253 || test ! -s conftest.err'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_lib_sepol_sepol_check_context=yes
8266else
8267 echo "$as_me: failed program was:" >&5
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
8270ac_cv_lib_sepol_sepol_check_context=no
8271fi
8272rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274LIBS=$ac_check_lib_save_LIBS
8275fi
8276echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
8277echo "${ECHO_T}$ac_cv_lib_sepol_sepol_check_context" >&6
8278if test $ac_cv_lib_sepol_sepol_check_context = yes; then
8279 HAVE_SEPOL=yes
8280else
8281 HAVE_SEPOL=no
8282fi
8283
8284 echo "$as_me:$LINENO: result: $HAVE_SEPOL" >&5
8285echo "${ECHO_T}$HAVE_SEPOL" >&6
8286
8287 if test x$HAVE_SEPOL = xyes; then
8288 LIBS="-lsepol $LIBS"
8289 fi
8290
ad6254c5
AK
8291 echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5
8292echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6
8293 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8294echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
8295if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 ac_check_lib_save_LIBS=$LIBS
8299LIBS="-lselinux $LIBS"
8300cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306
8307/* Override any gcc2 internal prototype to avoid an error. */
8308#ifdef __cplusplus
8309extern "C"
8310#endif
8311/* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8313char is_selinux_enabled ();
8314int
8315main ()
8316{
8317is_selinux_enabled ();
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8324 (eval $ac_link) 2>conftest.er1
ad6254c5 8325 ac_status=$?
8a2fc586
AK
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
ad6254c5
AK
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8a2fc586
AK
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_lib_selinux_is_selinux_enabled=yes
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349ac_cv_lib_selinux_is_selinux_enabled=no
8350fi
8a2fc586
AK
8351rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8353LIBS=$ac_check_lib_save_LIBS
8354fi
8355echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8356echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
8357if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8358 HAVE_SELINUX=yes
8359else
8360 HAVE_SELINUX=no
8361fi
8362
8363 echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5
8364echo "${ECHO_T}$HAVE_SELINUX" >&6
8365
8366 if test x$HAVE_SELINUX = xyes; then
8a2fc586 8367 LVM_DEFS="$LVM_DEFS -DHAVE_SELINUX"
ad6254c5
AK
8368 LIBS="-lselinux $LIBS"
8369 else
8370 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8371echo "$as_me: WARNING: Disabling selinux" >&2;}
8372 fi
8373fi
8374
8375################################################################################
8376
8377for ac_header in getopt.h
8378do
8379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8380if eval "test \"\${$as_ac_Header+set}\" = set"; then
8381 echo "$as_me:$LINENO: checking for $ac_header" >&5
8382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8383if eval "test \"\${$as_ac_Header+set}\" = set"; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385fi
8386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8388else
8389 # Is the header compilable?
8390echo "$as_me:$LINENO: checking $ac_header usability" >&5
8391echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8392cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398$ac_includes_default
8399#include <$ac_header>
8400_ACEOF
8401rm -f conftest.$ac_objext
8402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8403 (eval $ac_compile) 2>conftest.er1
ad6254c5 8404 ac_status=$?
8a2fc586
AK
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
ad6254c5
AK
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8a2fc586
AK
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_header_compiler=yes
8424else
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428ac_header_compiler=no
8429fi
8a2fc586 8430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8431echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8432echo "${ECHO_T}$ac_header_compiler" >&6
8433
8434# Is the header present?
8435echo "$as_me:$LINENO: checking $ac_header presence" >&5
8436echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8437cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8438/* confdefs.h. */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h. */
8443#include <$ac_header>
8444_ACEOF
8445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447 ac_status=$?
8448 grep -v '^ *+' conftest.er1 >conftest.err
8449 rm -f conftest.er1
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } >/dev/null; then
8453 if test -s conftest.err; then
8454 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 8455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8456 else
8457 ac_cpp_err=
8458 fi
8459else
8460 ac_cpp_err=yes
8461fi
8462if test -z "$ac_cpp_err"; then
8463 ac_header_preproc=yes
8464else
8465 echo "$as_me: failed program was:" >&5
8466sed 's/^/| /' conftest.$ac_ext >&5
8467
8468 ac_header_preproc=no
8469fi
8470rm -f conftest.err conftest.$ac_ext
8471echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8472echo "${ECHO_T}$ac_header_preproc" >&6
8473
8474# So? What about this header?
8a2fc586
AK
8475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8476 yes:no: )
ad6254c5
AK
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8481 ac_header_preproc=yes
ad6254c5 8482 ;;
8a2fc586 8483 no:yes:* )
ad6254c5
AK
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8496 (
8497 cat <<\_ASBOX
8a2fc586
AK
8498## ------------------------------------------ ##
8499## Report this to the AC_PACKAGE_NAME lists. ##
8500## ------------------------------------------ ##
ad6254c5
AK
8501_ASBOX
8502 ) |
8503 sed "s/^/$as_me: WARNING: /" >&2
8504 ;;
8505esac
8506echo "$as_me:$LINENO: checking for $ac_header" >&5
8507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8a2fc586 8511 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8512fi
8513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515
8516fi
8517if test `eval echo '${'$as_ac_Header'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8520_ACEOF
8a2fc586 8521 LVM_DEFS="$LVM_DEFS -DHAVE_GETOPTLONG"
ad6254c5
AK
8522fi
8523
8524done
8525
8526
8527################################################################################
8528if test x$READLINE = xyes; then
8529
8530echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8531echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8532if test "${ac_cv_lib_readline_readline+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534else
8535 ac_check_lib_save_LIBS=$LIBS
8536LIBS="-lreadline $LIBS"
8537cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8538/* confdefs.h. */
8539_ACEOF
8540cat confdefs.h >>conftest.$ac_ext
8541cat >>conftest.$ac_ext <<_ACEOF
8542/* end confdefs.h. */
8543
8544/* Override any gcc2 internal prototype to avoid an error. */
8545#ifdef __cplusplus
8546extern "C"
8547#endif
8548/* We use char because int might match the return type of a gcc2
8549 builtin and then its argument prototype would still apply. */
8550char readline ();
8551int
8552main ()
8553{
8554readline ();
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext conftest$ac_exeext
8560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8561 (eval $ac_link) 2>conftest.er1
ad6254c5 8562 ac_status=$?
8a2fc586
AK
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
ad6254c5
AK
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
8a2fc586
AK
8568 { ac_try='test -z "$ac_c_werror_flag"
8569 || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_lib_readline_readline=yes
8582else
8583 echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
8586ac_cv_lib_readline_readline=no
8587fi
8a2fc586
AK
8588rm -f conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8590LIBS=$ac_check_lib_save_LIBS
8591fi
8592echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8593echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8594if test $ac_cv_lib_readline_readline = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596#define HAVE_LIBREADLINE 1
8597_ACEOF
8598
8599 LIBS="-lreadline $LIBS"
8600
8601else
8602 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
8603--enable-readline option (which is enabled by default). Either disable readline
8604support with --disable-readline or download and install readline from:
8605 ftp.gnu.org/gnu/readline
8606Note: if you are using precompiled packages you will also need the development
8607package as well (which may be called readline-devel or something similar).
8608" >&5
8609echo "$as_me: error: GNU Readline could not be found which is required for the
8610--enable-readline option (which is enabled by default). Either disable readline
8611support with --disable-readline or download and install readline from:
8612 ftp.gnu.org/gnu/readline
8613Note: if you are using precompiled packages you will also need the development
8614package as well (which may be called readline-devel or something similar).
8615" >&2;}
8616 { (exit 1); exit 1; }; }
8617
8618fi
8619
8620 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
8621echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
8622if test "${ac_cv_func_rl_completion_matches+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8a2fc586
AK
8631/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
8632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8633#define rl_completion_matches innocuous_rl_completion_matches
8634
ad6254c5
AK
8635/* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char rl_completion_matches (); below.
8637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 <limits.h> exists even on freestanding compilers. */
8a2fc586 8639
ad6254c5
AK
8640#ifdef __STDC__
8641# include <limits.h>
8642#else
8643# include <assert.h>
8644#endif
8a2fc586
AK
8645
8646#undef rl_completion_matches
8647
ad6254c5
AK
8648/* Override any gcc2 internal prototype to avoid an error. */
8649#ifdef __cplusplus
8650extern "C"
8651{
8652#endif
8653/* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655char rl_completion_matches ();
8656/* The GNU C library defines this for functions which it implements
8657 to always fail with ENOSYS. Some functions are actually named
8658 something starting with __ and the normal name is an alias. */
8659#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
8660choke me
8661#else
8662char (*f) () = rl_completion_matches;
8663#endif
8664#ifdef __cplusplus
8665}
8666#endif
8667
8668int
8669main ()
8670{
8671return f != rl_completion_matches;
8672 ;
8673 return 0;
8674}
8675_ACEOF
8676rm -f conftest.$ac_objext conftest$ac_exeext
8677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 8678 (eval $ac_link) 2>conftest.er1
ad6254c5 8679 ac_status=$?
8a2fc586
AK
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
ad6254c5
AK
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8a2fc586
AK
8685 { ac_try='test -z "$ac_c_werror_flag"
8686 || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_func_rl_completion_matches=yes
8699else
8700 echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703ac_cv_func_rl_completion_matches=no
8704fi
8a2fc586
AK
8705rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8707fi
8708echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
8709echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
8710if test $ac_cv_func_rl_completion_matches = yes; then
8a2fc586 8711 LVM_DEFS="$LVM_DEFS -DHAVE_RL_COMPLETION_MATCHES"
ad6254c5
AK
8712fi
8713
8714
8715fi
8716
8717################################################################################
8718echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
8719echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
8720# Check whether --enable-nls or --disable-nls was given.
8721if test "${enable_nls+set}" = set; then
8722 enableval="$enable_nls"
8723 INTL=$enableval
8724else
8725 INTL=no
8726fi;
8727echo "$as_me:$LINENO: result: $INTL" >&5
8728echo "${ECHO_T}$INTL" >&6
8729
8730if test x$INTL = xyes; then
8731 INTL_PACKAGE="lvm2"
8732 # Extract the first word of "msgfmt", so it can be a program name with args.
8733set dummy msgfmt; ac_word=$2
8734echo "$as_me:$LINENO: checking for $ac_word" >&5
8735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736if test "${ac_cv_path_MSGFMT+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739 case $MSGFMT in
8740 [\\/]* | ?:[\\/]*)
8741 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8742 ;;
8743 *)
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745for as_dir in $PATH
8746do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8754 fi
8755done
8756done
8757
8758 ;;
8759esac
8760fi
8761MSGFMT=$ac_cv_path_MSGFMT
8762
8763if test -n "$MSGFMT"; then
8764 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8765echo "${ECHO_T}$MSGFMT" >&6
8766else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769fi
8770
8771 if [ "x$MSGFMT" == x ];
8772 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8773 " >&5
8774echo "$as_me: error: msgfmt not found in path $PATH
8775 " >&2;}
8776 { (exit 1); exit 1; }; }
8777 fi;
8778
8779
8780# Check whether --with-localedir or --without-localedir was given.
8781if test "${with_localedir+set}" = set; then
8782 withval="$with_localedir"
8783 LOCALEDIR="$withval"
8784else
8785 LOCALEDIR='${prefix}/share/locale'
8786fi;
8787fi
8788
8789################################################################################
8790
8791# Check whether --with-confdir or --without-confdir was given.
8792if test "${with_confdir+set}" = set; then
8793 withval="$with_confdir"
8794 CONFDIR="$withval"
8795else
8796 CONFDIR='/etc'
8797fi;
8798
8799
8800# Check whether --with-staticdir or --without-staticdir was given.
8801if test "${with_staticdir+set}" = set; then
8802 withval="$with_staticdir"
8803 STATICDIR="$withval"
8804else
8805 STATICDIR='${exec_prefix}/sbin'
8806fi;
8807
8808################################################################################
8809if test x$READLINE = xyes; then
8810
8811
8812for ac_header in readline/readline.h readline/history.h
8813do
8814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8815if eval "test \"\${$as_ac_Header+set}\" = set"; then
8816 echo "$as_me:$LINENO: checking for $ac_header" >&5
8817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8818if eval "test \"\${$as_ac_Header+set}\" = set"; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8820fi
8821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8823else
8824 # Is the header compilable?
8825echo "$as_me:$LINENO: checking $ac_header usability" >&5
8826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8827cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8828/* confdefs.h. */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h. */
8833$ac_includes_default
8834#include <$ac_header>
8835_ACEOF
8836rm -f conftest.$ac_objext
8837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 8838 (eval $ac_compile) 2>conftest.er1
ad6254c5 8839 ac_status=$?
8a2fc586
AK
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
ad6254c5
AK
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8a2fc586
AK
8845 { ac_try='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_header_compiler=yes
8859else
8860 echo "$as_me: failed program was:" >&5
8861sed 's/^/| /' conftest.$ac_ext >&5
8862
8863ac_header_compiler=no
8864fi
8a2fc586 8865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8867echo "${ECHO_T}$ac_header_compiler" >&6
8868
8869# Is the header present?
8870echo "$as_me:$LINENO: checking $ac_header presence" >&5
8871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8872cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8873/* confdefs.h. */
8874_ACEOF
8875cat confdefs.h >>conftest.$ac_ext
8876cat >>conftest.$ac_ext <<_ACEOF
8877/* end confdefs.h. */
8878#include <$ac_header>
8879_ACEOF
8880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } >/dev/null; then
8888 if test -s conftest.err; then
8889 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 8890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8891 else
8892 ac_cpp_err=
8893 fi
8894else
8895 ac_cpp_err=yes
8896fi
8897if test -z "$ac_cpp_err"; then
8898 ac_header_preproc=yes
8899else
8900 echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
8903 ac_header_preproc=no
8904fi
8905rm -f conftest.err conftest.$ac_ext
8906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8907echo "${ECHO_T}$ac_header_preproc" >&6
8908
8909# So? What about this header?
8a2fc586
AK
8910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8911 yes:no: )
ad6254c5
AK
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8916 ac_header_preproc=yes
ad6254c5 8917 ;;
8a2fc586 8918 no:yes:* )
ad6254c5
AK
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8931 (
8932 cat <<\_ASBOX
8a2fc586
AK
8933## ------------------------------------------ ##
8934## Report this to the AC_PACKAGE_NAME lists. ##
8935## ------------------------------------------ ##
ad6254c5
AK
8936_ASBOX
8937 ) |
8938 sed "s/^/$as_me: WARNING: /" >&2
8939 ;;
8940esac
8941echo "$as_me:$LINENO: checking for $ac_header" >&5
8942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8a2fc586 8946 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8947fi
8948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8950
8951fi
8952if test `eval echo '${'$as_ac_Header'}'` = yes; then
8953 cat >>confdefs.h <<_ACEOF
8954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8955_ACEOF
8956
8957else
8958 { { echo "$as_me:$LINENO: error: bailing out" >&5
8959echo "$as_me: error: bailing out" >&2;}
8960 { (exit 1); exit 1; }; }
8961fi
8962
8963done
8964
8965fi
8966
5c7fc7c4 8967if test x$CLVMD != xnone; then
ad6254c5
AK
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978for 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
8979do
8980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8981if eval "test \"\${$as_ac_Header+set}\" = set"; then
8982 echo "$as_me:$LINENO: checking for $ac_header" >&5
8983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8984if eval "test \"\${$as_ac_Header+set}\" = set"; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986fi
8987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8989else
8990 # Is the header compilable?
8991echo "$as_me:$LINENO: checking $ac_header usability" >&5
8992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8993cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8994/* confdefs.h. */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h. */
8999$ac_includes_default
9000#include <$ac_header>
9001_ACEOF
9002rm -f conftest.$ac_objext
9003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9004 (eval $ac_compile) 2>conftest.er1
ad6254c5 9005 ac_status=$?
8a2fc586
AK
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
ad6254c5
AK
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
8a2fc586
AK
9011 { ac_try='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 ac_header_compiler=yes
9025else
9026 echo "$as_me: failed program was:" >&5
9027sed 's/^/| /' conftest.$ac_ext >&5
9028
9029ac_header_compiler=no
9030fi
8a2fc586 9031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9033echo "${ECHO_T}$ac_header_compiler" >&6
9034
9035# Is the header present?
9036echo "$as_me:$LINENO: checking $ac_header presence" >&5
9037echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9038cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
9044#include <$ac_header>
9045_ACEOF
9046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } >/dev/null; then
9054 if test -s conftest.err; then
9055 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9057 else
9058 ac_cpp_err=
9059 fi
9060else
9061 ac_cpp_err=yes
9062fi
9063if test -z "$ac_cpp_err"; then
9064 ac_header_preproc=yes
9065else
9066 echo "$as_me: failed program was:" >&5
9067sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 ac_header_preproc=no
9070fi
9071rm -f conftest.err conftest.$ac_ext
9072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9073echo "${ECHO_T}$ac_header_preproc" >&6
9074
9075# So? What about this header?
8a2fc586
AK
9076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9077 yes:no: )
ad6254c5
AK
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9079echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9081echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9082 ac_header_preproc=yes
ad6254c5 9083 ;;
8a2fc586 9084 no:yes:* )
ad6254c5
AK
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9086echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9088echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9090echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9092echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9096echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9097 (
9098 cat <<\_ASBOX
8a2fc586
AK
9099## ------------------------------------------ ##
9100## Report this to the AC_PACKAGE_NAME lists. ##
9101## ------------------------------------------ ##
ad6254c5
AK
9102_ASBOX
9103 ) |
9104 sed "s/^/$as_me: WARNING: /" >&2
9105 ;;
9106esac
9107echo "$as_me:$LINENO: checking for $ac_header" >&5
9108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9109if eval "test \"\${$as_ac_Header+set}\" = set"; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111else
8a2fc586 9112 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
9113fi
9114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9116
9117fi
9118if test `eval echo '${'$as_ac_Header'}'` = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9121_ACEOF
9122
9123else
9124 { { echo "$as_me:$LINENO: error: bailing out" >&5
9125echo "$as_me: error: bailing out" >&2;}
9126 { (exit 1); exit 1; }; }
795ca3e5
AK
9127fi
9128
ad6254c5
AK
9129done
9130
9131
795ca3e5 9132
8106cdd5 9133
ad6254c5
AK
9134
9135
9136for ac_func in dup2 getmntent memmove select socket
9137do
9138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9139echo "$as_me:$LINENO: checking for $ac_func" >&5
9140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9141if eval "test \"\${$as_ac_var+set}\" = set"; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9143else
ad6254c5 9144 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
8a2fc586
AK
9150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9152#define $ac_func innocuous_$ac_func
9153
795ca3e5 9154/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9155 which can conflict with char $ac_func (); below.
9156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9157 <limits.h> exists even on freestanding compilers. */
8a2fc586 9158
ad6254c5
AK
9159#ifdef __STDC__
9160# include <limits.h>
9161#else
9162# include <assert.h>
9163#endif
8a2fc586
AK
9164
9165#undef $ac_func
9166
795ca3e5 9167/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9168#ifdef __cplusplus
9169extern "C"
9170{
9171#endif
795ca3e5 9172/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9173 builtin and then its argument prototype would still apply. */
9174char $ac_func ();
795ca3e5
AK
9175/* The GNU C library defines this for functions which it implements
9176 to always fail with ENOSYS. Some functions are actually named
9177 something starting with __ and the normal name is an alias. */
ad6254c5 9178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
9179choke me
9180#else
ad6254c5
AK
9181char (*f) () = $ac_func;
9182#endif
9183#ifdef __cplusplus
9184}
795ca3e5
AK
9185#endif
9186
ad6254c5
AK
9187int
9188main ()
9189{
9190return f != $ac_func;
9191 ;
9192 return 0;
9193}
9194_ACEOF
9195rm -f conftest.$ac_objext conftest$ac_exeext
9196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9197 (eval $ac_link) 2>conftest.er1
ad6254c5 9198 ac_status=$?
8a2fc586
AK
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
ad6254c5
AK
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
8a2fc586
AK
9204 { ac_try='test -z "$ac_c_werror_flag"
9205 || test ! -s conftest.err'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 (eval $ac_try) 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 eval "$as_ac_var=yes"
795ca3e5 9218else
ad6254c5
AK
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222eval "$as_ac_var=no"
80992638 9223fi
8a2fc586
AK
9224rm -f conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9226fi
ad6254c5
AK
9227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9228echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9229if test `eval echo '${'$as_ac_var'}'` = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9232_ACEOF
80992638
AK
9233
9234else
ad6254c5
AK
9235 { { echo "$as_me:$LINENO: error: bailing out" >&5
9236echo "$as_me: error: bailing out" >&2;}
9237 { (exit 1); exit 1; }; }
8106cdd5 9238fi
ad6254c5 9239done
795ca3e5 9240
ad6254c5
AK
9241 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9242echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9243echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9244if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9246else
ad6254c5
AK
9247 ac_check_lib_save_LIBS=$LIBS
9248LIBS="-lsun $LIBS"
9249cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9250/* confdefs.h. */
9251_ACEOF
9252cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */
9255
795ca3e5 9256/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9257#ifdef __cplusplus
9258extern "C"
9259#endif
795ca3e5 9260/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9261 builtin and then its argument prototype would still apply. */
9262char getmntent ();
9263int
9264main ()
9265{
9266getmntent ();
9267 ;
9268 return 0;
9269}
9270_ACEOF
9271rm -f conftest.$ac_objext conftest$ac_exeext
9272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9273 (eval $ac_link) 2>conftest.er1
ad6254c5 9274 ac_status=$?
8a2fc586
AK
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
ad6254c5
AK
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
8a2fc586
AK
9280 { ac_try='test -z "$ac_c_werror_flag"
9281 || test ! -s conftest.err'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283 (eval $ac_try) 2>&5
9284 ac_status=$?
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; } &&
9287 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_lib_sun_getmntent=yes
9294else
9295 echo "$as_me: failed program was:" >&5
9296sed 's/^/| /' conftest.$ac_ext >&5
80992638 9297
ad6254c5
AK
9298ac_cv_lib_sun_getmntent=no
9299fi
8a2fc586
AK
9300rm -f conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9302LIBS=$ac_check_lib_save_LIBS
9303fi
9304echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9305echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9306if test $ac_cv_lib_sun_getmntent = yes; then
9307 LIBS="-lsun $LIBS"
9308else
9309 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9310echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9311if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314 ac_check_lib_save_LIBS=$LIBS
9315LIBS="-lseq $LIBS"
9316cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9317/* confdefs.h. */
9318_ACEOF
9319cat confdefs.h >>conftest.$ac_ext
9320cat >>conftest.$ac_ext <<_ACEOF
9321/* end confdefs.h. */
80992638 9322
ad6254c5
AK
9323/* Override any gcc2 internal prototype to avoid an error. */
9324#ifdef __cplusplus
9325extern "C"
795ca3e5 9326#endif
ad6254c5
AK
9327/* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329char getmntent ();
9330int
9331main ()
9332{
9333getmntent ();
9334 ;
9335 return 0;
9336}
9337_ACEOF
9338rm -f conftest.$ac_objext conftest$ac_exeext
9339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9340 (eval $ac_link) 2>conftest.er1
ad6254c5 9341 ac_status=$?
8a2fc586
AK
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
ad6254c5
AK
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
8a2fc586
AK
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_lib_seq_getmntent=yes
795ca3e5 9361else
ad6254c5
AK
9362 echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365ac_cv_lib_seq_getmntent=no
795ca3e5 9366fi
8a2fc586
AK
9367rm -f conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9369LIBS=$ac_check_lib_save_LIBS
795ca3e5 9370fi
ad6254c5
AK
9371echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9372echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9373if test $ac_cv_lib_seq_getmntent = yes; then
9374 LIBS="-lseq $LIBS"
9375else
9376 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9377echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9378if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380else
9381 ac_check_lib_save_LIBS=$LIBS
9382LIBS="-lgen $LIBS"
9383cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9384/* confdefs.h. */
9385_ACEOF
9386cat confdefs.h >>conftest.$ac_ext
9387cat >>conftest.$ac_ext <<_ACEOF
9388/* end confdefs.h. */
795ca3e5 9389
ad6254c5
AK
9390/* Override any gcc2 internal prototype to avoid an error. */
9391#ifdef __cplusplus
9392extern "C"
9393#endif
9394/* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396char getmntent ();
9397int
9398main ()
9399{
9400getmntent ();
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest.$ac_objext conftest$ac_exeext
9406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9407 (eval $ac_link) 2>conftest.er1
ad6254c5 9408 ac_status=$?
8a2fc586
AK
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
ad6254c5
AK
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
8a2fc586
AK
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_lib_gen_getmntent=yes
80992638 9428else
ad6254c5
AK
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432ac_cv_lib_gen_getmntent=no
9433fi
8a2fc586
AK
9434rm -f conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9436LIBS=$ac_check_lib_save_LIBS
9437fi
9438echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9439echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9440if test $ac_cv_lib_gen_getmntent = yes; then
9441 LIBS="-lgen $LIBS"
795ca3e5
AK
9442fi
9443
9444fi
9445
ad6254c5
AK
9446fi
9447
9448
9449for ac_func in getmntent
795ca3e5 9450do
ad6254c5
AK
9451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452echo "$as_me:$LINENO: checking for $ac_func" >&5
9453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9454if eval "test \"\${$as_ac_var+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9458/* confdefs.h. */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h. */
8a2fc586
AK
9463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9465#define $ac_func innocuous_$ac_func
9466
795ca3e5 9467/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9468 which can conflict with char $ac_func (); below.
9469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9470 <limits.h> exists even on freestanding compilers. */
8a2fc586 9471
ad6254c5
AK
9472#ifdef __STDC__
9473# include <limits.h>
9474#else
9475# include <assert.h>
9476#endif
8a2fc586
AK
9477
9478#undef $ac_func
9479
795ca3e5 9480/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9481#ifdef __cplusplus
9482extern "C"
9483{
9484#endif
795ca3e5 9485/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9486 builtin and then its argument prototype would still apply. */
9487char $ac_func ();
795ca3e5
AK
9488/* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9492choke me
9493#else
ad6254c5
AK
9494char (*f) () = $ac_func;
9495#endif
9496#ifdef __cplusplus
9497}
795ca3e5
AK
9498#endif
9499
ad6254c5
AK
9500int
9501main ()
9502{
9503return f != $ac_func;
9504 ;
9505 return 0;
9506}
9507_ACEOF
9508rm -f conftest.$ac_objext conftest$ac_exeext
9509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 9510 (eval $ac_link) 2>conftest.er1
ad6254c5 9511 ac_status=$?
8a2fc586
AK
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
ad6254c5
AK
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
8a2fc586
AK
9517 { ac_try='test -z "$ac_c_werror_flag"
9518 || test ! -s conftest.err'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; } &&
9524 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526 (eval $ac_try) 2>&5
9527 ac_status=$?
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 eval "$as_ac_var=yes"
795ca3e5 9531else
ad6254c5
AK
9532 echo "$as_me: failed program was:" >&5
9533sed 's/^/| /' conftest.$ac_ext >&5
9534
9535eval "$as_ac_var=no"
795ca3e5 9536fi
8a2fc586
AK
9537rm -f conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9539fi
ad6254c5
AK
9540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9542if test `eval echo '${'$as_ac_var'}'` = yes; then
9543 cat >>confdefs.h <<_ACEOF
9544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9545_ACEOF
795ca3e5 9546
795ca3e5
AK
9547fi
9548done
9549
9550
ad6254c5
AK
9551# AC_FUNC_REALLOC
9552
9553
9554for ac_header in sys/select.h sys/socket.h
9555do
9556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9557if eval "test \"\${$as_ac_Header+set}\" = set"; then
9558 echo "$as_me:$LINENO: checking for $ac_header" >&5
9559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560if eval "test \"\${$as_ac_Header+set}\" = set"; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562fi
9563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 9565else
ad6254c5
AK
9566 # Is the header compilable?
9567echo "$as_me:$LINENO: checking $ac_header usability" >&5
9568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9569cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9570/* confdefs.h. */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */
9575$ac_includes_default
9576#include <$ac_header>
9577_ACEOF
9578rm -f conftest.$ac_objext
9579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9580 (eval $ac_compile) 2>conftest.er1
ad6254c5 9581 ac_status=$?
8a2fc586
AK
9582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
ad6254c5
AK
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
8a2fc586
AK
9587 { ac_try='test -z "$ac_c_werror_flag"
9588 || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 (eval $ac_try) 2>&5
9591 ac_status=$?
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_header_compiler=yes
80992638 9601else
ad6254c5
AK
9602 echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
9605ac_header_compiler=no
9606fi
8a2fc586 9607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9609echo "${ECHO_T}$ac_header_compiler" >&6
9610
9611# Is the header present?
9612echo "$as_me:$LINENO: checking $ac_header presence" >&5
9613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9614cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620#include <$ac_header>
9621_ACEOF
9622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } >/dev/null; then
9630 if test -s conftest.err; then
9631 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9633 else
9634 ac_cpp_err=
9635 fi
9636else
9637 ac_cpp_err=yes
795ca3e5 9638fi
ad6254c5
AK
9639if test -z "$ac_cpp_err"; then
9640 ac_header_preproc=yes
9641else
9642 echo "$as_me: failed program was:" >&5
9643sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ac_header_preproc=no
9646fi
9647rm -f conftest.err conftest.$ac_ext
9648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9649echo "${ECHO_T}$ac_header_preproc" >&6
9650
9651# So? What about this header?
8a2fc586
AK
9652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9653 yes:no: )
ad6254c5
AK
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9658 ac_header_preproc=yes
ad6254c5 9659 ;;
8a2fc586 9660 no:yes:* )
ad6254c5
AK
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9673 (
9674 cat <<\_ASBOX
8a2fc586
AK
9675## ------------------------------------------ ##
9676## Report this to the AC_PACKAGE_NAME lists. ##
9677## ------------------------------------------ ##
ad6254c5
AK
9678_ASBOX
9679 ) |
9680 sed "s/^/$as_me: WARNING: /" >&2
9681 ;;
9682esac
9683echo "$as_me:$LINENO: checking for $ac_header" >&5
9684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9685if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687else
8a2fc586 9688 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9689fi
ad6254c5
AK
9690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 9692
795ca3e5 9693fi
ad6254c5
AK
9694if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >>confdefs.h <<_ACEOF
9696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697_ACEOF
9698
795ca3e5
AK
9699fi
9700
ad6254c5
AK
9701done
9702
9703echo "$as_me:$LINENO: checking types of arguments for select" >&5
9704echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9705if test "${ac_cv_func_select_args+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9707else
ad6254c5
AK
9708 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9709 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9710 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9711 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9712/* confdefs.h. */
9713_ACEOF
9714cat confdefs.h >>conftest.$ac_ext
9715cat >>conftest.$ac_ext <<_ACEOF
9716/* end confdefs.h. */
9717$ac_includes_default
9718#if HAVE_SYS_SELECT_H
9719# include <sys/select.h>
9720#endif
9721#if HAVE_SYS_SOCKET_H
9722# include <sys/socket.h>
9723#endif
9724
9725int
9726main ()
9727{
9728extern int select ($ac_arg1,
8a2fc586
AK
9729 $ac_arg234, $ac_arg234, $ac_arg234,
9730 $ac_arg5);
ad6254c5
AK
9731 ;
9732 return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext
9736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9737 (eval $ac_compile) 2>conftest.er1
ad6254c5 9738 ac_status=$?
8a2fc586
AK
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
ad6254c5
AK
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
8a2fc586
AK
9744 { ac_try='test -z "$ac_c_werror_flag"
9745 || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9758else
9759 echo "$as_me: failed program was:" >&5
9760sed 's/^/| /' conftest.$ac_ext >&5
9761
9762fi
8a2fc586 9763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9764 done
9765 done
9766done
9767# Provide a safe default value.
9768: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9769
26e7f2e0 9770fi
ad6254c5
AK
9771echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9772echo "${ECHO_T}$ac_cv_func_select_args" >&6
9773ac_save_IFS=$IFS; IFS=','
9774set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9775IFS=$ac_save_IFS
9776shift
9777
9778cat >>confdefs.h <<_ACEOF
9779#define SELECT_TYPE_ARG1 $1
9780_ACEOF
9781
9782
9783cat >>confdefs.h <<_ACEOF
9784#define SELECT_TYPE_ARG234 ($2)
9785_ACEOF
9786
9787
9788cat >>confdefs.h <<_ACEOF
9789#define SELECT_TYPE_ARG5 ($3)
9790_ACEOF
9791
80992638 9792rm -f conftest*
80992638 9793
8106cdd5 9794fi
ad6254c5
AK
9795
9796if test x$FSADM = xyes; then
9797
9798
9799
9800for ac_header in fstab.h sys/mount.h sys/vfs.h
9801do
9802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803if eval "test \"\${$as_ac_Header+set}\" = set"; then
9804 echo "$as_me:$LINENO: checking for $ac_header" >&5
9805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9806if eval "test \"\${$as_ac_Header+set}\" = set"; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808fi
9809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9811else
9812 # Is the header compilable?
9813echo "$as_me:$LINENO: checking $ac_header usability" >&5
9814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9815cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9816/* confdefs.h. */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h. */
9821$ac_includes_default
9822#include <$ac_header>
9823_ACEOF
9824rm -f conftest.$ac_objext
9825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 9826 (eval $ac_compile) 2>conftest.er1
ad6254c5 9827 ac_status=$?
8a2fc586
AK
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
ad6254c5
AK
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } &&
8a2fc586
AK
9833 { ac_try='test -z "$ac_c_werror_flag"
9834 || test ! -s conftest.err'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_header_compiler=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851ac_header_compiler=no
9852fi
8a2fc586 9853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9854echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855echo "${ECHO_T}$ac_header_compiler" >&6
9856
9857# Is the header present?
9858echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9860cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9861/* confdefs.h. */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h. */
9866#include <$ac_header>
9867_ACEOF
9868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev/null; then
9876 if test -s conftest.err; then
9877 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 9878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9879 else
9880 ac_cpp_err=
9881 fi
9882else
9883 ac_cpp_err=yes
9884fi
9885if test -z "$ac_cpp_err"; then
9886 ac_header_preproc=yes
9887else
9888 echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_header_preproc=no
9892fi
9893rm -f conftest.err conftest.$ac_ext
9894echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9895echo "${ECHO_T}$ac_header_preproc" >&6
9896
9897# So? What about this header?
8a2fc586
AK
9898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9899 yes:no: )
ad6254c5
AK
9900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9901echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
9902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9903echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9904 ac_header_preproc=yes
ad6254c5 9905 ;;
8a2fc586 9906 no:yes:* )
ad6254c5
AK
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9912echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9914echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9918echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9919 (
9920 cat <<\_ASBOX
8a2fc586
AK
9921## ------------------------------------------ ##
9922## Report this to the AC_PACKAGE_NAME lists. ##
9923## ------------------------------------------ ##
ad6254c5
AK
9924_ASBOX
9925 ) |
9926 sed "s/^/$as_me: WARNING: /" >&2
9927 ;;
9928esac
9929echo "$as_me:$LINENO: checking for $ac_header" >&5
9930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9931if eval "test \"\${$as_ac_Header+set}\" = set"; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9933else
8a2fc586 9934 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 9935fi
ad6254c5
AK
9936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 9938
ad6254c5
AK
9939fi
9940if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941 cat >>confdefs.h <<_ACEOF
9942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943_ACEOF
26e7f2e0 9944
d68a82ec 9945else
ad6254c5
AK
9946 { { echo "$as_me:$LINENO: error: bailing out" >&5
9947echo "$as_me: error: bailing out" >&2;}
9948 { (exit 1); exit 1; }; }
26e7f2e0
AK
9949fi
9950
ad6254c5 9951done
036f273a 9952
ad6254c5
AK
9953
9954for ac_func in memmove
9955do
9956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9957echo "$as_me:$LINENO: checking for $ac_func" >&5
9958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9959if eval "test \"\${$as_ac_var+set}\" = set"; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 9961else
ad6254c5 9962 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
8a2fc586
AK
9968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9970#define $ac_func innocuous_$ac_func
9971
ad6254c5
AK
9972/* System header to define __stub macros and hopefully few prototypes,
9973 which can conflict with char $ac_func (); below.
9974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9975 <limits.h> exists even on freestanding compilers. */
8a2fc586 9976
ad6254c5
AK
9977#ifdef __STDC__
9978# include <limits.h>
9979#else
9980# include <assert.h>
9981#endif
8a2fc586
AK
9982
9983#undef $ac_func
9984
036f273a 9985/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9986#ifdef __cplusplus
9987extern "C"
9988{
9989#endif
036f273a 9990/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9991 builtin and then its argument prototype would still apply. */
9992char $ac_func ();
9993/* The GNU C library defines this for functions which it implements
9994 to always fail with ENOSYS. Some functions are actually named
9995 something starting with __ and the normal name is an alias. */
9996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9997choke me
9998#else
9999char (*f) () = $ac_func;
10000#endif
10001#ifdef __cplusplus
10002}
10003#endif
80992638 10004
ad6254c5
AK
10005int
10006main ()
10007{
10008return f != $ac_func;
10009 ;
10010 return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10015 (eval $ac_link) 2>conftest.er1
ad6254c5 10016 ac_status=$?
8a2fc586
AK
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -f conftest.er1
10019 cat conftest.err >&5
ad6254c5
AK
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
8a2fc586
AK
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10032 ac_status=$?
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 eval "$as_ac_var=yes"
036f273a 10036else
ad6254c5
AK
10037 echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039
10040eval "$as_ac_var=no"
036f273a 10041fi
8a2fc586
AK
10042rm -f conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10044fi
10045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10047if test `eval echo '${'$as_ac_var'}'` = yes; then
10048 cat >>confdefs.h <<_ACEOF
10049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10050_ACEOF
036f273a 10051
ad6254c5
AK
10052else
10053 { { echo "$as_me:$LINENO: error: bailing out" >&5
10054echo "$as_me: error: bailing out" >&2;}
10055 { (exit 1); exit 1; }; }
10056fi
10057done
036f273a 10058
036f273a 10059fi
d68a82ec 10060
ad6254c5
AK
10061if test x$CLUSTER != xnone; then
10062
10063
10064for ac_header in sys/socket.h sys/un.h
b896caa1 10065do
ad6254c5
AK
10066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10067if eval "test \"\${$as_ac_Header+set}\" = set"; then
10068 echo "$as_me:$LINENO: checking for $ac_header" >&5
10069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10070if eval "test \"\${$as_ac_Header+set}\" = set"; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072fi
10073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10075else
10076 # Is the header compilable?
10077echo "$as_me:$LINENO: checking $ac_header usability" >&5
10078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10079cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10080/* confdefs.h. */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h. */
10085$ac_includes_default
10086#include <$ac_header>
10087_ACEOF
10088rm -f conftest.$ac_objext
10089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10090 (eval $ac_compile) 2>conftest.er1
ad6254c5 10091 ac_status=$?
8a2fc586
AK
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
ad6254c5
AK
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
8a2fc586
AK
10097 { ac_try='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 ac_header_compiler=yes
10111else
10112 echo "$as_me: failed program was:" >&5
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115ac_header_compiler=no
10116fi
8a2fc586 10117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119echo "${ECHO_T}$ac_header_compiler" >&6
10120
10121# Is the header present?
10122echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10124cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10125/* confdefs.h. */
10126_ACEOF
10127cat confdefs.h >>conftest.$ac_ext
10128cat >>conftest.$ac_ext <<_ACEOF
10129/* end confdefs.h. */
10130#include <$ac_header>
10131_ACEOF
10132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } >/dev/null; then
10140 if test -s conftest.err; then
10141 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10143 else
10144 ac_cpp_err=
10145 fi
10146else
10147 ac_cpp_err=yes
8106cdd5 10148fi
ad6254c5
AK
10149if test -z "$ac_cpp_err"; then
10150 ac_header_preproc=yes
10151else
10152 echo "$as_me: failed program was:" >&5
10153sed 's/^/| /' conftest.$ac_ext >&5
10154
10155 ac_header_preproc=no
10156fi
10157rm -f conftest.err conftest.$ac_ext
10158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10159echo "${ECHO_T}$ac_header_preproc" >&6
10160
10161# So? What about this header?
8a2fc586
AK
10162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10163 yes:no: )
ad6254c5
AK
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10168 ac_header_preproc=yes
ad6254c5 10169 ;;
8a2fc586 10170 no:yes:* )
ad6254c5
AK
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10183 (
10184 cat <<\_ASBOX
8a2fc586
AK
10185## ------------------------------------------ ##
10186## Report this to the AC_PACKAGE_NAME lists. ##
10187## ------------------------------------------ ##
ad6254c5
AK
10188_ASBOX
10189 ) |
10190 sed "s/^/$as_me: WARNING: /" >&2
10191 ;;
10192esac
10193echo "$as_me:$LINENO: checking for $ac_header" >&5
10194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10195if eval "test \"\${$as_ac_Header+set}\" = set"; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
8a2fc586 10198 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10199fi
ad6254c5
AK
10200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10202
10203fi
10204if test `eval echo '${'$as_ac_Header'}'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10207_ACEOF
10208
80992638 10209else
ad6254c5
AK
10210 { { echo "$as_me:$LINENO: error: bailing out" >&5
10211echo "$as_me: error: bailing out" >&2;}
10212 { (exit 1); exit 1; }; }
b896caa1 10213fi
ad6254c5 10214
b896caa1
AK
10215done
10216
10217
ad6254c5
AK
10218for ac_func in socket
10219do
10220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10221echo "$as_me:$LINENO: checking for $ac_func" >&5
10222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10223if eval "test \"\${$as_ac_var+set}\" = set"; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10225else
ad6254c5 10226 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10227/* confdefs.h. */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h. */
8a2fc586
AK
10232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234#define $ac_func innocuous_$ac_func
10235
ad6254c5
AK
10236/* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
8a2fc586 10240
ad6254c5
AK
10241#ifdef __STDC__
10242# include <limits.h>
10243#else
10244# include <assert.h>
10245#endif
8a2fc586
AK
10246
10247#undef $ac_func
10248
795ca3e5 10249/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10250#ifdef __cplusplus
10251extern "C"
10252{
10253#endif
795ca3e5 10254/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10255 builtin and then its argument prototype would still apply. */
10256char $ac_func ();
10257/* The GNU C library defines this for functions which it implements
10258 to always fail with ENOSYS. Some functions are actually named
10259 something starting with __ and the normal name is an alias. */
10260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10261choke me
10262#else
10263char (*f) () = $ac_func;
10264#endif
10265#ifdef __cplusplus
10266}
10267#endif
10268
10269int
10270main ()
10271{
10272return f != $ac_func;
10273 ;
10274 return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
10278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8a2fc586 10279 (eval $ac_link) 2>conftest.er1
ad6254c5 10280 ac_status=$?
8a2fc586
AK
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
ad6254c5
AK
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } &&
8a2fc586
AK
10286 { ac_try='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 eval "$as_ac_var=yes"
10300else
10301 echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304eval "$as_ac_var=no"
10305fi
8a2fc586
AK
10306rm -f conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10308fi
10309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10311if test `eval echo '${'$as_ac_var'}'` = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10314_ACEOF
10315
10316else
10317 { { echo "$as_me:$LINENO: error: bailing out" >&5
10318echo "$as_me: error: bailing out" >&2;}
10319 { (exit 1); exit 1; }; }
10320fi
10321done
10322
10323fi
10324
10325if test x$HAVE_LIBDL = xyes; then
10326
10327for ac_header in dlfcn.h
10328do
10329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10330if eval "test \"\${$as_ac_Header+set}\" = set"; then
10331 echo "$as_me:$LINENO: checking for $ac_header" >&5
10332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10333if eval "test \"\${$as_ac_Header+set}\" = set"; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10335fi
10336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10338else
10339 # Is the header compilable?
10340echo "$as_me:$LINENO: checking $ac_header usability" >&5
10341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10342cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10343/* confdefs.h. */
10344_ACEOF
10345cat confdefs.h >>conftest.$ac_ext
10346cat >>conftest.$ac_ext <<_ACEOF
10347/* end confdefs.h. */
10348$ac_includes_default
10349#include <$ac_header>
10350_ACEOF
10351rm -f conftest.$ac_objext
10352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10353 (eval $ac_compile) 2>conftest.er1
ad6254c5 10354 ac_status=$?
8a2fc586
AK
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
ad6254c5
AK
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
8a2fc586
AK
10360 { ac_try='test -z "$ac_c_werror_flag"
10361 || test ! -s conftest.err'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 ac_header_compiler=yes
10374else
10375 echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
10377
10378ac_header_compiler=no
10379fi
8a2fc586 10380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10382echo "${ECHO_T}$ac_header_compiler" >&6
10383
10384# Is the header present?
10385echo "$as_me:$LINENO: checking $ac_header presence" >&5
10386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10387cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10388/* confdefs.h. */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h. */
10393#include <$ac_header>
10394_ACEOF
10395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10397 ac_status=$?
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } >/dev/null; then
10403 if test -s conftest.err; then
10404 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10406 else
10407 ac_cpp_err=
10408 fi
10409else
10410 ac_cpp_err=yes
10411fi
10412if test -z "$ac_cpp_err"; then
10413 ac_header_preproc=yes
10414else
10415 echo "$as_me: failed program was:" >&5
10416sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_header_preproc=no
10419fi
10420rm -f conftest.err conftest.$ac_ext
10421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10422echo "${ECHO_T}$ac_header_preproc" >&6
10423
10424# So? What about this header?
8a2fc586
AK
10425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10426 yes:no: )
ad6254c5
AK
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10431 ac_header_preproc=yes
ad6254c5 10432 ;;
8a2fc586 10433 no:yes:* )
ad6254c5
AK
10434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10446 (
10447 cat <<\_ASBOX
8a2fc586
AK
10448## ------------------------------------------ ##
10449## Report this to the AC_PACKAGE_NAME lists. ##
10450## ------------------------------------------ ##
ad6254c5
AK
10451_ASBOX
10452 ) |
10453 sed "s/^/$as_me: WARNING: /" >&2
10454 ;;
10455esac
10456echo "$as_me:$LINENO: checking for $ac_header" >&5
10457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10458if eval "test \"\${$as_ac_Header+set}\" = set"; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460else
8a2fc586 10461 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10462fi
ad6254c5
AK
10463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 10465
8106cdd5 10466fi
ad6254c5
AK
10467if test `eval echo '${'$as_ac_Header'}'` = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10470_ACEOF
795ca3e5
AK
10471
10472else
ad6254c5
AK
10473 { { echo "$as_me:$LINENO: error: bailing out" >&5
10474echo "$as_me: error: bailing out" >&2;}
10475 { (exit 1); exit 1; }; }
795ca3e5
AK
10476fi
10477
ad6254c5 10478done
80992638 10479
ad6254c5 10480fi
80992638 10481
ad6254c5 10482if test x$INTL = xyes; then
83912faa 10483
ad6254c5
AK
10484for ac_header in libintl.h
10485do
10486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10487if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo "$as_me:$LINENO: checking for $ac_header" >&5
10489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10490if eval "test \"\${$as_ac_Header+set}\" = set"; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492fi
10493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10494echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10495else
ad6254c5
AK
10496 # Is the header compilable?
10497echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10499cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
10505$ac_includes_default
10506#include <$ac_header>
10507_ACEOF
10508rm -f conftest.$ac_objext
10509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10510 (eval $ac_compile) 2>conftest.er1
ad6254c5 10511 ac_status=$?
8a2fc586
AK
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
ad6254c5
AK
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
8a2fc586
AK
10517 { ac_try='test -z "$ac_c_werror_flag"
10518 || test ! -s conftest.err'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_header_compiler=yes
10531else
10532 echo "$as_me: failed program was:" >&5
10533sed 's/^/| /' conftest.$ac_ext >&5
10534
10535ac_header_compiler=no
10536fi
8a2fc586 10537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10538echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10539echo "${ECHO_T}$ac_header_compiler" >&6
10540
10541# Is the header present?
10542echo "$as_me:$LINENO: checking $ac_header presence" >&5
10543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10544cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h. */
10550#include <$ac_header>
10551_ACEOF
10552if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } >/dev/null; then
10560 if test -s conftest.err; then
10561 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10563 else
10564 ac_cpp_err=
10565 fi
10566else
10567 ac_cpp_err=yes
795ca3e5 10568fi
ad6254c5
AK
10569if test -z "$ac_cpp_err"; then
10570 ac_header_preproc=yes
10571else
10572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_header_preproc=no
10576fi
10577rm -f conftest.err conftest.$ac_ext
10578echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10579echo "${ECHO_T}$ac_header_preproc" >&6
10580
10581# So? What about this header?
8a2fc586
AK
10582case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10583 yes:no: )
ad6254c5
AK
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10585echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10587echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10588 ac_header_preproc=yes
ad6254c5 10589 ;;
8a2fc586 10590 no:yes:* )
ad6254c5
AK
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10592echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10594echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10596echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10598echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10602echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10603 (
10604 cat <<\_ASBOX
8a2fc586
AK
10605## ------------------------------------------ ##
10606## Report this to the AC_PACKAGE_NAME lists. ##
10607## ------------------------------------------ ##
ad6254c5
AK
10608_ASBOX
10609 ) |
10610 sed "s/^/$as_me: WARNING: /" >&2
10611 ;;
10612esac
10613echo "$as_me:$LINENO: checking for $ac_header" >&5
10614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10615if eval "test \"\${$as_ac_Header+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10617else
8a2fc586 10618 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10619fi
ad6254c5
AK
10620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10622
69792976 10623fi
ad6254c5
AK
10624if test `eval echo '${'$as_ac_Header'}'` = yes; then
10625 cat >>confdefs.h <<_ACEOF
10626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10627_ACEOF
69792976 10628
69792976 10629else
ad6254c5
AK
10630 { { echo "$as_me:$LINENO: error: bailing out" >&5
10631echo "$as_me: error: bailing out" >&2;}
10632 { (exit 1); exit 1; }; }
80992638
AK
10633fi
10634
ad6254c5 10635done
69792976 10636
ad6254c5
AK
10637fi
10638
10639if test x$DEVMAPPER = xyes; then
10640
10641for ac_header in libdevmapper.h
10642do
10643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10644if eval "test \"\${$as_ac_Header+set}\" = set"; then
10645 echo "$as_me:$LINENO: checking for $ac_header" >&5
10646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10647if eval "test \"\${$as_ac_Header+set}\" = set"; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649fi
10650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10652else
ad6254c5
AK
10653 # Is the header compilable?
10654echo "$as_me:$LINENO: checking $ac_header usability" >&5
10655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10656cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h. */
10662$ac_includes_default
10663#include <$ac_header>
10664_ACEOF
10665rm -f conftest.$ac_objext
10666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10667 (eval $ac_compile) 2>conftest.er1
ad6254c5 10668 ac_status=$?
8a2fc586
AK
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
ad6254c5
AK
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } &&
8a2fc586
AK
10674 { ac_try='test -z "$ac_c_werror_flag"
10675 || test ! -s conftest.err'
10676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677 (eval $ac_try) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; } &&
10681 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_header_compiler=yes
10688else
10689 echo "$as_me: failed program was:" >&5
10690sed 's/^/| /' conftest.$ac_ext >&5
10691
10692ac_header_compiler=no
10693fi
8a2fc586 10694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10696echo "${ECHO_T}$ac_header_compiler" >&6
10697
10698# Is the header present?
10699echo "$as_me:$LINENO: checking $ac_header presence" >&5
10700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10701cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10702/* confdefs.h. */
10703_ACEOF
10704cat confdefs.h >>conftest.$ac_ext
10705cat >>conftest.$ac_ext <<_ACEOF
10706/* end confdefs.h. */
10707#include <$ac_header>
10708_ACEOF
10709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } >/dev/null; then
10717 if test -s conftest.err; then
10718 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10720 else
10721 ac_cpp_err=
10722 fi
10723else
10724 ac_cpp_err=yes
69792976 10725fi
ad6254c5
AK
10726if test -z "$ac_cpp_err"; then
10727 ac_header_preproc=yes
10728else
10729 echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ac_header_preproc=no
10733fi
10734rm -f conftest.err conftest.$ac_ext
10735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10736echo "${ECHO_T}$ac_header_preproc" >&6
10737
10738# So? What about this header?
8a2fc586
AK
10739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10740 yes:no: )
ad6254c5
AK
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10745 ac_header_preproc=yes
ad6254c5 10746 ;;
8a2fc586 10747 no:yes:* )
ad6254c5
AK
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10760 (
10761 cat <<\_ASBOX
8a2fc586
AK
10762## ------------------------------------------ ##
10763## Report this to the AC_PACKAGE_NAME lists. ##
10764## ------------------------------------------ ##
ad6254c5
AK
10765_ASBOX
10766 ) |
10767 sed "s/^/$as_me: WARNING: /" >&2
10768 ;;
10769esac
10770echo "$as_me:$LINENO: checking for $ac_header" >&5
10771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10772if eval "test \"\${$as_ac_Header+set}\" = set"; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10774else
8a2fc586 10775 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10776fi
ad6254c5
AK
10777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10779
ad6254c5
AK
10780fi
10781if test `eval echo '${'$as_ac_Header'}'` = yes; then
10782 cat >>confdefs.h <<_ACEOF
10783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10784_ACEOF
69792976 10785
69792976 10786else
ad6254c5
AK
10787 { { echo "$as_me:$LINENO: error: bailing out" >&5
10788echo "$as_me: error: bailing out" >&2;}
10789 { (exit 1); exit 1; }; }
83912faa
AK
10790fi
10791
ad6254c5
AK
10792done
10793
80992638 10794fi
4a7f3eb2 10795
ad6254c5
AK
10796if test x$HAVE_SELINUX = xyes; then
10797
10798for ac_header in selinux/selinux.h
10799do
10800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo "$as_me:$LINENO: checking for $ac_header" >&5
10803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10804if eval "test \"\${$as_ac_Header+set}\" = set"; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806fi
10807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10809else
ad6254c5
AK
10810 # Is the header compilable?
10811echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10813cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819$ac_includes_default
10820#include <$ac_header>
10821_ACEOF
10822rm -f conftest.$ac_objext
10823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8a2fc586 10824 (eval $ac_compile) 2>conftest.er1
ad6254c5 10825 ac_status=$?
8a2fc586
AK
10826 grep -v '^ *+' conftest.er1 >conftest.err
10827 rm -f conftest.er1
10828 cat conftest.err >&5
ad6254c5
AK
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
8a2fc586
AK
10831 { ac_try='test -z "$ac_c_werror_flag"
10832 || test ! -s conftest.err'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10835 ac_status=$?
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_header_compiler=yes
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849ac_header_compiler=no
10850fi
8a2fc586 10851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853echo "${ECHO_T}$ac_header_compiler" >&6
10854
10855# Is the header present?
10856echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10858cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864#include <$ac_header>
10865_ACEOF
10866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } >/dev/null; then
10874 if test -s conftest.err; then
10875 ac_cpp_err=$ac_c_preproc_warn_flag
8a2fc586 10876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10877 else
10878 ac_cpp_err=
10879 fi
10880else
10881 ac_cpp_err=yes
10882fi
10883if test -z "$ac_cpp_err"; then
10884 ac_header_preproc=yes
10885else
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889 ac_header_preproc=no
10890fi
10891rm -f conftest.err conftest.$ac_ext
10892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893echo "${ECHO_T}$ac_header_preproc" >&6
10894
10895# So? What about this header?
8a2fc586
AK
10896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897 yes:no: )
ad6254c5
AK
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8a2fc586
AK
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc=yes
ad6254c5 10903 ;;
8a2fc586 10904 no:yes:* )
ad6254c5
AK
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8a2fc586
AK
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8a2fc586
AK
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10917 (
10918 cat <<\_ASBOX
8a2fc586
AK
10919## ------------------------------------------ ##
10920## Report this to the AC_PACKAGE_NAME lists. ##
10921## ------------------------------------------ ##
ad6254c5
AK
10922_ASBOX
10923 ) |
10924 sed "s/^/$as_me: WARNING: /" >&2
10925 ;;
10926esac
10927echo "$as_me:$LINENO: checking for $ac_header" >&5
10928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
8a2fc586 10932 eval "$as_ac_Header=\$ac_header_preproc"
80992638 10933fi
ad6254c5
AK
10934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10936
ad6254c5
AK
10937fi
10938if test `eval echo '${'$as_ac_Header'}'` = yes; then
10939 cat >>confdefs.h <<_ACEOF
10940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941_ACEOF
0a62c911 10942
0a62c911 10943else
ad6254c5
AK
10944 { { echo "$as_me:$LINENO: error: bailing out" >&5
10945echo "$as_me: error: bailing out" >&2;}
10946 { (exit 1); exit 1; }; }
80992638
AK
10947fi
10948
ad6254c5 10949done
0a62c911 10950
ad6254c5 10951fi
0a62c911 10952
a653923f
AK
10953################################################################################
10954# Extract the first word of "modprobe", so it can be a program name with args.
10955set dummy modprobe; ac_word=$2
10956echo "$as_me:$LINENO: checking for $ac_word" >&5
10957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10958if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10960else
10961 case $MODPROBE_CMD in
10962 [\\/]* | ?:[\\/]*)
10963 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10964 ;;
10965 *)
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10973 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977done
10978done
10979
10980 ;;
10981esac
10982fi
10983MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10984
10985if test -n "$MODPROBE_CMD"; then
10986 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
10987echo "${ECHO_T}$MODPROBE_CMD" >&6
10988else
10989 echo "$as_me:$LINENO: result: no" >&5
10990echo "${ECHO_T}no" >&6
10991fi
10992
10993
10994if test x$MODPROBE_CMD != x; then
8a2fc586 10995 LVM_DEFS="$LVM_DEFS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\""
a653923f
AK
10996fi
10997
80992638 10998################################################################################
fae0c576
AK
10999if test "-f VERSION"; then
11000 LVM_VERSION="\"`cat VERSION`\""
11001else
11002 LVM_VERSION="Unknown"
11003fi
11004
80992638 11005################################################################################
fae0c576 11006
83912faa 11007
795ca3e5
AK
11008
11009
11010
11011
11012
11013
5a52dca9 11014
8ef2b021 11015
199e490e 11016
69792976
AK
11017
11018
11019
11020
8106cdd5
AK
11021
11022
11023
11024
11025
d68a82ec 11026
036f273a 11027
7d1552c9 11028
8106cdd5 11029
0a62c911 11030
8106cdd5 11031
4a7f3eb2 11032
4922197a
AK
11033
11034
d8ac0fbc 11035
1a9ea74d 11036
8a2fc586
AK
11037
11038
11039
8ce0cbda 11040
06f62ad1 11041
d3c8211f
AK
11042
11043
80992638 11044################################################################################
06f62ad1 11045 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 11046cat >confcache <<\_ACEOF
795ca3e5
AK
11047# This file is a shell script that caches the results of configure
11048# tests run on this system so they can be shared between configure
ad6254c5
AK
11049# scripts and configure runs, see configure's option --config-cache.
11050# It is not useful on other systems. If it contains results you don't
11051# want to keep, you may remove or edit it.
795ca3e5 11052#
ad6254c5
AK
11053# config.status only pays attention to the cache file if you give it
11054# the --recheck option to rerun configure.
795ca3e5 11055#
ad6254c5
AK
11056# `ac_cv_env_foo' variables (set or unset) will be overridden when
11057# loading this file, other *unset* `ac_cv_foo' will be assigned the
11058# following values.
11059
11060_ACEOF
11061
795ca3e5
AK
11062# The following way of writing the cache mishandles newlines in values,
11063# but we know of no workaround that is simple, portable, and efficient.
11064# So, don't put newlines in cache variables' values.
11065# Ultrix sh set writes to stderr and can't be redirected directly,
11066# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
11067{
11068 (set) 2>&1 |
11069 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11070 *ac_space=\ *)
11071 # `set' does not quote correctly, so add quotes (double-quote
11072 # substitution turns \\\\ into \\, and sed turns \\ into \).
11073 sed -n \
8a2fc586
AK
11074 "s/'/'\\\\''/g;
11075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
11076 ;;
11077 *)
11078 # `set' quotes correctly as required by POSIX, so do not add quotes.
11079 sed -n \
8a2fc586 11080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
11081 ;;
11082 esac;
11083} |
11084 sed '
11085 t clear
11086 : clear
11087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11088 t end
11089 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11090 : end' >>confcache
11091if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 11092 if test -w $cache_file; then
ad6254c5
AK
11093 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11094 cat confcache >$cache_file
795ca3e5
AK
11095 else
11096 echo "not updating unwritable cache $cache_file"
11097 fi
11098fi
11099rm -f confcache
11100
795ca3e5
AK
11101test "x$prefix" = xNONE && prefix=$ac_default_prefix
11102# Let make expand exec_prefix.
11103test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11104
ad6254c5
AK
11105# VPATH may cause trouble with some makes, so we remove $(srcdir),
11106# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11107# trailing colons and then remove the whole line if VPATH becomes empty
11108# (actually we leave an empty line to preserve line numbers).
795ca3e5 11109if test "x$srcdir" = x.; then
8a2fc586 11110 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
11111s/:*\$(srcdir):*/:/;
11112s/:*\${srcdir}:*/:/;
11113s/:*@srcdir@:*/:/;
8a2fc586 11114s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 11115s/:*$//;
8a2fc586 11116s/^[^=]*=[ ]*$//;
ad6254c5 11117}'
795ca3e5
AK
11118fi
11119
795ca3e5
AK
11120# Transform confdefs.h into DEFS.
11121# Protect against shell expansion while executing Makefile rules.
11122# Protect against Makefile macro expansion.
ad6254c5
AK
11123#
11124# If the first sed substitution is executed (which looks for macros that
11125# take arguments), then we branch to the quote section. Otherwise,
11126# look for a macro that doesn't take arguments.
11127cat >confdef2opt.sed <<\_ACEOF
11128t clear
11129: clear
8a2fc586 11130s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
ad6254c5 11131t quote
8a2fc586 11132s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
ad6254c5
AK
11133t quote
11134d
11135: quote
8a2fc586 11136s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
ad6254c5
AK
11137s,\[,\\&,g
11138s,\],\\&,g
11139s,\$,$$,g
11140p
11141_ACEOF
11142# We use echo to avoid assuming a particular line-breaking character.
11143# The extra dot is to prevent the shell from consuming trailing
11144# line-breaks from the sub-command output. A line-break within
11145# single-quotes doesn't work because, if this script is created in a
11146# platform that uses two characters for line-breaks (e.g., DOS), tr
11147# would break.
11148ac_LF_and_DOT=`echo; echo .`
11149DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11150rm -f confdef2opt.sed
11151
11152
11153ac_libobjs=
11154ac_ltlibobjs=
11155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11156 # 1. Remove the extension, and $U if already installed.
11157 ac_i=`echo "$ac_i" |
8a2fc586 11158 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
11159 # 2. Add them.
11160 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11161 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11162done
11163LIBOBJS=$ac_libobjs
80992638 11164
ad6254c5
AK
11165LTLIBOBJS=$ac_ltlibobjs
11166
11167
11168
11169: ${CONFIG_STATUS=./config.status}
11170ac_clean_files_save=$ac_clean_files
11171ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11172{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11173echo "$as_me: creating $CONFIG_STATUS" >&6;}
11174cat >$CONFIG_STATUS <<_ACEOF
11175#! $SHELL
11176# Generated by $as_me.
795ca3e5 11177# Run this file to recreate the current configuration.
795ca3e5 11178# Compiler output produced by configure, useful for debugging
ad6254c5
AK
11179# configure, is in config.log if it exists.
11180
11181debug=false
11182ac_cs_recheck=false
11183ac_cs_silent=false
11184SHELL=\${CONFIG_SHELL-$SHELL}
11185_ACEOF
11186
11187cat >>$CONFIG_STATUS <<\_ACEOF
11188## --------------------- ##
11189## M4sh Initialization. ##
11190## --------------------- ##
11191
11192# Be Bourne compatible
11193if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11194 emulate sh
11195 NULLCMD=:
11196 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11197 # is contrary to our usage. Disable this feature.
11198 alias -g '${1+"$@"}'='"$@"'
11199elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11200 set -o posix
11201fi
8a2fc586 11202DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11203
11204# Support unset when possible.
8a2fc586 11205if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11206 as_unset=unset
11207else
11208 as_unset=false
11209fi
8106cdd5 11210
ad6254c5
AK
11211
11212# Work around bugs in pre-3.0 UWIN ksh.
11213$as_unset ENV MAIL MAILPATH
11214PS1='$ '
11215PS2='> '
11216PS4='+ '
11217
11218# NLS nuisances.
11219for as_var in \
11220 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11221 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11222 LC_TELEPHONE LC_TIME
8106cdd5 11223do
8a2fc586 11224 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11225 eval $as_var=C; export $as_var
11226 else
11227 $as_unset $as_var
11228 fi
8106cdd5
AK
11229done
11230
ad6254c5
AK
11231# Required to use basename.
11232if expr a : '\(a\)' >/dev/null 2>&1; then
11233 as_expr=expr
11234else
11235 as_expr=false
11236fi
8106cdd5 11237
ad6254c5
AK
11238if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11239 as_basename=basename
11240else
11241 as_basename=false
11242fi
11243
11244
11245# Name of the executable.
11246as_me=`$as_basename "$0" ||
11247$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11248 X"$0" : 'X\(//\)$' \| \
11249 X"$0" : 'X\(/\)$' \| \
11250 . : '\(.\)' 2>/dev/null ||
11251echo X/"$0" |
11252 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11253 /^X\/\(\/\/\)$/{ s//\1/; q; }
11254 /^X\/\(\/\).*/{ s//\1/; q; }
11255 s/.*/./; q'`
11256
11257
11258# PATH needs CR, and LINENO needs CR and PATH.
11259# Avoid depending upon Character Ranges.
11260as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11261as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11262as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11263as_cr_digits='0123456789'
11264as_cr_alnum=$as_cr_Letters$as_cr_digits
11265
11266# The user is always right.
11267if test "${PATH_SEPARATOR+set}" != set; then
11268 echo "#! /bin/sh" >conf$$.sh
11269 echo "exit 0" >>conf$$.sh
11270 chmod +x conf$$.sh
11271 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11272 PATH_SEPARATOR=';'
80992638 11273 else
ad6254c5 11274 PATH_SEPARATOR=:
80992638 11275 fi
ad6254c5
AK
11276 rm -f conf$$.sh
11277fi
11278
11279
11280 as_lineno_1=$LINENO
11281 as_lineno_2=$LINENO
11282 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11283 test "x$as_lineno_1" != "x$as_lineno_2" &&
11284 test "x$as_lineno_3" = "x$as_lineno_2" || {
11285 # Find who we are. Look in the path if we contain no path at all
11286 # relative or not.
11287 case $0 in
11288 *[\\/]* ) as_myself=$0 ;;
11289 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11295done
11296
11297 ;;
11298 esac
11299 # We did not find ourselves, most probably we were run as `sh COMMAND'
11300 # in which case we are not to be found in the path.
11301 if test "x$as_myself" = x; then
11302 as_myself=$0
11303 fi
11304 if test ! -f "$as_myself"; then
11305 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11306echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11307 { (exit 1); exit 1; }; }
8106cdd5 11308 fi
ad6254c5
AK
11309 case $CONFIG_SHELL in
11310 '')
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for as_base in sh bash ksh sh5; do
11317 case $as_dir in
11318 /*)
11319 if ("$as_dir/$as_base" -c '
11320 as_lineno_1=$LINENO
11321 as_lineno_2=$LINENO
11322 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11323 test "x$as_lineno_1" != "x$as_lineno_2" &&
11324 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11325 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11326 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11327 CONFIG_SHELL=$as_dir/$as_base
11328 export CONFIG_SHELL
11329 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11330 fi;;
11331 esac
11332 done
80992638 11333done
ad6254c5 11334;;
795ca3e5
AK
11335 esac
11336
ad6254c5
AK
11337 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11338 # uniformly replaced by the line number. The first 'sed' inserts a
11339 # line-number line before each line; the second 'sed' does the real
11340 # work. The second script uses 'N' to pair each line-number line
11341 # with the numbered line, and appends trailing '-' during
11342 # substitution so that $LINENO is not a special case at line end.
11343 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11344 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11345 sed '=' <$as_myself |
11346 sed '
11347 N
11348 s,$,-,
11349 : loop
11350 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11351 t loop
11352 s,-$,,
11353 s,^['$as_cr_digits']*\n,,
11354 ' >$as_me.lineno &&
11355 chmod +x $as_me.lineno ||
11356 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11357echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11358 { (exit 1); exit 1; }; }
11359
11360 # Don't try to exec as it changes $[0], causing all sort of problems
11361 # (the dirname of $[0] is not the place where we might find the
11362 # original and so on. Autoconf is especially sensible to this).
11363 . ./$as_me.lineno
11364 # Exit status is that of the last command.
11365 exit
11366}
11367
11368
11369case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11370 *c*,-n*) ECHO_N= ECHO_C='
11371' ECHO_T=' ' ;;
11372 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11373 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11374esac
11375
11376if expr a : '\(a\)' >/dev/null 2>&1; then
11377 as_expr=expr
11378else
11379 as_expr=false
11380fi
80992638 11381
ad6254c5
AK
11382rm -f conf$$ conf$$.exe conf$$.file
11383echo >conf$$.file
11384if ln -s conf$$.file conf$$ 2>/dev/null; then
11385 # We could just check for DJGPP; but this test a) works b) is more generic
11386 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11387 if test -f conf$$.exe; then
11388 # Don't use ln at all; we don't have any links
11389 as_ln_s='cp -p'
8106cdd5 11390 else
ad6254c5 11391 as_ln_s='ln -s'
80992638 11392 fi
ad6254c5
AK
11393elif ln conf$$.file conf$$ 2>/dev/null; then
11394 as_ln_s=ln
11395else
11396 as_ln_s='cp -p'
11397fi
11398rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 11399
ad6254c5
AK
11400if mkdir -p . 2>/dev/null; then
11401 as_mkdir_p=:
11402else
8a2fc586 11403 test -d ./-p && rmdir ./-p
ad6254c5
AK
11404 as_mkdir_p=false
11405fi
11406
11407as_executable_p="test -f"
11408
11409# Sed expression to map a string onto a valid CPP name.
8a2fc586 11410as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11411
11412# Sed expression to map a string onto a valid variable name.
8a2fc586 11413as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11414
11415
11416# IFS
11417# We need space, tab and new line, in precisely that order.
11418as_nl='
11419'
11420IFS=" $as_nl"
11421
11422# CDPATH.
11423$as_unset CDPATH
11424
11425exec 6>&1
11426
11427# Open the log real soon, to keep \$[0] and so on meaningful, and to
11428# report actual input values of CONFIG_FILES etc. instead of their
11429# values after options handling. Logging --version etc. is OK.
11430exec 5>>config.log
11431{
11432 echo
11433 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11434## Running $as_me. ##
11435_ASBOX
11436} >&5
11437cat >&5 <<_CSEOF
11438
11439This file was extended by $as_me, which was
8a2fc586 11440generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
11441
11442 CONFIG_FILES = $CONFIG_FILES
11443 CONFIG_HEADERS = $CONFIG_HEADERS
11444 CONFIG_LINKS = $CONFIG_LINKS
11445 CONFIG_COMMANDS = $CONFIG_COMMANDS
11446 $ $0 $@
11447
11448_CSEOF
11449echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11450echo >&5
11451_ACEOF
11452
11453# Files that config.status was made for.
11454if test -n "$ac_config_files"; then
11455 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11456fi
11457
11458if test -n "$ac_config_headers"; then
11459 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11460fi
11461
11462if test -n "$ac_config_links"; then
11463 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11464fi
11465
11466if test -n "$ac_config_commands"; then
11467 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11468fi
11469
11470cat >>$CONFIG_STATUS <<\_ACEOF
11471
11472ac_cs_usage="\
11473\`$as_me' instantiates files from templates according to the
11474current configuration.
11475
11476Usage: $0 [OPTIONS] [FILE]...
11477
11478 -h, --help print this help, then exit
11479 -V, --version print version number, then exit
11480 -q, --quiet do not print progress messages
11481 -d, --debug don't remove temporary files
11482 --recheck update $as_me by reconfiguring in the same conditions
11483 --file=FILE[:TEMPLATE]
8a2fc586 11484 instantiate the configuration file FILE
ad6254c5
AK
11485
11486Configuration files:
11487$config_files
11488
11489Report bugs to <bug-autoconf@gnu.org>."
11490_ACEOF
11491
11492cat >>$CONFIG_STATUS <<_ACEOF
11493ac_cs_version="\\
11494config.status
8a2fc586 11495configured by $0, generated by GNU Autoconf 2.59,
ad6254c5
AK
11496 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11497
8a2fc586 11498Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
11499This config.status script is free software; the Free Software Foundation
11500gives unlimited permission to copy, distribute and modify it."
11501srcdir=$srcdir
11502INSTALL="$INSTALL"
11503_ACEOF
11504
11505cat >>$CONFIG_STATUS <<\_ACEOF
11506# If no file are specified by the user, then we need to provide default
11507# value. By we need to know if files were specified by the user.
11508ac_need_defaults=:
11509while test $# != 0
11510do
11511 case $1 in
11512 --*=*)
11513 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11514 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11515 ac_shift=:
11516 ;;
11517 -*)
11518 ac_option=$1
11519 ac_optarg=$2
11520 ac_shift=shift
11521 ;;
11522 *) # This is not an option, so the user has probably given explicit
11523 # arguments.
11524 ac_option=$1
11525 ac_need_defaults=false;;
11526 esac
11527
11528 case $ac_option in
11529 # Handling of the options.
11530_ACEOF
11531cat >>$CONFIG_STATUS <<\_ACEOF
11532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11533 ac_cs_recheck=: ;;
11534 --version | --vers* | -V )
11535 echo "$ac_cs_version"; exit 0 ;;
11536 --he | --h)
11537 # Conflict between --help and --header
11538 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11539Try \`$0 --help' for more information." >&5
11540echo "$as_me: error: ambiguous option: $1
11541Try \`$0 --help' for more information." >&2;}
11542 { (exit 1); exit 1; }; };;
11543 --help | --hel | -h )
11544 echo "$ac_cs_usage"; exit 0 ;;
11545 --debug | --d* | -d )
11546 debug=: ;;
11547 --file | --fil | --fi | --f )
11548 $ac_shift
11549 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11550 ac_need_defaults=false;;
11551 --header | --heade | --head | --hea )
11552 $ac_shift
11553 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11554 ac_need_defaults=false;;
11555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11556 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11557 ac_cs_silent=: ;;
11558
11559 # This is an error.
11560 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11561Try \`$0 --help' for more information." >&5
11562echo "$as_me: error: unrecognized option: $1
11563Try \`$0 --help' for more information." >&2;}
11564 { (exit 1); exit 1; }; } ;;
11565
11566 *) ac_config_targets="$ac_config_targets $1" ;;
11567
11568 esac
11569 shift
11570done
11571
11572ac_configure_extra_args=
11573
11574if $ac_cs_silent; then
11575 exec 6>/dev/null
11576 ac_configure_extra_args="$ac_configure_extra_args --silent"
11577fi
11578
11579_ACEOF
11580cat >>$CONFIG_STATUS <<_ACEOF
11581if \$ac_cs_recheck; then
11582 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11583 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11584fi
11585
11586_ACEOF
11587
11588
11589
11590
11591
11592cat >>$CONFIG_STATUS <<\_ACEOF
11593for ac_config_target in $ac_config_targets
11594do
11595 case "$ac_config_target" in
11596 # Handling of arguments.
11597 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11598 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11599 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11600 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
06f62ad1
AK
11601 "dmeventd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/Makefile" ;;
11602 "dmeventd/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES dmeventd/mirror/Makefile" ;;
ad6254c5
AK
11603 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11604 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11605 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11606 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11607 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11608 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11609 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11610 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11611 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11612 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11613 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11614 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11615 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11616 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11617 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11618 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11619 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11620 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
11621 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11622echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11623 { (exit 1); exit 1; }; };;
80992638 11624 esac
ad6254c5
AK
11625done
11626
11627# If the user did not use the arguments to specify the items to instantiate,
11628# then the envvar interface is used. Set only those that are not.
11629# We use the long form for the default assignment because of an extremely
11630# bizarre bug on SunOS 4.1.3.
11631if $ac_need_defaults; then
11632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11633fi
11634
11635# Have a temporary directory for convenience. Make it in the build tree
11636# simply because there is no reason to put it here, and in addition,
11637# creating and moving files from /tmp can sometimes cause problems.
11638# Create a temporary directory, and hook for its removal unless debugging.
11639$debug ||
11640{
11641 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11642 trap '{ (exit 1); exit 1; }' 1 2 13 15
11643}
11644
11645# Create a (secure) tmp directory for tmp files.
11646
11647{
11648 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11649 test -n "$tmp" && test -d "$tmp"
11650} ||
11651{
11652 tmp=./confstat$$-$RANDOM
11653 (umask 077 && mkdir $tmp)
11654} ||
11655{
11656 echo "$me: cannot create a temporary directory in ." >&2
11657 { (exit 1); exit 1; }
11658}
11659
11660_ACEOF
11661
11662cat >>$CONFIG_STATUS <<_ACEOF
11663
11664#
11665# CONFIG_FILES section.
11666#
11667
11668# No need to generate the scripts if there are no CONFIG_FILES.
11669# This happens for instance when ./config.status config.h
11670if test -n "\$CONFIG_FILES"; then
11671 # Protect against being on the right side of a sed subst in config.status.
11672 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11673 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11674s,@SHELL@,$SHELL,;t t
11675s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11676s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11677s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11678s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11679s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11680s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11681s,@exec_prefix@,$exec_prefix,;t t
11682s,@prefix@,$prefix,;t t
11683s,@program_transform_name@,$program_transform_name,;t t
11684s,@bindir@,$bindir,;t t
11685s,@sbindir@,$sbindir,;t t
11686s,@libexecdir@,$libexecdir,;t t
11687s,@datadir@,$datadir,;t t
11688s,@sysconfdir@,$sysconfdir,;t t
11689s,@sharedstatedir@,$sharedstatedir,;t t
11690s,@localstatedir@,$localstatedir,;t t
11691s,@libdir@,$libdir,;t t
11692s,@includedir@,$includedir,;t t
11693s,@oldincludedir@,$oldincludedir,;t t
11694s,@infodir@,$infodir,;t t
11695s,@mandir@,$mandir,;t t
11696s,@build_alias@,$build_alias,;t t
11697s,@host_alias@,$host_alias,;t t
11698s,@target_alias@,$target_alias,;t t
11699s,@DEFS@,$DEFS,;t t
11700s,@ECHO_C@,$ECHO_C,;t t
11701s,@ECHO_N@,$ECHO_N,;t t
11702s,@ECHO_T@,$ECHO_T,;t t
11703s,@LIBS@,$LIBS,;t t
11704s,@build@,$build,;t t
11705s,@build_cpu@,$build_cpu,;t t
11706s,@build_vendor@,$build_vendor,;t t
11707s,@build_os@,$build_os,;t t
11708s,@host@,$host,;t t
11709s,@host_cpu@,$host_cpu,;t t
11710s,@host_vendor@,$host_vendor,;t t
11711s,@host_os@,$host_os,;t t
11712s,@target@,$target,;t t
11713s,@target_cpu@,$target_cpu,;t t
11714s,@target_vendor@,$target_vendor,;t t
11715s,@target_os@,$target_os,;t t
11716s,@AWK@,$AWK,;t t
11717s,@CC@,$CC,;t t
11718s,@CFLAGS@,$CFLAGS,;t t
11719s,@LDFLAGS@,$LDFLAGS,;t t
11720s,@CPPFLAGS@,$CPPFLAGS,;t t
11721s,@ac_ct_CC@,$ac_ct_CC,;t t
11722s,@EXEEXT@,$EXEEXT,;t t
11723s,@OBJEXT@,$OBJEXT,;t t
11724s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11725s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11726s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11727s,@LN_S@,$LN_S,;t t
11728s,@SET_MAKE@,$SET_MAKE,;t t
11729s,@RANLIB@,$RANLIB,;t t
11730s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8a2fc586
AK
11731s,@CFLOW_CMD@,$CFLOW_CMD,;t t
11732s,@CSCOPE_CMD@,$CSCOPE_CMD,;t t
ad6254c5
AK
11733s,@CPP@,$CPP,;t t
11734s,@EGREP@,$EGREP,;t t
11735s,@ALLOCA@,$ALLOCA,;t t
11736s,@LIBOBJS@,$LIBOBJS,;t t
11737s,@POW_LIB@,$POW_LIB,;t t
11738s,@MSGFMT@,$MSGFMT,;t t
a653923f 11739s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
11740s,@JOBS@,$JOBS,;t t
11741s,@STATIC_LINK@,$STATIC_LINK,;t t
11742s,@LVM1@,$LVM1,;t t
11743s,@POOL@,$POOL,;t t
11744s,@SNAPSHOTS@,$SNAPSHOTS,;t t
11745s,@MIRRORS@,$MIRRORS,;t t
11746s,@OWNER@,$OWNER,;t t
11747s,@GROUP@,$GROUP,;t t
8a2fc586 11748s,@LVM_DEFS@,$LVM_DEFS,;t t
ad6254c5
AK
11749s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
11750s,@CLDFLAGS@,$CLDFLAGS,;t t
11751s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
11752s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
11753s,@LDDEPS@,$LDDEPS,;t t
c1c065a3 11754s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
ad6254c5
AK
11755s,@LVM_VERSION@,$LVM_VERSION,;t t
11756s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
11757s,@DEBUG@,$DEBUG,;t t
11758s,@DEVMAPPER@,$DEVMAPPER,;t t
11759s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
11760s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
11761s,@CMDLIB@,$CMDLIB,;t t
11762s,@LOCALEDIR@,$LOCALEDIR,;t t
11763s,@CONFDIR@,$CONFDIR,;t t
11764s,@STATICDIR@,$STATICDIR,;t t
11765s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
11766s,@INTL@,$INTL,;t t
11767s,@CLVMD@,$CLVMD,;t t
11768s,@CLUSTER@,$CLUSTER,;t t
11769s,@FSADM@,$FSADM,;t t
06f62ad1 11770s,@DMEVENTD@,$DMEVENTD,;t t
ad6254c5
AK
11771s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11772CEOF
11773
11774_ACEOF
11775
11776 cat >>$CONFIG_STATUS <<\_ACEOF
11777 # Split the substitutions into bite-sized pieces for seds with
11778 # small command number limits, like on Digital OSF/1 and HP-UX.
11779 ac_max_sed_lines=48
11780 ac_sed_frag=1 # Number of current file.
11781 ac_beg=1 # First line for current file.
11782 ac_end=$ac_max_sed_lines # Line after last line for current file.
11783 ac_more_lines=:
11784 ac_sed_cmds=
11785 while $ac_more_lines; do
11786 if test $ac_beg -gt 1; then
11787 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11788 else
11789 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11790 fi
11791 if test ! -s $tmp/subs.frag; then
11792 ac_more_lines=false
11793 else
11794 # The purpose of the label and of the branching condition is to
11795 # speed up the sed processing (if there are no `@' at all, there
11796 # is no need to browse any of the substitutions).
11797 # These are the two extra sed commands mentioned above.
11798 (echo ':t
11799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11800 if test -z "$ac_sed_cmds"; then
8a2fc586 11801 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 11802 else
8a2fc586 11803 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
11804 fi
11805 ac_sed_frag=`expr $ac_sed_frag + 1`
11806 ac_beg=$ac_end
11807 ac_end=`expr $ac_end + $ac_max_sed_lines`
11808 fi
11809 done
11810 if test -z "$ac_sed_cmds"; then
11811 ac_sed_cmds=cat
11812 fi
11813fi # test -n "$CONFIG_FILES"
8106cdd5 11814
ad6254c5
AK
11815_ACEOF
11816cat >>$CONFIG_STATUS <<\_ACEOF
11817for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11818 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11819 case $ac_file in
11820 - | *:- | *:-:* ) # input from stdin
8a2fc586
AK
11821 cat >$tmp/stdin
11822 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11824 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8a2fc586 11825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11826 * ) ac_file_in=$ac_file.in ;;
80992638 11827 esac
8106cdd5 11828
ad6254c5
AK
11829 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11830 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11831$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11832 X"$ac_file" : 'X\(//\)[^/]' \| \
11833 X"$ac_file" : 'X\(//\)$' \| \
11834 X"$ac_file" : 'X\(/\)' \| \
11835 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11836echo X"$ac_file" |
11837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11839 /^X\(\/\/\)$/{ s//\1/; q; }
11840 /^X\(\/\).*/{ s//\1/; q; }
11841 s/.*/./; q'`
11842 { if $as_mkdir_p; then
11843 mkdir -p "$ac_dir"
11844 else
11845 as_dir="$ac_dir"
11846 as_dirs=
11847 while test ! -d "$as_dir"; do
11848 as_dirs="$as_dir $as_dirs"
11849 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11850$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11851 X"$as_dir" : 'X\(//\)[^/]' \| \
11852 X"$as_dir" : 'X\(//\)$' \| \
11853 X"$as_dir" : 'X\(/\)' \| \
11854 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11855echo X"$as_dir" |
11856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11858 /^X\(\/\/\)$/{ s//\1/; q; }
11859 /^X\(\/\).*/{ s//\1/; q; }
11860 s/.*/./; q'`
11861 done
11862 test ! -n "$as_dirs" || mkdir $as_dirs
11863 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11864echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11865 { (exit 1); exit 1; }; }; }
11866
11867 ac_builddir=.
11868
11869if test "$ac_dir" != .; then
11870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11871 # A "../" for each directory in $ac_dir_suffix.
11872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11873else
11874 ac_dir_suffix= ac_top_builddir=
11875fi
11876
11877case $srcdir in
11878 .) # No --srcdir option. We are building in place.
11879 ac_srcdir=.
11880 if test -z "$ac_top_builddir"; then
11881 ac_top_srcdir=.
11882 else
11883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11884 fi ;;
11885 [\\/]* | ?:[\\/]* ) # Absolute path.
11886 ac_srcdir=$srcdir$ac_dir_suffix;
11887 ac_top_srcdir=$srcdir ;;
11888 *) # Relative path.
11889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11891esac
8a2fc586
AK
11892
11893# Do not use `cd foo && pwd` to compute absolute paths, because
11894# the directories may not exist.
11895case `pwd` in
11896.) ac_abs_builddir="$ac_dir";;
11897*)
11898 case "$ac_dir" in
11899 .) ac_abs_builddir=`pwd`;;
11900 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11901 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11902 esac;;
11903esac
11904case $ac_abs_builddir in
11905.) ac_abs_top_builddir=${ac_top_builddir}.;;
11906*)
11907 case ${ac_top_builddir}. in
11908 .) ac_abs_top_builddir=$ac_abs_builddir;;
11909 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11910 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11911 esac;;
11912esac
11913case $ac_abs_builddir in
11914.) ac_abs_srcdir=$ac_srcdir;;
11915*)
11916 case $ac_srcdir in
11917 .) ac_abs_srcdir=$ac_abs_builddir;;
11918 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11919 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11920 esac;;
11921esac
11922case $ac_abs_builddir in
11923.) ac_abs_top_srcdir=$ac_top_srcdir;;
11924*)
11925 case $ac_top_srcdir in
11926 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11927 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11928 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11929 esac;;
11930esac
ad6254c5
AK
11931
11932
11933 case $INSTALL in
11934 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11935 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
11936 esac
11937
ad6254c5
AK
11938 if test x"$ac_file" != x-; then
11939 { echo "$as_me:$LINENO: creating $ac_file" >&5
11940echo "$as_me: creating $ac_file" >&6;}
11941 rm -f "$ac_file"
11942 fi
11943 # Let's still pretend it is `configure' which instantiates (i.e., don't
11944 # use $as_me), people would be surprised to read:
11945 # /* config.h. Generated by config.status. */
11946 if test x"$ac_file" = x-; then
11947 configure_input=
11948 else
11949 configure_input="$ac_file. "
11950 fi
11951 configure_input=$configure_input"Generated from `echo $ac_file_in |
8a2fc586 11952 sed 's,.*/,,'` by configure."
ad6254c5
AK
11953
11954 # First look for the input files in the build tree, otherwise in the
11955 # src tree.
11956 ac_file_inputs=`IFS=:
11957 for f in $ac_file_in; do
11958 case $f in
11959 -) echo $tmp/stdin ;;
11960 [\\/$]*)
8a2fc586
AK
11961 # Absolute (can't be DOS-style, as IFS=:)
11962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11963echo "$as_me: error: cannot find input file: $f" >&2;}
11964 { (exit 1); exit 1; }; }
8a2fc586 11965 echo "$f";;
ad6254c5 11966 *) # Relative
8a2fc586
AK
11967 if test -f "$f"; then
11968 # Build tree
11969 echo "$f"
11970 elif test -f "$srcdir/$f"; then
11971 # Source tree
11972 echo "$srcdir/$f"
11973 else
11974 # /dev/null tree
11975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11976echo "$as_me: error: cannot find input file: $f" >&2;}
11977 { (exit 1); exit 1; }; }
8a2fc586 11978 fi;;
ad6254c5
AK
11979 esac
11980 done` || { (exit 1); exit 1; }
11981_ACEOF
11982cat >>$CONFIG_STATUS <<_ACEOF
11983 sed "$ac_vpsub
11984$extrasub
11985_ACEOF
11986cat >>$CONFIG_STATUS <<\_ACEOF
11987:t
11988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11989s,@configure_input@,$configure_input,;t t
11990s,@srcdir@,$ac_srcdir,;t t
11991s,@abs_srcdir@,$ac_abs_srcdir,;t t
11992s,@top_srcdir@,$ac_top_srcdir,;t t
11993s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11994s,@builddir@,$ac_builddir,;t t
11995s,@abs_builddir@,$ac_abs_builddir,;t t
11996s,@top_builddir@,$ac_top_builddir,;t t
11997s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11998s,@INSTALL@,$ac_INSTALL,;t t
11999" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12000 rm -f $tmp/stdin
12001 if test x"$ac_file" != x-; then
12002 mv $tmp/out $ac_file
12003 else
12004 cat $tmp/out
12005 rm -f $tmp/out
12006 fi
795ca3e5 12007
ad6254c5
AK
12008done
12009_ACEOF
795ca3e5 12010
ad6254c5 12011cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 12012
ad6254c5
AK
12013{ (exit 0); exit 0; }
12014_ACEOF
795ca3e5 12015chmod +x $CONFIG_STATUS
ad6254c5
AK
12016ac_clean_files=$ac_clean_files_save
12017
12018
12019# configure is writing to config.log, and then calls config.status.
12020# config.status does its own redirection, appending to config.log.
12021# Unfortunately, on DOS this fails, as config.log is still kept open
12022# by configure, so config.status won't be able to write to it; its
12023# output is simply discarded. So we exec the FD to /dev/null,
12024# effectively closing config.log, so it can be properly (re)opened and
12025# appended to by config.status. When coming back to configure, we
12026# need to make the FD available again.
12027if test "$no_create" != yes; then
12028 ac_cs_success=:
12029 ac_config_status_args=
12030 test "$silent" = yes &&
12031 ac_config_status_args="$ac_config_status_args --quiet"
12032 exec 5>/dev/null
12033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12034 exec 5>>config.log
12035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12036 # would make configure fail if this is the last instruction.
12037 $ac_cs_success || { (exit 1); exit 1; }
12038fi
795ca3e5 12039
2dc95e1c
AK
12040
12041if test x$ODIRECT != xyes; then
ad6254c5
AK
12042 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
12043echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 12044fi
809fae91
AK
12045
12046if test x$FSADM == xyes; then
ad6254c5
AK
12047 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
12048echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 12049fi
06f62ad1
AK
12050
12051if test x$DMEVENTD == xyes; then
12052 { echo "$as_me:$LINENO: WARNING: dmeventd support is untested" >&5
12053echo "$as_me: WARNING: dmeventd support is untested" >&2;}
12054fi
This page took 1.414175 seconds and 5 git commands to generate.