]> sourceware.org Git - lvm2.git/blame - configure
post-release
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
5c7fc7c4 3# Generated by GNU Autoconf 2.59.
795ca3e5 4#
5c7fc7c4 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
5c7fc7c4 22DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
23
24# Support unset when possible.
5c7fc7c4 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
5c7fc7c4 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
5c7fc7c4 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.
5c7fc7c4 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.
5c7fc7c4 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
a653923f 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 CPP EGREP ALLOCA LIBOBJS POW_LIB MSGFMT MODPROBE_CMD JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP COPTIMISE_FLAG CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LDDEPS SOFLAG LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM 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 \
5c7fc7c4 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
5c7fc7c4
PC
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
5c7fc7c4 807 [$ac_default_prefix]
ad6254c5 808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5c7fc7c4 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
861 --enable-nls Enable Native Language Support
862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-user=USER Set the owner of installed files
867 --with-group=GROUP Set the group owner of installed files
868 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
869 TYPE=internal
870 --with-pool=TYPE GFS pool read-only support: internal/shared/none
871 TYPE=internal
872 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
873 TYPE=internal
874 --with-snapshots=TYPE Snapshot support: internal/shared/none
875 TYPE=internal
876 --with-mirrors=TYPE Mirror support: internal/shared/none
877 TYPE=internal
5c7fc7c4 878 --with-clvmd=TYPE Build cluster LVM Daemon: cman/gulm/none/all
a266258f 879 TYPE=none
ad6254c5
AK
880 --with-optimisation=OPT C optimisation flag OPT=-O2
881 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
882 --with-confdir=DIR Configuration files in DIR /etc
883 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
884
885Some influential environment variables:
886 CC C compiler command
887 CFLAGS C compiler flags
888 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
889 nonstandard directory <lib dir>
890 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
891 headers in a nonstandard directory <include dir>
892 CPP C preprocessor
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897_ACEOF
898fi
899
900if test "$ac_init_help" = "recursive"; then
901 # If there are subdirs, report their specific --help.
902 ac_popdir=`pwd`
903 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904 test -d $ac_dir || continue
905 ac_builddir=.
906
907if test "$ac_dir" != .; then
908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909 # A "../" for each directory in $ac_dir_suffix.
910 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911else
912 ac_dir_suffix= ac_top_builddir=
913fi
914
915case $srcdir in
916 .) # No --srcdir option. We are building in place.
917 ac_srcdir=.
918 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=.
920 else
921 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 fi ;;
923 [\\/]* | ?:[\\/]* ) # Absolute path.
924 ac_srcdir=$srcdir$ac_dir_suffix;
925 ac_top_srcdir=$srcdir ;;
926 *) # Relative path.
927 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929esac
5c7fc7c4
PC
930
931# Do not use `cd foo && pwd` to compute absolute paths, because
932# the directories may not exist.
933case `pwd` in
934.) ac_abs_builddir="$ac_dir";;
935*)
936 case "$ac_dir" in
937 .) ac_abs_builddir=`pwd`;;
938 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
939 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_top_builddir=${ac_top_builddir}.;;
944*)
945 case ${ac_top_builddir}. in
946 .) ac_abs_top_builddir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
948 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_srcdir=$ac_srcdir;;
953*)
954 case $ac_srcdir in
955 .) ac_abs_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
957 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_srcdir=$ac_top_srcdir;;
962*)
963 case $ac_top_srcdir in
964 .) ac_abs_top_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
966 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967 esac;;
968esac
ad6254c5
AK
969
970 cd $ac_dir
971 # Check for guested configure; otherwise get Cygnus style configure.
972 if test -f $ac_srcdir/configure.gnu; then
973 echo
974 $SHELL $ac_srcdir/configure.gnu --help=recursive
975 elif test -f $ac_srcdir/configure; then
976 echo
977 $SHELL $ac_srcdir/configure --help=recursive
978 elif test -f $ac_srcdir/configure.ac ||
5c7fc7c4 979 test -f $ac_srcdir/configure.in; then
ad6254c5
AK
980 echo
981 $ac_configure --help
982 else
983 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 fi
985 cd $ac_popdir
986 done
987fi
988
989test -n "$ac_init_help" && exit 0
990if $ac_init_version; then
991 cat <<\_ACEOF
992
5c7fc7c4 993Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
994This configure script is free software; the Free Software Foundation
995gives unlimited permission to copy, distribute and modify it.
996_ACEOF
997 exit 0
998fi
999exec 5>config.log
1000cat >&5 <<_ACEOF
1001This file contains any messages produced by compilers while
1002running configure, to aid debugging if configure makes a mistake.
1003
1004It was created by $as_me, which was
5c7fc7c4 1005generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
1006
1007 $ $0 $@
1008
1009_ACEOF
1010{
1011cat <<_ASUNAME
1012## --------- ##
1013## Platform. ##
1014## --------- ##
1015
1016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024
1025/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032
1033_ASUNAME
1034
1035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036for as_dir in $PATH
1037do
1038 IFS=$as_save_IFS
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1041done
1042
1043} >&5
1044
1045cat >&5 <<_ACEOF
1046
1047
1048## ----------- ##
1049## Core tests. ##
1050## ----------- ##
1051
1052_ACEOF
1053
1054
1055# Keep a trace of the command line.
1056# Strip out --no-create and --no-recursion so they do not pile up.
1057# Strip out --silent because we don't want to record it for future runs.
1058# Also quote any args containing shell meta-characters.
1059# Make two passes to allow for proper duplicate-argument suppression.
1060ac_configure_args=
1061ac_configure_args0=
1062ac_configure_args1=
1063ac_sep=
1064ac_must_keep_next=false
1065for ac_pass in 1 2
1066do
1067 for ac_arg
1068 do
1069 case $ac_arg in
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 continue ;;
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 esac
1077 case $ac_pass in
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 2)
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
5c7fc7c4 1082 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1083 else
5c7fc7c4
PC
1084 case $ac_arg in
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 esac
1092 ;;
1093 -* ) ac_must_keep_next=true ;;
1094 esac
ad6254c5
AK
1095 fi
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1098 ac_sep=" "
1099 ;;
1100 esac
1101 done
1102done
1103$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106# When interrupted or exit'd, cleanup temporary files, and complete
1107# config.log. We remove comments because anyway the quotes in there
1108# would cause problems or look ugly.
1109# WARNING: Be sure not to use single quotes in there, as some shells,
1110# such as our DU 5.0 friend, will then `close' the trap.
1111trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1113 {
1114 echo
1115
1116 cat <<\_ASBOX
1117## ---------------- ##
1118## Cache variables. ##
1119## ---------------- ##
1120_ASBOX
1121 echo
1122 # The following way of writing the cache mishandles newlines in values,
1123{
1124 (set) 2>&1 |
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 *ac_space=\ *)
1127 sed -n \
5c7fc7c4
PC
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ad6254c5
AK
1130 ;;
1131 *)
1132 sed -n \
5c7fc7c4 1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
1134 ;;
1135 esac;
1136}
1137 echo
1138
1139 cat <<\_ASBOX
1140## ----------------- ##
1141## Output variables. ##
1142## ----------------- ##
1143_ASBOX
1144 echo
1145 for ac_var in $ac_subst_vars
1146 do
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1151
1152 if test -n "$ac_subst_files"; then
1153 cat <<\_ASBOX
1154## ------------- ##
1155## Output files. ##
1156## ------------- ##
1157_ASBOX
1158 echo
1159 for ac_var in $ac_subst_files
1160 do
1161 eval ac_val=$`echo $ac_var`
5c7fc7c4 1162 echo "$ac_var='"'"'$ac_val'"'"'"
ad6254c5
AK
1163 done | sort
1164 echo
1165 fi
1166
1167 if test -s confdefs.h; then
1168 cat <<\_ASBOX
1169## ----------- ##
1170## confdefs.h. ##
1171## ----------- ##
1172_ASBOX
1173 echo
1174 sed "/^$/d" confdefs.h | sort
1175 echo
1176 fi
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1180 } >&5
5c7fc7c4 1181 rm -f core *.core &&
ad6254c5
AK
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 exit $exit_status
1184 ' 0
1185for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187done
1188ac_signal=0
1189
1190# confdefs.h avoids OS command line length limits that DEFS can exceed.
1191rm -rf conftest* confdefs.h
1192# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193echo >confdefs.h
1194
1195# Predefined preprocessor variables.
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_NAME "$PACKAGE_NAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_VERSION "$PACKAGE_VERSION"
1209_ACEOF
8106cdd5 1210
ad6254c5
AK
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_STRING "$PACKAGE_STRING"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219_ACEOF
1220
1221
1222# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1223# Prefer explicitly selected file to automatically selected ones.
1224if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 else
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 fi
1230fi
1231for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
ad6254c5
AK
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1236 . "$ac_site_file"
1237 fi
1238done
1239
1240if test -r "$cache_file"; then
ad6254c5
AK
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245echo "$as_me: loading cache $cache_file" >&6;}
1246 case $cache_file in
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1249 esac
1250 fi
795ca3e5 1251else
ad6254c5
AK
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253echo "$as_me: creating cache $cache_file" >&6;}
1254 >$cache_file
1255fi
1256
1257# Check that the precious variables saved in the cache have kept the same
1258# value.
1259ac_cache_corrupted=false
1260for ac_var in `(set) 2>&1 |
5c7fc7c4 1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ad6254c5
AK
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1267 set,)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,set)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,);;
1276 *)
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
5c7fc7c4 1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ad6254c5 1279echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5c7fc7c4 1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ad6254c5 1281echo "$as_me: former value: $ac_old_val" >&2;}
5c7fc7c4 1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ad6254c5 1283echo "$as_me: current value: $ac_new_val" >&2;}
5c7fc7c4 1284 ac_cache_corrupted=:
ad6254c5
AK
1285 fi;;
1286 esac
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1289 case $ac_new_val in
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1293 esac
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 esac
1298 fi
1299done
1300if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
795ca3e5
AK
1306fi
1307
1308ac_ext=c
795ca3e5 1309ac_cpp='$CPP $CPPFLAGS'
ad6254c5
AK
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
795ca3e5
AK
1330
1331
1332
80992638 1333################################################################################
795ca3e5
AK
1334ac_aux_dir=
1335for ac_dir in autoconf $srcdir/autoconf; do
1336 if test -f $ac_dir/install-sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 break
1340 elif test -f $ac_dir/install.sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 break
ad6254c5
AK
1344 elif test -f $ac_dir/shtool; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 break
795ca3e5
AK
1348 fi
1349done
1350if test -z "$ac_aux_dir"; then
ad6254c5
AK
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1352echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1353 { (exit 1); exit 1; }; }
795ca3e5 1354fi
ad6254c5
AK
1355ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
8ce0cbda
AK
1358
1359
ad6254c5 1360################################################################################
8ce0cbda 1361# Make sure we can run config.sub.
ad6254c5
AK
1362$ac_config_sub sun4 >/dev/null 2>&1 ||
1363 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1364echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1365 { (exit 1); exit 1; }; }
1366
1367echo "$as_me:$LINENO: checking build system type" >&5
1368echo $ECHO_N "checking build system type... $ECHO_C" >&6
1369if test "${ac_cv_build+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1371else
1372 ac_cv_build_alias=$build_alias
1373test -z "$ac_cv_build_alias" &&
1374 ac_cv_build_alias=`$ac_config_guess`
1375test -z "$ac_cv_build_alias" &&
1376 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1377echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1378 { (exit 1); exit 1; }; }
1379ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1380 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1381echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1382 { (exit 1); exit 1; }; }
1383
1384fi
1385echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1386echo "${ECHO_T}$ac_cv_build" >&6
1387build=$ac_cv_build
1388build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393echo "$as_me:$LINENO: checking host system type" >&5
1394echo $ECHO_N "checking host system type... $ECHO_C" >&6
1395if test "${ac_cv_host+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398 ac_cv_host_alias=$host_alias
1399test -z "$ac_cv_host_alias" &&
1400 ac_cv_host_alias=$ac_cv_build_alias
1401ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1402 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1403echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1404 { (exit 1); exit 1; }; }
1405
1406fi
1407echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1408echo "${ECHO_T}$ac_cv_host" >&6
1409host=$ac_cv_host
1410host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415echo "$as_me:$LINENO: checking target system type" >&5
1416echo $ECHO_N "checking target system type... $ECHO_C" >&6
1417if test "${ac_cv_target+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 ac_cv_target_alias=$target_alias
1421test "x$ac_cv_target_alias" = "x" &&
1422 ac_cv_target_alias=$ac_cv_host_alias
1423ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1425echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
8ce0cbda 1427
ad6254c5
AK
1428fi
1429echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1430echo "${ECHO_T}$ac_cv_target" >&6
1431target=$ac_cv_target
1432target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8ce0cbda 1435
8ce0cbda 1436
ad6254c5
AK
1437# The aliases save the names the user supplied, while $host etc.
1438# will get canonicalized.
1439test -n "$target_alias" &&
8ce0cbda
AK
1440 test "$program_prefix$program_suffix$program_transform_name" = \
1441 NONENONEs,x,x, &&
1442 program_prefix=${target_alias}-
1443
8ce0cbda
AK
1444case "$host_os" in
1445 linux*)
1446 CFLAGS="$CFLAGS"
1447 COPTIMISE_FLAG="-O2"
1448 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
1449 CLDWHOLEARCHIVE="-Wl,-whole-archive"
1450 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
1451 LDDEPS="$LDDEPS .export.sym"
1452 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
1453 SOFLAG="-shared"
1454 DEVMAPPER=yes
1455 ODIRECT=yes
1456 SELINUX=yes
1457 CLUSTER=internal
1458 FSADM=no ;;
1459 darwin*)
1460 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
1461 COPTIMISE_FLAG="-O2"
1462 CLDFLAGS="$CLDFLAGS"
1463 CLDWHOLEARCHIVE="-all_load"
1464 CLDNOWHOLEARCHIVE=
1465 LDDEPS="$LDDEPS"
1466 LDFLAGS="$LDFLAGS"
1467 SOFLAG="-dynamiclib"
a653923f 1468 DEVMAPPER=yes
8ce0cbda
AK
1469 ODIRECT=no
1470 SELINUX=no
1471 CLUSTER=none
1472 FSADM=no ;;
1473esac
1474
80992638 1475################################################################################
ad6254c5 1476for ac_prog in gawk mawk nawk awk
795ca3e5 1477do
ad6254c5 1478 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1479set dummy $ac_prog; ac_word=$2
ad6254c5
AK
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_AWK+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1484else
1485 if test -n "$AWK"; then
1486 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1487else
ad6254c5
AK
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_AWK="$ac_prog"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
795ca3e5
AK
1502fi
1503fi
ad6254c5 1504AWK=$ac_cv_prog_AWK
795ca3e5 1505if test -n "$AWK"; then
ad6254c5
AK
1506 echo "$as_me:$LINENO: result: $AWK" >&5
1507echo "${ECHO_T}$AWK" >&6
795ca3e5 1508else
ad6254c5
AK
1509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
795ca3e5
AK
1511fi
1512
ad6254c5
AK
1513 test -n "$AWK" && break
1514done
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1523set dummy ${ac_tool_prefix}gcc; ac_word=$2
1524echo "$as_me:$LINENO: checking for $ac_word" >&5
1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531else
1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533for as_dir in $PATH
1534do
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1542 fi
1543done
8106cdd5
AK
1544done
1545
ad6254c5
AK
1546fi
1547fi
1548CC=$ac_cv_prog_CC
1549if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551echo "${ECHO_T}$CC" >&6
1552else
1553 echo "$as_me:$LINENO: result: no" >&5
1554echo "${ECHO_T}no" >&6
1555fi
1556
1557fi
1558if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 1561set dummy gcc; ac_word=$2
ad6254c5
AK
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569else
1570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="gcc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581done
1582done
1583
1584fi
1585fi
1586ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589echo "${ECHO_T}$ac_ct_CC" >&6
1590else
1591 echo "$as_me:$LINENO: result: no" >&5
1592echo "${ECHO_T}no" >&6
1593fi
1594
1595 CC=$ac_ct_CC
1596else
1597 CC="$ac_cv_prog_CC"
1598fi
1599
1600if test -z "$CC"; then
1601 if test -n "$ac_tool_prefix"; then
1602 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1603set dummy ${ac_tool_prefix}cc; ac_word=$2
1604echo "$as_me:$LINENO: checking for $ac_word" >&5
1605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5
AK
1608else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611else
ad6254c5
AK
1612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 ac_cv_prog_CC="${ac_tool_prefix}cc"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 break 2
1622 fi
1623done
1624done
1625
8106cdd5
AK
1626fi
1627fi
ad6254c5 1628CC=$ac_cv_prog_CC
8106cdd5 1629if test -n "$CC"; then
ad6254c5
AK
1630 echo "$as_me:$LINENO: result: $CC" >&5
1631echo "${ECHO_T}$CC" >&6
1632else
1633 echo "$as_me:$LINENO: result: no" >&5
1634echo "${ECHO_T}no" >&6
1635fi
1636
1637fi
1638if test -z "$ac_cv_prog_CC"; then
1639 ac_ct_CC=$CC
1640 # Extract the first word of "cc", so it can be a program name with args.
1641set dummy cc; ac_word=$2
1642echo "$as_me:$LINENO: checking for $ac_word" >&5
1643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1646else
1647 if test -n "$ac_ct_CC"; then
1648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1649else
1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 ac_cv_prog_ac_ct_CC="cc"
1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 break 2
1660 fi
1661done
1662done
1663
1664fi
1665fi
1666ac_ct_CC=$ac_cv_prog_ac_ct_CC
1667if test -n "$ac_ct_CC"; then
1668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1669echo "${ECHO_T}$ac_ct_CC" >&6
1670else
1671 echo "$as_me:$LINENO: result: no" >&5
1672echo "${ECHO_T}no" >&6
1673fi
1674
1675 CC=$ac_ct_CC
8106cdd5 1676else
ad6254c5 1677 CC="$ac_cv_prog_CC"
8106cdd5
AK
1678fi
1679
ad6254c5 1680fi
795ca3e5
AK
1681if test -z "$CC"; then
1682 # Extract the first word of "cc", so it can be a program name with args.
1683set dummy cc; ac_word=$2
ad6254c5
AK
1684echo "$as_me:$LINENO: checking for $ac_word" >&5
1685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1686if test "${ac_cv_prog_CC+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1688else
1689 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test.
1691else
795ca3e5 1692 ac_prog_rejected=no
ad6254c5
AK
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1701 ac_prog_rejected=yes
1702 continue
1703 fi
1704 ac_cv_prog_CC="cc"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1707 fi
1708done
1709done
1710
795ca3e5
AK
1711if test $ac_prog_rejected = yes; then
1712 # We found a bogon in the path, so make sure we never use it.
1713 set dummy $ac_cv_prog_CC
1714 shift
ad6254c5 1715 if test $# != 0; then
795ca3e5
AK
1716 # We chose a different compiler from the bogus one.
1717 # However, it has the same basename, so the bogon will be chosen
1718 # first if we set CC to just the basename; use the full file name.
1719 shift
ad6254c5 1720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1721 fi
1722fi
1723fi
1724fi
ad6254c5 1725CC=$ac_cv_prog_CC
795ca3e5 1726if test -n "$CC"; then
ad6254c5
AK
1727 echo "$as_me:$LINENO: result: $CC" >&5
1728echo "${ECHO_T}$CC" >&6
795ca3e5 1729else
ad6254c5
AK
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
795ca3e5
AK
1732fi
1733
ad6254c5
AK
1734fi
1735if test -z "$CC"; then
1736 if test -n "$ac_tool_prefix"; then
1737 for ac_prog in cl
1738 do
1739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1741echo "$as_me:$LINENO: checking for $ac_word" >&5
1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743if test "${ac_cv_prog_CC+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1745else
1746 if test -n "$CC"; then
1747 ac_cv_prog_CC="$CC" # Let the user override the test.
1748else
ad6254c5
AK
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 for ac_exec_ext in '' $ac_executable_extensions; do
1755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 break 2
1759 fi
1760done
1761done
1762
795ca3e5
AK
1763fi
1764fi
ad6254c5 1765CC=$ac_cv_prog_CC
795ca3e5 1766if test -n "$CC"; then
ad6254c5
AK
1767 echo "$as_me:$LINENO: result: $CC" >&5
1768echo "${ECHO_T}$CC" >&6
795ca3e5 1769else
ad6254c5
AK
1770 echo "$as_me:$LINENO: result: no" >&5
1771echo "${ECHO_T}no" >&6
795ca3e5 1772fi
ad6254c5
AK
1773
1774 test -n "$CC" && break
1775 done
1776fi
1777if test -z "$CC"; then
1778 ac_ct_CC=$CC
1779 for ac_prog in cl
1780do
1781 # Extract the first word of "$ac_prog", so it can be a program name with args.
1782set dummy $ac_prog; ac_word=$2
1783echo "$as_me:$LINENO: checking for $ac_word" >&5
1784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788 if test -n "$ac_ct_CC"; then
1789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790else
1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792for as_dir in $PATH
1793do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 ac_cv_prog_ac_ct_CC="$ac_prog"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 break 2
795ca3e5 1801 fi
ad6254c5
AK
1802done
1803done
1804
1805fi
1806fi
1807ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808if test -n "$ac_ct_CC"; then
1809 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1810echo "${ECHO_T}$ac_ct_CC" >&6
1811else
1812 echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
795ca3e5
AK
1814fi
1815
ad6254c5
AK
1816 test -n "$ac_ct_CC" && break
1817done
795ca3e5 1818
ad6254c5
AK
1819 CC=$ac_ct_CC
1820fi
1821
1822fi
1823
1824
1825test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1826See \`config.log' for more details." >&5
1827echo "$as_me: error: no acceptable C compiler found in \$PATH
1828See \`config.log' for more details." >&2;}
1829 { (exit 1); exit 1; }; }
1830
1831# Provide some information about the compiler.
1832echo "$as_me:$LINENO:" \
1833 "checking for C compiler version" >&5
1834ac_compiler=`set X $ac_compile; echo $2`
1835{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1836 (eval $ac_compiler --version </dev/null >&5) 2>&5
1837 ac_status=$?
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }
1840{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1841 (eval $ac_compiler -v </dev/null >&5) 2>&5
1842 ac_status=$?
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1845{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1846 (eval $ac_compiler -V </dev/null >&5) 2>&5
1847 ac_status=$?
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }
1850
1851cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
1852/* confdefs.h. */
1853_ACEOF
1854cat confdefs.h >>conftest.$ac_ext
1855cat >>conftest.$ac_ext <<_ACEOF
1856/* end confdefs.h. */
1857
1858int
1859main ()
1860{
1861
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866ac_clean_files_save=$ac_clean_files
1867ac_clean_files="$ac_clean_files a.out a.exe b.out"
1868# Try to create an executable without -o first, disregard a.out.
1869# It will help us diagnose broken compilers, and finding out an intuition
1870# of exeext.
5c7fc7c4
PC
1871echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1872echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ad6254c5
AK
1873ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1874if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1875 (eval $ac_link_default) 2>&5
1876 ac_status=$?
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }; then
1879 # Find the output, starting from the most likely. This scheme is
1880# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1881# resort.
1882
1883# Be careful to initialize this variable, since it used to be cached.
1884# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1885ac_cv_exeext=
1886# b.out is created by i960 compilers.
1887for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1888do
1889 test -f "$ac_file" || continue
1890 case $ac_file in
1891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
5c7fc7c4 1892 ;;
ad6254c5 1893 conftest.$ac_ext )
5c7fc7c4
PC
1894 # This is the source file.
1895 ;;
ad6254c5 1896 [ab].out )
5c7fc7c4
PC
1897 # We found the default executable, but exeext='' is most
1898 # certainly right.
1899 break;;
ad6254c5 1900 *.* )
5c7fc7c4
PC
1901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 # FIXME: I believe we export ac_cv_exeext for Libtool,
1903 # but it would be cool to find out if it's true. Does anybody
1904 # maintain Libtool? --akim.
1905 export ac_cv_exeext
1906 break;;
ad6254c5 1907 * )
5c7fc7c4 1908 break;;
ad6254c5
AK
1909 esac
1910done
1911else
1912 echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1916See \`config.log' for more details." >&5
1917echo "$as_me: error: C compiler cannot create executables
1918See \`config.log' for more details." >&2;}
1919 { (exit 77); exit 77; }; }
1920fi
1921
1922ac_exeext=$ac_cv_exeext
1923echo "$as_me:$LINENO: result: $ac_file" >&5
1924echo "${ECHO_T}$ac_file" >&6
1925
1926# Check the compiler produces executables we can run. If not, either
1927# the compiler is broken, or we cross compile.
1928echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1929echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1930# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1931# If not cross compiling, check that we can run a simple program.
1932if test "$cross_compiling" != yes; then
1933 if { ac_try='./$ac_file'
1934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935 (eval $ac_try) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; }; then
1939 cross_compiling=no
795ca3e5 1940 else
ad6254c5
AK
1941 if test "$cross_compiling" = maybe; then
1942 cross_compiling=yes
1943 else
1944 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1945If you meant to cross compile, use \`--host'.
1946See \`config.log' for more details." >&5
1947echo "$as_me: error: cannot run C compiled programs.
1948If you meant to cross compile, use \`--host'.
1949See \`config.log' for more details." >&2;}
1950 { (exit 1); exit 1; }; }
1951 fi
795ca3e5 1952 fi
80992638 1953fi
ad6254c5
AK
1954echo "$as_me:$LINENO: result: yes" >&5
1955echo "${ECHO_T}yes" >&6
1956
1957rm -f a.out a.exe conftest$ac_cv_exeext b.out
1958ac_clean_files=$ac_clean_files_save
1959# Check the compiler produces executables we can run. If not, either
1960# the compiler is broken, or we cross compile.
1961echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1962echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1963echo "$as_me:$LINENO: result: $cross_compiling" >&5
1964echo "${ECHO_T}$cross_compiling" >&6
1965
1966echo "$as_me:$LINENO: checking for suffix of executables" >&5
1967echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1969 (eval $ac_link) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1974# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1975# work properly (i.e., refer to `conftest.exe'), while it won't with
1976# `rm'.
1977for ac_file in conftest.exe conftest conftest.*; do
1978 test -f "$ac_file" || continue
1979 case $ac_file in
1980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5c7fc7c4
PC
1982 export ac_cv_exeext
1983 break;;
ad6254c5
AK
1984 * ) break;;
1985 esac
1986done
80992638 1987else
ad6254c5
AK
1988 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1989See \`config.log' for more details." >&5
1990echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1991See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1993fi
1994
1995rm -f conftest$ac_cv_exeext
1996echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1997echo "${ECHO_T}$ac_cv_exeext" >&6
1998
1999rm -f conftest.$ac_ext
2000EXEEXT=$ac_cv_exeext
2001ac_exeext=$EXEEXT
2002echo "$as_me:$LINENO: checking for suffix of object files" >&5
2003echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2004if test "${ac_cv_objext+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2006else
ad6254c5 2007 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2008/* confdefs.h. */
2009_ACEOF
2010cat confdefs.h >>conftest.$ac_ext
2011cat >>conftest.$ac_ext <<_ACEOF
2012/* end confdefs.h. */
2013
2014int
2015main ()
2016{
2017
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022rm -f conftest.o conftest.obj
2023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; then
2028 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2029 case $ac_file in
2030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2032 break;;
2033 esac
2034done
2035else
2036 echo "$as_me: failed program was:" >&5
2037sed 's/^/| /' conftest.$ac_ext >&5
2038
2039{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2040See \`config.log' for more details." >&5
2041echo "$as_me: error: cannot compute suffix of object files: cannot compile
2042See \`config.log' for more details." >&2;}
2043 { (exit 1); exit 1; }; }
2044fi
2045
2046rm -f conftest.$ac_cv_objext conftest.$ac_ext
2047fi
2048echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2049echo "${ECHO_T}$ac_cv_objext" >&6
2050OBJEXT=$ac_cv_objext
2051ac_objext=$OBJEXT
2052echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2053echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2054if test "${ac_cv_c_compiler_gnu+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
2057 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2058/* confdefs.h. */
2059_ACEOF
2060cat confdefs.h >>conftest.$ac_ext
2061cat >>conftest.$ac_ext <<_ACEOF
2062/* end confdefs.h. */
2063
2064int
2065main ()
2066{
2067#ifndef __GNUC__
2068 choke me
2069#endif
80992638 2070
ad6254c5
AK
2071 ;
2072 return 0;
2073}
2074_ACEOF
2075rm -f conftest.$ac_objext
2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2077 (eval $ac_compile) 2>conftest.er1
ad6254c5 2078 ac_status=$?
5c7fc7c4
PC
2079 grep -v '^ *+' conftest.er1 >conftest.err
2080 rm -f conftest.er1
2081 cat conftest.err >&5
ad6254c5
AK
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
5c7fc7c4
PC
2084 { ac_try='test -z "$ac_c_werror_flag"
2085 || test ! -s conftest.err'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 (eval $ac_try) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; } &&
2091 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; }; then
2097 ac_compiler_gnu=yes
80992638 2098else
ad6254c5
AK
2099 echo "$as_me: failed program was:" >&5
2100sed 's/^/| /' conftest.$ac_ext >&5
2101
2102ac_compiler_gnu=no
8106cdd5 2103fi
5c7fc7c4 2104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2105ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 2106
ad6254c5
AK
2107fi
2108echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2109echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2110GCC=`test $ac_compiler_gnu = yes && echo yes`
2111ac_test_CFLAGS=${CFLAGS+set}
2112ac_save_CFLAGS=$CFLAGS
2113CFLAGS="-g"
2114echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2115echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2116if test "${ac_cv_prog_cc_g+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2118else
ad6254c5 2119 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2120/* confdefs.h. */
2121_ACEOF
2122cat confdefs.h >>conftest.$ac_ext
2123cat >>conftest.$ac_ext <<_ACEOF
2124/* end confdefs.h. */
2125
2126int
2127main ()
2128{
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134rm -f conftest.$ac_objext
2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2136 (eval $ac_compile) 2>conftest.er1
ad6254c5 2137 ac_status=$?
5c7fc7c4
PC
2138 grep -v '^ *+' conftest.er1 >conftest.err
2139 rm -f conftest.er1
2140 cat conftest.err >&5
ad6254c5
AK
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); } &&
5c7fc7c4
PC
2143 { ac_try='test -z "$ac_c_werror_flag"
2144 || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
795ca3e5
AK
2156 ac_cv_prog_cc_g=yes
2157else
ad6254c5
AK
2158 echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
80992638 2160
ad6254c5 2161ac_cv_prog_cc_g=no
8106cdd5 2162fi
5c7fc7c4 2163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2164fi
2165echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 2167if test "$ac_test_CFLAGS" = set; then
ad6254c5 2168 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2169elif test $ac_cv_prog_cc_g = yes; then
2170 if test "$GCC" = yes; then
2171 CFLAGS="-g -O2"
2172 else
2173 CFLAGS="-g"
2174 fi
2175else
2176 if test "$GCC" = yes; then
2177 CFLAGS="-O2"
2178 else
2179 CFLAGS=
2180 fi
2181fi
ad6254c5
AK
2182echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186else
2187 ac_cv_prog_cc_stdc=no
2188ac_save_CC=$CC
2189cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2190/* confdefs.h. */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h. */
2195#include <stdarg.h>
2196#include <stdio.h>
2197#include <sys/types.h>
2198#include <sys/stat.h>
2199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2200struct buf { int x; };
2201FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202static char *e (p, i)
2203 char **p;
2204 int i;
2205{
2206 return p[i];
2207}
2208static char *f (char * (*g) (char **, int), char **p, ...)
2209{
2210 char *s;
2211 va_list v;
2212 va_start (v,p);
2213 s = g (p, va_arg (v,int));
2214 va_end (v);
2215 return s;
2216}
5c7fc7c4
PC
2217
2218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2219 function prototypes and stuff, but not '\xHH' hex character constants.
2220 These don't provoke an error unfortunately, instead are silently treated
2221 as 'x'. The following induces an error, until -std1 is added to get
2222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2223 array size at least. It's necessary to write '\x00'==0 to get something
2224 that's true only with -std1. */
2225int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2226
ad6254c5
AK
2227int test (int i, double x);
2228struct s1 {int (*f) (int a);};
2229struct s2 {int (*f) (double a);};
2230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231int argc;
2232char **argv;
2233int
2234main ()
2235{
2236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2237 ;
2238 return 0;
2239}
2240_ACEOF
2241# Don't try gcc -ansi; that turns off useful extensions and
2242# breaks some systems' header files.
2243# AIX -qlanglvl=ansi
2244# Ultrix and OSF/1 -std1
2245# HP-UX 10.20 and later -Ae
2246# HP-UX older versions -Aa -D_HPUX_SOURCE
2247# SVR4 -Xc -D__EXTENSIONS__
2248for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249do
2250 CC="$ac_save_CC $ac_arg"
2251 rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2253 (eval $ac_compile) 2>conftest.er1
ad6254c5 2254 ac_status=$?
5c7fc7c4
PC
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
ad6254c5
AK
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
5c7fc7c4
PC
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 ac_cv_prog_cc_stdc=$ac_arg
2274break
2275else
2276 echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279fi
5c7fc7c4 2280rm -f conftest.err conftest.$ac_objext
ad6254c5
AK
2281done
2282rm -f conftest.$ac_ext conftest.$ac_objext
2283CC=$ac_save_CC
2284
2285fi
2286
2287case "x$ac_cv_prog_cc_stdc" in
2288 x|xno)
2289 echo "$as_me:$LINENO: result: none needed" >&5
2290echo "${ECHO_T}none needed" >&6 ;;
2291 *)
2292 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2293echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2294 CC="$CC $ac_cv_prog_cc_stdc" ;;
2295esac
2296
2297# Some people use a C++ compiler to compile C. Since we use `exit',
2298# in C++ we need to declare it. In case someone uses the same compiler
2299# for both compiling C and C++ we need to have the C++ compiler decide
2300# the declaration of exit, since it's the most demanding environment.
2301cat >conftest.$ac_ext <<_ACEOF
2302#ifndef __cplusplus
2303 choke me
2304#endif
2305_ACEOF
2306rm -f conftest.$ac_objext
2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2308 (eval $ac_compile) 2>conftest.er1
ad6254c5 2309 ac_status=$?
5c7fc7c4
PC
2310 grep -v '^ *+' conftest.er1 >conftest.err
2311 rm -f conftest.er1
2312 cat conftest.err >&5
ad6254c5
AK
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
5c7fc7c4
PC
2315 { ac_try='test -z "$ac_c_werror_flag"
2316 || test ! -s conftest.err'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; } &&
2322 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2328 for ac_declaration in \
5c7fc7c4 2329 '' \
ad6254c5
AK
2330 'extern "C" void std::exit (int) throw (); using std::exit;' \
2331 'extern "C" void std::exit (int); using std::exit;' \
2332 'extern "C" void exit (int) throw ();' \
2333 'extern "C" void exit (int);' \
2334 'void exit (int);'
2335do
2336 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2337/* confdefs.h. */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h. */
a266258f 2342$ac_declaration
5c7fc7c4 2343#include <stdlib.h>
ad6254c5
AK
2344int
2345main ()
2346{
2347exit (42);
2348 ;
2349 return 0;
2350}
2351_ACEOF
2352rm -f conftest.$ac_objext
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2354 (eval $ac_compile) 2>conftest.er1
ad6254c5 2355 ac_status=$?
5c7fc7c4
PC
2356 grep -v '^ *+' conftest.er1 >conftest.err
2357 rm -f conftest.er1
2358 cat conftest.err >&5
ad6254c5
AK
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
5c7fc7c4
PC
2361 { ac_try='test -z "$ac_c_werror_flag"
2362 || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 (eval $ac_try) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2374 :
2375else
2376 echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379continue
2380fi
5c7fc7c4 2381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2382 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
2388$ac_declaration
2389int
2390main ()
2391{
2392exit (42);
2393 ;
2394 return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2399 (eval $ac_compile) 2>conftest.er1
ad6254c5 2400 ac_status=$?
5c7fc7c4
PC
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
ad6254c5
AK
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
5c7fc7c4
PC
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 break
2420else
2421 echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424fi
5c7fc7c4 2425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2426done
2427rm -f conftest*
2428if test -n "$ac_declaration"; then
2429 echo '#ifdef __cplusplus' >>confdefs.h
2430 echo $ac_declaration >>confdefs.h
2431 echo '#endif' >>confdefs.h
2432fi
2433
2434else
2435 echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438fi
5c7fc7c4 2439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
2440ac_ext=c
2441ac_cpp='$CPP $CPPFLAGS'
2442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2445
2446# Find a good install program. We prefer a C program (faster),
2447# so one script is as good as another. But avoid the broken or
2448# incompatible versions:
2449# SysV /etc/install, /usr/sbin/install
2450# SunOS /usr/etc/install
2451# IRIX /sbin/install
2452# AIX /bin/install
ad6254c5 2453# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2454# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5c7fc7c4 2457# OS/2's system install, which has a completely different semantic
795ca3e5 2458# ./install, which can be erroneously created by make from ./install.sh.
ad6254c5
AK
2459echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2460echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2461if test -z "$INSTALL"; then
ad6254c5
AK
2462if test "${ac_cv_path_install+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 # Account for people who put trailing slashes in PATH elements.
2471case $as_dir/ in
2472 ./ | .// | /cC/* | \
2473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5c7fc7c4 2474 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ad6254c5
AK
2475 /usr/ucb/* ) ;;
2476 *)
2477 # OSF1 and SCO ODT 3.0 have their own names for install.
2478 # Don't use installbsd from OSF since it installs stuff as root
2479 # by default.
2480 for ac_prog in ginstall scoinst install; do
2481 for ac_exec_ext in '' $ac_executable_extensions; do
5c7fc7c4
PC
2482 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2483 if test $ac_prog = install &&
2484 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485 # AIX install. It has an incompatible calling convention.
2486 :
2487 elif test $ac_prog = install &&
2488 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2489 # program-specific install script used by HP pwplus--don't use.
2490 :
2491 else
2492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2493 break 3
2494 fi
2495 fi
795ca3e5 2496 done
ad6254c5
AK
2497 done
2498 ;;
2499esac
2500done
2501
795ca3e5
AK
2502
2503fi
2504 if test "${ac_cv_path_install+set}" = set; then
ad6254c5 2505 INSTALL=$ac_cv_path_install
795ca3e5
AK
2506 else
2507 # As a last resort, use the slow shell script. We don't cache a
2508 # path for INSTALL within a source directory, because that will
2509 # break other packages using the cache if that directory is
2510 # removed, or if the path is relative.
ad6254c5 2511 INSTALL=$ac_install_sh
795ca3e5
AK
2512 fi
2513fi
ad6254c5
AK
2514echo "$as_me:$LINENO: result: $INSTALL" >&5
2515echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2516
2517# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2518# It thinks the first close brace ends the variable substitution.
2519test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2520
ad6254c5 2521test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2522
2523test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2524
ad6254c5
AK
2525echo "$as_me:$LINENO: checking whether ln -s works" >&5
2526echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2527LN_S=$as_ln_s
2528if test "$LN_S" = "ln -s"; then
2529 echo "$as_me:$LINENO: result: yes" >&5
2530echo "${ECHO_T}yes" >&6
80992638 2531else
ad6254c5
AK
2532 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2533echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2534fi
2535
ad6254c5
AK
2536echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2537echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5c7fc7c4 2538set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ad6254c5
AK
2539if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2541else
ad6254c5 2542 cat >conftest.make <<\_ACEOF
795ca3e5 2543all:
ad6254c5
AK
2544 @echo 'ac_maketemp="$(MAKE)"'
2545_ACEOF
795ca3e5 2546# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ad6254c5 2547eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2548if test -n "$ac_maketemp"; then
2549 eval ac_cv_prog_make_${ac_make}_set=yes
2550else
2551 eval ac_cv_prog_make_${ac_make}_set=no
2552fi
ad6254c5 2553rm -f conftest.make
795ca3e5
AK
2554fi
2555if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ad6254c5
AK
2556 echo "$as_me:$LINENO: result: yes" >&5
2557echo "${ECHO_T}yes" >&6
795ca3e5
AK
2558 SET_MAKE=
2559else
ad6254c5
AK
2560 echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6
795ca3e5
AK
2562 SET_MAKE="MAKE=${MAKE-make}"
2563fi
2564
ad6254c5
AK
2565if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2567set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2568echo "$as_me:$LINENO: checking for $ac_word" >&5
2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2570if test "${ac_cv_prog_RANLIB+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2572else
2573 if test -n "$RANLIB"; then
2574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2575else
ad6254c5
AK
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2586 fi
2587done
2588done
2589
795ca3e5
AK
2590fi
2591fi
ad6254c5 2592RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2593if test -n "$RANLIB"; then
ad6254c5
AK
2594 echo "$as_me:$LINENO: result: $RANLIB" >&5
2595echo "${ECHO_T}$RANLIB" >&6
8106cdd5 2596else
ad6254c5
AK
2597 echo "$as_me:$LINENO: result: no" >&5
2598echo "${ECHO_T}no" >&6
8106cdd5
AK
2599fi
2600
795ca3e5 2601fi
ad6254c5
AK
2602if test -z "$ac_cv_prog_RANLIB"; then
2603 ac_ct_RANLIB=$RANLIB
2604 # Extract the first word of "ranlib", so it can be a program name with args.
2605set dummy ranlib; ac_word=$2
2606echo "$as_me:$LINENO: checking for $ac_word" >&5
2607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2608if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 2610else
ad6254c5
AK
2611 if test -n "$ac_ct_RANLIB"; then
2612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 ac_cv_prog_ac_ct_RANLIB="ranlib"
2622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625done
795ca3e5 2626done
8106cdd5 2627
ad6254c5 2628 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
795ca3e5 2629fi
80992638 2630fi
ad6254c5
AK
2631ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2632if test -n "$ac_ct_RANLIB"; then
2633 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2634echo "${ECHO_T}$ac_ct_RANLIB" >&6
80992638 2635else
ad6254c5
AK
2636 echo "$as_me:$LINENO: result: no" >&5
2637echo "${ECHO_T}no" >&6
8106cdd5 2638fi
8106cdd5 2639
ad6254c5 2640 RANLIB=$ac_ct_RANLIB
80992638 2641else
ad6254c5 2642 RANLIB="$ac_cv_prog_RANLIB"
80992638 2643fi
795ca3e5 2644
795ca3e5 2645
ad6254c5
AK
2646################################################################################
2647
2648
2649
2650
2651
2652
2653ac_header_dirent=no
2654for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2655 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2656echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2657echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2658if eval "test \"\${$as_ac_Header+set}\" = set"; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 2660else
ad6254c5 2661 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2662/* confdefs.h. */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h. */
2667#include <sys/types.h>
2668#include <$ac_hdr>
2669
2670int
2671main ()
2672{
2673if ((DIR *) 0)
2674return 0;
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679rm -f conftest.$ac_objext
2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 2681 (eval $ac_compile) 2>conftest.er1
ad6254c5 2682 ac_status=$?
5c7fc7c4
PC
2683 grep -v '^ *+' conftest.er1 >conftest.err
2684 rm -f conftest.er1
2685 cat conftest.err >&5
ad6254c5
AK
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); } &&
5c7fc7c4
PC
2688 { ac_try='test -z "$ac_c_werror_flag"
2689 || test ! -s conftest.err'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691 (eval $ac_try) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; } &&
2695 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 eval "$as_ac_Header=yes"
8106cdd5 2702else
ad6254c5
AK
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706eval "$as_ac_Header=no"
795ca3e5 2707fi
5c7fc7c4 2708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 2709fi
ad6254c5
AK
2710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2712if test `eval echo '${'$as_ac_Header'}'` = yes; then
2713 cat >>confdefs.h <<_ACEOF
2714#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2715_ACEOF
2716
2717ac_header_dirent=$ac_hdr; break
795ca3e5 2718fi
8106cdd5 2719
ad6254c5
AK
2720done
2721# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2722if test $ac_header_dirent = dirent.h; then
2723 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2724echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2725if test "${ac_cv_search_opendir+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2727else
ad6254c5
AK
2728 ac_func_search_save_LIBS=$LIBS
2729ac_cv_search_opendir=no
2730cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
2736
2737/* Override any gcc2 internal prototype to avoid an error. */
2738#ifdef __cplusplus
2739extern "C"
2740#endif
2741/* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2743char opendir ();
2744int
2745main ()
2746{
2747opendir ();
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext conftest$ac_exeext
2753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2754 (eval $ac_link) 2>conftest.er1
ad6254c5 2755 ac_status=$?
5c7fc7c4
PC
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
ad6254c5
AK
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
5c7fc7c4
PC
2761 { ac_try='test -z "$ac_c_werror_flag"
2762 || test ! -s conftest.err'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
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); }; }; then
2774 ac_cv_search_opendir="none required"
795ca3e5 2775else
ad6254c5
AK
2776 echo "$as_me: failed program was:" >&5
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
2779fi
5c7fc7c4
PC
2780rm -f conftest.err conftest.$ac_objext \
2781 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2782if test "$ac_cv_search_opendir" = no; then
2783 for ac_lib in dir; do
2784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2785 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2786/* confdefs.h. */
2787_ACEOF
2788cat confdefs.h >>conftest.$ac_ext
2789cat >>conftest.$ac_ext <<_ACEOF
2790/* end confdefs.h. */
795ca3e5 2791
ad6254c5
AK
2792/* Override any gcc2 internal prototype to avoid an error. */
2793#ifdef __cplusplus
2794extern "C"
2795#endif
2796/* We use char because int might match the return type of a gcc2
2797 builtin and then its argument prototype would still apply. */
2798char opendir ();
2799int
2800main ()
2801{
2802opendir ();
2803 ;
2804 return 0;
2805}
2806_ACEOF
2807rm -f conftest.$ac_objext conftest$ac_exeext
2808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2809 (eval $ac_link) 2>conftest.er1
ad6254c5 2810 ac_status=$?
5c7fc7c4
PC
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
ad6254c5
AK
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } &&
5c7fc7c4
PC
2816 { ac_try='test -z "$ac_c_werror_flag"
2817 || test ! -s conftest.err'
2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; } &&
2823 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 ac_cv_search_opendir="-l$ac_lib"
2830break
795ca3e5 2831else
ad6254c5
AK
2832 echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5
AK
2834
2835fi
5c7fc7c4
PC
2836rm -f conftest.err conftest.$ac_objext \
2837 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2838 done
795ca3e5 2839fi
ad6254c5
AK
2840LIBS=$ac_func_search_save_LIBS
2841fi
2842echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2843echo "${ECHO_T}$ac_cv_search_opendir" >&6
2844if test "$ac_cv_search_opendir" != no; then
2845 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
795ca3e5
AK
2846
2847fi
2848
795ca3e5 2849else
ad6254c5
AK
2850 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2851echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2852if test "${ac_cv_search_opendir+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 ac_func_search_save_LIBS=$LIBS
2856ac_cv_search_opendir=no
2857cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2858/* confdefs.h. */
2859_ACEOF
2860cat confdefs.h >>conftest.$ac_ext
2861cat >>conftest.$ac_ext <<_ACEOF
2862/* end confdefs.h. */
80992638 2863
ad6254c5
AK
2864/* Override any gcc2 internal prototype to avoid an error. */
2865#ifdef __cplusplus
2866extern "C"
2867#endif
2868/* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2870char opendir ();
2871int
2872main ()
2873{
2874opendir ();
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext conftest$ac_exeext
2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2881 (eval $ac_link) 2>conftest.er1
ad6254c5 2882 ac_status=$?
5c7fc7c4
PC
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
ad6254c5
AK
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
5c7fc7c4
PC
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_search_opendir="none required"
795ca3e5 2902else
ad6254c5
AK
2903 echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906fi
5c7fc7c4
PC
2907rm -f conftest.err conftest.$ac_objext \
2908 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2909if test "$ac_cv_search_opendir" = no; then
2910 for ac_lib in x; do
2911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2912 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
2918
2919/* Override any gcc2 internal prototype to avoid an error. */
2920#ifdef __cplusplus
2921extern "C"
2922#endif
2923/* We use char because int might match the return type of a gcc2
2924 builtin and then its argument prototype would still apply. */
2925char opendir ();
2926int
2927main ()
2928{
2929opendir ();
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 2936 (eval $ac_link) 2>conftest.er1
ad6254c5 2937 ac_status=$?
5c7fc7c4
PC
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
ad6254c5
AK
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
5c7fc7c4
PC
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_search_opendir="-l$ac_lib"
2957break
2958else
2959 echo "$as_me: failed program was:" >&5
2960sed 's/^/| /' conftest.$ac_ext >&5
80992638 2961
795ca3e5 2962fi
5c7fc7c4
PC
2963rm -f conftest.err conftest.$ac_objext \
2964 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
2965 done
2966fi
2967LIBS=$ac_func_search_save_LIBS
795ca3e5 2968fi
ad6254c5
AK
2969echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2970echo "${ECHO_T}$ac_cv_search_opendir" >&6
2971if test "$ac_cv_search_opendir" != no; then
2972 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8106cdd5 2973
ad6254c5 2974fi
8106cdd5 2975
795ca3e5 2976fi
8106cdd5 2977
ad6254c5
AK
2978ac_ext=c
2979ac_cpp='$CPP $CPPFLAGS'
2980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2984echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2985# On Suns, sometimes $CPP names a directory.
2986if test -n "$CPP" && test -d "$CPP"; then
2987 CPP=
2988fi
2989if test -z "$CPP"; then
2990 if test "${ac_cv_prog_CPP+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 # Double quotes because CPP needs to be expanded
2994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2995 do
2996 ac_preproc_ok=false
2997for ac_c_preproc_warn_flag in '' yes
8106cdd5 2998do
ad6254c5
AK
2999 # Use a header file that comes with gcc, so configuring glibc
3000 # with a fresh cross-compiler works.
3001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002 # <limits.h> exists even on freestanding compilers.
3003 # On the NeXT, cc -E runs the code through the compiler's parser,
3004 # not just through cpp. "Syntax error" is here to catch this case.
3005 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3006/* confdefs.h. */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h. */
3011#ifdef __STDC__
3012# include <limits.h>
3013#else
3014# include <assert.h>
3015#endif
5c7fc7c4 3016 Syntax error
ad6254c5
AK
3017_ACEOF
3018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev/null; then
3026 if test -s conftest.err; then
3027 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3029 else
3030 ac_cpp_err=
3031 fi
3032else
3033 ac_cpp_err=yes
8106cdd5 3034fi
ad6254c5
AK
3035if test -z "$ac_cpp_err"; then
3036 :
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 # Broken: fails on valid input.
3042continue
3043fi
3044rm -f conftest.err conftest.$ac_ext
3045
3046 # OK, works on sane cases. Now check whether non-existent headers
3047 # can be detected and how.
3048 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054#include <ac_nonexistent.h>
3055_ACEOF
3056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev/null; then
3064 if test -s conftest.err; then
3065 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3067 else
3068 ac_cpp_err=
3069 fi
3070else
3071 ac_cpp_err=yes
8106cdd5 3072fi
ad6254c5
AK
3073if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3075continue
80992638 3076else
ad6254c5
AK
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080 # Passes both tests.
3081ac_preproc_ok=:
3082break
795ca3e5 3083fi
ad6254c5
AK
3084rm -f conftest.err conftest.$ac_ext
3085
795ca3e5 3086done
ad6254c5
AK
3087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088rm -f conftest.err conftest.$ac_ext
3089if $ac_preproc_ok; then
3090 break
3091fi
795ca3e5 3092
ad6254c5
AK
3093 done
3094 ac_cv_prog_CPP=$CPP
795ca3e5 3095
ad6254c5
AK
3096fi
3097 CPP=$ac_cv_prog_CPP
795ca3e5 3098else
ad6254c5 3099 ac_cv_prog_CPP=$CPP
795ca3e5 3100fi
ad6254c5
AK
3101echo "$as_me:$LINENO: result: $CPP" >&5
3102echo "${ECHO_T}$CPP" >&6
3103ac_preproc_ok=false
3104for ac_c_preproc_warn_flag in '' yes
3105do
3106 # Use a header file that comes with gcc, so configuring glibc
3107 # with a fresh cross-compiler works.
3108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109 # <limits.h> exists even on freestanding compilers.
3110 # On the NeXT, cc -E runs the code through the compiler's parser,
3111 # not just through cpp. "Syntax error" is here to catch this case.
3112 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118#ifdef __STDC__
3119# include <limits.h>
3120#else
3121# include <assert.h>
3122#endif
5c7fc7c4 3123 Syntax error
ad6254c5
AK
3124_ACEOF
3125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3127 ac_status=$?
3128 grep -v '^ *+' conftest.er1 >conftest.err
3129 rm -f conftest.er1
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } >/dev/null; then
3133 if test -s conftest.err; then
3134 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3136 else
3137 ac_cpp_err=
3138 fi
3139else
3140 ac_cpp_err=yes
795ca3e5 3141fi
ad6254c5
AK
3142if test -z "$ac_cpp_err"; then
3143 :
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 # Broken: fails on valid input.
3149continue
3150fi
3151rm -f conftest.err conftest.$ac_ext
3152
3153 # OK, works on sane cases. Now check whether non-existent headers
3154 # can be detected and how.
3155 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161#include <ac_nonexistent.h>
3162_ACEOF
3163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev/null; then
3171 if test -s conftest.err; then
3172 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3174 else
3175 ac_cpp_err=
3176 fi
3177else
3178 ac_cpp_err=yes
3179fi
3180if test -z "$ac_cpp_err"; then
3181 # Broken: success on invalid input.
3182continue
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3186
ad6254c5
AK
3187 # Passes both tests.
3188ac_preproc_ok=:
3189break
795ca3e5 3190fi
ad6254c5 3191rm -f conftest.err conftest.$ac_ext
795ca3e5 3192
ad6254c5
AK
3193done
3194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3195rm -f conftest.err conftest.$ac_ext
3196if $ac_preproc_ok; then
3197 :
795ca3e5 3198else
ad6254c5
AK
3199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3200See \`config.log' for more details." >&5
3201echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3202See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
795ca3e5 3204fi
795ca3e5 3205
ad6254c5
AK
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
3212
3213echo "$as_me:$LINENO: checking for egrep" >&5
3214echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3215if test "${ac_cv_prog_egrep+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3219 then ac_cv_prog_egrep='grep -E'
3220 else ac_cv_prog_egrep='egrep'
3221 fi
795ca3e5 3222fi
ad6254c5
AK
3223echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3224echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3225 EGREP=$ac_cv_prog_egrep
80992638 3226
795ca3e5 3227
ad6254c5
AK
3228echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3229echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3230if test "${ac_cv_header_stdc+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3232else
ad6254c5 3233 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3234/* confdefs.h. */
3235_ACEOF
3236cat confdefs.h >>conftest.$ac_ext
3237cat >>conftest.$ac_ext <<_ACEOF
3238/* end confdefs.h. */
80992638 3239#include <stdlib.h>
ad6254c5
AK
3240#include <stdarg.h>
3241#include <string.h>
3242#include <float.h>
3243
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext
3253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3254 (eval $ac_compile) 2>conftest.er1
ad6254c5 3255 ac_status=$?
5c7fc7c4
PC
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
ad6254c5
AK
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
5c7fc7c4
PC
3261 { ac_try='test -z "$ac_c_werror_flag"
3262 || test ! -s conftest.err'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; } &&
3268 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 ac_cv_header_stdc=yes
795ca3e5 3275else
ad6254c5
AK
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279ac_cv_header_stdc=no
795ca3e5 3280fi
5c7fc7c4 3281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3282
3283if test $ac_cv_header_stdc = yes; then
3284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3285 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291#include <string.h>
8106cdd5 3292
ad6254c5
AK
3293_ACEOF
3294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 $EGREP "memchr" >/dev/null 2>&1; then
3296 :
3297else
3298 ac_cv_header_stdc=no
80992638 3299fi
ad6254c5 3300rm -f conftest*
795ca3e5
AK
3301
3302fi
3303
ad6254c5
AK
3304if test $ac_cv_header_stdc = yes; then
3305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3306 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
80992638 3312#include <stdlib.h>
ad6254c5
AK
3313
3314_ACEOF
80992638 3315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
3316 $EGREP "free" >/dev/null 2>&1; then
3317 :
795ca3e5 3318else
ad6254c5 3319 ac_cv_header_stdc=no
795ca3e5 3320fi
80992638 3321rm -f conftest*
8106cdd5 3322
795ca3e5
AK
3323fi
3324
ad6254c5
AK
3325if test $ac_cv_header_stdc = yes; then
3326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3327 if test "$cross_compiling" = yes; then
3328 :
795ca3e5 3329else
ad6254c5 3330 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3331/* confdefs.h. */
3332_ACEOF
3333cat confdefs.h >>conftest.$ac_ext
3334cat >>conftest.$ac_ext <<_ACEOF
3335/* end confdefs.h. */
3336#include <ctype.h>
3337#if ((' ' & 0x0FF) == 0x020)
3338# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3339# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3340#else
3341# define ISLOWER(c) \
5c7fc7c4
PC
3342 (('a' <= (c) && (c) <= 'i') \
3343 || ('j' <= (c) && (c) <= 'r') \
3344 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 3345# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 3346#endif
ad6254c5
AK
3347
3348#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3349int
3350main ()
3351{
3352 int i;
3353 for (i = 0; i < 256; i++)
3354 if (XOR (islower (i), ISLOWER (i))
5c7fc7c4 3355 || toupper (i) != TOUPPER (i))
ad6254c5
AK
3356 exit(2);
3357 exit (0);
3358}
3359_ACEOF
3360rm -f conftest$ac_exeext
3361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3362 (eval $ac_link) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 :
795ca3e5 3372else
ad6254c5
AK
3373 echo "$as_me: program exited with status $ac_status" >&5
3374echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 3376
ad6254c5
AK
3377( exit $ac_status )
3378ac_cv_header_stdc=no
80992638 3379fi
5c7fc7c4 3380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3381fi
3382fi
3383fi
3384echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3385echo "${ECHO_T}$ac_cv_header_stdc" >&6
3386if test $ac_cv_header_stdc = yes; then
3387
3388cat >>confdefs.h <<\_ACEOF
3389#define STDC_HEADERS 1
3390_ACEOF
795ca3e5
AK
3391
3392fi
3393
ad6254c5
AK
3394echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3395echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3396if test "${ac_cv_header_sys_wait_h+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 3398else
ad6254c5 3399 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
80992638 3405#include <sys/types.h>
ad6254c5
AK
3406#include <sys/wait.h>
3407#ifndef WEXITSTATUS
3408# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3409#endif
3410#ifndef WIFEXITED
3411# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3412#endif
3413
3414int
3415main ()
3416{
3417 int s;
3418 wait (&s);
3419 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3426 (eval $ac_compile) 2>conftest.er1
ad6254c5 3427 ac_status=$?
5c7fc7c4
PC
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
ad6254c5
AK
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
5c7fc7c4
PC
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_header_sys_wait_h=yes
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451ac_cv_header_sys_wait_h=no
8106cdd5 3452fi
5c7fc7c4 3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3454fi
ad6254c5
AK
3455echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3456echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3457if test $ac_cv_header_sys_wait_h = yes; then
8106cdd5 3458
ad6254c5
AK
3459cat >>confdefs.h <<\_ACEOF
3460#define HAVE_SYS_WAIT_H 1
3461_ACEOF
795ca3e5
AK
3462
3463fi
3464
ad6254c5
AK
3465echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3466echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3467if test "${ac_cv_header_time+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3469else
ad6254c5 3470 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
795ca3e5
AK
3476#include <sys/types.h>
3477#include <sys/time.h>
3478#include <time.h>
ad6254c5
AK
3479
3480int
3481main ()
3482{
3483if ((struct tm *) 0)
3484return 0;
3485 ;
3486 return 0;
3487}
3488_ACEOF
3489rm -f conftest.$ac_objext
3490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3491 (eval $ac_compile) 2>conftest.er1
ad6254c5 3492 ac_status=$?
5c7fc7c4
PC
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
ad6254c5
AK
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } &&
5c7fc7c4
PC
3498 { ac_try='test -z "$ac_c_werror_flag"
3499 || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
795ca3e5
AK
3511 ac_cv_header_time=yes
3512else
ad6254c5
AK
3513 echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516ac_cv_header_time=no
795ca3e5 3517fi
5c7fc7c4 3518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 3519fi
ad6254c5
AK
3520echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3521echo "${ECHO_T}$ac_cv_header_time" >&6
80992638 3522if test $ac_cv_header_time = yes; then
ad6254c5
AK
3523
3524cat >>confdefs.h <<\_ACEOF
795ca3e5 3525#define TIME_WITH_SYS_TIME 1
ad6254c5 3526_ACEOF
b896caa1 3527
8106cdd5 3528fi
b896caa1 3529
b896caa1 3530
ad6254c5 3531# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b896caa1 3532
b896caa1
AK
3533
3534
795ca3e5 3535
8106cdd5 3536
80992638 3537
795ca3e5 3538
a38df97f 3539
80992638 3540
ad6254c5 3541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5c7fc7c4 3542 inttypes.h stdint.h unistd.h
ad6254c5
AK
3543do
3544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3545echo "$as_me:$LINENO: checking for $ac_header" >&5
3546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3547if eval "test \"\${$as_ac_Header+set}\" = set"; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556$ac_includes_default
3557
3558#include <$ac_header>
3559_ACEOF
3560rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3562 (eval $ac_compile) 2>conftest.er1
ad6254c5 3563 ac_status=$?
5c7fc7c4
PC
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
ad6254c5
AK
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
5c7fc7c4
PC
3569 { ac_try='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 (eval $ac_try) 2>&5
3573 ac_status=$?
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 eval "$as_ac_Header=yes"
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3586
ad6254c5
AK
3587eval "$as_ac_Header=no"
3588fi
5c7fc7c4 3589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a38df97f 3590fi
ad6254c5
AK
3591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3593if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594 cat >>confdefs.h <<_ACEOF
3595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596_ACEOF
a38df97f 3597
80992638
AK
3598fi
3599
ad6254c5
AK
3600done
3601
7d1552c9 3602
7d1552c9 3603
80992638 3604
5a52dca9 3605
5a52dca9 3606
ad6254c5
AK
3607
3608
3609
3610
3611
3612for 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
3613do
3614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3615if eval "test \"\${$as_ac_Header+set}\" = set"; then
3616 echo "$as_me:$LINENO: checking for $ac_header" >&5
3617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3618if eval "test \"\${$as_ac_Header+set}\" = set"; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620fi
3621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3623else
3624 # Is the header compilable?
3625echo "$as_me:$LINENO: checking $ac_header usability" >&5
3626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3628/* confdefs.h. */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h. */
3633$ac_includes_default
3634#include <$ac_header>
3635_ACEOF
3636rm -f conftest.$ac_objext
3637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3638 (eval $ac_compile) 2>conftest.er1
ad6254c5 3639 ac_status=$?
5c7fc7c4
PC
3640 grep -v '^ *+' conftest.er1 >conftest.err
3641 rm -f conftest.er1
3642 cat conftest.err >&5
ad6254c5
AK
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } &&
5c7fc7c4
PC
3645 { ac_try='test -z "$ac_c_werror_flag"
3646 || test ! -s conftest.err'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 (eval $ac_try) 2>&5
3649 ac_status=$?
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; } &&
3652 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 (eval $ac_try) 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3658 ac_header_compiler=yes
3659else
3660 echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663ac_header_compiler=no
3664fi
5c7fc7c4 3665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3667echo "${ECHO_T}$ac_header_compiler" >&6
3668
3669# Is the header present?
3670echo "$as_me:$LINENO: checking $ac_header presence" >&5
3671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3672cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
3678#include <$ac_header>
3679_ACEOF
3680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null; then
3688 if test -s conftest.err; then
3689 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3691 else
3692 ac_cpp_err=
3693 fi
3694else
3695 ac_cpp_err=yes
3696fi
3697if test -z "$ac_cpp_err"; then
3698 ac_header_preproc=yes
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 ac_header_preproc=no
3704fi
3705rm -f conftest.err conftest.$ac_ext
3706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3707echo "${ECHO_T}$ac_header_preproc" >&6
3708
3709# So? What about this header?
5c7fc7c4
PC
3710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3711 yes:no: )
ad6254c5
AK
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3716 ac_header_preproc=yes
ad6254c5 3717 ;;
5c7fc7c4 3718 no:yes:* )
ad6254c5
AK
3719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
3721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
3729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3731 (
3732 cat <<\_ASBOX
5c7fc7c4
PC
3733## ------------------------------------------ ##
3734## Report this to the AC_PACKAGE_NAME lists. ##
3735## ------------------------------------------ ##
ad6254c5
AK
3736_ASBOX
3737 ) |
3738 sed "s/^/$as_me: WARNING: /" >&2
3739 ;;
3740esac
3741echo "$as_me:$LINENO: checking for $ac_header" >&5
3742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3743if eval "test \"\${$as_ac_Header+set}\" = set"; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
5c7fc7c4 3746 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 3747fi
ad6254c5
AK
3748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3750
3751fi
3752if test `eval echo '${'$as_ac_Header'}'` = yes; then
3753 cat >>confdefs.h <<_ACEOF
3754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3755_ACEOF
b896caa1 3756
d8ac0fbc 3757else
ad6254c5
AK
3758 { { echo "$as_me:$LINENO: error: bailing out" >&5
3759echo "$as_me: error: bailing out" >&2;}
3760 { (exit 1); exit 1; }; }
80992638
AK
3761fi
3762
ad6254c5 3763done
d8ac0fbc 3764
d8ac0fbc 3765
d8ac0fbc 3766
80992638 3767
d3c8211f 3768
d3c8211f 3769
d3c8211f 3770
80992638 3771
4922197a 3772
4922197a 3773
ad6254c5
AK
3774
3775
3776
3777for 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
3778do
3779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3780if eval "test \"\${$as_ac_Header+set}\" = set"; then
3781 echo "$as_me:$LINENO: checking for $ac_header" >&5
3782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3783if eval "test \"\${$as_ac_Header+set}\" = set"; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785fi
3786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3788else
3789 # Is the header compilable?
3790echo "$as_me:$LINENO: checking $ac_header usability" >&5
3791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3792cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3793/* confdefs.h. */
3794_ACEOF
3795cat confdefs.h >>conftest.$ac_ext
3796cat >>conftest.$ac_ext <<_ACEOF
3797/* end confdefs.h. */
3798$ac_includes_default
3799#include <$ac_header>
3800_ACEOF
3801rm -f conftest.$ac_objext
3802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3803 (eval $ac_compile) 2>conftest.er1
ad6254c5 3804 ac_status=$?
5c7fc7c4
PC
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
ad6254c5
AK
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
5c7fc7c4
PC
3810 { ac_try='test -z "$ac_c_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_header_compiler=yes
3824else
3825 echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828ac_header_compiler=no
3829fi
5c7fc7c4 3830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3832echo "${ECHO_T}$ac_header_compiler" >&6
3833
3834# Is the header present?
3835echo "$as_me:$LINENO: checking $ac_header presence" >&5
3836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3837cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#include <$ac_header>
3844_ACEOF
3845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null; then
3853 if test -s conftest.err; then
3854 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 3855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
3856 else
3857 ac_cpp_err=
3858 fi
3859else
3860 ac_cpp_err=yes
4922197a 3861fi
ad6254c5
AK
3862if test -z "$ac_cpp_err"; then
3863 ac_header_preproc=yes
3864else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 ac_header_preproc=no
3869fi
3870rm -f conftest.err conftest.$ac_ext
3871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3872echo "${ECHO_T}$ac_header_preproc" >&6
3873
3874# So? What about this header?
5c7fc7c4
PC
3875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3876 yes:no: )
ad6254c5
AK
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3881 ac_header_preproc=yes
ad6254c5 3882 ;;
5c7fc7c4 3883 no:yes:* )
ad6254c5
AK
3884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
3886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
3894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
3896 (
3897 cat <<\_ASBOX
5c7fc7c4
PC
3898## ------------------------------------------ ##
3899## Report this to the AC_PACKAGE_NAME lists. ##
3900## ------------------------------------------ ##
ad6254c5
AK
3901_ASBOX
3902 ) |
3903 sed "s/^/$as_me: WARNING: /" >&2
3904 ;;
3905esac
3906echo "$as_me:$LINENO: checking for $ac_header" >&5
3907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3908if eval "test \"\${$as_ac_Header+set}\" = set"; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
5c7fc7c4 3911 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
3912fi
3913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3915
3916fi
3917if test `eval echo '${'$as_ac_Header'}'` = yes; then
3918 cat >>confdefs.h <<_ACEOF
3919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3920_ACEOF
4922197a 3921
4922197a 3922else
ad6254c5
AK
3923 { { echo "$as_me:$LINENO: error: bailing out" >&5
3924echo "$as_me: error: bailing out" >&2;}
3925 { (exit 1); exit 1; }; }
80992638
AK
3926fi
3927
ad6254c5 3928done
4922197a 3929
4922197a 3930
ad6254c5
AK
3931case "$host_os" in
3932 linux*)
4922197a 3933
ad6254c5
AK
3934
3935
3936for ac_header in asm/byteorder.h linux/fs.h malloc.h
3937do
3938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939if eval "test \"\${$as_ac_Header+set}\" = set"; then
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944fi
3945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 3947else
ad6254c5
AK
3948 # Is the header compilable?
3949echo "$as_me:$LINENO: checking $ac_header usability" >&5
3950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3951cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h. */
3957$ac_includes_default
3958#include <$ac_header>
3959_ACEOF
3960rm -f conftest.$ac_objext
3961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 3962 (eval $ac_compile) 2>conftest.er1
ad6254c5 3963 ac_status=$?
5c7fc7c4
PC
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
ad6254c5
AK
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
5c7fc7c4
PC
3969 { ac_try='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_header_compiler=yes
3983else
3984 echo "$as_me: failed program was:" >&5
3985sed 's/^/| /' conftest.$ac_ext >&5
3986
3987ac_header_compiler=no
3988fi
5c7fc7c4 3989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
3990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3991echo "${ECHO_T}$ac_header_compiler" >&6
3992
3993# Is the header present?
3994echo "$as_me:$LINENO: checking $ac_header presence" >&5
3995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3996cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002#include <$ac_header>
4003_ACEOF
4004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } >/dev/null; then
4012 if test -s conftest.err; then
4013 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 4014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4015 else
4016 ac_cpp_err=
4017 fi
4018else
4019 ac_cpp_err=yes
4020fi
4021if test -z "$ac_cpp_err"; then
4022 ac_header_preproc=yes
4023else
4024 echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ac_header_preproc=no
4028fi
4029rm -f conftest.err conftest.$ac_ext
4030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4031echo "${ECHO_T}$ac_header_preproc" >&6
4032
4033# So? What about this header?
5c7fc7c4
PC
4034case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4035 yes:no: )
ad6254c5
AK
4036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
4038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4040 ac_header_preproc=yes
ad6254c5 4041 ;;
5c7fc7c4 4042 no:yes:* )
ad6254c5
AK
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4055 (
4056 cat <<\_ASBOX
5c7fc7c4
PC
4057## ------------------------------------------ ##
4058## Report this to the AC_PACKAGE_NAME lists. ##
4059## ------------------------------------------ ##
ad6254c5
AK
4060_ASBOX
4061 ) |
4062 sed "s/^/$as_me: WARNING: /" >&2
4063 ;;
4064esac
4065echo "$as_me:$LINENO: checking for $ac_header" >&5
4066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4067if eval "test \"\${$as_ac_Header+set}\" = set"; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
5c7fc7c4 4070 eval "$as_ac_Header=\$ac_header_preproc"
80992638 4071fi
ad6254c5
AK
4072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 4074
ad6254c5
AK
4075fi
4076if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h <<_ACEOF
4078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079_ACEOF
795ca3e5 4080
795ca3e5 4081else
ad6254c5
AK
4082 { { echo "$as_me:$LINENO: error: bailing out" >&5
4083echo "$as_me: error: bailing out" >&2;}
4084 { (exit 1); exit 1; }; }
80992638
AK
4085fi
4086
ad6254c5
AK
4087done
4088 ;;
4089 darwin*)
4090
795ca3e5 4091
ad6254c5
AK
4092for ac_header in machine/endian.h sys/disk.h
4093do
4094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4095if eval "test \"\${$as_ac_Header+set}\" = set"; then
4096 echo "$as_me:$LINENO: checking for $ac_header" >&5
4097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4098if eval "test \"\${$as_ac_Header+set}\" = set"; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100fi
4101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4103else
4104 # Is the header compilable?
4105echo "$as_me:$LINENO: checking $ac_header usability" >&5
4106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4107cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113$ac_includes_default
4114#include <$ac_header>
4115_ACEOF
4116rm -f conftest.$ac_objext
4117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4118 (eval $ac_compile) 2>conftest.er1
ad6254c5 4119 ac_status=$?
5c7fc7c4
PC
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
ad6254c5
AK
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
5c7fc7c4
PC
4125 { ac_try='test -z "$ac_c_werror_flag"
4126 || test ! -s conftest.err'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } &&
4132 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 ac_header_compiler=yes
4139else
4140 echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143ac_header_compiler=no
4144fi
5c7fc7c4 4145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4147echo "${ECHO_T}$ac_header_compiler" >&6
4148
4149# Is the header present?
4150echo "$as_me:$LINENO: checking $ac_header presence" >&5
4151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4152cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <$ac_header>
4159_ACEOF
4160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } >/dev/null; then
4168 if test -s conftest.err; then
4169 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 4170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
4171 else
4172 ac_cpp_err=
4173 fi
4174else
4175 ac_cpp_err=yes
4176fi
4177if test -z "$ac_cpp_err"; then
4178 ac_header_preproc=yes
4179else
4180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 ac_header_preproc=no
4184fi
4185rm -f conftest.err conftest.$ac_ext
4186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4187echo "${ECHO_T}$ac_header_preproc" >&6
4188
4189# So? What about this header?
5c7fc7c4
PC
4190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4191 yes:no: )
ad6254c5
AK
4192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
4194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4196 ac_header_preproc=yes
ad6254c5 4197 ;;
5c7fc7c4 4198 no:yes:* )
ad6254c5
AK
4199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
4201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
4207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
4209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
4211 (
4212 cat <<\_ASBOX
5c7fc7c4
PC
4213## ------------------------------------------ ##
4214## Report this to the AC_PACKAGE_NAME lists. ##
4215## ------------------------------------------ ##
ad6254c5
AK
4216_ASBOX
4217 ) |
4218 sed "s/^/$as_me: WARNING: /" >&2
4219 ;;
4220esac
4221echo "$as_me:$LINENO: checking for $ac_header" >&5
4222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4223if eval "test \"\${$as_ac_Header+set}\" = set"; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225else
5c7fc7c4 4226 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 4227fi
ad6254c5
AK
4228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
b896caa1 4230
ad6254c5
AK
4231fi
4232if test `eval echo '${'$as_ac_Header'}'` = yes; then
4233 cat >>confdefs.h <<_ACEOF
4234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4235_ACEOF
4236
4237else
4238 { { echo "$as_me:$LINENO: error: bailing out" >&5
4239echo "$as_me: error: bailing out" >&2;}
4240 { (exit 1); exit 1; }; }
80992638
AK
4241fi
4242
ad6254c5
AK
4243done
4244 ;;
4245esac
d3c8211f 4246
80992638 4247################################################################################
ad6254c5
AK
4248echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4249echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4250if test "${ac_cv_c_const+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
d3c8211f 4252else
ad6254c5 4253 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4254/* confdefs.h. */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h. */
4259
4260int
4261main ()
4262{
4263/* FIXME: Include the comments suggested by Paul. */
4264#ifndef __cplusplus
4265 /* Ultrix mips cc rejects this. */
4266 typedef int charset[2];
4267 const charset x;
4268 /* SunOS 4.1.1 cc rejects this. */
4269 char const *const *ccp;
4270 char **p;
4271 /* NEC SVR4.0.2 mips cc rejects this. */
4272 struct point {int x, y;};
4273 static struct point const zero = {0,0};
4274 /* AIX XL C 1.02.0.0 rejects this.
4275 It does not let you subtract one const X* pointer from another in
4276 an arm of an if-expression whose if-part is not a constant
4277 expression */
4278 const char *g = "string";
4279 ccp = &g + (g ? g-g : 0);
4280 /* HPUX 7.0 cc rejects these. */
4281 ++ccp;
4282 p = (char**) ccp;
4283 ccp = (char const *const *) p;
4284 { /* SCO 3.2v4 cc rejects this. */
4285 char *t;
4286 char const *s = 0 ? (char *) 0 : (char const *) 0;
4287
4288 *t++ = 0;
4289 }
4290 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4291 int x[] = {25, 17};
4292 const int *foo = &x[0];
4293 ++foo;
4294 }
4295 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4296 typedef const int *iptr;
4297 iptr p = 0;
4298 ++p;
4299 }
4300 { /* AIX XL C 1.02.0.0 rejects this saying
4301 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4302 struct s { int j; const int *ap[3]; };
4303 struct s *b; b->j = 5;
4304 }
4305 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4306 const int foo = 10;
4307 }
4308#endif
4309
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext
4315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4316 (eval $ac_compile) 2>conftest.er1
ad6254c5 4317 ac_status=$?
5c7fc7c4
PC
4318 grep -v '^ *+' conftest.er1 >conftest.err
4319 rm -f conftest.er1
4320 cat conftest.err >&5
ad6254c5
AK
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
5c7fc7c4
PC
4323 { ac_try='test -z "$ac_c_werror_flag"
4324 || test ! -s conftest.err'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; } &&
4330 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_const=yes
4337else
4338 echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341ac_cv_c_const=no
4342fi
5c7fc7c4 4343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4344fi
ad6254c5
AK
4345echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4346echo "${ECHO_T}$ac_cv_c_const" >&6
4347if test $ac_cv_c_const = no; then
80992638 4348
ad6254c5
AK
4349cat >>confdefs.h <<\_ACEOF
4350#define const
4351_ACEOF
80992638 4352
d3c8211f 4353fi
d3c8211f 4354
ad6254c5
AK
4355echo "$as_me:$LINENO: checking for inline" >&5
4356echo $ECHO_N "checking for inline... $ECHO_C" >&6
4357if test "${ac_cv_c_inline+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
8ef2b021 4359else
ad6254c5
AK
4360 ac_cv_c_inline=no
4361for ac_kw in inline __inline__ __inline; do
4362 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368#ifndef __cplusplus
4369typedef int foo_t;
4370static $ac_kw foo_t static_foo () {return 0; }
4371$ac_kw foo_t foo () {return 0; }
4372#endif
80992638 4373
ad6254c5
AK
4374_ACEOF
4375rm -f conftest.$ac_objext
4376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4377 (eval $ac_compile) 2>conftest.er1
ad6254c5 4378 ac_status=$?
5c7fc7c4
PC
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
ad6254c5
AK
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
5c7fc7c4
PC
4384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_c_inline=$ac_kw; break
4398else
4399 echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 4401
8ce0cbda 4402fi
5c7fc7c4 4403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4404done
8ce0cbda 4405
8ce0cbda 4406fi
ad6254c5
AK
4407echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4408echo "${ECHO_T}$ac_cv_c_inline" >&6
5c7fc7c4
PC
4409
4410
ad6254c5
AK
4411case $ac_cv_c_inline in
4412 inline | yes) ;;
5c7fc7c4
PC
4413 *)
4414 case $ac_cv_c_inline in
4415 no) ac_val=;;
4416 *) ac_val=$ac_cv_c_inline;;
4417 esac
4418 cat >>confdefs.h <<_ACEOF
4419#ifndef __cplusplus
4420#define inline $ac_val
4421#endif
a266258f 4422_ACEOF
5c7fc7c4 4423 ;;
ad6254c5 4424esac
8ce0cbda 4425
ad6254c5
AK
4426echo "$as_me:$LINENO: checking for off_t" >&5
4427echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4428if test "${ac_cv_type_off_t+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437$ac_includes_default
4438int
4439main ()
4440{
4441if ((off_t *) 0)
4442 return 0;
4443if (sizeof (off_t))
4444 return 0;
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449rm -f conftest.$ac_objext
4450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4451 (eval $ac_compile) 2>conftest.er1
ad6254c5 4452 ac_status=$?
5c7fc7c4
PC
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
ad6254c5
AK
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
5c7fc7c4
PC
4458 { ac_try='test -z "$ac_c_werror_flag"
4459 || test ! -s conftest.err'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 (eval $ac_try) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4471 ac_cv_type_off_t=yes
4472else
4473 echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 4475
ad6254c5 4476ac_cv_type_off_t=no
80992638 4477fi
5c7fc7c4 4478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4479fi
4480echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4481echo "${ECHO_T}$ac_cv_type_off_t" >&6
4482if test $ac_cv_type_off_t = yes; then
4483 :
4484else
80992638 4485
ad6254c5
AK
4486cat >>confdefs.h <<_ACEOF
4487#define off_t long
4488_ACEOF
199e490e 4489
b896caa1
AK
4490fi
4491
ad6254c5
AK
4492echo "$as_me:$LINENO: checking for pid_t" >&5
4493echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4494if test "${ac_cv_type_pid_t+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4498/* confdefs.h. */
4499_ACEOF
4500cat confdefs.h >>conftest.$ac_ext
4501cat >>conftest.$ac_ext <<_ACEOF
4502/* end confdefs.h. */
4503$ac_includes_default
4504int
4505main ()
4506{
4507if ((pid_t *) 0)
4508 return 0;
4509if (sizeof (pid_t))
4510 return 0;
4511 ;
4512 return 0;
4513}
4514_ACEOF
4515rm -f conftest.$ac_objext
4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4517 (eval $ac_compile) 2>conftest.er1
ad6254c5 4518 ac_status=$?
5c7fc7c4
PC
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
ad6254c5
AK
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
5c7fc7c4
PC
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_type_pid_t=yes
4538else
4539 echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
4542ac_cv_type_pid_t=no
4543fi
5c7fc7c4 4544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
80992638 4545fi
ad6254c5
AK
4546echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4547echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4548if test $ac_cv_type_pid_t = yes; then
4549 :
4550else
80992638 4551
ad6254c5
AK
4552cat >>confdefs.h <<_ACEOF
4553#define pid_t int
4554_ACEOF
2dc95e1c 4555
2dc95e1c
AK
4556fi
4557
ad6254c5
AK
4558echo "$as_me:$LINENO: checking for size_t" >&5
4559echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4560if test "${ac_cv_type_size_t+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
8106cdd5 4562else
ad6254c5 4563 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
4569$ac_includes_default
4570int
4571main ()
4572{
4573if ((size_t *) 0)
4574 return 0;
4575if (sizeof (size_t))
4576 return 0;
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581rm -f conftest.$ac_objext
4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4583 (eval $ac_compile) 2>conftest.er1
ad6254c5 4584 ac_status=$?
5c7fc7c4
PC
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
ad6254c5
AK
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
5c7fc7c4
PC
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_type_size_t=yes
4604else
4605 echo "$as_me: failed program was:" >&5
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
4608ac_cv_type_size_t=no
80992638 4609fi
5c7fc7c4 4610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4611fi
4612echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4613echo "${ECHO_T}$ac_cv_type_size_t" >&6
4614if test $ac_cv_type_size_t = yes; then
4615 :
4616else
80992638 4617
ad6254c5
AK
4618cat >>confdefs.h <<_ACEOF
4619#define size_t unsigned
4620_ACEOF
8106cdd5 4621
8106cdd5
AK
4622fi
4623
ad6254c5
AK
4624echo "$as_me:$LINENO: checking for mode_t" >&5
4625echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4626if test "${ac_cv_type_mode_t+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4630/* confdefs.h. */
4631_ACEOF
4632cat confdefs.h >>conftest.$ac_ext
4633cat >>conftest.$ac_ext <<_ACEOF
4634/* end confdefs.h. */
4635$ac_includes_default
4636int
4637main ()
4638{
4639if ((mode_t *) 0)
4640 return 0;
4641if (sizeof (mode_t))
4642 return 0;
4643 ;
4644 return 0;
4645}
4646_ACEOF
4647rm -f conftest.$ac_objext
4648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4649 (eval $ac_compile) 2>conftest.er1
ad6254c5 4650 ac_status=$?
5c7fc7c4
PC
4651 grep -v '^ *+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
ad6254c5
AK
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
5c7fc7c4
PC
4656 { ac_try='test -z "$ac_c_werror_flag"
4657 || test ! -s conftest.err'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 (eval $ac_try) 2>&5
4660 ac_status=$?
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; } &&
4663 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; }; then
4669 ac_cv_type_mode_t=yes
4670else
4671 echo "$as_me: failed program was:" >&5
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
4674ac_cv_type_mode_t=no
80992638 4675fi
5c7fc7c4 4676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4677fi
4678echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4679echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4680if test $ac_cv_type_mode_t = yes; then
4681 :
4682else
80992638 4683
ad6254c5
AK
4684cat >>confdefs.h <<_ACEOF
4685#define mode_t int
4686_ACEOF
4687
4688fi
4689
4690
4691echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4692echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4693if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4697/* confdefs.h. */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h. */
4702$ac_includes_default
4703int
4704main ()
4705{
4706static struct stat ac_aggr;
4707if (ac_aggr.st_rdev)
4708return 0;
4709 ;
4710 return 0;
4711}
4712_ACEOF
4713rm -f conftest.$ac_objext
4714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4715 (eval $ac_compile) 2>conftest.er1
ad6254c5 4716 ac_status=$?
5c7fc7c4
PC
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
ad6254c5
AK
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } &&
5c7fc7c4
PC
4722 { ac_try='test -z "$ac_c_werror_flag"
4723 || test ! -s conftest.err'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; } &&
4729 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_member_struct_stat_st_rdev=yes
4736else
4737 echo "$as_me: failed program was:" >&5
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
4740cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
4746$ac_includes_default
4747int
4748main ()
4749{
4750static struct stat ac_aggr;
4751if (sizeof ac_aggr.st_rdev)
4752return 0;
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext
4758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4759 (eval $ac_compile) 2>conftest.er1
ad6254c5 4760 ac_status=$?
5c7fc7c4
PC
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
ad6254c5
AK
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
5c7fc7c4
PC
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_member_struct_stat_st_rdev=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784ac_cv_member_struct_stat_st_rdev=no
4785fi
5c7fc7c4 4786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 4787fi
5c7fc7c4 4788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4789fi
4790echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4791echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4792if test $ac_cv_member_struct_stat_st_rdev = yes; then
4793
4794cat >>confdefs.h <<_ACEOF
4795#define HAVE_STRUCT_STAT_ST_RDEV 1
4796_ACEOF
4797
4798
4799cat >>confdefs.h <<\_ACEOF
4800#define HAVE_ST_RDEV 1
4801_ACEOF
4802
4803fi
4804
4805
4806echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4807echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4808if test "${ac_cv_struct_tm+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817#include <sys/types.h>
4818#include <time.h>
4819
4820int
4821main ()
4822{
4823struct tm *tp; tp->tm_sec;
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 4830 (eval $ac_compile) 2>conftest.er1
ad6254c5 4831 ac_status=$?
5c7fc7c4
PC
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
ad6254c5
AK
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
5c7fc7c4
PC
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_struct_tm=time.h
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855ac_cv_struct_tm=sys/time.h
4856fi
5c7fc7c4 4857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
4858fi
4859echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4860echo "${ECHO_T}$ac_cv_struct_tm" >&6
4861if test $ac_cv_struct_tm = sys/time.h; then
4862
4863cat >>confdefs.h <<\_ACEOF
4864#define TM_IN_SYS_TIME 1
4865_ACEOF
4866
4867fi
809fae91 4868
795ca3e5 4869
80992638 4870################################################################################
ad6254c5
AK
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885for ac_func in gethostname getpagesize memset munmap setlocale strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul
4886do
4887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4888echo "$as_me:$LINENO: checking for $ac_func" >&5
4889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4890if eval "test \"\${$as_ac_var+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4892else
ad6254c5 4893 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
5c7fc7c4
PC
4899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4901#define $ac_func innocuous_$ac_func
4902
ad6254c5
AK
4903/* System header to define __stub macros and hopefully few prototypes,
4904 which can conflict with char $ac_func (); below.
4905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 4907
ad6254c5
AK
4908#ifdef __STDC__
4909# include <limits.h>
4910#else
4911# include <assert.h>
4912#endif
5c7fc7c4
PC
4913
4914#undef $ac_func
4915
ad6254c5
AK
4916/* Override any gcc2 internal prototype to avoid an error. */
4917#ifdef __cplusplus
4918extern "C"
4919{
4920#endif
4921/* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4923char $ac_func ();
4924/* The GNU C library defines this for functions which it implements
4925 to always fail with ENOSYS. Some functions are actually named
4926 something starting with __ and the normal name is an alias. */
4927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4928choke me
4929#else
4930char (*f) () = $ac_func;
4931#endif
4932#ifdef __cplusplus
4933}
4934#endif
4935
4936int
4937main ()
4938{
4939return f != $ac_func;
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 4946 (eval $ac_link) 2>conftest.er1
ad6254c5 4947 ac_status=$?
5c7fc7c4
PC
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
ad6254c5
AK
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
5c7fc7c4
PC
4953 { ac_try='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 eval "$as_ac_var=yes"
795ca3e5 4967else
ad6254c5
AK
4968 echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971eval "$as_ac_var=no"
795ca3e5 4972fi
5c7fc7c4
PC
4973rm -f conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
4975fi
4976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4978if test `eval echo '${'$as_ac_var'}'` = yes; then
4979 cat >>confdefs.h <<_ACEOF
4980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4981_ACEOF
4982
4983else
4984 { { echo "$as_me:$LINENO: error: bailing out" >&5
4985echo "$as_me: error: bailing out" >&2;}
4986 { (exit 1); exit 1; }; }
4987fi
4988done
795ca3e5 4989
ad6254c5
AK
4990# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4991# for constant arguments. Useless!
4992echo "$as_me:$LINENO: checking for working alloca.h" >&5
4993echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4994if test "${ac_cv_working_alloca_h+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003#include <alloca.h>
5004int
5005main ()
5006{
5007char *p = (char *) alloca (2 * sizeof (int));
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext conftest$ac_exeext
5013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5014 (eval $ac_link) 2>conftest.er1
ad6254c5 5015 ac_status=$?
5c7fc7c4
PC
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
ad6254c5
AK
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } &&
5c7fc7c4
PC
5021 { ac_try='test -z "$ac_c_werror_flag"
5022 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_cv_working_alloca_h=yes
5035else
5036 echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5038
ad6254c5
AK
5039ac_cv_working_alloca_h=no
5040fi
5c7fc7c4
PC
5041rm -f conftest.err conftest.$ac_objext \
5042 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5043fi
5044echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5045echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5046if test $ac_cv_working_alloca_h = yes; then
5047
5048cat >>confdefs.h <<\_ACEOF
5049#define HAVE_ALLOCA_H 1
5050_ACEOF
5051
5052fi
5053
5054echo "$as_me:$LINENO: checking for alloca" >&5
5055echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5056if test "${ac_cv_func_alloca_works+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065#ifdef __GNUC__
5066# define alloca __builtin_alloca
5067#else
5068# ifdef _MSC_VER
5069# include <malloc.h>
5070# define alloca _alloca
5071# else
5072# if HAVE_ALLOCA_H
5073# include <alloca.h>
5074# else
5075# ifdef _AIX
5076 #pragma alloca
5077# else
5078# ifndef alloca /* predefined by HP cc +Olibcalls */
5079char *alloca ();
5080# endif
5081# endif
5082# endif
5083# endif
5084#endif
5085
5086int
5087main ()
5088{
5089char *p = (char *) alloca (1);
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext conftest$ac_exeext
5095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5096 (eval $ac_link) 2>conftest.er1
ad6254c5 5097 ac_status=$?
5c7fc7c4
PC
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
ad6254c5
AK
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5c7fc7c4
PC
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_cv_func_alloca_works=yes
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121ac_cv_func_alloca_works=no
5122fi
5c7fc7c4
PC
5123rm -f conftest.err conftest.$ac_objext \
5124 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5125fi
5126echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5127echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5128
5129if test $ac_cv_func_alloca_works = yes; then
5130
5131cat >>confdefs.h <<\_ACEOF
5132#define HAVE_ALLOCA 1
5133_ACEOF
5134
5135else
5136 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5137# that cause trouble. Some versions do not even contain alloca or
5138# contain a buggy version. If you still want to use their alloca,
5139# use ar to extract alloca.o from them instead of compiling alloca.c.
5140
5141ALLOCA=alloca.$ac_objext
5142
5143cat >>confdefs.h <<\_ACEOF
5144#define C_ALLOCA 1
5145_ACEOF
5146
5147
5148echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5149echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5150if test "${ac_cv_os_cray+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5154/* confdefs.h. */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h. */
5159#if defined(CRAY) && ! defined(CRAY2)
5160webecray
5161#else
5162wenotbecray
5163#endif
5164
5165_ACEOF
795ca3e5 5166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
5167 $EGREP "webecray" >/dev/null 2>&1; then
5168 ac_cv_os_cray=yes
5169else
5170 ac_cv_os_cray=no
795ca3e5
AK
5171fi
5172rm -f conftest*
5173
795ca3e5 5174fi
ad6254c5
AK
5175echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5176echo "${ECHO_T}$ac_cv_os_cray" >&6
5177if test $ac_cv_os_cray = yes; then
5178 for ac_func in _getb67 GETB67 getb67; do
5179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5180echo "$as_me:$LINENO: checking for $ac_func" >&5
5181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5182if eval "test \"\${$as_ac_var+set}\" = set"; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
5c7fc7c4
PC
5191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5193#define $ac_func innocuous_$ac_func
5194
ad6254c5
AK
5195/* System header to define __stub macros and hopefully few prototypes,
5196 which can conflict with char $ac_func (); below.
5197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5198 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 5199
ad6254c5
AK
5200#ifdef __STDC__
5201# include <limits.h>
5202#else
5203# include <assert.h>
5204#endif
5c7fc7c4
PC
5205
5206#undef $ac_func
5207
ad6254c5
AK
5208/* Override any gcc2 internal prototype to avoid an error. */
5209#ifdef __cplusplus
5210extern "C"
5211{
5212#endif
5213/* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5215char $ac_func ();
5216/* The GNU C library defines this for functions which it implements
5217 to always fail with ENOSYS. Some functions are actually named
5218 something starting with __ and the normal name is an alias. */
5219#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220choke me
5221#else
5222char (*f) () = $ac_func;
5223#endif
5224#ifdef __cplusplus
5225}
5226#endif
5227
5228int
5229main ()
5230{
5231return f != $ac_func;
5232 ;
5233 return 0;
5234}
5235_ACEOF
5236rm -f conftest.$ac_objext conftest$ac_exeext
5237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5238 (eval $ac_link) 2>conftest.er1
ad6254c5 5239 ac_status=$?
5c7fc7c4
PC
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
ad6254c5
AK
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } &&
5c7fc7c4
PC
5245 { ac_try='test -z "$ac_c_werror_flag"
5246 || test ! -s conftest.err'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 (eval $ac_try) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; } &&
5252 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 eval "$as_ac_var=yes"
5259else
5260 echo "$as_me: failed program was:" >&5
5261sed 's/^/| /' conftest.$ac_ext >&5
5262
5263eval "$as_ac_var=no"
5264fi
5c7fc7c4
PC
5265rm -f conftest.err conftest.$ac_objext \
5266 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5267fi
5268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5270if test `eval echo '${'$as_ac_var'}'` = yes; then
80992638 5271
ad6254c5
AK
5272cat >>confdefs.h <<_ACEOF
5273#define CRAY_STACKSEG_END $ac_func
5274_ACEOF
5275
5276 break
5277fi
5278
5279 done
5280fi
5281
5282echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5283echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5284if test "${ac_cv_c_stack_direction+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287 if test "$cross_compiling" = yes; then
5288 ac_cv_c_stack_direction=0
5289else
5290 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5291/* confdefs.h. */
5292_ACEOF
5293cat confdefs.h >>conftest.$ac_ext
5294cat >>conftest.$ac_ext <<_ACEOF
5295/* end confdefs.h. */
5296int
5297find_stack_direction ()
5298{
5299 static char *addr = 0;
5300 auto char dummy;
5301 if (addr == 0)
5302 {
5303 addr = &dummy;
5304 return find_stack_direction ();
5305 }
5306 else
5307 return (&dummy > addr) ? 1 : -1;
5308}
5309
5310int
5311main ()
5312{
5313 exit (find_stack_direction () < 0);
5314}
5315_ACEOF
5316rm -f conftest$ac_exeext
5317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5318 (eval $ac_link) 2>&5
5319 ac_status=$?
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 (eval $ac_try) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_cv_c_stack_direction=1
5328else
5329 echo "$as_me: program exited with status $ac_status" >&5
5330echo "$as_me: failed program was:" >&5
5331sed 's/^/| /' conftest.$ac_ext >&5
5332
5333( exit $ac_status )
5334ac_cv_c_stack_direction=-1
5335fi
5c7fc7c4 5336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5337fi
5338fi
5339echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5340echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5341
5342cat >>confdefs.h <<_ACEOF
5343#define STACK_DIRECTION $ac_cv_c_stack_direction
5344_ACEOF
5345
5346
5347fi
5348
5349echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5350echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5351if test "${ac_cv_func_closedir_void+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354 if test "$cross_compiling" = yes; then
5355 ac_cv_func_closedir_void=yes
5356else
5357 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5358/* confdefs.h. */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
5362/* end confdefs.h. */
5363$ac_includes_default
5364#include <$ac_header_dirent>
5365#ifndef __cplusplus
5366int closedir ();
5367#endif
5368
5369int
5370main ()
5371{
5372exit (closedir (opendir (".")) != 0);
5373 ;
5374 return 0;
5375}
5376_ACEOF
5377rm -f conftest$ac_exeext
5378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5379 (eval $ac_link) 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_func_closedir_void=no
5389else
5390 echo "$as_me: program exited with status $ac_status" >&5
5391echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394( exit $ac_status )
5395ac_cv_func_closedir_void=yes
5396fi
5c7fc7c4 5397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5398fi
5399fi
5400echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5401echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5402if test $ac_cv_func_closedir_void = yes; then
5403
5404cat >>confdefs.h <<\_ACEOF
5405#define CLOSEDIR_VOID 1
5406_ACEOF
5407
5408fi
5409
5410
5411
5412for ac_header in unistd.h vfork.h
5413do
5414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo "$as_me:$LINENO: checking for $ac_header" >&5
5417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5418if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420fi
5421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5423else
5424 # Is the header compilable?
5425echo "$as_me:$LINENO: checking $ac_header usability" >&5
5426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5427cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433$ac_includes_default
5434#include <$ac_header>
5435_ACEOF
5436rm -f conftest.$ac_objext
5437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 5438 (eval $ac_compile) 2>conftest.er1
ad6254c5 5439 ac_status=$?
5c7fc7c4
PC
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
ad6254c5
AK
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5c7fc7c4
PC
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_header_compiler=yes
5459else
5460 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463ac_header_compiler=no
5464fi
5c7fc7c4 5465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5467echo "${ECHO_T}$ac_header_compiler" >&6
5468
5469# Is the header present?
5470echo "$as_me:$LINENO: checking $ac_header presence" >&5
5471echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5472cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
5478#include <$ac_header>
5479_ACEOF
5480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } >/dev/null; then
5488 if test -s conftest.err; then
5489 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 5490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
5491 else
5492 ac_cpp_err=
795ca3e5 5493 fi
ad6254c5
AK
5494else
5495 ac_cpp_err=yes
5496fi
5497if test -z "$ac_cpp_err"; then
5498 ac_header_preproc=yes
5499else
5500 echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_header_preproc=no
5504fi
5505rm -f conftest.err conftest.$ac_ext
5506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5507echo "${ECHO_T}$ac_header_preproc" >&6
5508
5509# So? What about this header?
5c7fc7c4
PC
5510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5511 yes:no: )
ad6254c5
AK
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5513echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5515echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5516 ac_header_preproc=yes
ad6254c5 5517 ;;
5c7fc7c4 5518 no:yes:* )
ad6254c5
AK
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5520echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5522echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5524echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5526echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5530echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
5531 (
5532 cat <<\_ASBOX
5c7fc7c4
PC
5533## ------------------------------------------ ##
5534## Report this to the AC_PACKAGE_NAME lists. ##
5535## ------------------------------------------ ##
ad6254c5
AK
5536_ASBOX
5537 ) |
5538 sed "s/^/$as_me: WARNING: /" >&2
5539 ;;
5540esac
5541echo "$as_me:$LINENO: checking for $ac_header" >&5
5542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5543if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5c7fc7c4 5546 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
5547fi
5548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5550
795ca3e5 5551fi
ad6254c5
AK
5552if test `eval echo '${'$as_ac_Header'}'` = yes; then
5553 cat >>confdefs.h <<_ACEOF
5554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555_ACEOF
5556
5557fi
5558
5559done
795ca3e5 5560
ad6254c5
AK
5561
5562
5563for ac_func in fork vfork
5564do
5565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5566echo "$as_me:$LINENO: checking for $ac_func" >&5
5567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5568if eval "test \"\${$as_ac_var+set}\" = set"; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 5570else
ad6254c5 5571 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
5576/* end confdefs.h. */
5c7fc7c4
PC
5577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5579#define $ac_func innocuous_$ac_func
5580
ad6254c5
AK
5581/* System header to define __stub macros and hopefully few prototypes,
5582 which can conflict with char $ac_func (); below.
5583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5584 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 5585
ad6254c5
AK
5586#ifdef __STDC__
5587# include <limits.h>
5588#else
5589# include <assert.h>
795ca3e5 5590#endif
5c7fc7c4
PC
5591
5592#undef $ac_func
5593
ad6254c5 5594/* Override any gcc2 internal prototype to avoid an error. */
795ca3e5 5595#ifdef __cplusplus
ad6254c5
AK
5596extern "C"
5597{
5598#endif
5599/* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5601char $ac_func ();
5602/* The GNU C library defines this for functions which it implements
5603 to always fail with ENOSYS. Some functions are actually named
5604 something starting with __ and the normal name is an alias. */
5605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5606choke me
795ca3e5 5607#else
ad6254c5
AK
5608char (*f) () = $ac_func;
5609#endif
5610#ifdef __cplusplus
5611}
795ca3e5
AK
5612#endif
5613
ad6254c5
AK
5614int
5615main ()
5616{
5617return f != $ac_func;
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext conftest$ac_exeext
5623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 5624 (eval $ac_link) 2>conftest.er1
ad6254c5 5625 ac_status=$?
5c7fc7c4
PC
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
ad6254c5
AK
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5c7fc7c4
PC
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 eval "$as_ac_var=yes"
795ca3e5 5645else
ad6254c5
AK
5646 echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649eval "$as_ac_var=no"
795ca3e5 5650fi
5c7fc7c4
PC
5651rm -f conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
5653fi
5654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5656if test `eval echo '${'$as_ac_var'}'` = yes; then
5657 cat >>confdefs.h <<_ACEOF
5658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5659_ACEOF
5660
5661fi
5662done
5663
5664if test "x$ac_cv_func_fork" = xyes; then
5665 echo "$as_me:$LINENO: checking for working fork" >&5
5666echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5667if test "${ac_cv_func_fork_works+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 if test "$cross_compiling" = yes; then
5671 ac_cv_func_fork_works=cross
5672else
5673 cat >conftest.$ac_ext <<_ACEOF
5674/* By Ruediger Kuhlmann. */
5675 #include <sys/types.h>
5676 #if HAVE_UNISTD_H
5677 # include <unistd.h>
5678 #endif
5679 /* Some systems only have a dummy stub for fork() */
5680 int main ()
5681 {
5c7fc7c4
PC
5682 if (fork() < 0)
5683 exit (1);
5684 exit (0);
ad6254c5
AK
5685 }
5686_ACEOF
5687rm -f conftest$ac_exeext
5688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_func_fork_works=yes
5699else
5700 echo "$as_me: program exited with status $ac_status" >&5
5701echo "$as_me: failed program was:" >&5
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
5704( exit $ac_status )
5705ac_cv_func_fork_works=no
5706fi
5c7fc7c4 5707rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5708fi
5709fi
5710echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5711echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5712
5713else
5714 ac_cv_func_fork_works=$ac_cv_func_fork
5715fi
5716if test "x$ac_cv_func_fork_works" = xcross; then
5717 case $host in
5718 *-*-amigaos* | *-*-msdosdjgpp*)
5719 # Override, as these systems have only a dummy fork() stub
5720 ac_cv_func_fork_works=no
5721 ;;
5722 *)
5723 ac_cv_func_fork_works=yes
5724 ;;
5725 esac
5726 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5727echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5728fi
5729ac_cv_func_vfork_works=$ac_cv_func_vfork
5730if test "x$ac_cv_func_vfork" = xyes; then
5731 echo "$as_me:$LINENO: checking for working vfork" >&5
5732echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5733if test "${ac_cv_func_vfork_works+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 if test "$cross_compiling" = yes; then
5737 ac_cv_func_vfork_works=cross
5738else
5739 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745/* Thanks to Paul Eggert for this test. */
5746#include <stdio.h>
5747#include <stdlib.h>
5748#include <sys/types.h>
5749#include <sys/stat.h>
5750#include <sys/wait.h>
5751#if HAVE_UNISTD_H
5752# include <unistd.h>
5753#endif
5754#if HAVE_VFORK_H
5755# include <vfork.h>
5756#endif
5757/* On some sparc systems, changes by the child to local and incoming
5758 argument registers are propagated back to the parent. The compiler
5759 is told about this with #include <vfork.h>, but some compilers
5760 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5761 static variable whose address is put into a register that is
5762 clobbered by the vfork. */
5763static void
5764#ifdef __cplusplus
5765sparc_address_test (int arg)
5766# else
5767sparc_address_test (arg) int arg;
5768#endif
5769{
5770 static pid_t child;
5771 if (!child) {
5772 child = vfork ();
5773 if (child < 0) {
5774 perror ("vfork");
5775 _exit(2);
5776 }
5777 if (!child) {
5778 arg = getpid();
5779 write(-1, "", 0);
5780 _exit (arg);
5781 }
5782 }
5783}
5784
5785int
5786main ()
5787{
5788 pid_t parent = getpid ();
5789 pid_t child;
5790
5791 sparc_address_test (0);
5792
5793 child = vfork ();
5794
5795 if (child == 0) {
5796 /* Here is another test for sparc vfork register problems. This
5797 test uses lots of local variables, at least as many local
5798 variables as main has allocated so far including compiler
5799 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5800 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5801 reuse the register of parent for one of the local variables,
5802 since it will think that parent can't possibly be used any more
5803 in this routine. Assigning to the local variable will thus
5804 munge parent in the parent process. */
5805 pid_t
5806 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5807 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5808 /* Convince the compiler that p..p7 are live; otherwise, it might
5809 use the same hardware register for all 8 local variables. */
5810 if (p != p1 || p != p2 || p != p3 || p != p4
5811 || p != p5 || p != p6 || p != p7)
5812 _exit(1);
5813
5814 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5815 from child file descriptors. If the child closes a descriptor
5816 before it execs or exits, this munges the parent's descriptor
5817 as well. Test for this by closing stdout in the child. */
5818 _exit(close(fileno(stdout)) != 0);
5819 } else {
5820 int status;
5821 struct stat st;
5822
5823 while (wait(&status) != child)
5824 ;
5825 exit(
5826 /* Was there some problem with vforking? */
5827 child < 0
5828
5829 /* Did the child fail? (This shouldn't happen.) */
5830 || status
5831
5832 /* Did the vfork/compiler bug occur? */
5833 || parent != getpid()
5834
5835 /* Did the file descriptor bug occur? */
5836 || fstat(fileno(stdout), &st) != 0
5837 );
5838 }
5839}
5840_ACEOF
5841rm -f conftest$ac_exeext
5842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843 (eval $ac_link) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5848 (eval $ac_try) 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5852 ac_cv_func_vfork_works=yes
5853else
5854 echo "$as_me: program exited with status $ac_status" >&5
5855echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858( exit $ac_status )
5859ac_cv_func_vfork_works=no
5860fi
5c7fc7c4 5861rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5862fi
5863fi
5864echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5865echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5866
5867fi;
5868if test "x$ac_cv_func_fork_works" = xcross; then
5c7fc7c4 5869 ac_cv_func_vfork_works=$ac_cv_func_vfork
ad6254c5
AK
5870 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5871echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5872fi
5873
5874if test "x$ac_cv_func_vfork_works" = xyes; then
5875
5876cat >>confdefs.h <<\_ACEOF
5877#define HAVE_WORKING_VFORK 1
5878_ACEOF
5879
5880else
5881
5882cat >>confdefs.h <<\_ACEOF
5883#define vfork fork
5884_ACEOF
5885
5886fi
5887if test "x$ac_cv_func_fork_works" = xyes; then
5888
5889cat >>confdefs.h <<\_ACEOF
5890#define HAVE_WORKING_FORK 1
5891_ACEOF
5892
5893fi
5894
5895echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5896echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5897if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900 rm -f conftest.sym conftest.file
5901echo >conftest.file
5902if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5903 if test "$cross_compiling" = yes; then
5904 ac_cv_func_lstat_dereferences_slashed_symlink=no
5905else
5906 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912$ac_includes_default
5913int
5914main ()
5915{
5916struct stat sbuf;
5917 /* Linux will dereference the symlink and fail.
5c7fc7c4
PC
5918 That is better in the sense that it means we will not
5919 have to compile and use the lstat wrapper. */
ad6254c5
AK
5920 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925rm -f conftest$ac_exeext
5926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5927 (eval $ac_link) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5937else
5938 echo "$as_me: program exited with status $ac_status" >&5
5939echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942( exit $ac_status )
5943ac_cv_func_lstat_dereferences_slashed_symlink=no
5944fi
5c7fc7c4 5945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
5946fi
5947else
5948 # If the `ln -s' command failed, then we probably don't even
5949 # have an lstat function.
5950 ac_cv_func_lstat_dereferences_slashed_symlink=no
5951fi
5952rm -f conftest.sym conftest.file
5953
5954fi
5955echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5956echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5957
5958test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5959
5960cat >>confdefs.h <<_ACEOF
5961#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5962_ACEOF
5963
5964
5965if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5c7fc7c4
PC
5966 case $LIBOBJS in
5967 "lstat.$ac_objext" | \
5968 *" lstat.$ac_objext" | \
5969 "lstat.$ac_objext "* | \
5970 *" lstat.$ac_objext "* ) ;;
5971 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5972esac
5973
ad6254c5
AK
5974fi
5975
5976echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
5977echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
5978if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981 if test "$cross_compiling" = yes; then
5982 ac_cv_func_lstat_empty_string_bug=yes
5983else
5984 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
5990$ac_includes_default
5991int
5992main ()
5993{
5994struct stat sbuf;
5995 exit (lstat ("", &sbuf) ? 1 : 0);
5996 ;
5997 return 0;
5998}
5999_ACEOF
6000rm -f conftest$ac_exeext
6001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 ac_cv_func_lstat_empty_string_bug=yes
6012else
6013 echo "$as_me: program exited with status $ac_status" >&5
6014echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017( exit $ac_status )
6018ac_cv_func_lstat_empty_string_bug=no
6019fi
5c7fc7c4 6020rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6021fi
6022fi
6023echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6024echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
6025if test $ac_cv_func_lstat_empty_string_bug = yes; then
5c7fc7c4
PC
6026 case $LIBOBJS in
6027 "lstat.$ac_objext" | \
6028 *" lstat.$ac_objext" | \
6029 "lstat.$ac_objext "* | \
6030 *" lstat.$ac_objext "* ) ;;
6031 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
6032esac
6033
ad6254c5
AK
6034
6035cat >>confdefs.h <<_ACEOF
6036#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6037_ACEOF
6038
6039fi
6040
6041
6042for ac_header in stdlib.h
6043do
6044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6045if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046 echo "$as_me:$LINENO: checking for $ac_header" >&5
6047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6048if eval "test \"\${$as_ac_Header+set}\" = set"; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050fi
6051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053else
6054 # Is the header compilable?
6055echo "$as_me:$LINENO: checking $ac_header usability" >&5
6056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6057cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
6063$ac_includes_default
6064#include <$ac_header>
6065_ACEOF
6066rm -f conftest.$ac_objext
6067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 6068 (eval $ac_compile) 2>conftest.er1
ad6254c5 6069 ac_status=$?
5c7fc7c4
PC
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
ad6254c5
AK
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); } &&
5c7fc7c4
PC
6075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 ac_header_compiler=yes
6089else
6090 echo "$as_me: failed program was:" >&5
6091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093ac_header_compiler=no
6094fi
5c7fc7c4 6095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6097echo "${ECHO_T}$ac_header_compiler" >&6
6098
6099# Is the header present?
6100echo "$as_me:$LINENO: checking $ac_header presence" >&5
6101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6102cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108#include <$ac_header>
6109_ACEOF
6110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112 ac_status=$?
6113 grep -v '^ *+' conftest.er1 >conftest.err
6114 rm -f conftest.er1
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev/null; then
6118 if test -s conftest.err; then
6119 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 6120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6121 else
6122 ac_cpp_err=
6123 fi
6124else
6125 ac_cpp_err=yes
6126fi
6127if test -z "$ac_cpp_err"; then
6128 ac_header_preproc=yes
6129else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_header_preproc=no
6134fi
6135rm -f conftest.err conftest.$ac_ext
6136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6137echo "${ECHO_T}$ac_header_preproc" >&6
6138
6139# So? What about this header?
5c7fc7c4
PC
6140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6141 yes:no: )
ad6254c5
AK
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6146 ac_header_preproc=yes
ad6254c5 6147 ;;
5c7fc7c4 6148 no:yes:* )
ad6254c5
AK
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6161 (
6162 cat <<\_ASBOX
5c7fc7c4
PC
6163## ------------------------------------------ ##
6164## Report this to the AC_PACKAGE_NAME lists. ##
6165## ------------------------------------------ ##
ad6254c5
AK
6166_ASBOX
6167 ) |
6168 sed "s/^/$as_me: WARNING: /" >&2
6169 ;;
6170esac
6171echo "$as_me:$LINENO: checking for $ac_header" >&5
6172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
5c7fc7c4 6176 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6177fi
6178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6180
6181fi
6182if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185_ACEOF
6186
6187fi
6188
6189done
6190
6191echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6192echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
6193if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 if test "$cross_compiling" = yes; then
6197 ac_cv_func_malloc_0_nonnull=no
6198else
6199 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6200/* confdefs.h. */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h. */
6205#if STDC_HEADERS || HAVE_STDLIB_H
6206# include <stdlib.h>
6207#else
6208char *malloc ();
6209#endif
6210
6211int
6212main ()
6213{
6214exit (malloc (0) ? 0 : 1);
6215 ;
6216 return 0;
6217}
6218_ACEOF
6219rm -f conftest$ac_exeext
6220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6221 (eval $ac_link) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
6230 ac_cv_func_malloc_0_nonnull=yes
6231else
6232 echo "$as_me: program exited with status $ac_status" >&5
6233echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236( exit $ac_status )
6237ac_cv_func_malloc_0_nonnull=no
6238fi
5c7fc7c4 6239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6240fi
6241fi
6242echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6243echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6244if test $ac_cv_func_malloc_0_nonnull = yes; then
6245
6246cat >>confdefs.h <<\_ACEOF
6247#define HAVE_MALLOC 1
6248_ACEOF
6249
6250else
6251 cat >>confdefs.h <<\_ACEOF
6252#define HAVE_MALLOC 0
6253_ACEOF
6254
5c7fc7c4
PC
6255 case $LIBOBJS in
6256 "malloc.$ac_objext" | \
6257 *" malloc.$ac_objext" | \
6258 "malloc.$ac_objext "* | \
6259 *" malloc.$ac_objext "* ) ;;
6260 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6261esac
6262
ad6254c5
AK
6263
6264cat >>confdefs.h <<\_ACEOF
6265#define malloc rpl_malloc
6266_ACEOF
6267
6268fi
6269
6270
6271
6272echo "$as_me:$LINENO: checking for working memcmp" >&5
6273echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6274if test "${ac_cv_func_memcmp_working+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277 if test "$cross_compiling" = yes; then
6278 ac_cv_func_memcmp_working=no
6279else
6280 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6281/* confdefs.h. */
6282_ACEOF
6283cat confdefs.h >>conftest.$ac_ext
6284cat >>conftest.$ac_ext <<_ACEOF
6285/* end confdefs.h. */
5c7fc7c4 6286$ac_includes_default
ad6254c5
AK
6287int
6288main ()
6289{
6290
6291 /* Some versions of memcmp are not 8-bit clean. */
6292 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6293 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6294 exit (1);
6295
6296 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6297 or more and with at least one buffer not starting on a 4-byte boundary.
6298 William Lewis provided this test program. */
6299 {
6300 char foo[21];
6301 char bar[21];
6302 int i;
6303 for (i = 0; i < 4; i++)
6304 {
5c7fc7c4
PC
6305 char *a = foo + i;
6306 char *b = bar + i;
6307 strcpy (a, "--------01111111");
6308 strcpy (b, "--------10000000");
6309 if (memcmp (a, b, 16) >= 0)
6310 exit (1);
ad6254c5
AK
6311 }
6312 exit (0);
6313 }
6314
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319rm -f conftest$ac_exeext
6320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_func_memcmp_working=yes
6331else
6332 echo "$as_me: program exited with status $ac_status" >&5
6333echo "$as_me: failed program was:" >&5
6334sed 's/^/| /' conftest.$ac_ext >&5
6335
6336( exit $ac_status )
6337ac_cv_func_memcmp_working=no
6338fi
5c7fc7c4 6339rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6340fi
6341fi
6342echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
6343echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5c7fc7c4
PC
6344test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
6345 "memcmp.$ac_objext" | \
6346 *" memcmp.$ac_objext" | \
6347 "memcmp.$ac_objext "* | \
6348 *" memcmp.$ac_objext "* ) ;;
6349 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
6350esac
6351
ad6254c5
AK
6352
6353
6354
6355for ac_header in stdlib.h unistd.h
6356do
6357as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6358if eval "test \"\${$as_ac_Header+set}\" = set"; then
6359 echo "$as_me:$LINENO: checking for $ac_header" >&5
6360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6361if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363fi
6364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6366else
6367 # Is the header compilable?
6368echo "$as_me:$LINENO: checking $ac_header usability" >&5
6369echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6370cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
6376$ac_includes_default
6377#include <$ac_header>
6378_ACEOF
6379rm -f conftest.$ac_objext
6380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 6381 (eval $ac_compile) 2>conftest.er1
ad6254c5 6382 ac_status=$?
5c7fc7c4
PC
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
ad6254c5
AK
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
5c7fc7c4
PC
6388 { ac_try='test -z "$ac_c_werror_flag"
6389 || test ! -s conftest.err'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
6396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 (eval $ac_try) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; }; then
6401 ac_header_compiler=yes
6402else
6403 echo "$as_me: failed program was:" >&5
6404sed 's/^/| /' conftest.$ac_ext >&5
6405
6406ac_header_compiler=no
6407fi
5c7fc7c4 6408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6410echo "${ECHO_T}$ac_header_compiler" >&6
6411
6412# Is the header present?
6413echo "$as_me:$LINENO: checking $ac_header presence" >&5
6414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6415cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6416/* confdefs.h. */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h. */
6421#include <$ac_header>
6422_ACEOF
6423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } >/dev/null; then
6431 if test -s conftest.err; then
6432 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 6433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
6434 else
6435 ac_cpp_err=
6436 fi
6437else
6438 ac_cpp_err=yes
6439fi
6440if test -z "$ac_cpp_err"; then
6441 ac_header_preproc=yes
6442else
6443 echo "$as_me: failed program was:" >&5
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 ac_header_preproc=no
6447fi
6448rm -f conftest.err conftest.$ac_ext
6449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450echo "${ECHO_T}$ac_header_preproc" >&6
6451
6452# So? What about this header?
5c7fc7c4
PC
6453case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6454 yes:no: )
ad6254c5
AK
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6458echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6459 ac_header_preproc=yes
ad6254c5 6460 ;;
5c7fc7c4 6461 no:yes:* )
ad6254c5
AK
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6467echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6469echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6471echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6473echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
6474 (
6475 cat <<\_ASBOX
5c7fc7c4
PC
6476## ------------------------------------------ ##
6477## Report this to the AC_PACKAGE_NAME lists. ##
6478## ------------------------------------------ ##
ad6254c5
AK
6479_ASBOX
6480 ) |
6481 sed "s/^/$as_me: WARNING: /" >&2
6482 ;;
6483esac
6484echo "$as_me:$LINENO: checking for $ac_header" >&5
6485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6486if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
5c7fc7c4 6489 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
6490fi
6491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6493
6494fi
6495if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498_ACEOF
6499
6500fi
6501
6502done
6503
6504
6505for ac_func in getpagesize
6506do
6507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6508echo "$as_me:$LINENO: checking for $ac_func" >&5
6509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6510if eval "test \"\${$as_ac_var+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6514/* confdefs.h. */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h. */
5c7fc7c4
PC
6519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6521#define $ac_func innocuous_$ac_func
6522
ad6254c5
AK
6523/* System header to define __stub macros and hopefully few prototypes,
6524 which can conflict with char $ac_func (); below.
6525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6526 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 6527
ad6254c5
AK
6528#ifdef __STDC__
6529# include <limits.h>
6530#else
6531# include <assert.h>
6532#endif
5c7fc7c4
PC
6533
6534#undef $ac_func
6535
ad6254c5
AK
6536/* Override any gcc2 internal prototype to avoid an error. */
6537#ifdef __cplusplus
6538extern "C"
6539{
6540#endif
6541/* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6543char $ac_func ();
6544/* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6548choke me
6549#else
6550char (*f) () = $ac_func;
6551#endif
6552#ifdef __cplusplus
6553}
6554#endif
6555
6556int
6557main ()
6558{
6559return f != $ac_func;
6560 ;
6561 return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext conftest$ac_exeext
6565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 6566 (eval $ac_link) 2>conftest.er1
ad6254c5 6567 ac_status=$?
5c7fc7c4
PC
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
ad6254c5
AK
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
5c7fc7c4
PC
6573 { ac_try='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 eval "$as_ac_var=yes"
6587else
6588 echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591eval "$as_ac_var=no"
6592fi
5c7fc7c4
PC
6593rm -f conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
6595fi
6596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6598if test `eval echo '${'$as_ac_var'}'` = yes; then
6599 cat >>confdefs.h <<_ACEOF
6600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6601_ACEOF
6602
6603fi
6604done
6605
6606echo "$as_me:$LINENO: checking for working mmap" >&5
6607echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6608if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 if test "$cross_compiling" = yes; then
6612 ac_cv_func_mmap_fixed_mapped=no
6613else
6614 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620$ac_includes_default
6621/* malloc might have been renamed as rpl_malloc. */
6622#undef malloc
6623
6624/* Thanks to Mike Haertel and Jim Avera for this test.
6625 Here is a matrix of mmap possibilities:
6626 mmap private not fixed
6627 mmap private fixed at somewhere currently unmapped
6628 mmap private fixed at somewhere already mapped
6629 mmap shared not fixed
6630 mmap shared fixed at somewhere currently unmapped
6631 mmap shared fixed at somewhere already mapped
6632 For private mappings, we should verify that changes cannot be read()
6633 back from the file, nor mmap's back from the file at a different
6634 address. (There have been systems where private was not correctly
6635 implemented like the infamous i386 svr4.0, and systems where the
6636 VM page cache was not coherent with the file system buffer cache
6637 like early versions of FreeBSD and possibly contemporary NetBSD.)
6638 For shared mappings, we should conversely verify that changes get
6639 propagated back to all the places they're supposed to be.
6640
6641 Grep wants private fixed already mapped.
6642 The main things grep needs to know about mmap are:
6643 * does it exist and is it safe to write into the mmap'd area
6644 * how to use it (BSD variants) */
6645
6646#include <fcntl.h>
6647#include <sys/mman.h>
6648
6649#if !STDC_HEADERS && !HAVE_STDLIB_H
6650char *malloc ();
6651#endif
6652
6653/* This mess was copied from the GNU getpagesize.h. */
6654#if !HAVE_GETPAGESIZE
6655/* Assume that all systems that can run configure have sys/param.h. */
6656# if !HAVE_SYS_PARAM_H
6657# define HAVE_SYS_PARAM_H 1
6658# endif
6659
6660# ifdef _SC_PAGESIZE
6661# define getpagesize() sysconf(_SC_PAGESIZE)
6662# else /* no _SC_PAGESIZE */
6663# if HAVE_SYS_PARAM_H
6664# include <sys/param.h>
6665# ifdef EXEC_PAGESIZE
6666# define getpagesize() EXEC_PAGESIZE
6667# else /* no EXEC_PAGESIZE */
6668# ifdef NBPG
6669# define getpagesize() NBPG * CLSIZE
6670# ifndef CLSIZE
6671# define CLSIZE 1
6672# endif /* no CLSIZE */
6673# else /* no NBPG */
6674# ifdef NBPC
6675# define getpagesize() NBPC
6676# else /* no NBPC */
6677# ifdef PAGESIZE
6678# define getpagesize() PAGESIZE
6679# endif /* PAGESIZE */
6680# endif /* no NBPC */
6681# endif /* no NBPG */
6682# endif /* no EXEC_PAGESIZE */
6683# else /* no HAVE_SYS_PARAM_H */
6684# define getpagesize() 8192 /* punt totally */
6685# endif /* no HAVE_SYS_PARAM_H */
6686# endif /* no _SC_PAGESIZE */
6687
6688#endif /* no HAVE_GETPAGESIZE */
6689
6690int
6691main ()
6692{
6693 char *data, *data2, *data3;
6694 int i, pagesize;
6695 int fd;
6696
6697 pagesize = getpagesize ();
6698
6699 /* First, make a file with some known garbage in it. */
6700 data = (char *) malloc (pagesize);
6701 if (!data)
6702 exit (1);
6703 for (i = 0; i < pagesize; ++i)
6704 *(data + i) = rand ();
6705 umask (0);
6706 fd = creat ("conftest.mmap", 0600);
6707 if (fd < 0)
6708 exit (1);
6709 if (write (fd, data, pagesize) != pagesize)
6710 exit (1);
6711 close (fd);
6712
6713 /* Next, try to mmap the file at a fixed address which already has
6714 something else allocated at it. If we can, also make sure that
6715 we see the same garbage. */
6716 fd = open ("conftest.mmap", O_RDWR);
6717 if (fd < 0)
6718 exit (1);
6719 data2 = (char *) malloc (2 * pagesize);
6720 if (!data2)
6721 exit (1);
5c7fc7c4 6722 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 6723 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5c7fc7c4 6724 MAP_PRIVATE | MAP_FIXED, fd, 0L))
ad6254c5
AK
6725 exit (1);
6726 for (i = 0; i < pagesize; ++i)
6727 if (*(data + i) != *(data2 + i))
6728 exit (1);
6729
6730 /* Finally, make sure that changes to the mapped area do not
6731 percolate back to the file as seen by read(). (This is a bug on
6732 some variants of i386 svr4.0.) */
6733 for (i = 0; i < pagesize; ++i)
6734 *(data2 + i) = *(data2 + i) + 1;
6735 data3 = (char *) malloc (pagesize);
6736 if (!data3)
6737 exit (1);
6738 if (read (fd, data3, pagesize) != pagesize)
6739 exit (1);
6740 for (i = 0; i < pagesize; ++i)
6741 if (*(data + i) != *(data3 + i))
6742 exit (1);
6743 close (fd);
6744 exit (0);
6745}
6746_ACEOF
6747rm -f conftest$ac_exeext
6748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_func_mmap_fixed_mapped=yes
6759else
6760 echo "$as_me: program exited with status $ac_status" >&5
6761echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764( exit $ac_status )
6765ac_cv_func_mmap_fixed_mapped=no
6766fi
5c7fc7c4 6767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6768fi
6769fi
6770echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6771echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6772if test $ac_cv_func_mmap_fixed_mapped = yes; then
6773
6774cat >>confdefs.h <<\_ACEOF
6775#define HAVE_MMAP 1
6776_ACEOF
6777
6778fi
6779rm -f conftest.mmap
6780
6781echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
6782echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
6783if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 if test "$cross_compiling" = yes; then
6787 ac_cv_func_stat_empty_string_bug=yes
6788else
6789 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6790/* confdefs.h. */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */
6795$ac_includes_default
6796int
6797main ()
6798{
6799struct stat sbuf;
6800 exit (stat ("", &sbuf) ? 1 : 0);
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest$ac_exeext
6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 ac_cv_func_stat_empty_string_bug=yes
6817else
6818 echo "$as_me: program exited with status $ac_status" >&5
6819echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822( exit $ac_status )
6823ac_cv_func_stat_empty_string_bug=no
6824fi
5c7fc7c4 6825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6826fi
6827fi
6828echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
6829echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
6830if test $ac_cv_func_stat_empty_string_bug = yes; then
5c7fc7c4
PC
6831 case $LIBOBJS in
6832 "stat.$ac_objext" | \
6833 *" stat.$ac_objext" | \
6834 "stat.$ac_objext "* | \
6835 *" stat.$ac_objext "* ) ;;
6836 *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
6837esac
6838
ad6254c5
AK
6839
6840cat >>confdefs.h <<_ACEOF
6841#define HAVE_STAT_EMPTY_STRING_BUG 1
6842_ACEOF
6843
6844fi
6845
6846echo "$as_me:$LINENO: checking for working strtod" >&5
6847echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
6848if test "${ac_cv_func_strtod+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 if test "$cross_compiling" = yes; then
6852 ac_cv_func_strtod=no
6853else
6854 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6855/* confdefs.h. */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
6860
6861double strtod ();
6862int
6863main()
6864{
6865 {
6866 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6867 char *string = " +69";
6868 char *term;
6869 double value;
6870 value = strtod (string, &term);
6871 if (value != 69 || term != (string + 4))
6872 exit (1);
6873 }
6874
6875 {
6876 /* Under Solaris 2.4, strtod returns the wrong value for the
6877 terminating character under some conditions. */
6878 char *string = "NaN";
6879 char *term;
6880 strtod (string, &term);
6881 if (term != string && *(term - 1) == 0)
6882 exit (1);
6883 }
6884 exit (0);
6885}
6886
6887_ACEOF
6888rm -f conftest$ac_exeext
6889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_func_strtod=yes
6900else
6901 echo "$as_me: program exited with status $ac_status" >&5
6902echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905( exit $ac_status )
6906ac_cv_func_strtod=no
6907fi
5c7fc7c4 6908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
6909fi
6910fi
6911echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
6912echo "${ECHO_T}$ac_cv_func_strtod" >&6
6913if test $ac_cv_func_strtod = no; then
5c7fc7c4
PC
6914 case $LIBOBJS in
6915 "strtod.$ac_objext" | \
6916 *" strtod.$ac_objext" | \
6917 "strtod.$ac_objext "* | \
6918 *" strtod.$ac_objext "* ) ;;
6919 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
6920esac
6921
ad6254c5
AK
6922echo "$as_me:$LINENO: checking for pow" >&5
6923echo $ECHO_N "checking for pow... $ECHO_C" >&6
6924if test "${ac_cv_func_pow+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6928/* confdefs.h. */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h. */
5c7fc7c4
PC
6933/* Define pow to an innocuous variant, in case <limits.h> declares pow.
6934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6935#define pow innocuous_pow
6936
ad6254c5
AK
6937/* System header to define __stub macros and hopefully few prototypes,
6938 which can conflict with char pow (); below.
6939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 6941
ad6254c5
AK
6942#ifdef __STDC__
6943# include <limits.h>
6944#else
6945# include <assert.h>
6946#endif
5c7fc7c4
PC
6947
6948#undef pow
6949
ad6254c5
AK
6950/* Override any gcc2 internal prototype to avoid an error. */
6951#ifdef __cplusplus
6952extern "C"
6953{
6954#endif
6955/* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957char pow ();
6958/* The GNU C library defines this for functions which it implements
6959 to always fail with ENOSYS. Some functions are actually named
6960 something starting with __ and the normal name is an alias. */
6961#if defined (__stub_pow) || defined (__stub___pow)
6962choke me
6963#else
6964char (*f) () = pow;
6965#endif
6966#ifdef __cplusplus
6967}
6968#endif
6969
6970int
6971main ()
6972{
6973return f != pow;
6974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 6980 (eval $ac_link) 2>conftest.er1
ad6254c5 6981 ac_status=$?
5c7fc7c4
PC
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
ad6254c5
AK
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
5c7fc7c4
PC
6987 { ac_try='test -z "$ac_c_werror_flag"
6988 || test ! -s conftest.err'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_func_pow=yes
7001else
7002 echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005ac_cv_func_pow=no
7006fi
5c7fc7c4
PC
7007rm -f conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7009fi
7010echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
7011echo "${ECHO_T}$ac_cv_func_pow" >&6
7012
7013if test $ac_cv_func_pow = no; then
7014 echo "$as_me:$LINENO: checking for pow in -lm" >&5
7015echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
7016if test "${ac_cv_lib_m_pow+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 ac_check_lib_save_LIBS=$LIBS
7020LIBS="-lm $LIBS"
7021cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7022/* confdefs.h. */
7023_ACEOF
7024cat confdefs.h >>conftest.$ac_ext
7025cat >>conftest.$ac_ext <<_ACEOF
7026/* end confdefs.h. */
7027
7028/* Override any gcc2 internal prototype to avoid an error. */
7029#ifdef __cplusplus
7030extern "C"
7031#endif
7032/* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7034char pow ();
7035int
7036main ()
7037{
7038pow ();
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043rm -f conftest.$ac_objext conftest$ac_exeext
7044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7045 (eval $ac_link) 2>conftest.er1
ad6254c5 7046 ac_status=$?
5c7fc7c4
PC
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
ad6254c5
AK
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
5c7fc7c4
PC
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_cv_lib_m_pow=yes
7066else
7067 echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070ac_cv_lib_m_pow=no
7071fi
5c7fc7c4
PC
7072rm -f conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7074LIBS=$ac_check_lib_save_LIBS
7075fi
7076echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
7077echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
7078if test $ac_cv_lib_m_pow = yes; then
7079 POW_LIB=-lm
7080else
7081 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
7082echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7083fi
7084
7085fi
7086
7087fi
7088
7089
7090################################################################################
7091
7092
7093################################################################################
7094# Check whether --enable-jobs or --disable-jobs was given.
7095if test "${enable_jobs+set}" = set; then
7096 enableval="$enable_jobs"
7097 JOBS=-j$enableval
7098else
7099 JOBS=-j2
7100fi;
7101
7102################################################################################
7103echo "$as_me:$LINENO: checking file owner" >&5
7104echo $ECHO_N "checking file owner... $ECHO_C" >&6
7105OWNER="root"
7106
7107
7108# Check whether --with-user or --without-user was given.
7109if test "${with_user+set}" = set; then
7110 withval="$with_user"
7111 OWNER="$withval"
7112fi;
7113echo "$as_me:$LINENO: result: $OWNER" >&5
7114echo "${ECHO_T}$OWNER" >&6
7115
7116if test x$OWNER != x; then
7117 OWNER="-o $OWNER"
7118fi
7119
7120################################################################################
7121echo "$as_me:$LINENO: checking group owner" >&5
7122echo $ECHO_N "checking group owner... $ECHO_C" >&6
7123GROUP="root"
7124
7125# Check whether --with-group or --without-group was given.
7126if test "${with_group+set}" = set; then
7127 withval="$with_group"
7128 GROUP="$withval"
7129fi;
7130echo "$as_me:$LINENO: result: $GROUP" >&5
7131echo "${ECHO_T}$GROUP" >&6
7132
7133if test x$GROUP != x; then
7134 GROUP="-g $GROUP"
7135fi
7136
7137################################################################################
7138echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
7139echo $ECHO_N "checking whether to enable lvm1 fallback... $ECHO_C" >&6
7140# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
7141if test "${enable_lvm1_fallback+set}" = set; then
7142 enableval="$enable_lvm1_fallback"
7143 LVM1_FALLBACK=$enableval
7144else
7145 LVM1_FALLBACK=no
7146fi;
7147echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
7148echo "${ECHO_T}$LVM1_FALLBACK" >&6
7149
7150if test x$LVM1_FALLBACK = xyes; then
7151 CFLAGS="$CFLAGS -DLVM1_FALLBACK"
7152fi
7153
7154################################################################################
7155echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
7156echo $ECHO_N "checking whether to include support for lvm1 metadata... $ECHO_C" >&6
7157
7158# Check whether --with-lvm1 or --without-lvm1 was given.
7159if test "${with_lvm1+set}" = set; then
7160 withval="$with_lvm1"
7161 LVM1="$withval"
7162else
7163 LVM1="internal"
7164fi;
7165echo "$as_me:$LINENO: result: $LVM1" >&5
7166echo "${ECHO_T}$LVM1" >&6
7167
7168if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
7169 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
7170" >&5
7171echo "$as_me: error: --with-lvm1 parameter invalid
7172" >&2;}
7173 { (exit 1); exit 1; }; }
7174fi;
7175
7176if test x$LVM1 = xinternal; then
7177 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
7178fi
7179
7180################################################################################
7181echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
7182echo $ECHO_N "checking whether to include support for GFS pool metadata... $ECHO_C" >&6
7183
7184# Check whether --with-pool or --without-pool was given.
7185if test "${with_pool+set}" = set; then
7186 withval="$with_pool"
7187 POOL="$withval"
7188else
7189 POOL="internal"
7190fi;
7191echo "$as_me:$LINENO: result: $POOL" >&5
7192echo "${ECHO_T}$POOL" >&6
7193
7194if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
7195 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
7196" >&5
7197echo "$as_me: error: --with-pool parameter invalid
7198" >&2;}
7199 { (exit 1); exit 1; }; }
7200fi;
7201
7202if test x$POOL = xinternal; then
7203 CFLAGS="$CFLAGS -DPOOL_INTERNAL"
7204fi
7205
7206################################################################################
7207echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
7208echo $ECHO_N "checking whether to include support for cluster locking... $ECHO_C" >&6
7209
7210# Check whether --with-cluster or --without-cluster was given.
7211if test "${with_cluster+set}" = set; then
7212 withval="$with_cluster"
7213 CLUSTER="$withval"
7214fi;
7215echo "$as_me:$LINENO: result: $CLUSTER" >&5
7216echo "${ECHO_T}$CLUSTER" >&6
7217
7218if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
7219 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
7220" >&5
7221echo "$as_me: error: --with-cluster parameter invalid
7222" >&2;}
7223 { (exit 1); exit 1; }; }
7224fi;
7225
7226if test x$CLUSTER = xinternal; then
7227 CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL"
7228fi
7229
7230################################################################################
7231echo "$as_me:$LINENO: checking whether to include snapshots" >&5
7232echo $ECHO_N "checking whether to include snapshots... $ECHO_C" >&6
7233
7234# Check whether --with-snapshots or --without-snapshots was given.
7235if test "${with_snapshots+set}" = set; then
7236 withval="$with_snapshots"
7237 SNAPSHOTS="$withval"
7238else
7239 SNAPSHOTS="internal"
7240fi;
7241echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
7242echo "${ECHO_T}$SNAPSHOTS" >&6
7243
7244if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
7245 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
7246" >&5
7247echo "$as_me: error: --with-snapshots parameter invalid
7248" >&2;}
7249 { (exit 1); exit 1; }; }
7250fi;
7251
7252if test x$SNAPSHOTS = xinternal; then
7253 CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
7254fi
7255
7256################################################################################
7257echo "$as_me:$LINENO: checking whether to include mirrors" >&5
7258echo $ECHO_N "checking whether to include mirrors... $ECHO_C" >&6
7259
7260# Check whether --with-mirrors or --without-mirrors was given.
7261if test "${with_mirrors+set}" = set; then
7262 withval="$with_mirrors"
7263 MIRRORS="$withval"
7264else
7265 MIRRORS="internal"
7266fi;
7267echo "$as_me:$LINENO: result: $MIRRORS" >&5
7268echo "${ECHO_T}$MIRRORS" >&6
7269
7270if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
7271 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
7272" >&5
7273echo "$as_me: error: --with-mirrors parameter invalid
7274" >&2;}
7275 { (exit 1); exit 1; }; }
7276fi;
7277
7278if test x$MIRRORS = xinternal; then
7279 CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
7280fi
7281
7282################################################################################
7283echo "$as_me:$LINENO: checking whether to use static linking" >&5
7284echo $ECHO_N "checking whether to use static linking... $ECHO_C" >&6
7285# Check whether --enable-static_link or --disable-static_link was given.
7286if test "${enable_static_link+set}" = set; then
7287 enableval="$enable_static_link"
7288 STATIC_LINK=$enableval
7289else
7290 STATIC_LINK=no
7291fi;
7292echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
7293echo "${ECHO_T}$STATIC_LINK" >&6
7294
7295################################################################################
7296echo "$as_me:$LINENO: checking whether to enable readline" >&5
7297echo $ECHO_N "checking whether to enable readline... $ECHO_C" >&6
7298# Check whether --enable-readline or --disable-readline was given.
7299if test "${enable_readline+set}" = set; then
7300 enableval="$enable_readline"
7301 READLINE=$enableval
7302else
7303 READLINE=no
7304fi;
7305echo "$as_me:$LINENO: result: $READLINE" >&5
7306echo "${ECHO_T}$READLINE" >&6
7307
7308if test x$READLINE = xyes; then
7309 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
7310fi
7311
7312################################################################################
7313echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
7314echo $ECHO_N "checking whether to enable selinux support... $ECHO_C" >&6
7315# Check whether --enable-selinux or --disable-selinux was given.
7316if test "${enable_selinux+set}" = set; then
7317 enableval="$enable_selinux"
7318 SELINUX=$enableval
7319fi;
7320echo "$as_me:$LINENO: result: $SELINUX" >&5
7321echo "${ECHO_T}$SELINUX" >&6
7322
7323################################################################################
7324echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
7325echo $ECHO_N "checking whether to build cluster LVM daemon... $ECHO_C" >&6
7326
7327# Check whether --with-clvmd or --without-clvmd was given.
7328if test "${with_clvmd+set}" = set; then
7329 withval="$with_clvmd"
a266258f 7330 CLVMD="$withval"
ad6254c5 7331else
a266258f 7332 CLVMD="none"
ad6254c5 7333fi;
a266258f 7334if test x$CLVMD = xyes; then
5c7fc7c4 7335 CLVMD=all
b1098701 7336fi
ad6254c5
AK
7337echo "$as_me:$LINENO: result: $CLVMD" >&5
7338echo "${ECHO_T}$CLVMD" >&6
7339
a266258f 7340if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
ad6254c5
AK
7341 CLUSTER=internal
7342fi
7343
7344################################################################################
7345echo "$as_me:$LINENO: checking whether to enable debugging" >&5
7346echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
7347# Check whether --enable-debug or --disable-debug was given.
7348if test "${enable_debug+set}" = set; then
7349 enableval="$enable_debug"
7350 DEBUG=$enableval
7351else
7352 DEBUG=no
7353fi;
7354echo "$as_me:$LINENO: result: $DEBUG" >&5
7355echo "${ECHO_T}$DEBUG" >&6
7356
7357if test x$DEBUG = xyes; then
7358 COPTIMISE_FLAG=
7359fi
7360
7361################################################################################
7362echo "$as_me:$LINENO: checking for C optimisation flag" >&5
7363echo $ECHO_N "checking for C optimisation flag... $ECHO_C" >&6
7364
7365# Check whether --with-optimisation or --without-optimisation was given.
7366if test "${with_optimisation+set}" = set; then
7367 withval="$with_optimisation"
7368 COPTIMISE_FLAG="$withval"
7369fi;
7370echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
7371echo "${ECHO_T}$COPTIMISE_FLAG" >&6
7372
7373################################################################################
7374echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
7375echo $ECHO_N "checking whether to use device-mapper... $ECHO_C" >&6
7376# Check whether --enable-devmapper or --disable-devmapper was given.
7377if test "${enable_devmapper+set}" = set; then
7378 enableval="$enable_devmapper"
7379 DEVMAPPER=$enableval
7380fi;
7381echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
7382echo "${ECHO_T}$DEVMAPPER" >&6
7383
7384if test x$DEVMAPPER = xyes; then
7385 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
7386fi
7387
7388################################################################################
7389echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
7390echo $ECHO_N "checking whether to enable O_DIRECT... $ECHO_C" >&6
7391# Check whether --enable-o_direct or --disable-o_direct was given.
7392if test "${enable_o_direct+set}" = set; then
7393 enableval="$enable_o_direct"
7394 ODIRECT=$enableval
7395fi;
7396echo "$as_me:$LINENO: result: $ODIRECT" >&5
7397echo "${ECHO_T}$ODIRECT" >&6
7398
7399if test x$ODIRECT = xyes; then
7400 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
7401fi
7402
7403################################################################################
7404echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
7405echo $ECHO_N "checking whether to compile liblvm2cmd.so... $ECHO_C" >&6
7406# Check whether --enable-cmdlib or --disable-cmdlib was given.
7407if test "${enable_cmdlib+set}" = set; then
7408 enableval="$enable_cmdlib"
7409 CMDLIB=$enableval
7410else
7411 CMDLIB=no
7412fi;
7413echo "$as_me:$LINENO: result: $CMDLIB" >&5
7414echo "${ECHO_T}$CMDLIB" >&6
7415
59376640 7416if test x$CMDLIB = xyes; then
ad6254c5
AK
7417 CFLAGS="$CFLAGS -DCMDLIB"
7418fi
7419
7420################################################################################
7421echo "$as_me:$LINENO: checking whether to build fsadm" >&5
7422echo $ECHO_N "checking whether to build fsadm... $ECHO_C" >&6
7423# Check whether --enable-fsadm or --disable-fsadm was given.
7424if test "${enable_fsadm+set}" = set; then
7425 enableval="$enable_fsadm"
7426 FSADM=$enableval
7427fi;
7428echo "$as_me:$LINENO: result: $FSADM" >&5
7429echo "${ECHO_T}$FSADM" >&6
7430
7431################################################################################
7432if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
7433 then exec_prefix="";
7434fi;
7435
7436################################################################################
7437if test $ac_cv_c_compiler_gnu = yes; then
7438 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7439echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
7440if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 ac_pattern="Autoconf.*'x'"
7444 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7445/* confdefs.h. */
7446_ACEOF
7447cat confdefs.h >>conftest.$ac_ext
7448cat >>conftest.$ac_ext <<_ACEOF
7449/* end confdefs.h. */
7450#include <sgtty.h>
7451Autoconf TIOCGETP
7452_ACEOF
7453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7454 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7455 ac_cv_prog_gcc_traditional=yes
7456else
7457 ac_cv_prog_gcc_traditional=no
7458fi
7459rm -f conftest*
7460
7461
7462 if test $ac_cv_prog_gcc_traditional = no; then
7463 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7464/* confdefs.h. */
7465_ACEOF
7466cat confdefs.h >>conftest.$ac_ext
7467cat >>conftest.$ac_ext <<_ACEOF
7468/* end confdefs.h. */
7469#include <termio.h>
7470Autoconf TCGETA
7471_ACEOF
7472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7474 ac_cv_prog_gcc_traditional=yes
7475fi
7476rm -f conftest*
7477
7478 fi
7479fi
7480echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7481echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
7482 if test $ac_cv_prog_gcc_traditional = yes; then
7483 CC="$CC -traditional"
7484 fi
7485fi
7486
7487echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7488echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7489if test "${ac_cv_type_signal+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7493/* confdefs.h. */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h. */
7498#include <sys/types.h>
7499#include <signal.h>
7500#ifdef signal
7501# undef signal
7502#endif
7503#ifdef __cplusplus
7504extern "C" void (*signal (int, void (*)(int)))(int);
7505#else
7506void (*signal ()) ();
7507#endif
7508
7509int
7510main ()
7511{
7512int i;
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext
7518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 7519 (eval $ac_compile) 2>conftest.er1
ad6254c5 7520 ac_status=$?
5c7fc7c4
PC
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
ad6254c5
AK
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
5c7fc7c4
PC
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_cv_type_signal=void
7540else
7541 echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544ac_cv_type_signal=int
7545fi
5c7fc7c4 7546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
7547fi
7548echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7549echo "${ECHO_T}$ac_cv_type_signal" >&6
7550
7551cat >>confdefs.h <<_ACEOF
7552#define RETSIGTYPE $ac_cv_type_signal
7553_ACEOF
7554
7555
7556
7557for ac_func in vprintf
7558do
7559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7560echo "$as_me:$LINENO: checking for $ac_func" >&5
7561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7562if eval "test \"\${$as_ac_var+set}\" = set"; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7566/* confdefs.h. */
7567_ACEOF
7568cat confdefs.h >>conftest.$ac_ext
7569cat >>conftest.$ac_ext <<_ACEOF
7570/* end confdefs.h. */
5c7fc7c4
PC
7571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7573#define $ac_func innocuous_$ac_func
7574
ad6254c5
AK
7575/* System header to define __stub macros and hopefully few prototypes,
7576 which can conflict with char $ac_func (); below.
7577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 7579
ad6254c5
AK
7580#ifdef __STDC__
7581# include <limits.h>
7582#else
7583# include <assert.h>
7584#endif
5c7fc7c4
PC
7585
7586#undef $ac_func
7587
ad6254c5
AK
7588/* Override any gcc2 internal prototype to avoid an error. */
7589#ifdef __cplusplus
7590extern "C"
7591{
7592#endif
7593/* We use char because int might match the return type of a gcc2
7594 builtin and then its argument prototype would still apply. */
7595char $ac_func ();
7596/* The GNU C library defines this for functions which it implements
7597 to always fail with ENOSYS. Some functions are actually named
7598 something starting with __ and the normal name is an alias. */
7599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7600choke me
7601#else
7602char (*f) () = $ac_func;
7603#endif
7604#ifdef __cplusplus
7605}
7606#endif
7607
7608int
7609main ()
7610{
7611return f != $ac_func;
7612 ;
7613 return 0;
7614}
7615_ACEOF
7616rm -f conftest.$ac_objext conftest$ac_exeext
7617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7618 (eval $ac_link) 2>conftest.er1
ad6254c5 7619 ac_status=$?
5c7fc7c4
PC
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
ad6254c5
AK
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
5c7fc7c4
PC
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 eval "$as_ac_var=yes"
7639else
7640 echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643eval "$as_ac_var=no"
7644fi
5c7fc7c4
PC
7645rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7647fi
7648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7650if test `eval echo '${'$as_ac_var'}'` = yes; then
7651 cat >>confdefs.h <<_ACEOF
7652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7653_ACEOF
7654
7655echo "$as_me:$LINENO: checking for _doprnt" >&5
7656echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7657if test "${ac_cv_func__doprnt+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7661/* confdefs.h. */
7662_ACEOF
7663cat confdefs.h >>conftest.$ac_ext
7664cat >>conftest.$ac_ext <<_ACEOF
7665/* end confdefs.h. */
5c7fc7c4
PC
7666/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7668#define _doprnt innocuous__doprnt
7669
ad6254c5
AK
7670/* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char _doprnt (); below.
7672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7673 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 7674
ad6254c5
AK
7675#ifdef __STDC__
7676# include <limits.h>
7677#else
7678# include <assert.h>
7679#endif
5c7fc7c4
PC
7680
7681#undef _doprnt
7682
ad6254c5
AK
7683/* Override any gcc2 internal prototype to avoid an error. */
7684#ifdef __cplusplus
7685extern "C"
7686{
7687#endif
7688/* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7690char _doprnt ();
7691/* The GNU C library defines this for functions which it implements
7692 to always fail with ENOSYS. Some functions are actually named
7693 something starting with __ and the normal name is an alias. */
7694#if defined (__stub__doprnt) || defined (__stub____doprnt)
7695choke me
7696#else
7697char (*f) () = _doprnt;
7698#endif
7699#ifdef __cplusplus
7700}
7701#endif
7702
7703int
7704main ()
7705{
7706return f != _doprnt;
7707 ;
7708 return 0;
7709}
7710_ACEOF
7711rm -f conftest.$ac_objext conftest$ac_exeext
7712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7713 (eval $ac_link) 2>conftest.er1
ad6254c5 7714 ac_status=$?
5c7fc7c4
PC
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
ad6254c5
AK
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
5c7fc7c4
PC
7720 { ac_try='test -z "$ac_c_werror_flag"
7721 || test ! -s conftest.err'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; } &&
7727 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_cv_func__doprnt=yes
7734else
7735 echo "$as_me: failed program was:" >&5
7736sed 's/^/| /' conftest.$ac_ext >&5
7737
7738ac_cv_func__doprnt=no
7739fi
5c7fc7c4
PC
7740rm -f conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7742fi
7743echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7744echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7745if test $ac_cv_func__doprnt = yes; then
7746
7747cat >>confdefs.h <<\_ACEOF
7748#define HAVE_DOPRNT 1
7749_ACEOF
7750
7751fi
7752
7753fi
7754done
7755
7756
7757
7758
7759
7760for ac_func in mkdir rmdir uname
7761do
7762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7763echo "$as_me:$LINENO: checking for $ac_func" >&5
7764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7765if eval "test \"\${$as_ac_var+set}\" = set"; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7769/* confdefs.h. */
7770_ACEOF
7771cat confdefs.h >>conftest.$ac_ext
7772cat >>conftest.$ac_ext <<_ACEOF
7773/* end confdefs.h. */
5c7fc7c4
PC
7774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7776#define $ac_func innocuous_$ac_func
7777
ad6254c5
AK
7778/* System header to define __stub macros and hopefully few prototypes,
7779 which can conflict with char $ac_func (); below.
7780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 7782
ad6254c5
AK
7783#ifdef __STDC__
7784# include <limits.h>
7785#else
7786# include <assert.h>
7787#endif
5c7fc7c4
PC
7788
7789#undef $ac_func
7790
ad6254c5
AK
7791/* Override any gcc2 internal prototype to avoid an error. */
7792#ifdef __cplusplus
7793extern "C"
7794{
7795#endif
7796/* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7798char $ac_func ();
7799/* The GNU C library defines this for functions which it implements
7800 to always fail with ENOSYS. Some functions are actually named
7801 something starting with __ and the normal name is an alias. */
7802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7803choke me
7804#else
7805char (*f) () = $ac_func;
7806#endif
7807#ifdef __cplusplus
7808}
7809#endif
7810
7811int
7812main ()
7813{
7814return f != $ac_func;
7815 ;
7816 return 0;
7817}
7818_ACEOF
7819rm -f conftest.$ac_objext conftest$ac_exeext
7820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7821 (eval $ac_link) 2>conftest.er1
ad6254c5 7822 ac_status=$?
5c7fc7c4
PC
7823 grep -v '^ *+' conftest.er1 >conftest.err
7824 rm -f conftest.er1
7825 cat conftest.err >&5
ad6254c5
AK
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
5c7fc7c4
PC
7828 { ac_try='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 (eval $ac_try) 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 eval "$as_ac_var=yes"
7842else
7843 echo "$as_me: failed program was:" >&5
7844sed 's/^/| /' conftest.$ac_ext >&5
7845
7846eval "$as_ac_var=no"
7847fi
5c7fc7c4
PC
7848rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7850fi
7851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7852echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7853if test `eval echo '${'$as_ac_var'}'` = yes; then
7854 cat >>confdefs.h <<_ACEOF
7855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7856_ACEOF
7857
7858else
7859 { { echo "$as_me:$LINENO: error: bailing out" >&5
7860echo "$as_me: error: bailing out" >&2;}
7861 { (exit 1); exit 1; }; }
7862fi
7863done
7864
7865
7866################################################################################
7867if test x$READLINE = xyes; then
7868 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
7869echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
7870if test "${ac_cv_search_tgetent+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873 ac_func_search_save_LIBS=$LIBS
7874ac_cv_search_tgetent=no
7875cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7876/* confdefs.h. */
7877_ACEOF
7878cat confdefs.h >>conftest.$ac_ext
7879cat >>conftest.$ac_ext <<_ACEOF
7880/* end confdefs.h. */
7881
7882/* Override any gcc2 internal prototype to avoid an error. */
7883#ifdef __cplusplus
7884extern "C"
7885#endif
7886/* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7888char tgetent ();
7889int
7890main ()
7891{
7892tgetent ();
7893 ;
7894 return 0;
7895}
7896_ACEOF
7897rm -f conftest.$ac_objext conftest$ac_exeext
7898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7899 (eval $ac_link) 2>conftest.er1
ad6254c5 7900 ac_status=$?
5c7fc7c4
PC
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
ad6254c5
AK
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
5c7fc7c4
PC
7906 { ac_try='test -z "$ac_c_werror_flag"
7907 || test ! -s conftest.err'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 ac_cv_search_tgetent="none required"
7920else
7921 echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924fi
5c7fc7c4
PC
7925rm -f conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7927if test "$ac_cv_search_tgetent" = no; then
7928 for ac_lib in ncurses curses termcap termlib; do
7929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7930 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7931/* confdefs.h. */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
7935/* end confdefs.h. */
7936
7937/* Override any gcc2 internal prototype to avoid an error. */
7938#ifdef __cplusplus
7939extern "C"
7940#endif
7941/* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943char tgetent ();
7944int
7945main ()
7946{
7947tgetent ();
7948 ;
7949 return 0;
7950}
7951_ACEOF
7952rm -f conftest.$ac_objext conftest$ac_exeext
7953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 7954 (eval $ac_link) 2>conftest.er1
ad6254c5 7955 ac_status=$?
5c7fc7c4
PC
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
ad6254c5
AK
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
5c7fc7c4
PC
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_cv_search_tgetent="-l$ac_lib"
7975break
7976else
7977 echo "$as_me: failed program was:" >&5
7978sed 's/^/| /' conftest.$ac_ext >&5
7979
7980fi
5c7fc7c4
PC
7981rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
7983 done
7984fi
7985LIBS=$ac_func_search_save_LIBS
7986fi
7987echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
7988echo "${ECHO_T}$ac_cv_search_tgetent" >&6
7989if test "$ac_cv_search_tgetent" != no; then
7990 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
7991
7992else
7993 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
7994--enable-readline option (which is enabled by default). Either disable readline
7995support with --disable-readline or download and install termcap from:
7996 ftp.gnu.org/gnu/termcap
7997Note: if you are using precompiled packages you will also need the development
7998 package as well (which may be called termcap-devel or something similar).
7999Note: (n)curses also seems to work as a substitute for termcap. This was
8000 not found either - but you could try installing that as well.
8001" >&5
8002echo "$as_me: error: termcap could not be found which is required for the
8003--enable-readline option (which is enabled by default). Either disable readline
8004support with --disable-readline or download and install termcap from:
8005 ftp.gnu.org/gnu/termcap
8006Note: if you are using precompiled packages you will also need the development
8007 package as well (which may be called termcap-devel or something similar).
8008Note: (n)curses also seems to work as a substitute for termcap. This was
8009 not found either - but you could try installing that as well.
8010" >&2;}
8011 { (exit 1); exit 1; }; }
8012
8013fi
8014
8015fi
8016
8017################################################################################
8018echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8019echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8020if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023 ac_check_lib_save_LIBS=$LIBS
8024LIBS="-ldl $LIBS"
8025cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8026/* confdefs.h. */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h. */
8031
8032/* Override any gcc2 internal prototype to avoid an error. */
8033#ifdef __cplusplus
8034extern "C"
8035#endif
8036/* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */
8038char dlopen ();
8039int
8040main ()
8041{
8042dlopen ();
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047rm -f conftest.$ac_objext conftest$ac_exeext
8048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8049 (eval $ac_link) 2>conftest.er1
ad6254c5 8050 ac_status=$?
5c7fc7c4
PC
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
ad6254c5
AK
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
5c7fc7c4
PC
8056 { ac_try='test -z "$ac_c_werror_flag"
8057 || test ! -s conftest.err'
8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; } &&
8063 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 ac_cv_lib_dl_dlopen=yes
8070else
8071 echo "$as_me: failed program was:" >&5
8072sed 's/^/| /' conftest.$ac_ext >&5
8073
8074ac_cv_lib_dl_dlopen=no
8075fi
5c7fc7c4
PC
8076rm -f conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8078LIBS=$ac_check_lib_save_LIBS
8079fi
8080echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8081echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8082if test $ac_cv_lib_dl_dlopen = yes; then
8083 HAVE_LIBDL=yes
8084else
8085 HAVE_LIBDL=no
8086fi
8087
8088
7e9e9502 8089if [ "x$HAVE_LIBDL" = xyes ]; then
ad6254c5
AK
8090 CFLAGS="$CFLAGS -DHAVE_LIBDL"
8091 LIBS="-ldl $LIBS"
8092else
8093 HAVE_LIBDL=no
8094fi
8095
8096################################################################################
8097if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8098 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8099 \) -a "x$STATIC_LINK" = xyes ];
8100 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
8101" >&5
8102echo "$as_me: error: Features cannot be 'shared' when building statically
8103" >&2;}
8104 { (exit 1); exit 1; }; }
8105fi
8106
8107################################################################################
8108if test x$SELINUX = xyes; then
8109 echo "$as_me:$LINENO: checking for is_selinux_enabled function" >&5
8110echo $ECHO_N "checking for is_selinux_enabled function... $ECHO_C" >&6
8111 echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8112echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
8113if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116 ac_check_lib_save_LIBS=$LIBS
8117LIBS="-lselinux $LIBS"
8118cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124
8125/* Override any gcc2 internal prototype to avoid an error. */
8126#ifdef __cplusplus
8127extern "C"
8128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char is_selinux_enabled ();
8132int
8133main ()
8134{
8135is_selinux_enabled ();
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext conftest$ac_exeext
8141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8142 (eval $ac_link) 2>conftest.er1
ad6254c5 8143 ac_status=$?
5c7fc7c4
PC
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
ad6254c5
AK
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
5c7fc7c4
PC
8149 { ac_try='test -z "$ac_c_werror_flag"
8150 || test ! -s conftest.err'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; } &&
8156 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_lib_selinux_is_selinux_enabled=yes
8163else
8164 echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
8167ac_cv_lib_selinux_is_selinux_enabled=no
8168fi
5c7fc7c4
PC
8169rm -f conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8171LIBS=$ac_check_lib_save_LIBS
8172fi
8173echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8174echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
8175if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
8176 HAVE_SELINUX=yes
8177else
8178 HAVE_SELINUX=no
8179fi
8180
8181 echo "$as_me:$LINENO: result: $HAVE_SELINUX" >&5
8182echo "${ECHO_T}$HAVE_SELINUX" >&6
8183
8184 if test x$HAVE_SELINUX = xyes; then
8185 CFLAGS="$CFLAGS -DHAVE_SELINUX"
8186 LIBS="-lselinux $LIBS"
8187 else
8188 { echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
8189echo "$as_me: WARNING: Disabling selinux" >&2;}
8190 fi
8191fi
8192
8193################################################################################
8194
8195for ac_header in getopt.h
8196do
8197as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8198if eval "test \"\${$as_ac_Header+set}\" = set"; then
8199 echo "$as_me:$LINENO: checking for $ac_header" >&5
8200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8201if eval "test \"\${$as_ac_Header+set}\" = set"; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203fi
8204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8206else
8207 # Is the header compilable?
8208echo "$as_me:$LINENO: checking $ac_header usability" >&5
8209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8210cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8211/* confdefs.h. */
8212_ACEOF
8213cat confdefs.h >>conftest.$ac_ext
8214cat >>conftest.$ac_ext <<_ACEOF
8215/* end confdefs.h. */
8216$ac_includes_default
8217#include <$ac_header>
8218_ACEOF
8219rm -f conftest.$ac_objext
8220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 8221 (eval $ac_compile) 2>conftest.er1
ad6254c5 8222 ac_status=$?
5c7fc7c4
PC
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
ad6254c5
AK
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
5c7fc7c4
PC
8228 { ac_try='test -z "$ac_c_werror_flag"
8229 || test ! -s conftest.err'
8230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231 (eval $ac_try) 2>&5
8232 ac_status=$?
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); }; } &&
8235 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_header_compiler=yes
8242else
8243 echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246ac_header_compiler=no
8247fi
5c7fc7c4 8248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8250echo "${ECHO_T}$ac_header_compiler" >&6
8251
8252# Is the header present?
8253echo "$as_me:$LINENO: checking $ac_header presence" >&5
8254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8255cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
8261#include <$ac_header>
8262_ACEOF
8263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } >/dev/null; then
8271 if test -s conftest.err; then
8272 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 8273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8274 else
8275 ac_cpp_err=
8276 fi
8277else
8278 ac_cpp_err=yes
8279fi
8280if test -z "$ac_cpp_err"; then
8281 ac_header_preproc=yes
8282else
8283 echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_header_preproc=no
8287fi
8288rm -f conftest.err conftest.$ac_ext
8289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8290echo "${ECHO_T}$ac_header_preproc" >&6
8291
8292# So? What about this header?
5c7fc7c4
PC
8293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8294 yes:no: )
ad6254c5
AK
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8299 ac_header_preproc=yes
ad6254c5 8300 ;;
5c7fc7c4 8301 no:yes:* )
ad6254c5
AK
8302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
8304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
8312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8314 (
8315 cat <<\_ASBOX
5c7fc7c4
PC
8316## ------------------------------------------ ##
8317## Report this to the AC_PACKAGE_NAME lists. ##
8318## ------------------------------------------ ##
ad6254c5
AK
8319_ASBOX
8320 ) |
8321 sed "s/^/$as_me: WARNING: /" >&2
8322 ;;
8323esac
8324echo "$as_me:$LINENO: checking for $ac_header" >&5
8325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8326if eval "test \"\${$as_ac_Header+set}\" = set"; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8328else
5c7fc7c4 8329 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8330fi
8331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8333
8334fi
8335if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8338_ACEOF
8339 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
8340fi
8341
8342done
8343
8344
8345################################################################################
8346if test x$READLINE = xyes; then
8347
8348echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
8349echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
8350if test "${ac_cv_lib_readline_readline+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 ac_check_lib_save_LIBS=$LIBS
8354LIBS="-lreadline $LIBS"
8355cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
8361
8362/* Override any gcc2 internal prototype to avoid an error. */
8363#ifdef __cplusplus
8364extern "C"
8365#endif
8366/* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8368char readline ();
8369int
8370main ()
8371{
8372readline ();
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext conftest$ac_exeext
8378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8379 (eval $ac_link) 2>conftest.er1
ad6254c5 8380 ac_status=$?
5c7fc7c4
PC
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
ad6254c5
AK
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
5c7fc7c4
PC
8386 { ac_try='test -z "$ac_c_werror_flag"
8387 || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 ac_cv_lib_readline_readline=yes
8400else
8401 echo "$as_me: failed program was:" >&5
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
8404ac_cv_lib_readline_readline=no
8405fi
5c7fc7c4
PC
8406rm -f conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8408LIBS=$ac_check_lib_save_LIBS
8409fi
8410echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
8411echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
8412if test $ac_cv_lib_readline_readline = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414#define HAVE_LIBREADLINE 1
8415_ACEOF
8416
8417 LIBS="-lreadline $LIBS"
8418
8419else
8420 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
8421--enable-readline option (which is enabled by default). Either disable readline
8422support with --disable-readline or download and install readline from:
8423 ftp.gnu.org/gnu/readline
8424Note: if you are using precompiled packages you will also need the development
8425package as well (which may be called readline-devel or something similar).
8426" >&5
8427echo "$as_me: error: GNU Readline could not be found which is required for the
8428--enable-readline option (which is enabled by default). Either disable readline
8429support with --disable-readline or download and install readline from:
8430 ftp.gnu.org/gnu/readline
8431Note: if you are using precompiled packages you will also need the development
8432package as well (which may be called readline-devel or something similar).
8433" >&2;}
8434 { (exit 1); exit 1; }; }
8435
8436fi
8437
8438 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
8439echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
8440if test "${ac_cv_func_rl_completion_matches+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
5c7fc7c4
PC
8449/* Define rl_completion_matches to an innocuous variant, in case <limits.h> declares rl_completion_matches.
8450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8451#define rl_completion_matches innocuous_rl_completion_matches
8452
ad6254c5
AK
8453/* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char rl_completion_matches (); below.
8455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 8457
ad6254c5
AK
8458#ifdef __STDC__
8459# include <limits.h>
8460#else
8461# include <assert.h>
8462#endif
5c7fc7c4
PC
8463
8464#undef rl_completion_matches
8465
ad6254c5
AK
8466/* Override any gcc2 internal prototype to avoid an error. */
8467#ifdef __cplusplus
8468extern "C"
8469{
8470#endif
8471/* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473char rl_completion_matches ();
8474/* The GNU C library defines this for functions which it implements
8475 to always fail with ENOSYS. Some functions are actually named
8476 something starting with __ and the normal name is an alias. */
8477#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
8478choke me
8479#else
8480char (*f) () = rl_completion_matches;
8481#endif
8482#ifdef __cplusplus
8483}
8484#endif
8485
8486int
8487main ()
8488{
8489return f != rl_completion_matches;
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 8496 (eval $ac_link) 2>conftest.er1
ad6254c5 8497 ac_status=$?
5c7fc7c4
PC
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
ad6254c5
AK
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
5c7fc7c4
PC
8503 { ac_try='test -z "$ac_c_werror_flag"
8504 || test ! -s conftest.err'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_func_rl_completion_matches=yes
8517else
8518 echo "$as_me: failed program was:" >&5
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
8521ac_cv_func_rl_completion_matches=no
8522fi
5c7fc7c4
PC
8523rm -f conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
8527echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
8528if test $ac_cv_func_rl_completion_matches = yes; then
8529 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
8530fi
8531
8532
8533fi
8534
8535################################################################################
8536echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
8537echo $ECHO_N "checking whether to enable internationalisation... $ECHO_C" >&6
8538# Check whether --enable-nls or --disable-nls was given.
8539if test "${enable_nls+set}" = set; then
8540 enableval="$enable_nls"
8541 INTL=$enableval
8542else
8543 INTL=no
8544fi;
8545echo "$as_me:$LINENO: result: $INTL" >&5
8546echo "${ECHO_T}$INTL" >&6
8547
8548if test x$INTL = xyes; then
8549 INTL_PACKAGE="lvm2"
8550 # Extract the first word of "msgfmt", so it can be a program name with args.
8551set dummy msgfmt; ac_word=$2
8552echo "$as_me:$LINENO: checking for $ac_word" >&5
8553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8554if test "${ac_cv_path_MSGFMT+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 case $MSGFMT in
8558 [\\/]* | ?:[\\/]*)
8559 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8560 ;;
8561 *)
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
8570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573done
8574done
8575
8576 ;;
8577esac
8578fi
8579MSGFMT=$ac_cv_path_MSGFMT
8580
8581if test -n "$MSGFMT"; then
8582 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8583echo "${ECHO_T}$MSGFMT" >&6
8584else
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
8587fi
8588
8589 if [ "x$MSGFMT" == x ];
8590 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
8591 " >&5
8592echo "$as_me: error: msgfmt not found in path $PATH
8593 " >&2;}
8594 { (exit 1); exit 1; }; }
8595 fi;
8596
8597
8598# Check whether --with-localedir or --without-localedir was given.
8599if test "${with_localedir+set}" = set; then
8600 withval="$with_localedir"
8601 LOCALEDIR="$withval"
8602else
8603 LOCALEDIR='${prefix}/share/locale'
8604fi;
8605fi
8606
8607################################################################################
8608
8609# Check whether --with-confdir or --without-confdir was given.
8610if test "${with_confdir+set}" = set; then
8611 withval="$with_confdir"
8612 CONFDIR="$withval"
8613else
8614 CONFDIR='/etc'
8615fi;
8616
8617
8618# Check whether --with-staticdir or --without-staticdir was given.
8619if test "${with_staticdir+set}" = set; then
8620 withval="$with_staticdir"
8621 STATICDIR="$withval"
8622else
8623 STATICDIR='${exec_prefix}/sbin'
8624fi;
8625
8626################################################################################
8627if test x$READLINE = xyes; then
8628
8629
8630for ac_header in readline/readline.h readline/history.h
8631do
8632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo "$as_me:$LINENO: checking for $ac_header" >&5
8635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8636if eval "test \"\${$as_ac_Header+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638fi
8639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8641else
8642 # Is the header compilable?
8643echo "$as_me:$LINENO: checking $ac_header usability" >&5
8644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8645cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
8651$ac_includes_default
8652#include <$ac_header>
8653_ACEOF
8654rm -f conftest.$ac_objext
8655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 8656 (eval $ac_compile) 2>conftest.er1
ad6254c5 8657 ac_status=$?
5c7fc7c4
PC
8658 grep -v '^ *+' conftest.er1 >conftest.err
8659 rm -f conftest.er1
8660 cat conftest.err >&5
ad6254c5
AK
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
5c7fc7c4
PC
8663 { ac_try='test -z "$ac_c_werror_flag"
8664 || test ! -s conftest.err'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; } &&
8670 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 ac_header_compiler=yes
8677else
8678 echo "$as_me: failed program was:" >&5
8679sed 's/^/| /' conftest.$ac_ext >&5
8680
8681ac_header_compiler=no
8682fi
5c7fc7c4 8683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8685echo "${ECHO_T}$ac_header_compiler" >&6
8686
8687# Is the header present?
8688echo "$as_me:$LINENO: checking $ac_header presence" >&5
8689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8690cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
8696#include <$ac_header>
8697_ACEOF
8698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } >/dev/null; then
8706 if test -s conftest.err; then
8707 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 8708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8709 else
8710 ac_cpp_err=
8711 fi
8712else
8713 ac_cpp_err=yes
8714fi
8715if test -z "$ac_cpp_err"; then
8716 ac_header_preproc=yes
8717else
8718 echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_header_preproc=no
8722fi
8723rm -f conftest.err conftest.$ac_ext
8724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8725echo "${ECHO_T}$ac_header_preproc" >&6
8726
8727# So? What about this header?
5c7fc7c4
PC
8728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8729 yes:no: )
ad6254c5
AK
8730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8734 ac_header_preproc=yes
ad6254c5 8735 ;;
5c7fc7c4 8736 no:yes:* )
ad6254c5
AK
8737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8749 (
8750 cat <<\_ASBOX
5c7fc7c4
PC
8751## ------------------------------------------ ##
8752## Report this to the AC_PACKAGE_NAME lists. ##
8753## ------------------------------------------ ##
ad6254c5
AK
8754_ASBOX
8755 ) |
8756 sed "s/^/$as_me: WARNING: /" >&2
8757 ;;
8758esac
8759echo "$as_me:$LINENO: checking for $ac_header" >&5
8760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8761if eval "test \"\${$as_ac_Header+set}\" = set"; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763else
5c7fc7c4 8764 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8765fi
8766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8768
8769fi
8770if test `eval echo '${'$as_ac_Header'}'` = yes; then
8771 cat >>confdefs.h <<_ACEOF
8772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8773_ACEOF
8774
8775else
8776 { { echo "$as_me:$LINENO: error: bailing out" >&5
8777echo "$as_me: error: bailing out" >&2;}
8778 { (exit 1); exit 1; }; }
8779fi
8780
8781done
8782
8783fi
8784
5c7fc7c4 8785if test x$CLVMD != xnone; then
ad6254c5
AK
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796for 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
8797do
8798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8799if eval "test \"\${$as_ac_Header+set}\" = set"; then
8800 echo "$as_me:$LINENO: checking for $ac_header" >&5
8801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8802if eval "test \"\${$as_ac_Header+set}\" = set"; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804fi
8805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8807else
8808 # Is the header compilable?
8809echo "$as_me:$LINENO: checking $ac_header usability" >&5
8810echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8811cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8812/* confdefs.h. */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h. */
8817$ac_includes_default
8818#include <$ac_header>
8819_ACEOF
8820rm -f conftest.$ac_objext
8821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 8822 (eval $ac_compile) 2>conftest.er1
ad6254c5 8823 ac_status=$?
5c7fc7c4
PC
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
ad6254c5
AK
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
5c7fc7c4
PC
8829 { ac_try='test -z "$ac_c_werror_flag"
8830 || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_header_compiler=yes
8843else
8844 echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847ac_header_compiler=no
8848fi
5c7fc7c4 8849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
8850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8851echo "${ECHO_T}$ac_header_compiler" >&6
8852
8853# Is the header present?
8854echo "$as_me:$LINENO: checking $ac_header presence" >&5
8855echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8856cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862#include <$ac_header>
8863_ACEOF
8864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } >/dev/null; then
8872 if test -s conftest.err; then
8873 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 8874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
8875 else
8876 ac_cpp_err=
8877 fi
8878else
8879 ac_cpp_err=yes
8880fi
8881if test -z "$ac_cpp_err"; then
8882 ac_header_preproc=yes
8883else
8884 echo "$as_me: failed program was:" >&5
8885sed 's/^/| /' conftest.$ac_ext >&5
8886
8887 ac_header_preproc=no
8888fi
8889rm -f conftest.err conftest.$ac_ext
8890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8891echo "${ECHO_T}$ac_header_preproc" >&6
8892
8893# So? What about this header?
5c7fc7c4
PC
8894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8895 yes:no: )
ad6254c5
AK
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8900 ac_header_preproc=yes
ad6254c5 8901 ;;
5c7fc7c4 8902 no:yes:* )
ad6254c5
AK
8903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
8915 (
8916 cat <<\_ASBOX
5c7fc7c4
PC
8917## ------------------------------------------ ##
8918## Report this to the AC_PACKAGE_NAME lists. ##
8919## ------------------------------------------ ##
ad6254c5
AK
8920_ASBOX
8921 ) |
8922 sed "s/^/$as_me: WARNING: /" >&2
8923 ;;
8924esac
8925echo "$as_me:$LINENO: checking for $ac_header" >&5
8926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8927if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929else
5c7fc7c4 8930 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5
AK
8931fi
8932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8934
8935fi
8936if test `eval echo '${'$as_ac_Header'}'` = yes; then
8937 cat >>confdefs.h <<_ACEOF
8938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8939_ACEOF
8940
8941else
8942 { { echo "$as_me:$LINENO: error: bailing out" >&5
8943echo "$as_me: error: bailing out" >&2;}
8944 { (exit 1); exit 1; }; }
795ca3e5
AK
8945fi
8946
ad6254c5
AK
8947done
8948
8949
795ca3e5 8950
8106cdd5 8951
ad6254c5
AK
8952
8953
8954for ac_func in dup2 getmntent memmove select socket
8955do
8956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8957echo "$as_me:$LINENO: checking for $ac_func" >&5
8958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8959if eval "test \"\${$as_ac_var+set}\" = set"; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 8961else
ad6254c5 8962 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
5c7fc7c4
PC
8968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8970#define $ac_func innocuous_$ac_func
8971
795ca3e5 8972/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
8973 which can conflict with char $ac_func (); below.
8974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8975 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 8976
ad6254c5
AK
8977#ifdef __STDC__
8978# include <limits.h>
8979#else
8980# include <assert.h>
8981#endif
5c7fc7c4
PC
8982
8983#undef $ac_func
8984
795ca3e5 8985/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
8986#ifdef __cplusplus
8987extern "C"
8988{
8989#endif
795ca3e5 8990/* We use char because int might match the return type of a gcc2
ad6254c5
AK
8991 builtin and then its argument prototype would still apply. */
8992char $ac_func ();
795ca3e5
AK
8993/* The GNU C library defines this for functions which it implements
8994 to always fail with ENOSYS. Some functions are actually named
8995 something starting with __ and the normal name is an alias. */
ad6254c5 8996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
8997choke me
8998#else
ad6254c5
AK
8999char (*f) () = $ac_func;
9000#endif
9001#ifdef __cplusplus
9002}
795ca3e5
AK
9003#endif
9004
ad6254c5
AK
9005int
9006main ()
9007{
9008return f != $ac_func;
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
9014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9015 (eval $ac_link) 2>conftest.er1
ad6254c5 9016 ac_status=$?
5c7fc7c4
PC
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
ad6254c5
AK
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
5c7fc7c4
PC
9022 { ac_try='test -z "$ac_c_werror_flag"
9023 || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 (eval $ac_try) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 eval "$as_ac_var=yes"
795ca3e5 9036else
ad6254c5
AK
9037 echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040eval "$as_ac_var=no"
80992638 9041fi
5c7fc7c4
PC
9042rm -f conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9044fi
ad6254c5
AK
9045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9047if test `eval echo '${'$as_ac_var'}'` = yes; then
9048 cat >>confdefs.h <<_ACEOF
9049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9050_ACEOF
80992638
AK
9051
9052else
ad6254c5
AK
9053 { { echo "$as_me:$LINENO: error: bailing out" >&5
9054echo "$as_me: error: bailing out" >&2;}
9055 { (exit 1); exit 1; }; }
8106cdd5 9056fi
ad6254c5 9057done
795ca3e5 9058
ad6254c5
AK
9059 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
9060echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
9061echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
9062if test "${ac_cv_lib_sun_getmntent+set}" = set; then
9063 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 9064else
ad6254c5
AK
9065 ac_check_lib_save_LIBS=$LIBS
9066LIBS="-lsun $LIBS"
9067cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9068/* confdefs.h. */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h. */
9073
795ca3e5 9074/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9075#ifdef __cplusplus
9076extern "C"
9077#endif
795ca3e5 9078/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9079 builtin and then its argument prototype would still apply. */
9080char getmntent ();
9081int
9082main ()
9083{
9084getmntent ();
9085 ;
9086 return 0;
9087}
9088_ACEOF
9089rm -f conftest.$ac_objext conftest$ac_exeext
9090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9091 (eval $ac_link) 2>conftest.er1
ad6254c5 9092 ac_status=$?
5c7fc7c4
PC
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
ad6254c5
AK
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
5c7fc7c4
PC
9098 { ac_try='test -z "$ac_c_werror_flag"
9099 || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_lib_sun_getmntent=yes
9112else
9113 echo "$as_me: failed program was:" >&5
9114sed 's/^/| /' conftest.$ac_ext >&5
80992638 9115
ad6254c5
AK
9116ac_cv_lib_sun_getmntent=no
9117fi
5c7fc7c4
PC
9118rm -f conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9120LIBS=$ac_check_lib_save_LIBS
9121fi
9122echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
9123echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
9124if test $ac_cv_lib_sun_getmntent = yes; then
9125 LIBS="-lsun $LIBS"
9126else
9127 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
9128echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
9129if test "${ac_cv_lib_seq_getmntent+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132 ac_check_lib_save_LIBS=$LIBS
9133LIBS="-lseq $LIBS"
9134cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9135/* confdefs.h. */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h. */
80992638 9140
ad6254c5
AK
9141/* Override any gcc2 internal prototype to avoid an error. */
9142#ifdef __cplusplus
9143extern "C"
795ca3e5 9144#endif
ad6254c5
AK
9145/* We use char because int might match the return type of a gcc2
9146 builtin and then its argument prototype would still apply. */
9147char getmntent ();
9148int
9149main ()
9150{
9151getmntent ();
9152 ;
9153 return 0;
9154}
9155_ACEOF
9156rm -f conftest.$ac_objext conftest$ac_exeext
9157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9158 (eval $ac_link) 2>conftest.er1
ad6254c5 9159 ac_status=$?
5c7fc7c4
PC
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
ad6254c5
AK
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
5c7fc7c4
PC
9165 { ac_try='test -z "$ac_c_werror_flag"
9166 || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 (eval $ac_try) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_lib_seq_getmntent=yes
795ca3e5 9179else
ad6254c5
AK
9180 echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183ac_cv_lib_seq_getmntent=no
795ca3e5 9184fi
5c7fc7c4
PC
9185rm -f conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9187LIBS=$ac_check_lib_save_LIBS
795ca3e5 9188fi
ad6254c5
AK
9189echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
9190echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
9191if test $ac_cv_lib_seq_getmntent = yes; then
9192 LIBS="-lseq $LIBS"
9193else
9194 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
9195echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
9196if test "${ac_cv_lib_gen_getmntent+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9198else
9199 ac_check_lib_save_LIBS=$LIBS
9200LIBS="-lgen $LIBS"
9201cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9202/* confdefs.h. */
9203_ACEOF
9204cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */
795ca3e5 9207
ad6254c5
AK
9208/* Override any gcc2 internal prototype to avoid an error. */
9209#ifdef __cplusplus
9210extern "C"
9211#endif
9212/* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9214char getmntent ();
9215int
9216main ()
9217{
9218getmntent ();
9219 ;
9220 return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
9224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9225 (eval $ac_link) 2>conftest.er1
ad6254c5 9226 ac_status=$?
5c7fc7c4
PC
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
ad6254c5
AK
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
5c7fc7c4
PC
9232 { ac_try='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 (eval $ac_try) 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_lib_gen_getmntent=yes
80992638 9246else
ad6254c5
AK
9247 echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
9250ac_cv_lib_gen_getmntent=no
9251fi
5c7fc7c4
PC
9252rm -f conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9254LIBS=$ac_check_lib_save_LIBS
9255fi
9256echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
9257echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
9258if test $ac_cv_lib_gen_getmntent = yes; then
9259 LIBS="-lgen $LIBS"
795ca3e5
AK
9260fi
9261
9262fi
9263
ad6254c5
AK
9264fi
9265
9266
9267for ac_func in getmntent
795ca3e5 9268do
ad6254c5
AK
9269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9270echo "$as_me:$LINENO: checking for $ac_func" >&5
9271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9272if eval "test \"\${$as_ac_var+set}\" = set"; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
5c7fc7c4
PC
9281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9283#define $ac_func innocuous_$ac_func
9284
795ca3e5 9285/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
9286 which can conflict with char $ac_func (); below.
9287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9288 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 9289
ad6254c5
AK
9290#ifdef __STDC__
9291# include <limits.h>
9292#else
9293# include <assert.h>
9294#endif
5c7fc7c4
PC
9295
9296#undef $ac_func
9297
795ca3e5 9298/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9299#ifdef __cplusplus
9300extern "C"
9301{
9302#endif
795ca3e5 9303/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9304 builtin and then its argument prototype would still apply. */
9305char $ac_func ();
795ca3e5
AK
9306/* The GNU C library defines this for functions which it implements
9307 to always fail with ENOSYS. Some functions are actually named
9308 something starting with __ and the normal name is an alias. */
9309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9310choke me
9311#else
ad6254c5
AK
9312char (*f) () = $ac_func;
9313#endif
9314#ifdef __cplusplus
9315}
795ca3e5
AK
9316#endif
9317
ad6254c5
AK
9318int
9319main ()
9320{
9321return f != $ac_func;
9322 ;
9323 return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext conftest$ac_exeext
9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9328 (eval $ac_link) 2>conftest.er1
ad6254c5 9329 ac_status=$?
5c7fc7c4
PC
9330 grep -v '^ *+' conftest.er1 >conftest.err
9331 rm -f conftest.er1
9332 cat conftest.err >&5
ad6254c5
AK
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
5c7fc7c4
PC
9335 { ac_try='test -z "$ac_c_werror_flag"
9336 || test ! -s conftest.err'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; } &&
9342 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 eval "$as_ac_var=yes"
795ca3e5 9349else
ad6254c5
AK
9350 echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
9353eval "$as_ac_var=no"
795ca3e5 9354fi
5c7fc7c4
PC
9355rm -f conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
795ca3e5 9357fi
ad6254c5
AK
9358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9360if test `eval echo '${'$as_ac_var'}'` = yes; then
9361 cat >>confdefs.h <<_ACEOF
9362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9363_ACEOF
795ca3e5 9364
795ca3e5
AK
9365fi
9366done
9367
9368
ad6254c5
AK
9369# AC_FUNC_REALLOC
9370
9371
9372for ac_header in sys/select.h sys/socket.h
9373do
9374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9375if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo "$as_me:$LINENO: checking for $ac_header" >&5
9377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9378if eval "test \"\${$as_ac_Header+set}\" = set"; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380fi
9381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
795ca3e5 9383else
ad6254c5
AK
9384 # Is the header compilable?
9385echo "$as_me:$LINENO: checking $ac_header usability" >&5
9386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9387cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h. */
9393$ac_includes_default
9394#include <$ac_header>
9395_ACEOF
9396rm -f conftest.$ac_objext
9397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9398 (eval $ac_compile) 2>conftest.er1
ad6254c5 9399 ac_status=$?
5c7fc7c4
PC
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
ad6254c5
AK
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
5c7fc7c4
PC
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 ac_header_compiler=yes
80992638 9419else
ad6254c5
AK
9420 echo "$as_me: failed program was:" >&5
9421sed 's/^/| /' conftest.$ac_ext >&5
9422
9423ac_header_compiler=no
9424fi
5c7fc7c4 9425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9427echo "${ECHO_T}$ac_header_compiler" >&6
9428
9429# Is the header present?
9430echo "$as_me:$LINENO: checking $ac_header presence" >&5
9431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9432cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9433/* confdefs.h. */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h. */
9438#include <$ac_header>
9439_ACEOF
9440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9442 ac_status=$?
9443 grep -v '^ *+' conftest.er1 >conftest.err
9444 rm -f conftest.er1
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); } >/dev/null; then
9448 if test -s conftest.err; then
9449 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 9450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9451 else
9452 ac_cpp_err=
9453 fi
9454else
9455 ac_cpp_err=yes
795ca3e5 9456fi
ad6254c5
AK
9457if test -z "$ac_cpp_err"; then
9458 ac_header_preproc=yes
9459else
9460 echo "$as_me: failed program was:" >&5
9461sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 ac_header_preproc=no
9464fi
9465rm -f conftest.err conftest.$ac_ext
9466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467echo "${ECHO_T}$ac_header_preproc" >&6
9468
9469# So? What about this header?
5c7fc7c4
PC
9470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9471 yes:no: )
ad6254c5
AK
9472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
9474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
ad6254c5 9477 ;;
5c7fc7c4 9478 no:yes:* )
ad6254c5
AK
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
9489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9491 (
9492 cat <<\_ASBOX
5c7fc7c4
PC
9493## ------------------------------------------ ##
9494## Report this to the AC_PACKAGE_NAME lists. ##
9495## ------------------------------------------ ##
ad6254c5
AK
9496_ASBOX
9497 ) |
9498 sed "s/^/$as_me: WARNING: /" >&2
9499 ;;
9500esac
9501echo "$as_me:$LINENO: checking for $ac_header" >&5
9502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9503if eval "test \"\${$as_ac_Header+set}\" = set"; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
5c7fc7c4 9506 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 9507fi
ad6254c5
AK
9508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8106cdd5 9510
795ca3e5 9511fi
ad6254c5
AK
9512if test `eval echo '${'$as_ac_Header'}'` = yes; then
9513 cat >>confdefs.h <<_ACEOF
9514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9515_ACEOF
9516
795ca3e5
AK
9517fi
9518
ad6254c5
AK
9519done
9520
9521echo "$as_me:$LINENO: checking types of arguments for select" >&5
9522echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
9523if test "${ac_cv_func_select_args+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9525else
ad6254c5
AK
9526 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9527 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9528 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9529 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535$ac_includes_default
9536#if HAVE_SYS_SELECT_H
9537# include <sys/select.h>
9538#endif
9539#if HAVE_SYS_SOCKET_H
9540# include <sys/socket.h>
9541#endif
9542
9543int
9544main ()
9545{
9546extern int select ($ac_arg1,
5c7fc7c4
PC
9547 $ac_arg234, $ac_arg234, $ac_arg234,
9548 $ac_arg5);
ad6254c5
AK
9549 ;
9550 return 0;
9551}
9552_ACEOF
9553rm -f conftest.$ac_objext
9554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9555 (eval $ac_compile) 2>conftest.er1
ad6254c5 9556 ac_status=$?
5c7fc7c4
PC
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
ad6254c5
AK
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
5c7fc7c4
PC
9562 { ac_try='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9576else
9577 echo "$as_me: failed program was:" >&5
9578sed 's/^/| /' conftest.$ac_ext >&5
9579
9580fi
5c7fc7c4 9581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9582 done
9583 done
9584done
9585# Provide a safe default value.
9586: ${ac_cv_func_select_args='int,int *,struct timeval *'}
9587
26e7f2e0 9588fi
ad6254c5
AK
9589echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
9590echo "${ECHO_T}$ac_cv_func_select_args" >&6
9591ac_save_IFS=$IFS; IFS=','
9592set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9593IFS=$ac_save_IFS
9594shift
9595
9596cat >>confdefs.h <<_ACEOF
9597#define SELECT_TYPE_ARG1 $1
9598_ACEOF
9599
9600
9601cat >>confdefs.h <<_ACEOF
9602#define SELECT_TYPE_ARG234 ($2)
9603_ACEOF
9604
9605
9606cat >>confdefs.h <<_ACEOF
9607#define SELECT_TYPE_ARG5 ($3)
9608_ACEOF
9609
80992638 9610rm -f conftest*
80992638 9611
8106cdd5 9612fi
ad6254c5
AK
9613
9614if test x$FSADM = xyes; then
9615
9616
9617
9618for ac_header in fstab.h sys/mount.h sys/vfs.h
9619do
9620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9621if eval "test \"\${$as_ac_Header+set}\" = set"; then
9622 echo "$as_me:$LINENO: checking for $ac_header" >&5
9623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9624if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9626fi
9627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9629else
9630 # Is the header compilable?
9631echo "$as_me:$LINENO: checking $ac_header usability" >&5
9632echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9633cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639$ac_includes_default
9640#include <$ac_header>
9641_ACEOF
9642rm -f conftest.$ac_objext
9643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9644 (eval $ac_compile) 2>conftest.er1
ad6254c5 9645 ac_status=$?
5c7fc7c4
PC
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
ad6254c5
AK
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
5c7fc7c4
PC
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_header_compiler=yes
9665else
9666 echo "$as_me: failed program was:" >&5
9667sed 's/^/| /' conftest.$ac_ext >&5
9668
9669ac_header_compiler=no
9670fi
5c7fc7c4 9671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9672echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9673echo "${ECHO_T}$ac_header_compiler" >&6
9674
9675# Is the header present?
9676echo "$as_me:$LINENO: checking $ac_header presence" >&5
9677echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9678cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9679/* confdefs.h. */
9680_ACEOF
9681cat confdefs.h >>conftest.$ac_ext
9682cat >>conftest.$ac_ext <<_ACEOF
9683/* end confdefs.h. */
9684#include <$ac_header>
9685_ACEOF
9686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } >/dev/null; then
9694 if test -s conftest.err; then
9695 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 9696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9697 else
9698 ac_cpp_err=
9699 fi
9700else
9701 ac_cpp_err=yes
9702fi
9703if test -z "$ac_cpp_err"; then
9704 ac_header_preproc=yes
9705else
9706 echo "$as_me: failed program was:" >&5
9707sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ac_header_preproc=no
9710fi
9711rm -f conftest.err conftest.$ac_ext
9712echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9713echo "${ECHO_T}$ac_header_preproc" >&6
9714
9715# So? What about this header?
5c7fc7c4
PC
9716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9717 yes:no: )
ad6254c5
AK
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9722 ac_header_preproc=yes
ad6254c5 9723 ;;
5c7fc7c4 9724 no:yes:* )
ad6254c5
AK
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
9727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
9737 (
9738 cat <<\_ASBOX
5c7fc7c4
PC
9739## ------------------------------------------ ##
9740## Report this to the AC_PACKAGE_NAME lists. ##
9741## ------------------------------------------ ##
ad6254c5
AK
9742_ASBOX
9743 ) |
9744 sed "s/^/$as_me: WARNING: /" >&2
9745 ;;
9746esac
9747echo "$as_me:$LINENO: checking for $ac_header" >&5
9748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9749if eval "test \"\${$as_ac_Header+set}\" = set"; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 9751else
5c7fc7c4 9752 eval "$as_ac_Header=\$ac_header_preproc"
26e7f2e0 9753fi
ad6254c5
AK
9754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26e7f2e0 9756
ad6254c5
AK
9757fi
9758if test `eval echo '${'$as_ac_Header'}'` = yes; then
9759 cat >>confdefs.h <<_ACEOF
9760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9761_ACEOF
26e7f2e0 9762
d68a82ec 9763else
ad6254c5
AK
9764 { { echo "$as_me:$LINENO: error: bailing out" >&5
9765echo "$as_me: error: bailing out" >&2;}
9766 { (exit 1); exit 1; }; }
26e7f2e0
AK
9767fi
9768
ad6254c5 9769done
036f273a 9770
ad6254c5
AK
9771
9772for ac_func in memmove
9773do
9774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9775echo "$as_me:$LINENO: checking for $ac_func" >&5
9776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9777if eval "test \"\${$as_ac_var+set}\" = set"; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
036f273a 9779else
ad6254c5 9780 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
5c7fc7c4
PC
9786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9788#define $ac_func innocuous_$ac_func
9789
ad6254c5
AK
9790/* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char $ac_func (); below.
9792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9793 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 9794
ad6254c5
AK
9795#ifdef __STDC__
9796# include <limits.h>
9797#else
9798# include <assert.h>
9799#endif
5c7fc7c4
PC
9800
9801#undef $ac_func
9802
036f273a 9803/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
9804#ifdef __cplusplus
9805extern "C"
9806{
9807#endif
036f273a 9808/* We use char because int might match the return type of a gcc2
ad6254c5
AK
9809 builtin and then its argument prototype would still apply. */
9810char $ac_func ();
9811/* The GNU C library defines this for functions which it implements
9812 to always fail with ENOSYS. Some functions are actually named
9813 something starting with __ and the normal name is an alias. */
9814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9815choke me
9816#else
9817char (*f) () = $ac_func;
9818#endif
9819#ifdef __cplusplus
9820}
9821#endif
80992638 9822
ad6254c5
AK
9823int
9824main ()
9825{
9826return f != $ac_func;
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831rm -f conftest.$ac_objext conftest$ac_exeext
9832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 9833 (eval $ac_link) 2>conftest.er1
ad6254c5 9834 ac_status=$?
5c7fc7c4
PC
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
ad6254c5
AK
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
5c7fc7c4
PC
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 eval "$as_ac_var=yes"
036f273a 9854else
ad6254c5
AK
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
9858eval "$as_ac_var=no"
036f273a 9859fi
5c7fc7c4
PC
9860rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
9862fi
9863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9865if test `eval echo '${'$as_ac_var'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9868_ACEOF
036f273a 9869
ad6254c5
AK
9870else
9871 { { echo "$as_me:$LINENO: error: bailing out" >&5
9872echo "$as_me: error: bailing out" >&2;}
9873 { (exit 1); exit 1; }; }
9874fi
9875done
036f273a 9876
036f273a 9877fi
d68a82ec 9878
ad6254c5
AK
9879if test x$CLUSTER != xnone; then
9880
9881
9882for ac_header in sys/socket.h sys/un.h
b896caa1 9883do
ad6254c5
AK
9884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9885if eval "test \"\${$as_ac_Header+set}\" = set"; then
9886 echo "$as_me:$LINENO: checking for $ac_header" >&5
9887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9888if eval "test \"\${$as_ac_Header+set}\" = set"; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890fi
9891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9893else
9894 # Is the header compilable?
9895echo "$as_me:$LINENO: checking $ac_header usability" >&5
9896echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9897cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9898/* confdefs.h. */
9899_ACEOF
9900cat confdefs.h >>conftest.$ac_ext
9901cat >>conftest.$ac_ext <<_ACEOF
9902/* end confdefs.h. */
9903$ac_includes_default
9904#include <$ac_header>
9905_ACEOF
9906rm -f conftest.$ac_objext
9907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 9908 (eval $ac_compile) 2>conftest.er1
ad6254c5 9909 ac_status=$?
5c7fc7c4
PC
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
ad6254c5
AK
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
5c7fc7c4
PC
9915 { ac_try='test -z "$ac_c_werror_flag"
9916 || test ! -s conftest.err'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 (eval $ac_try) 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_header_compiler=yes
9929else
9930 echo "$as_me: failed program was:" >&5
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
9933ac_header_compiler=no
9934fi
5c7fc7c4 9935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
9936echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9937echo "${ECHO_T}$ac_header_compiler" >&6
9938
9939# Is the header present?
9940echo "$as_me:$LINENO: checking $ac_header presence" >&5
9941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9942cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
9948#include <$ac_header>
9949_ACEOF
9950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } >/dev/null; then
9958 if test -s conftest.err; then
9959 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 9960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
9961 else
9962 ac_cpp_err=
9963 fi
9964else
9965 ac_cpp_err=yes
8106cdd5 9966fi
ad6254c5
AK
9967if test -z "$ac_cpp_err"; then
9968 ac_header_preproc=yes
9969else
9970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ac_header_preproc=no
9974fi
9975rm -f conftest.err conftest.$ac_ext
9976echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9977echo "${ECHO_T}$ac_header_preproc" >&6
9978
9979# So? What about this header?
5c7fc7c4
PC
9980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9981 yes:no: )
ad6254c5
AK
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9983echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9985echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9986 ac_header_preproc=yes
ad6254c5 9987 ;;
5c7fc7c4 9988 no:yes:* )
ad6254c5
AK
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9990echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9992echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9994echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9996echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
9999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10000echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10001 (
10002 cat <<\_ASBOX
5c7fc7c4
PC
10003## ------------------------------------------ ##
10004## Report this to the AC_PACKAGE_NAME lists. ##
10005## ------------------------------------------ ##
ad6254c5
AK
10006_ASBOX
10007 ) |
10008 sed "s/^/$as_me: WARNING: /" >&2
10009 ;;
10010esac
10011echo "$as_me:$LINENO: checking for $ac_header" >&5
10012echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10013if eval "test \"\${$as_ac_Header+set}\" = set"; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015else
5c7fc7c4 10016 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 10017fi
ad6254c5
AK
10018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10020
10021fi
10022if test `eval echo '${'$as_ac_Header'}'` = yes; then
10023 cat >>confdefs.h <<_ACEOF
10024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10025_ACEOF
10026
80992638 10027else
ad6254c5
AK
10028 { { echo "$as_me:$LINENO: error: bailing out" >&5
10029echo "$as_me: error: bailing out" >&2;}
10030 { (exit 1); exit 1; }; }
b896caa1 10031fi
ad6254c5 10032
b896caa1
AK
10033done
10034
10035
ad6254c5
AK
10036for ac_func in socket
10037do
10038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10039echo "$as_me:$LINENO: checking for $ac_func" >&5
10040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10041if eval "test \"\${$as_ac_var+set}\" = set"; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 10043else
ad6254c5 10044 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10045/* confdefs.h. */
10046_ACEOF
10047cat confdefs.h >>conftest.$ac_ext
10048cat >>conftest.$ac_ext <<_ACEOF
10049/* end confdefs.h. */
5c7fc7c4
PC
10050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10052#define $ac_func innocuous_$ac_func
10053
ad6254c5
AK
10054/* System header to define __stub macros and hopefully few prototypes,
10055 which can conflict with char $ac_func (); below.
10056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10057 <limits.h> exists even on freestanding compilers. */
5c7fc7c4 10058
ad6254c5
AK
10059#ifdef __STDC__
10060# include <limits.h>
10061#else
10062# include <assert.h>
10063#endif
5c7fc7c4
PC
10064
10065#undef $ac_func
10066
795ca3e5 10067/* Override any gcc2 internal prototype to avoid an error. */
ad6254c5
AK
10068#ifdef __cplusplus
10069extern "C"
10070{
10071#endif
795ca3e5 10072/* We use char because int might match the return type of a gcc2
ad6254c5
AK
10073 builtin and then its argument prototype would still apply. */
10074char $ac_func ();
10075/* The GNU C library defines this for functions which it implements
10076 to always fail with ENOSYS. Some functions are actually named
10077 something starting with __ and the normal name is an alias. */
10078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10079choke me
10080#else
10081char (*f) () = $ac_func;
10082#endif
10083#ifdef __cplusplus
10084}
10085#endif
10086
10087int
10088main ()
10089{
10090return f != $ac_func;
10091 ;
10092 return 0;
10093}
10094_ACEOF
10095rm -f conftest.$ac_objext conftest$ac_exeext
10096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5c7fc7c4 10097 (eval $ac_link) 2>conftest.er1
ad6254c5 10098 ac_status=$?
5c7fc7c4
PC
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
ad6254c5
AK
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
5c7fc7c4
PC
10104 { ac_try='test -z "$ac_c_werror_flag"
10105 || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest$ac_exeext'
ad6254c5
AK
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 eval "$as_ac_var=yes"
10118else
10119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
10122eval "$as_ac_var=no"
10123fi
5c7fc7c4
PC
10124rm -f conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
10126fi
10127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10129if test `eval echo '${'$as_ac_var'}'` = yes; then
10130 cat >>confdefs.h <<_ACEOF
10131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10132_ACEOF
10133
10134else
10135 { { echo "$as_me:$LINENO: error: bailing out" >&5
10136echo "$as_me: error: bailing out" >&2;}
10137 { (exit 1); exit 1; }; }
10138fi
10139done
10140
10141fi
10142
10143if test x$HAVE_LIBDL = xyes; then
10144
10145for ac_header in dlfcn.h
10146do
10147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10148if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo "$as_me:$LINENO: checking for $ac_header" >&5
10150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10151if eval "test \"\${$as_ac_Header+set}\" = set"; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153fi
10154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10156else
10157 # Is the header compilable?
10158echo "$as_me:$LINENO: checking $ac_header usability" >&5
10159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10160cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10161/* confdefs.h. */
10162_ACEOF
10163cat confdefs.h >>conftest.$ac_ext
10164cat >>conftest.$ac_ext <<_ACEOF
10165/* end confdefs.h. */
10166$ac_includes_default
10167#include <$ac_header>
10168_ACEOF
10169rm -f conftest.$ac_objext
10170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10171 (eval $ac_compile) 2>conftest.er1
ad6254c5 10172 ac_status=$?
5c7fc7c4
PC
10173 grep -v '^ *+' conftest.er1 >conftest.err
10174 rm -f conftest.er1
10175 cat conftest.err >&5
ad6254c5
AK
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
5c7fc7c4
PC
10178 { ac_try='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_header_compiler=yes
10192else
10193 echo "$as_me: failed program was:" >&5
10194sed 's/^/| /' conftest.$ac_ext >&5
10195
10196ac_header_compiler=no
10197fi
5c7fc7c4 10198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10200echo "${ECHO_T}$ac_header_compiler" >&6
10201
10202# Is the header present?
10203echo "$as_me:$LINENO: checking $ac_header presence" >&5
10204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10205cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10206/* confdefs.h. */
10207_ACEOF
10208cat confdefs.h >>conftest.$ac_ext
10209cat >>conftest.$ac_ext <<_ACEOF
10210/* end confdefs.h. */
10211#include <$ac_header>
10212_ACEOF
10213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev/null; then
10221 if test -s conftest.err; then
10222 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10224 else
10225 ac_cpp_err=
10226 fi
10227else
10228 ac_cpp_err=yes
10229fi
10230if test -z "$ac_cpp_err"; then
10231 ac_header_preproc=yes
10232else
10233 echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
10236 ac_header_preproc=no
10237fi
10238rm -f conftest.err conftest.$ac_ext
10239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10240echo "${ECHO_T}$ac_header_preproc" >&6
10241
10242# So? What about this header?
5c7fc7c4
PC
10243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10244 yes:no: )
ad6254c5
AK
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10249 ac_header_preproc=yes
ad6254c5 10250 ;;
5c7fc7c4 10251 no:yes:* )
ad6254c5
AK
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10264 (
10265 cat <<\_ASBOX
5c7fc7c4
PC
10266## ------------------------------------------ ##
10267## Report this to the AC_PACKAGE_NAME lists. ##
10268## ------------------------------------------ ##
ad6254c5
AK
10269_ASBOX
10270 ) |
10271 sed "s/^/$as_me: WARNING: /" >&2
10272 ;;
10273esac
10274echo "$as_me:$LINENO: checking for $ac_header" >&5
10275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10276if eval "test \"\${$as_ac_Header+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
5c7fc7c4 10279 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 10280fi
ad6254c5
AK
10281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
80992638 10283
8106cdd5 10284fi
ad6254c5
AK
10285if test `eval echo '${'$as_ac_Header'}'` = yes; then
10286 cat >>confdefs.h <<_ACEOF
10287#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288_ACEOF
795ca3e5
AK
10289
10290else
ad6254c5
AK
10291 { { echo "$as_me:$LINENO: error: bailing out" >&5
10292echo "$as_me: error: bailing out" >&2;}
10293 { (exit 1); exit 1; }; }
795ca3e5
AK
10294fi
10295
ad6254c5 10296done
80992638 10297
ad6254c5 10298fi
80992638 10299
ad6254c5 10300if test x$INTL = xyes; then
83912faa 10301
ad6254c5
AK
10302for ac_header in libintl.h
10303do
10304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10305if eval "test \"\${$as_ac_Header+set}\" = set"; then
10306 echo "$as_me:$LINENO: checking for $ac_header" >&5
10307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10308if eval "test \"\${$as_ac_Header+set}\" = set"; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310fi
10311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10313else
ad6254c5
AK
10314 # Is the header compilable?
10315echo "$as_me:$LINENO: checking $ac_header usability" >&5
10316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10317cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10318/* confdefs.h. */
10319_ACEOF
10320cat confdefs.h >>conftest.$ac_ext
10321cat >>conftest.$ac_ext <<_ACEOF
10322/* end confdefs.h. */
10323$ac_includes_default
10324#include <$ac_header>
10325_ACEOF
10326rm -f conftest.$ac_objext
10327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10328 (eval $ac_compile) 2>conftest.er1
ad6254c5 10329 ac_status=$?
5c7fc7c4
PC
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
ad6254c5
AK
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
5c7fc7c4
PC
10335 { ac_try='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_header_compiler=yes
10349else
10350 echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353ac_header_compiler=no
10354fi
5c7fc7c4 10355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10357echo "${ECHO_T}$ac_header_compiler" >&6
10358
10359# Is the header present?
10360echo "$as_me:$LINENO: checking $ac_header presence" >&5
10361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10362cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
10368#include <$ac_header>
10369_ACEOF
10370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } >/dev/null; then
10378 if test -s conftest.err; then
10379 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10381 else
10382 ac_cpp_err=
10383 fi
10384else
10385 ac_cpp_err=yes
795ca3e5 10386fi
ad6254c5
AK
10387if test -z "$ac_cpp_err"; then
10388 ac_header_preproc=yes
10389else
10390 echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393 ac_header_preproc=no
10394fi
10395rm -f conftest.err conftest.$ac_ext
10396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10397echo "${ECHO_T}$ac_header_preproc" >&6
10398
10399# So? What about this header?
5c7fc7c4
PC
10400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10401 yes:no: )
ad6254c5
AK
10402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10406 ac_header_preproc=yes
ad6254c5 10407 ;;
5c7fc7c4 10408 no:yes:* )
ad6254c5
AK
10409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10416echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10421 (
10422 cat <<\_ASBOX
5c7fc7c4
PC
10423## ------------------------------------------ ##
10424## Report this to the AC_PACKAGE_NAME lists. ##
10425## ------------------------------------------ ##
ad6254c5
AK
10426_ASBOX
10427 ) |
10428 sed "s/^/$as_me: WARNING: /" >&2
10429 ;;
10430esac
10431echo "$as_me:$LINENO: checking for $ac_header" >&5
10432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10433if eval "test \"\${$as_ac_Header+set}\" = set"; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
80992638 10435else
5c7fc7c4 10436 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 10437fi
ad6254c5
AK
10438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
83912faa 10440
69792976 10441fi
ad6254c5
AK
10442if test `eval echo '${'$as_ac_Header'}'` = yes; then
10443 cat >>confdefs.h <<_ACEOF
10444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10445_ACEOF
69792976 10446
69792976 10447else
ad6254c5
AK
10448 { { echo "$as_me:$LINENO: error: bailing out" >&5
10449echo "$as_me: error: bailing out" >&2;}
10450 { (exit 1); exit 1; }; }
80992638
AK
10451fi
10452
ad6254c5 10453done
69792976 10454
ad6254c5
AK
10455fi
10456
10457if test x$DEVMAPPER = xyes; then
10458
10459for ac_header in libdevmapper.h
10460do
10461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10462if eval "test \"\${$as_ac_Header+set}\" = set"; then
10463 echo "$as_me:$LINENO: checking for $ac_header" >&5
10464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10465if eval "test \"\${$as_ac_Header+set}\" = set"; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10467fi
10468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10470else
ad6254c5
AK
10471 # Is the header compilable?
10472echo "$as_me:$LINENO: checking $ac_header usability" >&5
10473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10474cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10475/* confdefs.h. */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h. */
10480$ac_includes_default
10481#include <$ac_header>
10482_ACEOF
10483rm -f conftest.$ac_objext
10484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10485 (eval $ac_compile) 2>conftest.er1
ad6254c5 10486 ac_status=$?
5c7fc7c4
PC
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
ad6254c5
AK
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
5c7fc7c4
PC
10492 { ac_try='test -z "$ac_c_werror_flag"
10493 || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } &&
10499 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_header_compiler=yes
10506else
10507 echo "$as_me: failed program was:" >&5
10508sed 's/^/| /' conftest.$ac_ext >&5
10509
10510ac_header_compiler=no
10511fi
5c7fc7c4 10512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10514echo "${ECHO_T}$ac_header_compiler" >&6
10515
10516# Is the header present?
10517echo "$as_me:$LINENO: checking $ac_header presence" >&5
10518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10519cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
10525#include <$ac_header>
10526_ACEOF
10527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } >/dev/null; then
10535 if test -s conftest.err; then
10536 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10538 else
10539 ac_cpp_err=
10540 fi
10541else
10542 ac_cpp_err=yes
69792976 10543fi
ad6254c5
AK
10544if test -z "$ac_cpp_err"; then
10545 ac_header_preproc=yes
10546else
10547 echo "$as_me: failed program was:" >&5
10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_header_preproc=no
10551fi
10552rm -f conftest.err conftest.$ac_ext
10553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10554echo "${ECHO_T}$ac_header_preproc" >&6
10555
10556# So? What about this header?
5c7fc7c4
PC
10557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10558 yes:no: )
ad6254c5
AK
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10563 ac_header_preproc=yes
ad6254c5 10564 ;;
5c7fc7c4 10565 no:yes:* )
ad6254c5
AK
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10578 (
10579 cat <<\_ASBOX
5c7fc7c4
PC
10580## ------------------------------------------ ##
10581## Report this to the AC_PACKAGE_NAME lists. ##
10582## ------------------------------------------ ##
ad6254c5
AK
10583_ASBOX
10584 ) |
10585 sed "s/^/$as_me: WARNING: /" >&2
10586 ;;
10587esac
10588echo "$as_me:$LINENO: checking for $ac_header" >&5
10589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10590if eval "test \"\${$as_ac_Header+set}\" = set"; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 10592else
5c7fc7c4 10593 eval "$as_ac_Header=\$ac_header_preproc"
69792976 10594fi
ad6254c5
AK
10595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69792976 10597
ad6254c5
AK
10598fi
10599if test `eval echo '${'$as_ac_Header'}'` = yes; then
10600 cat >>confdefs.h <<_ACEOF
10601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10602_ACEOF
69792976 10603
69792976 10604else
ad6254c5
AK
10605 { { echo "$as_me:$LINENO: error: bailing out" >&5
10606echo "$as_me: error: bailing out" >&2;}
10607 { (exit 1); exit 1; }; }
83912faa
AK
10608fi
10609
ad6254c5
AK
10610done
10611
80992638 10612fi
4a7f3eb2 10613
ad6254c5
AK
10614if test x$HAVE_SELINUX = xyes; then
10615
10616for ac_header in selinux/selinux.h
10617do
10618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10619if eval "test \"\${$as_ac_Header+set}\" = set"; then
10620 echo "$as_me:$LINENO: checking for $ac_header" >&5
10621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10622if eval "test \"\${$as_ac_Header+set}\" = set"; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624fi
10625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10627else
ad6254c5
AK
10628 # Is the header compilable?
10629echo "$as_me:$LINENO: checking $ac_header usability" >&5
10630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10631cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10632/* confdefs.h. */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
10637$ac_includes_default
10638#include <$ac_header>
10639_ACEOF
10640rm -f conftest.$ac_objext
10641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5c7fc7c4 10642 (eval $ac_compile) 2>conftest.er1
ad6254c5 10643 ac_status=$?
5c7fc7c4
PC
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
ad6254c5
AK
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
5c7fc7c4
PC
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest.$ac_objext'
ad6254c5
AK
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_header_compiler=yes
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667ac_header_compiler=no
10668fi
5c7fc7c4 10669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
10670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10671echo "${ECHO_T}$ac_header_compiler" >&6
10672
10673# Is the header present?
10674echo "$as_me:$LINENO: checking $ac_header presence" >&5
10675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10676cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10677/* confdefs.h. */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h. */
10682#include <$ac_header>
10683_ACEOF
10684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } >/dev/null; then
10692 if test -s conftest.err; then
10693 ac_cpp_err=$ac_c_preproc_warn_flag
5c7fc7c4 10694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
ad6254c5
AK
10695 else
10696 ac_cpp_err=
10697 fi
10698else
10699 ac_cpp_err=yes
10700fi
10701if test -z "$ac_cpp_err"; then
10702 ac_header_preproc=yes
10703else
10704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707 ac_header_preproc=no
10708fi
10709rm -f conftest.err conftest.$ac_ext
10710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711echo "${ECHO_T}$ac_header_preproc" >&6
10712
10713# So? What about this header?
5c7fc7c4
PC
10714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10715 yes:no: )
ad6254c5
AK
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5c7fc7c4
PC
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10720 ac_header_preproc=yes
ad6254c5 10721 ;;
5c7fc7c4 10722 no:yes:* )
ad6254c5
AK
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5c7fc7c4
PC
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10726echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10730echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
ad6254c5
AK
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5c7fc7c4
PC
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ad6254c5
AK
10735 (
10736 cat <<\_ASBOX
5c7fc7c4
PC
10737## ------------------------------------------ ##
10738## Report this to the AC_PACKAGE_NAME lists. ##
10739## ------------------------------------------ ##
ad6254c5
AK
10740_ASBOX
10741 ) |
10742 sed "s/^/$as_me: WARNING: /" >&2
10743 ;;
10744esac
10745echo "$as_me:$LINENO: checking for $ac_header" >&5
10746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10747if eval "test \"\${$as_ac_Header+set}\" = set"; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749else
5c7fc7c4 10750 eval "$as_ac_Header=\$ac_header_preproc"
80992638 10751fi
ad6254c5
AK
10752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4a7f3eb2 10754
ad6254c5
AK
10755fi
10756if test `eval echo '${'$as_ac_Header'}'` = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10759_ACEOF
0a62c911 10760
0a62c911 10761else
ad6254c5
AK
10762 { { echo "$as_me:$LINENO: error: bailing out" >&5
10763echo "$as_me: error: bailing out" >&2;}
10764 { (exit 1); exit 1; }; }
80992638
AK
10765fi
10766
ad6254c5 10767done
0a62c911 10768
ad6254c5 10769fi
0a62c911 10770
a653923f
AK
10771################################################################################
10772# Extract the first word of "modprobe", so it can be a program name with args.
10773set dummy modprobe; ac_word=$2
10774echo "$as_me:$LINENO: checking for $ac_word" >&5
10775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10776if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 case $MODPROBE_CMD in
10780 [\\/]* | ?:[\\/]*)
10781 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10782 ;;
10783 *)
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785for as_dir in $PATH
10786do
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10794 fi
10795done
10796done
10797
10798 ;;
10799esac
10800fi
10801MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10802
10803if test -n "$MODPROBE_CMD"; then
10804 echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
10805echo "${ECHO_T}$MODPROBE_CMD" >&6
10806else
10807 echo "$as_me:$LINENO: result: no" >&5
10808echo "${ECHO_T}no" >&6
10809fi
10810
10811
10812if test x$MODPROBE_CMD != x; then
10813 CFLAGS="$CFLAGS -DMODPROBE_CMD=\\\"$MODPROBE_CMD\\\""
10814fi
10815
80992638 10816################################################################################
fae0c576
AK
10817if test "-f VERSION"; then
10818 LVM_VERSION="\"`cat VERSION`\""
10819else
10820 LVM_VERSION="Unknown"
10821fi
10822
80992638 10823################################################################################
fae0c576 10824
83912faa 10825
795ca3e5
AK
10826
10827
10828
10829
10830
10831
5a52dca9 10832
8ef2b021 10833
199e490e 10834
69792976
AK
10835
10836
10837
10838
8106cdd5
AK
10839
10840
10841
10842
10843
d68a82ec 10844
036f273a 10845
7d1552c9 10846
8106cdd5 10847
0a62c911 10848
8106cdd5 10849
4a7f3eb2 10850
4922197a
AK
10851
10852
d8ac0fbc 10853
1a9ea74d 10854
8ce0cbda 10855
d3c8211f
AK
10856
10857
80992638 10858################################################################################
ad6254c5
AK
10859 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/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"
10860cat >confcache <<\_ACEOF
795ca3e5
AK
10861# This file is a shell script that caches the results of configure
10862# tests run on this system so they can be shared between configure
ad6254c5
AK
10863# scripts and configure runs, see configure's option --config-cache.
10864# It is not useful on other systems. If it contains results you don't
10865# want to keep, you may remove or edit it.
795ca3e5 10866#
ad6254c5
AK
10867# config.status only pays attention to the cache file if you give it
10868# the --recheck option to rerun configure.
795ca3e5 10869#
ad6254c5
AK
10870# `ac_cv_env_foo' variables (set or unset) will be overridden when
10871# loading this file, other *unset* `ac_cv_foo' will be assigned the
10872# following values.
10873
10874_ACEOF
10875
795ca3e5
AK
10876# The following way of writing the cache mishandles newlines in values,
10877# but we know of no workaround that is simple, portable, and efficient.
10878# So, don't put newlines in cache variables' values.
10879# Ultrix sh set writes to stderr and can't be redirected directly,
10880# and sets the high bit in the cache file unless we assign to the vars.
ad6254c5
AK
10881{
10882 (set) 2>&1 |
10883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10884 *ac_space=\ *)
10885 # `set' does not quote correctly, so add quotes (double-quote
10886 # substitution turns \\\\ into \\, and sed turns \\ into \).
10887 sed -n \
5c7fc7c4
PC
10888 "s/'/'\\\\''/g;
10889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ad6254c5
AK
10890 ;;
10891 *)
10892 # `set' quotes correctly as required by POSIX, so do not add quotes.
10893 sed -n \
5c7fc7c4 10894 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ad6254c5
AK
10895 ;;
10896 esac;
10897} |
10898 sed '
10899 t clear
10900 : clear
10901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10902 t end
10903 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10904 : end' >>confcache
10905if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 10906 if test -w $cache_file; then
ad6254c5
AK
10907 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10908 cat confcache >$cache_file
795ca3e5
AK
10909 else
10910 echo "not updating unwritable cache $cache_file"
10911 fi
10912fi
10913rm -f confcache
10914
795ca3e5
AK
10915test "x$prefix" = xNONE && prefix=$ac_default_prefix
10916# Let make expand exec_prefix.
10917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10918
ad6254c5
AK
10919# VPATH may cause trouble with some makes, so we remove $(srcdir),
10920# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10921# trailing colons and then remove the whole line if VPATH becomes empty
10922# (actually we leave an empty line to preserve line numbers).
795ca3e5 10923if test "x$srcdir" = x.; then
5c7fc7c4 10924 ac_vpsub='/^[ ]*VPATH[ ]*=/{
ad6254c5
AK
10925s/:*\$(srcdir):*/:/;
10926s/:*\${srcdir}:*/:/;
10927s/:*@srcdir@:*/:/;
5c7fc7c4 10928s/^\([^=]*=[ ]*\):*/\1/;
ad6254c5 10929s/:*$//;
5c7fc7c4 10930s/^[^=]*=[ ]*$//;
ad6254c5 10931}'
795ca3e5
AK
10932fi
10933
795ca3e5
AK
10934# Transform confdefs.h into DEFS.
10935# Protect against shell expansion while executing Makefile rules.
10936# Protect against Makefile macro expansion.
ad6254c5
AK
10937#
10938# If the first sed substitution is executed (which looks for macros that
10939# take arguments), then we branch to the quote section. Otherwise,
10940# look for a macro that doesn't take arguments.
10941cat >confdef2opt.sed <<\_ACEOF
10942t clear
10943: clear
5c7fc7c4 10944s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
ad6254c5 10945t quote
5c7fc7c4 10946s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
ad6254c5
AK
10947t quote
10948d
10949: quote
5c7fc7c4 10950s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
ad6254c5
AK
10951s,\[,\\&,g
10952s,\],\\&,g
10953s,\$,$$,g
10954p
10955_ACEOF
10956# We use echo to avoid assuming a particular line-breaking character.
10957# The extra dot is to prevent the shell from consuming trailing
10958# line-breaks from the sub-command output. A line-break within
10959# single-quotes doesn't work because, if this script is created in a
10960# platform that uses two characters for line-breaks (e.g., DOS), tr
10961# would break.
10962ac_LF_and_DOT=`echo; echo .`
10963DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10964rm -f confdef2opt.sed
10965
10966
10967ac_libobjs=
10968ac_ltlibobjs=
10969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10970 # 1. Remove the extension, and $U if already installed.
10971 ac_i=`echo "$ac_i" |
5c7fc7c4 10972 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
ad6254c5
AK
10973 # 2. Add them.
10974 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10975 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10976done
10977LIBOBJS=$ac_libobjs
80992638 10978
ad6254c5
AK
10979LTLIBOBJS=$ac_ltlibobjs
10980
10981
10982
10983: ${CONFIG_STATUS=./config.status}
10984ac_clean_files_save=$ac_clean_files
10985ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10986{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10987echo "$as_me: creating $CONFIG_STATUS" >&6;}
10988cat >$CONFIG_STATUS <<_ACEOF
10989#! $SHELL
10990# Generated by $as_me.
795ca3e5 10991# Run this file to recreate the current configuration.
795ca3e5 10992# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10993# configure, is in config.log if it exists.
10994
10995debug=false
10996ac_cs_recheck=false
10997ac_cs_silent=false
10998SHELL=\${CONFIG_SHELL-$SHELL}
10999_ACEOF
11000
11001cat >>$CONFIG_STATUS <<\_ACEOF
11002## --------------------- ##
11003## M4sh Initialization. ##
11004## --------------------- ##
11005
11006# Be Bourne compatible
11007if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11008 emulate sh
11009 NULLCMD=:
11010 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11011 # is contrary to our usage. Disable this feature.
11012 alias -g '${1+"$@"}'='"$@"'
11013elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11014 set -o posix
11015fi
5c7fc7c4 11016DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
11017
11018# Support unset when possible.
5c7fc7c4 11019if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
11020 as_unset=unset
11021else
11022 as_unset=false
11023fi
8106cdd5 11024
ad6254c5
AK
11025
11026# Work around bugs in pre-3.0 UWIN ksh.
11027$as_unset ENV MAIL MAILPATH
11028PS1='$ '
11029PS2='> '
11030PS4='+ '
11031
11032# NLS nuisances.
11033for as_var in \
11034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11036 LC_TELEPHONE LC_TIME
8106cdd5 11037do
5c7fc7c4 11038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ad6254c5
AK
11039 eval $as_var=C; export $as_var
11040 else
11041 $as_unset $as_var
11042 fi
8106cdd5
AK
11043done
11044
ad6254c5
AK
11045# Required to use basename.
11046if expr a : '\(a\)' >/dev/null 2>&1; then
11047 as_expr=expr
11048else
11049 as_expr=false
11050fi
8106cdd5 11051
ad6254c5
AK
11052if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11053 as_basename=basename
11054else
11055 as_basename=false
11056fi
11057
11058
11059# Name of the executable.
11060as_me=`$as_basename "$0" ||
11061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11062 X"$0" : 'X\(//\)$' \| \
11063 X"$0" : 'X\(/\)$' \| \
11064 . : '\(.\)' 2>/dev/null ||
11065echo X/"$0" |
11066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11067 /^X\/\(\/\/\)$/{ s//\1/; q; }
11068 /^X\/\(\/\).*/{ s//\1/; q; }
11069 s/.*/./; q'`
11070
11071
11072# PATH needs CR, and LINENO needs CR and PATH.
11073# Avoid depending upon Character Ranges.
11074as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11075as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11076as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11077as_cr_digits='0123456789'
11078as_cr_alnum=$as_cr_Letters$as_cr_digits
11079
11080# The user is always right.
11081if test "${PATH_SEPARATOR+set}" != set; then
11082 echo "#! /bin/sh" >conf$$.sh
11083 echo "exit 0" >>conf$$.sh
11084 chmod +x conf$$.sh
11085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11086 PATH_SEPARATOR=';'
80992638 11087 else
ad6254c5 11088 PATH_SEPARATOR=:
80992638 11089 fi
ad6254c5
AK
11090 rm -f conf$$.sh
11091fi
11092
11093
11094 as_lineno_1=$LINENO
11095 as_lineno_2=$LINENO
11096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11097 test "x$as_lineno_1" != "x$as_lineno_2" &&
11098 test "x$as_lineno_3" = "x$as_lineno_2" || {
11099 # Find who we are. Look in the path if we contain no path at all
11100 # relative or not.
11101 case $0 in
11102 *[\\/]* ) as_myself=$0 ;;
11103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104for as_dir in $PATH
11105do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11109done
11110
11111 ;;
11112 esac
11113 # We did not find ourselves, most probably we were run as `sh COMMAND'
11114 # in which case we are not to be found in the path.
11115 if test "x$as_myself" = x; then
11116 as_myself=$0
11117 fi
11118 if test ! -f "$as_myself"; then
11119 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11120echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11121 { (exit 1); exit 1; }; }
8106cdd5 11122 fi
ad6254c5
AK
11123 case $CONFIG_SHELL in
11124 '')
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for as_base in sh bash ksh sh5; do
11131 case $as_dir in
11132 /*)
11133 if ("$as_dir/$as_base" -c '
11134 as_lineno_1=$LINENO
11135 as_lineno_2=$LINENO
11136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11137 test "x$as_lineno_1" != "x$as_lineno_2" &&
11138 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11139 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11140 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11141 CONFIG_SHELL=$as_dir/$as_base
11142 export CONFIG_SHELL
11143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11144 fi;;
11145 esac
11146 done
80992638 11147done
ad6254c5 11148;;
795ca3e5
AK
11149 esac
11150
ad6254c5
AK
11151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11152 # uniformly replaced by the line number. The first 'sed' inserts a
11153 # line-number line before each line; the second 'sed' does the real
11154 # work. The second script uses 'N' to pair each line-number line
11155 # with the numbered line, and appends trailing '-' during
11156 # substitution so that $LINENO is not a special case at line end.
11157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11159 sed '=' <$as_myself |
11160 sed '
11161 N
11162 s,$,-,
11163 : loop
11164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11165 t loop
11166 s,-$,,
11167 s,^['$as_cr_digits']*\n,,
11168 ' >$as_me.lineno &&
11169 chmod +x $as_me.lineno ||
11170 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11171echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11172 { (exit 1); exit 1; }; }
11173
11174 # Don't try to exec as it changes $[0], causing all sort of problems
11175 # (the dirname of $[0] is not the place where we might find the
11176 # original and so on. Autoconf is especially sensible to this).
11177 . ./$as_me.lineno
11178 # Exit status is that of the last command.
11179 exit
11180}
11181
11182
11183case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11184 *c*,-n*) ECHO_N= ECHO_C='
11185' ECHO_T=' ' ;;
11186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11188esac
11189
11190if expr a : '\(a\)' >/dev/null 2>&1; then
11191 as_expr=expr
11192else
11193 as_expr=false
11194fi
80992638 11195
ad6254c5
AK
11196rm -f conf$$ conf$$.exe conf$$.file
11197echo >conf$$.file
11198if ln -s conf$$.file conf$$ 2>/dev/null; then
11199 # We could just check for DJGPP; but this test a) works b) is more generic
11200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11201 if test -f conf$$.exe; then
11202 # Don't use ln at all; we don't have any links
11203 as_ln_s='cp -p'
8106cdd5 11204 else
ad6254c5 11205 as_ln_s='ln -s'
80992638 11206 fi
ad6254c5
AK
11207elif ln conf$$.file conf$$ 2>/dev/null; then
11208 as_ln_s=ln
11209else
11210 as_ln_s='cp -p'
11211fi
11212rm -f conf$$ conf$$.exe conf$$.file
8106cdd5 11213
ad6254c5
AK
11214if mkdir -p . 2>/dev/null; then
11215 as_mkdir_p=:
11216else
5c7fc7c4 11217 test -d ./-p && rmdir ./-p
ad6254c5
AK
11218 as_mkdir_p=false
11219fi
11220
11221as_executable_p="test -f"
11222
11223# Sed expression to map a string onto a valid CPP name.
5c7fc7c4 11224as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11225
11226# Sed expression to map a string onto a valid variable name.
5c7fc7c4 11227as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11228
11229
11230# IFS
11231# We need space, tab and new line, in precisely that order.
11232as_nl='
11233'
11234IFS=" $as_nl"
11235
11236# CDPATH.
11237$as_unset CDPATH
11238
11239exec 6>&1
11240
11241# Open the log real soon, to keep \$[0] and so on meaningful, and to
11242# report actual input values of CONFIG_FILES etc. instead of their
11243# values after options handling. Logging --version etc. is OK.
11244exec 5>>config.log
11245{
11246 echo
11247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11248## Running $as_me. ##
11249_ASBOX
11250} >&5
11251cat >&5 <<_CSEOF
11252
11253This file was extended by $as_me, which was
5c7fc7c4 11254generated by GNU Autoconf 2.59. Invocation command line was
ad6254c5
AK
11255
11256 CONFIG_FILES = $CONFIG_FILES
11257 CONFIG_HEADERS = $CONFIG_HEADERS
11258 CONFIG_LINKS = $CONFIG_LINKS
11259 CONFIG_COMMANDS = $CONFIG_COMMANDS
11260 $ $0 $@
11261
11262_CSEOF
11263echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11264echo >&5
11265_ACEOF
11266
11267# Files that config.status was made for.
11268if test -n "$ac_config_files"; then
11269 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11270fi
11271
11272if test -n "$ac_config_headers"; then
11273 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11274fi
11275
11276if test -n "$ac_config_links"; then
11277 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11278fi
11279
11280if test -n "$ac_config_commands"; then
11281 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11282fi
11283
11284cat >>$CONFIG_STATUS <<\_ACEOF
11285
11286ac_cs_usage="\
11287\`$as_me' instantiates files from templates according to the
11288current configuration.
11289
11290Usage: $0 [OPTIONS] [FILE]...
11291
11292 -h, --help print this help, then exit
11293 -V, --version print version number, then exit
11294 -q, --quiet do not print progress messages
11295 -d, --debug don't remove temporary files
11296 --recheck update $as_me by reconfiguring in the same conditions
11297 --file=FILE[:TEMPLATE]
5c7fc7c4 11298 instantiate the configuration file FILE
ad6254c5
AK
11299
11300Configuration files:
11301$config_files
11302
11303Report bugs to <bug-autoconf@gnu.org>."
11304_ACEOF
11305
11306cat >>$CONFIG_STATUS <<_ACEOF
11307ac_cs_version="\\
11308config.status
5c7fc7c4 11309configured by $0, generated by GNU Autoconf 2.59,
ad6254c5
AK
11310 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11311
5c7fc7c4 11312Copyright (C) 2003 Free Software Foundation, Inc.
ad6254c5
AK
11313This config.status script is free software; the Free Software Foundation
11314gives unlimited permission to copy, distribute and modify it."
11315srcdir=$srcdir
11316INSTALL="$INSTALL"
11317_ACEOF
11318
11319cat >>$CONFIG_STATUS <<\_ACEOF
11320# If no file are specified by the user, then we need to provide default
11321# value. By we need to know if files were specified by the user.
11322ac_need_defaults=:
11323while test $# != 0
11324do
11325 case $1 in
11326 --*=*)
11327 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11328 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11329 ac_shift=:
11330 ;;
11331 -*)
11332 ac_option=$1
11333 ac_optarg=$2
11334 ac_shift=shift
11335 ;;
11336 *) # This is not an option, so the user has probably given explicit
11337 # arguments.
11338 ac_option=$1
11339 ac_need_defaults=false;;
11340 esac
11341
11342 case $ac_option in
11343 # Handling of the options.
11344_ACEOF
11345cat >>$CONFIG_STATUS <<\_ACEOF
11346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11347 ac_cs_recheck=: ;;
11348 --version | --vers* | -V )
11349 echo "$ac_cs_version"; exit 0 ;;
11350 --he | --h)
11351 # Conflict between --help and --header
11352 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11353Try \`$0 --help' for more information." >&5
11354echo "$as_me: error: ambiguous option: $1
11355Try \`$0 --help' for more information." >&2;}
11356 { (exit 1); exit 1; }; };;
11357 --help | --hel | -h )
11358 echo "$ac_cs_usage"; exit 0 ;;
11359 --debug | --d* | -d )
11360 debug=: ;;
11361 --file | --fil | --fi | --f )
11362 $ac_shift
11363 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11364 ac_need_defaults=false;;
11365 --header | --heade | --head | --hea )
11366 $ac_shift
11367 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11368 ac_need_defaults=false;;
11369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11371 ac_cs_silent=: ;;
11372
11373 # This is an error.
11374 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11375Try \`$0 --help' for more information." >&5
11376echo "$as_me: error: unrecognized option: $1
11377Try \`$0 --help' for more information." >&2;}
11378 { (exit 1); exit 1; }; } ;;
11379
11380 *) ac_config_targets="$ac_config_targets $1" ;;
11381
11382 esac
11383 shift
11384done
11385
11386ac_configure_extra_args=
11387
11388if $ac_cs_silent; then
11389 exec 6>/dev/null
11390 ac_configure_extra_args="$ac_configure_extra_args --silent"
11391fi
11392
11393_ACEOF
11394cat >>$CONFIG_STATUS <<_ACEOF
11395if \$ac_cs_recheck; then
11396 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11397 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11398fi
11399
11400_ACEOF
11401
11402
11403
11404
11405
11406cat >>$CONFIG_STATUS <<\_ACEOF
11407for ac_config_target in $ac_config_targets
11408do
11409 case "$ac_config_target" in
11410 # Handling of arguments.
11411 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11412 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11413 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11414 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11415 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11416 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11417 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11418 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11419 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11420 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11421 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11422 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11423 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11424 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11425 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11426 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
11427 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
11428 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
11429 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
11430 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
11431 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
11432 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
11433 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11434echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11435 { (exit 1); exit 1; }; };;
80992638 11436 esac
ad6254c5
AK
11437done
11438
11439# If the user did not use the arguments to specify the items to instantiate,
11440# then the envvar interface is used. Set only those that are not.
11441# We use the long form for the default assignment because of an extremely
11442# bizarre bug on SunOS 4.1.3.
11443if $ac_need_defaults; then
11444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11445fi
11446
11447# Have a temporary directory for convenience. Make it in the build tree
11448# simply because there is no reason to put it here, and in addition,
11449# creating and moving files from /tmp can sometimes cause problems.
11450# Create a temporary directory, and hook for its removal unless debugging.
11451$debug ||
11452{
11453 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11454 trap '{ (exit 1); exit 1; }' 1 2 13 15
11455}
11456
11457# Create a (secure) tmp directory for tmp files.
11458
11459{
11460 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11461 test -n "$tmp" && test -d "$tmp"
11462} ||
11463{
11464 tmp=./confstat$$-$RANDOM
11465 (umask 077 && mkdir $tmp)
11466} ||
11467{
11468 echo "$me: cannot create a temporary directory in ." >&2
11469 { (exit 1); exit 1; }
11470}
11471
11472_ACEOF
11473
11474cat >>$CONFIG_STATUS <<_ACEOF
11475
11476#
11477# CONFIG_FILES section.
11478#
11479
11480# No need to generate the scripts if there are no CONFIG_FILES.
11481# This happens for instance when ./config.status config.h
11482if test -n "\$CONFIG_FILES"; then
11483 # Protect against being on the right side of a sed subst in config.status.
11484 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11485 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11486s,@SHELL@,$SHELL,;t t
11487s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11488s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11489s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11490s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11491s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11492s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11493s,@exec_prefix@,$exec_prefix,;t t
11494s,@prefix@,$prefix,;t t
11495s,@program_transform_name@,$program_transform_name,;t t
11496s,@bindir@,$bindir,;t t
11497s,@sbindir@,$sbindir,;t t
11498s,@libexecdir@,$libexecdir,;t t
11499s,@datadir@,$datadir,;t t
11500s,@sysconfdir@,$sysconfdir,;t t
11501s,@sharedstatedir@,$sharedstatedir,;t t
11502s,@localstatedir@,$localstatedir,;t t
11503s,@libdir@,$libdir,;t t
11504s,@includedir@,$includedir,;t t
11505s,@oldincludedir@,$oldincludedir,;t t
11506s,@infodir@,$infodir,;t t
11507s,@mandir@,$mandir,;t t
11508s,@build_alias@,$build_alias,;t t
11509s,@host_alias@,$host_alias,;t t
11510s,@target_alias@,$target_alias,;t t
11511s,@DEFS@,$DEFS,;t t
11512s,@ECHO_C@,$ECHO_C,;t t
11513s,@ECHO_N@,$ECHO_N,;t t
11514s,@ECHO_T@,$ECHO_T,;t t
11515s,@LIBS@,$LIBS,;t t
11516s,@build@,$build,;t t
11517s,@build_cpu@,$build_cpu,;t t
11518s,@build_vendor@,$build_vendor,;t t
11519s,@build_os@,$build_os,;t t
11520s,@host@,$host,;t t
11521s,@host_cpu@,$host_cpu,;t t
11522s,@host_vendor@,$host_vendor,;t t
11523s,@host_os@,$host_os,;t t
11524s,@target@,$target,;t t
11525s,@target_cpu@,$target_cpu,;t t
11526s,@target_vendor@,$target_vendor,;t t
11527s,@target_os@,$target_os,;t t
11528s,@AWK@,$AWK,;t t
11529s,@CC@,$CC,;t t
11530s,@CFLAGS@,$CFLAGS,;t t
11531s,@LDFLAGS@,$LDFLAGS,;t t
11532s,@CPPFLAGS@,$CPPFLAGS,;t t
11533s,@ac_ct_CC@,$ac_ct_CC,;t t
11534s,@EXEEXT@,$EXEEXT,;t t
11535s,@OBJEXT@,$OBJEXT,;t t
11536s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11537s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11538s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11539s,@LN_S@,$LN_S,;t t
11540s,@SET_MAKE@,$SET_MAKE,;t t
11541s,@RANLIB@,$RANLIB,;t t
11542s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11543s,@CPP@,$CPP,;t t
11544s,@EGREP@,$EGREP,;t t
11545s,@ALLOCA@,$ALLOCA,;t t
11546s,@LIBOBJS@,$LIBOBJS,;t t
11547s,@POW_LIB@,$POW_LIB,;t t
11548s,@MSGFMT@,$MSGFMT,;t t
a653923f 11549s,@MODPROBE_CMD@,$MODPROBE_CMD,;t t
ad6254c5
AK
11550s,@JOBS@,$JOBS,;t t
11551s,@STATIC_LINK@,$STATIC_LINK,;t t
11552s,@LVM1@,$LVM1,;t t
11553s,@POOL@,$POOL,;t t
11554s,@SNAPSHOTS@,$SNAPSHOTS,;t t
11555s,@MIRRORS@,$MIRRORS,;t t
11556s,@OWNER@,$OWNER,;t t
11557s,@GROUP@,$GROUP,;t t
11558s,@COPTIMISE_FLAG@,$COPTIMISE_FLAG,;t t
11559s,@CLDFLAGS@,$CLDFLAGS,;t t
11560s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
11561s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
11562s,@LDDEPS@,$LDDEPS,;t t
11563s,@SOFLAG@,$SOFLAG,;t t
11564s,@LVM_VERSION@,$LVM_VERSION,;t t
11565s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
11566s,@DEBUG@,$DEBUG,;t t
11567s,@DEVMAPPER@,$DEVMAPPER,;t t
11568s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
11569s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
11570s,@CMDLIB@,$CMDLIB,;t t
11571s,@LOCALEDIR@,$LOCALEDIR,;t t
11572s,@CONFDIR@,$CONFDIR,;t t
11573s,@STATICDIR@,$STATICDIR,;t t
11574s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
11575s,@INTL@,$INTL,;t t
11576s,@CLVMD@,$CLVMD,;t t
11577s,@CLUSTER@,$CLUSTER,;t t
11578s,@FSADM@,$FSADM,;t t
11579s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11580CEOF
11581
11582_ACEOF
11583
11584 cat >>$CONFIG_STATUS <<\_ACEOF
11585 # Split the substitutions into bite-sized pieces for seds with
11586 # small command number limits, like on Digital OSF/1 and HP-UX.
11587 ac_max_sed_lines=48
11588 ac_sed_frag=1 # Number of current file.
11589 ac_beg=1 # First line for current file.
11590 ac_end=$ac_max_sed_lines # Line after last line for current file.
11591 ac_more_lines=:
11592 ac_sed_cmds=
11593 while $ac_more_lines; do
11594 if test $ac_beg -gt 1; then
11595 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11596 else
11597 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11598 fi
11599 if test ! -s $tmp/subs.frag; then
11600 ac_more_lines=false
11601 else
11602 # The purpose of the label and of the branching condition is to
11603 # speed up the sed processing (if there are no `@' at all, there
11604 # is no need to browse any of the substitutions).
11605 # These are the two extra sed commands mentioned above.
11606 (echo ':t
11607 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11608 if test -z "$ac_sed_cmds"; then
5c7fc7c4 11609 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5 11610 else
5c7fc7c4 11611 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
ad6254c5
AK
11612 fi
11613 ac_sed_frag=`expr $ac_sed_frag + 1`
11614 ac_beg=$ac_end
11615 ac_end=`expr $ac_end + $ac_max_sed_lines`
11616 fi
11617 done
11618 if test -z "$ac_sed_cmds"; then
11619 ac_sed_cmds=cat
11620 fi
11621fi # test -n "$CONFIG_FILES"
8106cdd5 11622
ad6254c5
AK
11623_ACEOF
11624cat >>$CONFIG_STATUS <<\_ACEOF
11625for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11626 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11627 case $ac_file in
11628 - | *:- | *:-:* ) # input from stdin
5c7fc7c4
PC
11629 cat >$tmp/stdin
11630 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11631 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11632 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5c7fc7c4 11633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
ad6254c5 11634 * ) ac_file_in=$ac_file.in ;;
80992638 11635 esac
8106cdd5 11636
ad6254c5
AK
11637 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11638 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11639$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5c7fc7c4
PC
11640 X"$ac_file" : 'X\(//\)[^/]' \| \
11641 X"$ac_file" : 'X\(//\)$' \| \
11642 X"$ac_file" : 'X\(/\)' \| \
11643 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11644echo X"$ac_file" |
11645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11647 /^X\(\/\/\)$/{ s//\1/; q; }
11648 /^X\(\/\).*/{ s//\1/; q; }
11649 s/.*/./; q'`
11650 { if $as_mkdir_p; then
11651 mkdir -p "$ac_dir"
11652 else
11653 as_dir="$ac_dir"
11654 as_dirs=
11655 while test ! -d "$as_dir"; do
11656 as_dirs="$as_dir $as_dirs"
11657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11658$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5c7fc7c4
PC
11659 X"$as_dir" : 'X\(//\)[^/]' \| \
11660 X"$as_dir" : 'X\(//\)$' \| \
11661 X"$as_dir" : 'X\(/\)' \| \
11662 . : '\(.\)' 2>/dev/null ||
ad6254c5
AK
11663echo X"$as_dir" |
11664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11666 /^X\(\/\/\)$/{ s//\1/; q; }
11667 /^X\(\/\).*/{ s//\1/; q; }
11668 s/.*/./; q'`
11669 done
11670 test ! -n "$as_dirs" || mkdir $as_dirs
11671 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11672echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11673 { (exit 1); exit 1; }; }; }
11674
11675 ac_builddir=.
11676
11677if test "$ac_dir" != .; then
11678 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11679 # A "../" for each directory in $ac_dir_suffix.
11680 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11681else
11682 ac_dir_suffix= ac_top_builddir=
11683fi
11684
11685case $srcdir in
11686 .) # No --srcdir option. We are building in place.
11687 ac_srcdir=.
11688 if test -z "$ac_top_builddir"; then
11689 ac_top_srcdir=.
11690 else
11691 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11692 fi ;;
11693 [\\/]* | ?:[\\/]* ) # Absolute path.
11694 ac_srcdir=$srcdir$ac_dir_suffix;
11695 ac_top_srcdir=$srcdir ;;
11696 *) # Relative path.
11697 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11698 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11699esac
5c7fc7c4
PC
11700
11701# Do not use `cd foo && pwd` to compute absolute paths, because
11702# the directories may not exist.
11703case `pwd` in
11704.) ac_abs_builddir="$ac_dir";;
11705*)
11706 case "$ac_dir" in
11707 .) ac_abs_builddir=`pwd`;;
11708 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11709 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11710 esac;;
11711esac
11712case $ac_abs_builddir in
11713.) ac_abs_top_builddir=${ac_top_builddir}.;;
11714*)
11715 case ${ac_top_builddir}. in
11716 .) ac_abs_top_builddir=$ac_abs_builddir;;
11717 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11718 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11719 esac;;
11720esac
11721case $ac_abs_builddir in
11722.) ac_abs_srcdir=$ac_srcdir;;
11723*)
11724 case $ac_srcdir in
11725 .) ac_abs_srcdir=$ac_abs_builddir;;
11726 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11727 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11728 esac;;
11729esac
11730case $ac_abs_builddir in
11731.) ac_abs_top_srcdir=$ac_top_srcdir;;
11732*)
11733 case $ac_top_srcdir in
11734 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11735 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11736 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11737 esac;;
11738esac
ad6254c5
AK
11739
11740
11741 case $INSTALL in
11742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11743 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
11744 esac
11745
ad6254c5
AK
11746 if test x"$ac_file" != x-; then
11747 { echo "$as_me:$LINENO: creating $ac_file" >&5
11748echo "$as_me: creating $ac_file" >&6;}
11749 rm -f "$ac_file"
11750 fi
11751 # Let's still pretend it is `configure' which instantiates (i.e., don't
11752 # use $as_me), people would be surprised to read:
11753 # /* config.h. Generated by config.status. */
11754 if test x"$ac_file" = x-; then
11755 configure_input=
11756 else
11757 configure_input="$ac_file. "
11758 fi
11759 configure_input=$configure_input"Generated from `echo $ac_file_in |
5c7fc7c4 11760 sed 's,.*/,,'` by configure."
ad6254c5
AK
11761
11762 # First look for the input files in the build tree, otherwise in the
11763 # src tree.
11764 ac_file_inputs=`IFS=:
11765 for f in $ac_file_in; do
11766 case $f in
11767 -) echo $tmp/stdin ;;
11768 [\\/$]*)
5c7fc7c4
PC
11769 # Absolute (can't be DOS-style, as IFS=:)
11770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11771echo "$as_me: error: cannot find input file: $f" >&2;}
11772 { (exit 1); exit 1; }; }
5c7fc7c4 11773 echo "$f";;
ad6254c5 11774 *) # Relative
5c7fc7c4
PC
11775 if test -f "$f"; then
11776 # Build tree
11777 echo "$f"
11778 elif test -f "$srcdir/$f"; then
11779 # Source tree
11780 echo "$srcdir/$f"
11781 else
11782 # /dev/null tree
11783 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
ad6254c5
AK
11784echo "$as_me: error: cannot find input file: $f" >&2;}
11785 { (exit 1); exit 1; }; }
5c7fc7c4 11786 fi;;
ad6254c5
AK
11787 esac
11788 done` || { (exit 1); exit 1; }
11789_ACEOF
11790cat >>$CONFIG_STATUS <<_ACEOF
11791 sed "$ac_vpsub
11792$extrasub
11793_ACEOF
11794cat >>$CONFIG_STATUS <<\_ACEOF
11795:t
11796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11797s,@configure_input@,$configure_input,;t t
11798s,@srcdir@,$ac_srcdir,;t t
11799s,@abs_srcdir@,$ac_abs_srcdir,;t t
11800s,@top_srcdir@,$ac_top_srcdir,;t t
11801s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11802s,@builddir@,$ac_builddir,;t t
11803s,@abs_builddir@,$ac_abs_builddir,;t t
11804s,@top_builddir@,$ac_top_builddir,;t t
11805s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11806s,@INSTALL@,$ac_INSTALL,;t t
11807" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11808 rm -f $tmp/stdin
11809 if test x"$ac_file" != x-; then
11810 mv $tmp/out $ac_file
11811 else
11812 cat $tmp/out
11813 rm -f $tmp/out
11814 fi
795ca3e5 11815
ad6254c5
AK
11816done
11817_ACEOF
795ca3e5 11818
ad6254c5 11819cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 11820
ad6254c5
AK
11821{ (exit 0); exit 0; }
11822_ACEOF
795ca3e5 11823chmod +x $CONFIG_STATUS
ad6254c5
AK
11824ac_clean_files=$ac_clean_files_save
11825
11826
11827# configure is writing to config.log, and then calls config.status.
11828# config.status does its own redirection, appending to config.log.
11829# Unfortunately, on DOS this fails, as config.log is still kept open
11830# by configure, so config.status won't be able to write to it; its
11831# output is simply discarded. So we exec the FD to /dev/null,
11832# effectively closing config.log, so it can be properly (re)opened and
11833# appended to by config.status. When coming back to configure, we
11834# need to make the FD available again.
11835if test "$no_create" != yes; then
11836 ac_cs_success=:
11837 ac_config_status_args=
11838 test "$silent" = yes &&
11839 ac_config_status_args="$ac_config_status_args --quiet"
11840 exec 5>/dev/null
11841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11842 exec 5>>config.log
11843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11844 # would make configure fail if this is the last instruction.
11845 $ac_cs_success || { (exit 1); exit 1; }
11846fi
795ca3e5 11847
2dc95e1c
AK
11848
11849if test x$ODIRECT != xyes; then
ad6254c5
AK
11850 { echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11851echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11852fi
809fae91
AK
11853
11854if test x$FSADM == xyes; then
ad6254c5
AK
11855 { echo "$as_me:$LINENO: WARNING: fsadm support is untested" >&5
11856echo "$as_me: WARNING: fsadm support is untested" >&2;}
809fae91 11857fi
This page took 1.272532 seconds and 5 git commands to generate.