]> sourceware.org Git - lvm2.git/blame - configure
Make sure errors reach syslog().
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
8106cdd5 3# Generated by GNU Autoconf 2.57.
795ca3e5 4#
8106cdd5
AK
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
8106cdd5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
8106cdd5
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
221 as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
795ca3e5 253ac_default_prefix=/usr/local
8106cdd5
AK
254ac_config_libobj_dir=.
255cross_compiling=no
256subdirs=
257MFLAGS=
258MAKEFLAGS=
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
266# Identity of this package.
267PACKAGE_NAME=
268PACKAGE_TARNAME=
269PACKAGE_VERSION=
270PACKAGE_STRING=
271PACKAGE_BUGREPORT=
272
273ac_unique_file="lib/device/dev-cache.h"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
795ca3e5 311ac_default_prefix=/usr
d3c8211f 312ac_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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MSGFMT JOBS STATIC_LINK LVM1 POOL SNAPSHOTS MIRRORS OWNER GROUP CLDFLAGS CLDWHOLEARCHIVE CLDNOWHOLEARCHIVE LD_DEPS LD_FLAGS SOFLAG LVM_VERSION LVM1_FALLBACK DEBUG DEVMAPPER HAVE_LIBDL HAVE_SELINUX CMDLIB LOCALEDIR CONFDIR STATICDIR INTL_PACKAGE INTL CLVMD CLUSTER FSADM LIBOBJS LTLIBOBJS'
8106cdd5 313ac_subst_files=''
795ca3e5
AK
314
315# Initialize some variables set by options.
8106cdd5
AK
316ac_init_help=
317ac_init_version=false
795ca3e5
AK
318# The variables have the same names as the options, with
319# dashes changed to underlines.
8106cdd5 320cache_file=/dev/null
795ca3e5 321exec_prefix=NONE
795ca3e5 322no_create=
795ca3e5
AK
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
795ca3e5
AK
331verbose=
332x_includes=NONE
333x_libraries=NONE
8106cdd5
AK
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
795ca3e5
AK
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
795ca3e5
AK
353ac_prev=
354for ac_option
355do
795ca3e5
AK
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
8106cdd5 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
795ca3e5
AK
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
8106cdd5 367 case $ac_option in
795ca3e5
AK
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8106cdd5 372 bindir=$ac_optarg ;;
795ca3e5
AK
373
374 -build | --build | --buil | --bui | --bu)
8106cdd5 375 ac_prev=build_alias ;;
795ca3e5 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8106cdd5 377 build_alias=$ac_optarg ;;
795ca3e5
AK
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8106cdd5
AK
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
795ca3e5
AK
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
8106cdd5 393 datadir=$ac_optarg ;;
795ca3e5
AK
394
395 -disable-* | --disable-*)
8106cdd5 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 397 # Reject names that are not valid shell variable names.
8106cdd5
AK
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
795ca3e5
AK
403
404 -enable-* | --enable-*)
8106cdd5 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 406 # Reject names that are not valid shell variable names.
8106cdd5
AK
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
413 *) ac_optarg=yes ;;
414 esac
8106cdd5 415 eval "enable_$ac_feature='$ac_optarg'" ;;
795ca3e5
AK
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
8106cdd5 424 exec_prefix=$ac_optarg ;;
795ca3e5
AK
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
8106cdd5
AK
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
795ca3e5
AK
436
437 -host | --host | --hos | --ho)
8106cdd5 438 ac_prev=host_alias ;;
795ca3e5 439 -host=* | --host=* | --hos=* | --ho=*)
8106cdd5 440 host_alias=$ac_optarg ;;
795ca3e5
AK
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
8106cdd5 447 includedir=$ac_optarg ;;
795ca3e5
AK
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8106cdd5 452 infodir=$ac_optarg ;;
795ca3e5
AK
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
8106cdd5 457 libdir=$ac_optarg ;;
795ca3e5
AK
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
8106cdd5 464 libexecdir=$ac_optarg ;;
795ca3e5
AK
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
8106cdd5 473 localstatedir=$ac_optarg ;;
795ca3e5
AK
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
8106cdd5 478 mandir=$ac_optarg ;;
795ca3e5
AK
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8106cdd5 485 | --no-cr | --no-c | -n)
795ca3e5
AK
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
8106cdd5 499 oldincludedir=$ac_optarg ;;
795ca3e5
AK
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8106cdd5 504 prefix=$ac_optarg ;;
795ca3e5
AK
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
8106cdd5 511 program_prefix=$ac_optarg ;;
795ca3e5
AK
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
8106cdd5 518 program_suffix=$ac_optarg ;;
795ca3e5
AK
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
8106cdd5 535 program_transform_name=$ac_optarg ;;
795ca3e5
AK
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
8106cdd5 545 sbindir=$ac_optarg ;;
795ca3e5
AK
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
8106cdd5 556 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
8106cdd5 561 site=$ac_optarg ;;
795ca3e5
AK
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8106cdd5 566 srcdir=$ac_optarg ;;
795ca3e5
AK
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8106cdd5 573 sysconfdir=$ac_optarg ;;
795ca3e5
AK
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
8106cdd5 576 ac_prev=target_alias ;;
795ca3e5 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8106cdd5 578 target_alias=$ac_optarg ;;
795ca3e5
AK
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
8106cdd5
AK
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
795ca3e5
AK
585
586 -with-* | --with-*)
8106cdd5 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 588 # Reject names that are not valid shell variable names.
8106cdd5
AK
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
795ca3e5 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
8106cdd5
AK
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
795ca3e5
AK
595 *) ac_optarg=yes ;;
596 esac
8106cdd5 597 eval "with_$ac_package='$ac_optarg'" ;;
795ca3e5
AK
598
599 -without-* | --without-*)
8106cdd5 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 601 # Reject names that are not valid shell variable names.
8106cdd5
AK
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
795ca3e5
AK
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
8106cdd5 617 x_includes=$ac_optarg ;;
795ca3e5
AK
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
8106cdd5 624 x_libraries=$ac_optarg ;;
795ca3e5 625
8106cdd5
AK
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
795ca3e5
AK
629 ;;
630
8106cdd5
AK
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
795ca3e5 641 *)
8106cdd5
AK
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
8106cdd5
AK
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
795ca3e5 656fi
795ca3e5 657
8106cdd5
AK
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
795ca3e5 668
8106cdd5
AK
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
795ca3e5 672do
8106cdd5
AK
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
795ca3e5
AK
678 esac
679done
680
8106cdd5
AK
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
795ca3e5 698
8106cdd5
AK
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
795ca3e5 703
795ca3e5
AK
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
8106cdd5
AK
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
795ca3e5
AK
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
8106cdd5
AK
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
795ca3e5 732 else
8106cdd5
AK
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
795ca3e5
AK
735 fi
736fi
8106cdd5
AK
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 --target=TARGET configure for building compilers for TARGET [HOST]
838_ACEOF
839fi
840
841if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7d1552c9
AK
848 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
849 device-mapper is missing from the kernel
8106cdd5
AK
850 --enable-jobs=NUM Number of jobs to run simultaneously
851 --enable-static_link Use this to link the tools to their libraries
852 statically. Default is dynamic linking
853 --enable-readline Enable readline support
854 --enable-debug Enable debugging
855 --disable-devmapper Disable device-mapper interaction
856 --disable-o_direct Disable O_DIRECT
857 --enable-cmdlib Build shared command library
809fae91 858 --enable-fsadm Enable fsadm
8106cdd5
AK
859 --enable-nls Enable Native Language Support
860
861Optional Packages:
862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
864 --with-user=USER Set the owner of installed files
865 --with-group=GROUP Set the group owner of installed files
866 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
867 TYPE=internal
60329273 868 --with-pool=TYPE GFS pool read-only support: internal/shared/none
d8ac0fbc 869 TYPE=internal
d3c8211f
AK
870 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
871 TYPE=internal
4922197a
AK
872 --with-snapshots=TYPE Snapshot support: internal/shared/none
873 TYPE=internal
874 --with-mirrors=TYPE Mirror support: internal/shared/none
875 TYPE=internal
d3c8211f 876 --with-clvmd Build cluster LVM Daemon
8106cdd5 877 --with-localedir=DIR Translation files in DIR PREFIX/share/locale
0a62c911
AK
878 --with-confdir=DIR Configuration files in DIR /etc
879 --with-staticdir=DIR Static binary in DIR EXEC_PREFIX/sbin
8106cdd5
AK
880
881Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
889
890Use these variables to override the choices made by `configure' or to help
891it to find libraries and programs with nonstandard names/locations.
892
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
902
903if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908 ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
927# absolute.
928ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
930ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932
933 cd $ac_dir
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
936 echo
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
939 echo
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
943 echo
944 $ac_configure --help
945 else
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947 fi
948 cd $ac_popdir
949 done
950fi
951
952test -n "$ac_init_help" && exit 0
953if $ac_init_version; then
954 cat <<\_ACEOF
955
956Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957Free Software Foundation, Inc.
958This configure script is free software; the Free Software Foundation
959gives unlimited permission to copy, distribute and modify it.
960_ACEOF
961 exit 0
962fi
963exec 5>config.log
964cat >&5 <<_ACEOF
965This file contains any messages produced by compilers while
966running configure, to aid debugging if configure makes a mistake.
967
968It was created by $as_me, which was
969generated by GNU Autoconf 2.57. Invocation command line was
970
971 $ $0 $@
972
973_ACEOF
974{
975cat <<_ASUNAME
976## --------- ##
977## Platform. ##
978## --------- ##
979
980hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
981uname -m = `(uname -m) 2>/dev/null || echo unknown`
982uname -r = `(uname -r) 2>/dev/null || echo unknown`
983uname -s = `(uname -s) 2>/dev/null || echo unknown`
984uname -v = `(uname -v) 2>/dev/null || echo unknown`
985
986/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
987/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
988
989/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
990/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
991/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
992hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
993/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
994/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
995/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
996
997_ASUNAME
998
999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1000for as_dir in $PATH
1001do
1002 IFS=$as_save_IFS
1003 test -z "$as_dir" && as_dir=.
1004 echo "PATH: $as_dir"
1005done
1006
1007} >&5
1008
1009cat >&5 <<_ACEOF
1010
1011
1012## ----------- ##
1013## Core tests. ##
1014## ----------- ##
1015
1016_ACEOF
1017
1018
1019# Keep a trace of the command line.
1020# Strip out --no-create and --no-recursion so they do not pile up.
1021# Strip out --silent because we don't want to record it for future runs.
1022# Also quote any args containing shell meta-characters.
1023# Make two passes to allow for proper duplicate-argument suppression.
1024ac_configure_args=
1025ac_configure_args0=
1026ac_configure_args1=
1027ac_sep=
1028ac_must_keep_next=false
1029for ac_pass in 1 2
1030do
1031 for ac_arg
1032 do
1033 case $ac_arg in
1034 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 continue ;;
1038 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 esac
1041 case $ac_pass in
1042 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1043 2)
1044 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1045 if test $ac_must_keep_next = true; then
1046 ac_must_keep_next=false # Got value, back to normal.
1047 else
1048 case $ac_arg in
1049 *=* | --config-cache | -C | -disable-* | --disable-* \
1050 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1051 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1052 | -with-* | --with-* | -without-* | --without-* | --x)
1053 case "$ac_configure_args0 " in
1054 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 esac
1056 ;;
1057 -* ) ac_must_keep_next=true ;;
1058 esac
1059 fi
1060 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1062 ac_sep=" "
1063 ;;
1064 esac
1065 done
1066done
1067$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1068$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1069
1070# When interrupted or exit'd, cleanup temporary files, and complete
1071# config.log. We remove comments because anyway the quotes in there
1072# would cause problems or look ugly.
1073# WARNING: Be sure not to use single quotes in there, as some shells,
1074# such as our DU 5.0 friend, will then `close' the trap.
1075trap 'exit_status=$?
1076 # Save into config.log some information that might help in debugging.
1077 {
1078 echo
1079
1080 cat <<\_ASBOX
1081## ---------------- ##
1082## Cache variables. ##
1083## ---------------- ##
1084_ASBOX
1085 echo
1086 # The following way of writing the cache mishandles newlines in values,
1087{
1088 (set) 2>&1 |
1089 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 *ac_space=\ *)
1091 sed -n \
1092 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1094 ;;
1095 *)
1096 sed -n \
1097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1098 ;;
1099 esac;
1100}
1101 echo
1102
1103 cat <<\_ASBOX
1104## ----------------- ##
1105## Output variables. ##
1106## ----------------- ##
1107_ASBOX
1108 echo
1109 for ac_var in $ac_subst_vars
1110 do
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1115
1116 if test -n "$ac_subst_files"; then
1117 cat <<\_ASBOX
1118## ------------- ##
1119## Output files. ##
1120## ------------- ##
1121_ASBOX
1122 echo
1123 for ac_var in $ac_subst_files
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129 fi
1130
1131 if test -s confdefs.h; then
1132 cat <<\_ASBOX
1133## ----------- ##
1134## confdefs.h. ##
1135## ----------- ##
1136_ASBOX
1137 echo
1138 sed "/^$/d" confdefs.h | sort
1139 echo
1140 fi
1141 test "$ac_signal" != 0 &&
1142 echo "$as_me: caught signal $ac_signal"
1143 echo "$as_me: exit $exit_status"
1144 } >&5
1145 rm -f core core.* *.core &&
1146 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147 exit $exit_status
1148 ' 0
1149for ac_signal in 1 2 13 15; do
1150 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1151done
1152ac_signal=0
1153
1154# confdefs.h avoids OS command line length limits that DEFS can exceed.
1155rm -rf conftest* confdefs.h
1156# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157echo >confdefs.h
1158
1159# Predefined preprocessor variables.
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_NAME "$PACKAGE_NAME"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1168_ACEOF
1169
1170
1171cat >>confdefs.h <<_ACEOF
1172#define PACKAGE_VERSION "$PACKAGE_VERSION"
1173_ACEOF
1174
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_STRING "$PACKAGE_STRING"
1178_ACEOF
1179
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1183_ACEOF
795ca3e5 1184
8106cdd5
AK
1185
1186# Let the site file select an alternate cache file if it wants to.
795ca3e5
AK
1187# Prefer explicitly selected file to automatically selected ones.
1188if test -z "$CONFIG_SITE"; then
1189 if test "x$prefix" != xNONE; then
1190 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1191 else
1192 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 fi
1194fi
1195for ac_site_file in $CONFIG_SITE; do
1196 if test -r "$ac_site_file"; then
8106cdd5
AK
1197 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1198echo "$as_me: loading site script $ac_site_file" >&6;}
1199 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1200 . "$ac_site_file"
1201 fi
1202done
1203
1204if test -r "$cache_file"; then
8106cdd5
AK
1205 # Some versions of bash will fail to source /dev/null (special
1206 # files actually), so we avoid doing that.
1207 if test -f "$cache_file"; then
1208 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1209echo "$as_me: loading cache $cache_file" >&6;}
1210 case $cache_file in
1211 [\\/]* | ?:[\\/]* ) . $cache_file;;
1212 *) . ./$cache_file;;
1213 esac
1214 fi
795ca3e5 1215else
8106cdd5
AK
1216 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1217echo "$as_me: creating cache $cache_file" >&6;}
1218 >$cache_file
1219fi
1220
1221# Check that the precious variables saved in the cache have kept the same
1222# value.
1223ac_cache_corrupted=false
1224for ac_var in `(set) 2>&1 |
1225 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1227 eval ac_new_set=\$ac_env_${ac_var}_set
1228 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1229 eval ac_new_val="\$ac_env_${ac_var}_value"
1230 case $ac_old_set,$ac_new_set in
1231 set,)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1233echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,set)
1236 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1237echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1238 ac_cache_corrupted=: ;;
1239 ,);;
1240 *)
1241 if test "x$ac_old_val" != "x$ac_new_val"; then
1242 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1243echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1244 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1245echo "$as_me: former value: $ac_old_val" >&2;}
1246 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1247echo "$as_me: current value: $ac_new_val" >&2;}
1248 ac_cache_corrupted=:
1249 fi;;
1250 esac
1251 # Pass precious variables to config.status.
1252 if test "$ac_new_set" = set; then
1253 case $ac_new_val in
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 *) ac_arg=$ac_var=$ac_new_val ;;
1257 esac
1258 case " $ac_configure_args " in
1259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1260 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1261 esac
1262 fi
1263done
1264if $ac_cache_corrupted; then
1265 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1266echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1267 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1268echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1269 { (exit 1); exit 1; }; }
795ca3e5
AK
1270fi
1271
1272ac_ext=c
795ca3e5 1273ac_cpp='$CPP $CPPFLAGS'
8106cdd5
AK
1274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1276ac_compiler_gnu=$ac_cv_c_compiler_gnu
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
795ca3e5
AK
1294
1295
1296
1297ac_aux_dir=
1298for ac_dir in autoconf $srcdir/autoconf; do
1299 if test -f $ac_dir/install-sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install-sh -c"
1302 break
1303 elif test -f $ac_dir/install.sh; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/install.sh -c"
1306 break
8106cdd5
AK
1307 elif test -f $ac_dir/shtool; then
1308 ac_aux_dir=$ac_dir
1309 ac_install_sh="$ac_aux_dir/shtool install -c"
1310 break
795ca3e5
AK
1311 fi
1312done
1313if test -z "$ac_aux_dir"; then
8106cdd5
AK
1314 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1315echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1316 { (exit 1); exit 1; }; }
795ca3e5 1317fi
8106cdd5
AK
1318ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1319ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1320ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1321
795ca3e5 1322
2dc95e1c 1323for ac_prog in gawk mawk nawk awk
795ca3e5 1324do
8106cdd5 1325 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 1326set dummy $ac_prog; ac_word=$2
8106cdd5
AK
1327echo "$as_me:$LINENO: checking for $ac_word" >&5
1328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1329if test "${ac_cv_prog_AWK+set}" = set; then
1330 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1331else
1332 if test -n "$AWK"; then
1333 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1334else
8106cdd5
AK
1335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336for as_dir in $PATH
1337do
1338 IFS=$as_save_IFS
1339 test -z "$as_dir" && as_dir=.
1340 for ac_exec_ext in '' $ac_executable_extensions; do
1341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1342 ac_cv_prog_AWK="$ac_prog"
1343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1344 break 2
1345 fi
1346done
1347done
1348
795ca3e5
AK
1349fi
1350fi
8106cdd5 1351AWK=$ac_cv_prog_AWK
795ca3e5 1352if test -n "$AWK"; then
8106cdd5
AK
1353 echo "$as_me:$LINENO: result: $AWK" >&5
1354echo "${ECHO_T}$AWK" >&6
795ca3e5 1355else
8106cdd5
AK
1356 echo "$as_me:$LINENO: result: no" >&5
1357echo "${ECHO_T}no" >&6
795ca3e5
AK
1358fi
1359
8106cdd5 1360 test -n "$AWK" && break
795ca3e5
AK
1361done
1362
8106cdd5
AK
1363ac_ext=c
1364ac_cpp='$CPP $CPPFLAGS'
1365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368if test -n "$ac_tool_prefix"; then
1369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1370set dummy ${ac_tool_prefix}gcc; ac_word=$2
1371echo "$as_me:$LINENO: checking for $ac_word" >&5
1372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373if test "${ac_cv_prog_CC+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1375else
1376 if test -n "$CC"; then
1377 ac_cv_prog_CC="$CC" # Let the user override the test.
1378else
8106cdd5
AK
1379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380for as_dir in $PATH
1381do
1382 IFS=$as_save_IFS
1383 test -z "$as_dir" && as_dir=.
1384 for ac_exec_ext in '' $ac_executable_extensions; do
1385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388 break 2
1389 fi
1390done
1391done
1392
1393fi
1394fi
1395CC=$ac_cv_prog_CC
1396if test -n "$CC"; then
1397 echo "$as_me:$LINENO: result: $CC" >&5
1398echo "${ECHO_T}$CC" >&6
1399else
1400 echo "$as_me:$LINENO: result: no" >&5
1401echo "${ECHO_T}no" >&6
1402fi
1403
1404fi
1405if test -z "$ac_cv_prog_CC"; then
1406 ac_ct_CC=$CC
1407 # Extract the first word of "gcc", so it can be a program name with args.
1408set dummy gcc; ac_word=$2
1409echo "$as_me:$LINENO: checking for $ac_word" >&5
1410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 if test -n "$ac_ct_CC"; then
1415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1416else
1417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418for as_dir in $PATH
1419do
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_ac_ct_CC="gcc"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1426 break 2
1427 fi
1428done
1429done
1430
1431fi
1432fi
1433ac_ct_CC=$ac_cv_prog_ac_ct_CC
1434if test -n "$ac_ct_CC"; then
1435 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1436echo "${ECHO_T}$ac_ct_CC" >&6
1437else
1438 echo "$as_me:$LINENO: result: no" >&5
1439echo "${ECHO_T}no" >&6
1440fi
1441
1442 CC=$ac_ct_CC
1443else
1444 CC="$ac_cv_prog_CC"
1445fi
1446
1447if test -z "$CC"; then
1448 if test -n "$ac_tool_prefix"; then
1449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1450set dummy ${ac_tool_prefix}cc; ac_word=$2
1451echo "$as_me:$LINENO: checking for $ac_word" >&5
1452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453if test "${ac_cv_prog_CC+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1455else
1456 if test -n "$CC"; then
1457 ac_cv_prog_CC="$CC" # Let the user override the test.
1458else
1459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460for as_dir in $PATH
1461do
1462 IFS=$as_save_IFS
1463 test -z "$as_dir" && as_dir=.
1464 for ac_exec_ext in '' $ac_executable_extensions; do
1465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466 ac_cv_prog_CC="${ac_tool_prefix}cc"
1467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1468 break 2
1469 fi
1470done
1471done
1472
1473fi
1474fi
1475CC=$ac_cv_prog_CC
1476if test -n "$CC"; then
1477 echo "$as_me:$LINENO: result: $CC" >&5
1478echo "${ECHO_T}$CC" >&6
1479else
1480 echo "$as_me:$LINENO: result: no" >&5
1481echo "${ECHO_T}no" >&6
1482fi
1483
1484fi
1485if test -z "$ac_cv_prog_CC"; then
1486 ac_ct_CC=$CC
1487 # Extract the first word of "cc", so it can be a program name with args.
1488set dummy cc; ac_word=$2
1489echo "$as_me:$LINENO: checking for $ac_word" >&5
1490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1493else
1494 if test -n "$ac_ct_CC"; then
1495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1496else
1497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH
1499do
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 for ac_exec_ext in '' $ac_executable_extensions; do
1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 ac_cv_prog_ac_ct_CC="cc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1507 fi
1508done
1509done
1510
1511fi
1512fi
1513ac_ct_CC=$ac_cv_prog_ac_ct_CC
1514if test -n "$ac_ct_CC"; then
1515 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1516echo "${ECHO_T}$ac_ct_CC" >&6
1517else
1518 echo "$as_me:$LINENO: result: no" >&5
1519echo "${ECHO_T}no" >&6
1520fi
1521
1522 CC=$ac_ct_CC
795ca3e5 1523else
8106cdd5 1524 CC="$ac_cv_prog_CC"
795ca3e5
AK
1525fi
1526
8106cdd5 1527fi
795ca3e5
AK
1528if test -z "$CC"; then
1529 # Extract the first word of "cc", so it can be a program name with args.
1530set dummy cc; ac_word=$2
8106cdd5
AK
1531echo "$as_me:$LINENO: checking for $ac_word" >&5
1532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1535else
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1538else
795ca3e5 1539 ac_prog_rejected=no
8106cdd5
AK
1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541for as_dir in $PATH
1542do
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1548 ac_prog_rejected=yes
1549 continue
1550 fi
1551 ac_cv_prog_CC="cc"
1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 break 2
1554 fi
1555done
1556done
1557
795ca3e5
AK
1558if test $ac_prog_rejected = yes; then
1559 # We found a bogon in the path, so make sure we never use it.
1560 set dummy $ac_cv_prog_CC
1561 shift
8106cdd5 1562 if test $# != 0; then
795ca3e5
AK
1563 # We chose a different compiler from the bogus one.
1564 # However, it has the same basename, so the bogon will be chosen
1565 # first if we set CC to just the basename; use the full file name.
1566 shift
8106cdd5 1567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
1568 fi
1569fi
1570fi
1571fi
8106cdd5 1572CC=$ac_cv_prog_CC
795ca3e5 1573if test -n "$CC"; then
8106cdd5
AK
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575echo "${ECHO_T}$CC" >&6
795ca3e5 1576else
8106cdd5
AK
1577 echo "$as_me:$LINENO: result: no" >&5
1578echo "${ECHO_T}no" >&6
795ca3e5
AK
1579fi
1580
8106cdd5
AK
1581fi
1582if test -z "$CC"; then
1583 if test -n "$ac_tool_prefix"; then
1584 for ac_prog in cl
1585 do
1586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1588echo "$as_me:$LINENO: checking for $ac_word" >&5
1589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1590if test "${ac_cv_prog_CC+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
1592else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595else
8106cdd5
AK
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 for ac_exec_ext in '' $ac_executable_extensions; do
1602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1605 break 2
1606 fi
1607done
1608done
1609
795ca3e5
AK
1610fi
1611fi
8106cdd5 1612CC=$ac_cv_prog_CC
795ca3e5 1613if test -n "$CC"; then
8106cdd5
AK
1614 echo "$as_me:$LINENO: result: $CC" >&5
1615echo "${ECHO_T}$CC" >&6
795ca3e5 1616else
8106cdd5
AK
1617 echo "$as_me:$LINENO: result: no" >&5
1618echo "${ECHO_T}no" >&6
795ca3e5 1619fi
8106cdd5
AK
1620
1621 test -n "$CC" && break
1622 done
1623fi
1624if test -z "$CC"; then
1625 ac_ct_CC=$CC
1626 for ac_prog in cl
1627do
1628 # Extract the first word of "$ac_prog", so it can be a program name with args.
1629set dummy $ac_prog; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 if test -n "$ac_ct_CC"; then
1636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641 IFS=$as_save_IFS
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_ac_ct_CC="$ac_prog"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647 break 2
795ca3e5 1648 fi
8106cdd5
AK
1649done
1650done
1651
1652fi
1653fi
1654ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655if test -n "$ac_ct_CC"; then
1656 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657echo "${ECHO_T}$ac_ct_CC" >&6
1658else
1659 echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
795ca3e5
AK
1661fi
1662
8106cdd5
AK
1663 test -n "$ac_ct_CC" && break
1664done
795ca3e5 1665
8106cdd5
AK
1666 CC=$ac_ct_CC
1667fi
1668
1669fi
1670
1671
1672test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1673See \`config.log' for more details." >&5
1674echo "$as_me: error: no acceptable C compiler found in \$PATH
1675See \`config.log' for more details." >&2;}
1676 { (exit 1); exit 1; }; }
1677
1678# Provide some information about the compiler.
1679echo "$as_me:$LINENO:" \
1680 "checking for C compiler version" >&5
1681ac_compiler=`set X $ac_compile; echo $2`
1682{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1683 (eval $ac_compiler --version </dev/null >&5) 2>&5
1684 ac_status=$?
1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686 (exit $ac_status); }
1687{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1688 (eval $ac_compiler -v </dev/null >&5) 2>&5
1689 ac_status=$?
1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691 (exit $ac_status); }
1692{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1693 (eval $ac_compiler -V </dev/null >&5) 2>&5
1694 ac_status=$?
1695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1696 (exit $ac_status); }
1697
1698cat >conftest.$ac_ext <<_ACEOF
1699#line $LINENO "configure"
1700/* confdefs.h. */
1701_ACEOF
1702cat confdefs.h >>conftest.$ac_ext
1703cat >>conftest.$ac_ext <<_ACEOF
1704/* end confdefs.h. */
1705
1706int
1707main ()
1708{
1709
1710 ;
1711 return 0;
1712}
1713_ACEOF
1714ac_clean_files_save=$ac_clean_files
1715ac_clean_files="$ac_clean_files a.out a.exe b.out"
1716# Try to create an executable without -o first, disregard a.out.
1717# It will help us diagnose broken compilers, and finding out an intuition
1718# of exeext.
1719echo "$as_me:$LINENO: checking for C compiler default output" >&5
1720echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1721ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1722if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1723 (eval $ac_link_default) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # Find the output, starting from the most likely. This scheme is
1728# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1729# resort.
1730
1731# Be careful to initialize this variable, since it used to be cached.
1732# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1733ac_cv_exeext=
1734# b.out is created by i960 compilers.
1735for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1736do
1737 test -f "$ac_file" || continue
1738 case $ac_file in
1739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1740 ;;
1741 conftest.$ac_ext )
1742 # This is the source file.
1743 ;;
1744 [ab].out )
1745 # We found the default executable, but exeext='' is most
1746 # certainly right.
1747 break;;
1748 *.* )
1749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1750 # FIXME: I believe we export ac_cv_exeext for Libtool,
1751 # but it would be cool to find out if it's true. Does anybody
1752 # maintain Libtool? --akim.
1753 export ac_cv_exeext
1754 break;;
1755 * )
1756 break;;
1757 esac
1758done
1759else
1760 echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1764See \`config.log' for more details." >&5
1765echo "$as_me: error: C compiler cannot create executables
1766See \`config.log' for more details." >&2;}
1767 { (exit 77); exit 77; }; }
1768fi
1769
1770ac_exeext=$ac_cv_exeext
1771echo "$as_me:$LINENO: result: $ac_file" >&5
1772echo "${ECHO_T}$ac_file" >&6
1773
1774# Check the compiler produces executables we can run. If not, either
1775# the compiler is broken, or we cross compile.
1776echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1777echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1778# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1779# If not cross compiling, check that we can run a simple program.
1780if test "$cross_compiling" != yes; then
1781 if { ac_try='./$ac_file'
1782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1783 (eval $ac_try) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; }; then
1787 cross_compiling=no
795ca3e5 1788 else
8106cdd5
AK
1789 if test "$cross_compiling" = maybe; then
1790 cross_compiling=yes
1791 else
1792 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1793If you meant to cross compile, use \`--host'.
1794See \`config.log' for more details." >&5
1795echo "$as_me: error: cannot run C compiled programs.
1796If you meant to cross compile, use \`--host'.
1797See \`config.log' for more details." >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
795ca3e5 1800 fi
795ca3e5 1801fi
8106cdd5
AK
1802echo "$as_me:$LINENO: result: yes" >&5
1803echo "${ECHO_T}yes" >&6
1804
1805rm -f a.out a.exe conftest$ac_cv_exeext b.out
1806ac_clean_files=$ac_clean_files_save
1807# Check the compiler produces executables we can run. If not, either
1808# the compiler is broken, or we cross compile.
1809echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1810echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1811echo "$as_me:$LINENO: result: $cross_compiling" >&5
1812echo "${ECHO_T}$cross_compiling" >&6
1813
1814echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1817 (eval $ac_link) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823# work properly (i.e., refer to `conftest.exe'), while it won't with
1824# `rm'.
1825for ac_file in conftest.exe conftest conftest.*; do
1826 test -f "$ac_file" || continue
1827 case $ac_file in
1828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 export ac_cv_exeext
1831 break;;
1832 * ) break;;
1833 esac
1834done
795ca3e5 1835else
8106cdd5
AK
1836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1837See \`config.log' for more details." >&5
1838echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1839See \`config.log' for more details." >&2;}
1840 { (exit 1); exit 1; }; }
1841fi
1842
1843rm -f conftest$ac_cv_exeext
1844echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1845echo "${ECHO_T}$ac_cv_exeext" >&6
1846
1847rm -f conftest.$ac_ext
1848EXEEXT=$ac_cv_exeext
1849ac_exeext=$EXEEXT
1850echo "$as_me:$LINENO: checking for suffix of object files" >&5
1851echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1852if test "${ac_cv_objext+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 cat >conftest.$ac_ext <<_ACEOF
1856#line $LINENO "configure"
1857/* confdefs.h. */
1858_ACEOF
1859cat confdefs.h >>conftest.$ac_ext
1860cat >>conftest.$ac_ext <<_ACEOF
1861/* end confdefs.h. */
1862
1863int
1864main ()
1865{
1866
1867 ;
1868 return 0;
1869}
1870_ACEOF
1871rm -f conftest.o conftest.obj
1872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1874 ac_status=$?
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; then
1877 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1878 case $ac_file in
1879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1881 break;;
1882 esac
1883done
1884else
1885 echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1889See \`config.log' for more details." >&5
1890echo "$as_me: error: cannot compute suffix of object files: cannot compile
1891See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1893fi
1894
1895rm -f conftest.$ac_cv_objext conftest.$ac_ext
1896fi
1897echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1898echo "${ECHO_T}$ac_cv_objext" >&6
1899OBJEXT=$ac_cv_objext
1900ac_objext=$OBJEXT
1901echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1902echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1903if test "${ac_cv_c_compiler_gnu+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906 cat >conftest.$ac_ext <<_ACEOF
1907#line $LINENO "configure"
1908/* confdefs.h. */
1909_ACEOF
1910cat confdefs.h >>conftest.$ac_ext
1911cat >>conftest.$ac_ext <<_ACEOF
1912/* end confdefs.h. */
1913
1914int
1915main ()
1916{
1917#ifndef __GNUC__
1918 choke me
1919#endif
795ca3e5 1920
8106cdd5
AK
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925rm -f conftest.$ac_objext
1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1928 ac_status=$?
1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933 (eval $ac_try) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1937 ac_compiler_gnu=yes
795ca3e5 1938else
8106cdd5
AK
1939 echo "$as_me: failed program was:" >&5
1940sed 's/^/| /' conftest.$ac_ext >&5
1941
1942ac_compiler_gnu=no
795ca3e5 1943fi
8106cdd5
AK
1944rm -f conftest.$ac_objext conftest.$ac_ext
1945ac_cv_c_compiler_gnu=$ac_compiler_gnu
795ca3e5 1946
8106cdd5
AK
1947fi
1948echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1949echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1950GCC=`test $ac_compiler_gnu = yes && echo yes`
1951ac_test_CFLAGS=${CFLAGS+set}
1952ac_save_CFLAGS=$CFLAGS
1953CFLAGS="-g"
1954echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1955echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1956if test "${ac_cv_prog_cc_g+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 1958else
8106cdd5
AK
1959 cat >conftest.$ac_ext <<_ACEOF
1960#line $LINENO "configure"
1961/* confdefs.h. */
1962_ACEOF
1963cat confdefs.h >>conftest.$ac_ext
1964cat >>conftest.$ac_ext <<_ACEOF
1965/* end confdefs.h. */
1966
1967int
1968main ()
1969{
1970
1971 ;
1972 return 0;
1973}
1974_ACEOF
1975rm -f conftest.$ac_objext
1976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1978 ac_status=$?
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1983 (eval $ac_try) 2>&5
1984 ac_status=$?
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
795ca3e5
AK
1987 ac_cv_prog_cc_g=yes
1988else
8106cdd5
AK
1989 echo "$as_me: failed program was:" >&5
1990sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 1991
8106cdd5 1992ac_cv_prog_cc_g=no
795ca3e5 1993fi
8106cdd5
AK
1994rm -f conftest.$ac_objext conftest.$ac_ext
1995fi
1996echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1997echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
795ca3e5 1998if test "$ac_test_CFLAGS" = set; then
8106cdd5 1999 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
2000elif test $ac_cv_prog_cc_g = yes; then
2001 if test "$GCC" = yes; then
2002 CFLAGS="-g -O2"
2003 else
2004 CFLAGS="-g"
2005 fi
2006else
2007 if test "$GCC" = yes; then
2008 CFLAGS="-O2"
2009 else
2010 CFLAGS=
2011 fi
2012fi
8106cdd5
AK
2013echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2014echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2015if test "${ac_cv_prog_cc_stdc+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018 ac_cv_prog_cc_stdc=no
2019ac_save_CC=$CC
2020cat >conftest.$ac_ext <<_ACEOF
2021#line $LINENO "configure"
2022/* confdefs.h. */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h. */
2027#include <stdarg.h>
2028#include <stdio.h>
2029#include <sys/types.h>
2030#include <sys/stat.h>
2031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2032struct buf { int x; };
2033FILE * (*rcsopen) (struct buf *, struct stat *, int);
2034static char *e (p, i)
2035 char **p;
2036 int i;
2037{
2038 return p[i];
2039}
2040static char *f (char * (*g) (char **, int), char **p, ...)
2041{
2042 char *s;
2043 va_list v;
2044 va_start (v,p);
2045 s = g (p, va_arg (v,int));
2046 va_end (v);
2047 return s;
2048}
2049int test (int i, double x);
2050struct s1 {int (*f) (int a);};
2051struct s2 {int (*f) (double a);};
2052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2053int argc;
2054char **argv;
2055int
2056main ()
2057{
2058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063# Don't try gcc -ansi; that turns off useful extensions and
2064# breaks some systems' header files.
2065# AIX -qlanglvl=ansi
2066# Ultrix and OSF/1 -std1
2067# HP-UX 10.20 and later -Ae
2068# HP-UX older versions -Aa -D_HPUX_SOURCE
2069# SVR4 -Xc -D__EXTENSIONS__
2070for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2071do
2072 CC="$ac_save_CC $ac_arg"
2073 rm -f conftest.$ac_objext
2074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); } &&
2079 { ac_try='test -s conftest.$ac_objext'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 ac_cv_prog_cc_stdc=$ac_arg
2086break
2087else
2088 echo "$as_me: failed program was:" >&5
2089sed 's/^/| /' conftest.$ac_ext >&5
2090
2091fi
2092rm -f conftest.$ac_objext
2093done
2094rm -f conftest.$ac_ext conftest.$ac_objext
2095CC=$ac_save_CC
2096
2097fi
2098
2099case "x$ac_cv_prog_cc_stdc" in
2100 x|xno)
2101 echo "$as_me:$LINENO: result: none needed" >&5
2102echo "${ECHO_T}none needed" >&6 ;;
2103 *)
2104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2105echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2106 CC="$CC $ac_cv_prog_cc_stdc" ;;
2107esac
2108
2109# Some people use a C++ compiler to compile C. Since we use `exit',
2110# in C++ we need to declare it. In case someone uses the same compiler
2111# for both compiling C and C++ we need to have the C++ compiler decide
2112# the declaration of exit, since it's the most demanding environment.
2113cat >conftest.$ac_ext <<_ACEOF
2114#ifndef __cplusplus
2115 choke me
2116#endif
2117_ACEOF
2118rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120 (eval $ac_compile) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 for ac_declaration in \
2131 ''\
2132 '#include <stdlib.h>' \
2133 'extern "C" void std::exit (int) throw (); using std::exit;' \
2134 'extern "C" void std::exit (int); using std::exit;' \
2135 'extern "C" void exit (int) throw ();' \
2136 'extern "C" void exit (int);' \
2137 'void exit (int);'
2138do
2139 cat >conftest.$ac_ext <<_ACEOF
2140#line $LINENO "configure"
2141/* confdefs.h. */
2142_ACEOF
2143cat confdefs.h >>conftest.$ac_ext
2144cat >>conftest.$ac_ext <<_ACEOF
2145/* end confdefs.h. */
2146#include <stdlib.h>
2147$ac_declaration
2148int
2149main ()
2150{
2151exit (42);
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156rm -f conftest.$ac_objext
2157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
2162 { ac_try='test -s conftest.$ac_objext'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; }; then
2168 :
2169else
2170 echo "$as_me: failed program was:" >&5
2171sed 's/^/| /' conftest.$ac_ext >&5
2172
2173continue
2174fi
2175rm -f conftest.$ac_objext conftest.$ac_ext
2176 cat >conftest.$ac_ext <<_ACEOF
2177#line $LINENO "configure"
2178/* confdefs.h. */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h. */
2183$ac_declaration
2184int
2185main ()
2186{
2187exit (42);
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 break
2205else
2206 echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209fi
2210rm -f conftest.$ac_objext conftest.$ac_ext
2211done
2212rm -f conftest*
2213if test -n "$ac_declaration"; then
2214 echo '#ifdef __cplusplus' >>confdefs.h
2215 echo $ac_declaration >>confdefs.h
2216 echo '#endif' >>confdefs.h
2217fi
2218
2219else
2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223fi
2224rm -f conftest.$ac_objext conftest.$ac_ext
2225ac_ext=c
2226ac_cpp='$CPP $CPPFLAGS'
2227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5
AK
2230
2231# Find a good install program. We prefer a C program (faster),
2232# so one script is as good as another. But avoid the broken or
2233# incompatible versions:
2234# SysV /etc/install, /usr/sbin/install
2235# SunOS /usr/etc/install
2236# IRIX /sbin/install
2237# AIX /bin/install
8106cdd5 2238# AmigaOS /C/install, which installs bootblocks on floppy discs
795ca3e5
AK
2239# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2240# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2241# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2242# ./install, which can be erroneously created by make from ./install.sh.
8106cdd5
AK
2243echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2244echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
795ca3e5 2245if test -z "$INSTALL"; then
8106cdd5
AK
2246if test "${ac_cv_path_install+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 # Account for people who put trailing slashes in PATH elements.
2255case $as_dir/ in
2256 ./ | .// | /cC/* | \
2257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2258 /usr/ucb/* ) ;;
2259 *)
2260 # OSF1 and SCO ODT 3.0 have their own names for install.
2261 # Don't use installbsd from OSF since it installs stuff as root
2262 # by default.
2263 for ac_prog in ginstall scoinst install; do
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2266 if test $ac_prog = install &&
2267 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # AIX install. It has an incompatible calling convention.
2269 :
2270 elif test $ac_prog = install &&
2271 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2272 # program-specific install script used by HP pwplus--don't use.
2273 :
2274 else
2275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2276 break 3
2277 fi
2278 fi
795ca3e5 2279 done
8106cdd5
AK
2280 done
2281 ;;
2282esac
2283done
2284
795ca3e5
AK
2285
2286fi
2287 if test "${ac_cv_path_install+set}" = set; then
8106cdd5 2288 INSTALL=$ac_cv_path_install
795ca3e5
AK
2289 else
2290 # As a last resort, use the slow shell script. We don't cache a
2291 # path for INSTALL within a source directory, because that will
2292 # break other packages using the cache if that directory is
2293 # removed, or if the path is relative.
8106cdd5 2294 INSTALL=$ac_install_sh
795ca3e5
AK
2295 fi
2296fi
8106cdd5
AK
2297echo "$as_me:$LINENO: result: $INSTALL" >&5
2298echo "${ECHO_T}$INSTALL" >&6
795ca3e5
AK
2299
2300# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2301# It thinks the first close brace ends the variable substitution.
2302test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2303
8106cdd5 2304test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
795ca3e5
AK
2305
2306test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2307
8106cdd5
AK
2308echo "$as_me:$LINENO: checking whether ln -s works" >&5
2309echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2310LN_S=$as_ln_s
2311if test "$LN_S" = "ln -s"; then
2312 echo "$as_me:$LINENO: result: yes" >&5
2313echo "${ECHO_T}yes" >&6
795ca3e5 2314else
8106cdd5
AK
2315 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2316echo "${ECHO_T}no, using $LN_S" >&6
795ca3e5
AK
2317fi
2318
8106cdd5
AK
2319echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2320echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2321set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2322if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2324else
8106cdd5 2325 cat >conftest.make <<\_ACEOF
795ca3e5 2326all:
8106cdd5
AK
2327 @echo 'ac_maketemp="$(MAKE)"'
2328_ACEOF
795ca3e5 2329# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8106cdd5 2330eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
795ca3e5
AK
2331if test -n "$ac_maketemp"; then
2332 eval ac_cv_prog_make_${ac_make}_set=yes
2333else
2334 eval ac_cv_prog_make_${ac_make}_set=no
2335fi
8106cdd5 2336rm -f conftest.make
795ca3e5
AK
2337fi
2338if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8106cdd5
AK
2339 echo "$as_me:$LINENO: result: yes" >&5
2340echo "${ECHO_T}yes" >&6
795ca3e5
AK
2341 SET_MAKE=
2342else
8106cdd5
AK
2343 echo "$as_me:$LINENO: result: no" >&5
2344echo "${ECHO_T}no" >&6
795ca3e5
AK
2345 SET_MAKE="MAKE=${MAKE-make}"
2346fi
2347
8106cdd5
AK
2348if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2351echo "$as_me:$LINENO: checking for $ac_word" >&5
2352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353if test "${ac_cv_prog_RANLIB+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
2355else
2356 if test -n "$RANLIB"; then
2357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2358else
8106cdd5
AK
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370done
2371done
2372
795ca3e5
AK
2373fi
2374fi
8106cdd5 2375RANLIB=$ac_cv_prog_RANLIB
795ca3e5 2376if test -n "$RANLIB"; then
8106cdd5
AK
2377 echo "$as_me:$LINENO: result: $RANLIB" >&5
2378echo "${ECHO_T}$RANLIB" >&6
2379else
2380 echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6
2382fi
2383
2384fi
2385if test -z "$ac_cv_prog_RANLIB"; then
2386 ac_ct_RANLIB=$RANLIB
2387 # Extract the first word of "ranlib", so it can be a program name with args.
2388set dummy ranlib; ac_word=$2
2389echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2393else
8106cdd5
AK
2394 if test -n "$ac_ct_RANLIB"; then
2395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_RANLIB="ranlib"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 break 2
2407 fi
2408done
2409done
2410
2411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2412fi
2413fi
2414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2415if test -n "$ac_ct_RANLIB"; then
2416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2417echo "${ECHO_T}$ac_ct_RANLIB" >&6
2418else
2419 echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6
2421fi
2422
2423 RANLIB=$ac_ct_RANLIB
2424else
2425 RANLIB="$ac_cv_prog_RANLIB"
795ca3e5
AK
2426fi
2427
2428
8106cdd5
AK
2429
2430
2431
2432
2433
2434
795ca3e5 2435ac_header_dirent=no
8106cdd5
AK
2436for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
2437 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
2438echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
2439echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
2440if eval "test \"\${$as_ac_Header+set}\" = set"; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2442else
2443 cat >conftest.$ac_ext <<_ACEOF
2444#line $LINENO "configure"
2445/* confdefs.h. */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h. */
795ca3e5
AK
2450#include <sys/types.h>
2451#include <$ac_hdr>
8106cdd5
AK
2452
2453int
2454main ()
2455{
2456if ((DIR *) 0)
2457return 0;
2458 ;
2459 return 0;
2460}
2461_ACEOF
2462rm -f conftest.$ac_objext
2463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 eval "$as_ac_Header=yes"
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479eval "$as_ac_Header=no"
795ca3e5 2480fi
8106cdd5 2481rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 2482fi
8106cdd5
AK
2483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2485if test `eval echo '${'$as_ac_Header'}'` = yes; then
2486 cat >>confdefs.h <<_ACEOF
2487#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
2488_ACEOF
2489
2490ac_header_dirent=$ac_hdr; break
795ca3e5 2491fi
8106cdd5 2492
795ca3e5
AK
2493done
2494# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2495if test $ac_header_dirent = dirent.h; then
8106cdd5
AK
2496 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2497echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2498if test "${ac_cv_search_opendir+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501 ac_func_search_save_LIBS=$LIBS
2502ac_cv_search_opendir=no
2503cat >conftest.$ac_ext <<_ACEOF
2504#line $LINENO "configure"
2505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
2510
795ca3e5 2511/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
2512#ifdef __cplusplus
2513extern "C"
2514#endif
795ca3e5 2515/* We use char because int might match the return type of a gcc2
8106cdd5
AK
2516 builtin and then its argument prototype would still apply. */
2517char opendir ();
2518int
2519main ()
2520{
2521opendir ();
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext conftest$ac_exeext
2527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2528 (eval $ac_link) 2>&5
2529 ac_status=$?
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); } &&
2532 { ac_try='test -s conftest$ac_exeext'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; }; then
2538 ac_cv_search_opendir="none required"
2539else
2540 echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543fi
2544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2545if test "$ac_cv_search_opendir" = no; then
2546 for ac_lib in dir; do
2547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2548 cat >conftest.$ac_ext <<_ACEOF
2549#line $LINENO "configure"
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h. */
795ca3e5 2555
8106cdd5
AK
2556/* Override any gcc2 internal prototype to avoid an error. */
2557#ifdef __cplusplus
2558extern "C"
2559#endif
2560/* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562char opendir ();
2563int
2564main ()
2565{
2566opendir ();
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext conftest$ac_exeext
2572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2573 (eval $ac_link) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -s conftest$ac_exeext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_cv_search_opendir="-l$ac_lib"
2584break
795ca3e5 2585else
8106cdd5
AK
2586 echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589fi
2590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2591 done
2592fi
2593LIBS=$ac_func_search_save_LIBS
2594fi
2595echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2596echo "${ECHO_T}$ac_cv_search_opendir" >&6
2597if test "$ac_cv_search_opendir" != no; then
2598 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2599
795ca3e5
AK
2600fi
2601
2602else
8106cdd5
AK
2603 echo "$as_me:$LINENO: checking for library containing opendir" >&5
2604echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
2605if test "${ac_cv_search_opendir+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2607else
8106cdd5
AK
2608 ac_func_search_save_LIBS=$LIBS
2609ac_cv_search_opendir=no
2610cat >conftest.$ac_ext <<_ACEOF
2611#line $LINENO "configure"
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
2617
795ca3e5 2618/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
2619#ifdef __cplusplus
2620extern "C"
2621#endif
795ca3e5 2622/* We use char because int might match the return type of a gcc2
8106cdd5
AK
2623 builtin and then its argument prototype would still apply. */
2624char opendir ();
2625int
2626main ()
2627{
2628opendir ();
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext conftest$ac_exeext
2634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_opendir="none required"
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650fi
2651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2652if test "$ac_cv_search_opendir" = no; then
2653 for ac_lib in x; do
2654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2655 cat >conftest.$ac_ext <<_ACEOF
2656#line $LINENO "configure"
2657/* confdefs.h. */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h. */
795ca3e5 2662
8106cdd5
AK
2663/* Override any gcc2 internal prototype to avoid an error. */
2664#ifdef __cplusplus
2665extern "C"
2666#endif
2667/* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2669char opendir ();
2670int
2671main ()
2672{
2673opendir ();
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext conftest$ac_exeext
2679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2680 (eval $ac_link) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_opendir="-l$ac_lib"
2691break
795ca3e5 2692else
8106cdd5
AK
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
2696fi
2697rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2698 done
2699fi
2700LIBS=$ac_func_search_save_LIBS
2701fi
2702echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
2703echo "${ECHO_T}$ac_cv_search_opendir" >&6
2704if test "$ac_cv_search_opendir" != no; then
2705 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
2706
795ca3e5
AK
2707fi
2708
2709fi
2710
8106cdd5
AK
2711ac_ext=c
2712ac_cpp='$CPP $CPPFLAGS'
2713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2717echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
795ca3e5
AK
2718# On Suns, sometimes $CPP names a directory.
2719if test -n "$CPP" && test -d "$CPP"; then
2720 CPP=
2721fi
2722if test -z "$CPP"; then
8106cdd5
AK
2723 if test "${ac_cv_prog_CPP+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2725else
8106cdd5
AK
2726 # Double quotes because CPP needs to be expanded
2727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2728 do
2729 ac_preproc_ok=false
2730for ac_c_preproc_warn_flag in '' yes
2731do
2732 # Use a header file that comes with gcc, so configuring glibc
2733 # with a fresh cross-compiler works.
2734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2735 # <limits.h> exists even on freestanding compilers.
795ca3e5 2736 # On the NeXT, cc -E runs the code through the compiler's parser,
8106cdd5
AK
2737 # not just through cpp. "Syntax error" is here to catch this case.
2738 cat >conftest.$ac_ext <<_ACEOF
2739#line $LINENO "configure"
2740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h. */
2745#ifdef __STDC__
2746# include <limits.h>
2747#else
2748# include <assert.h>
2749#endif
2750 Syntax error
2751_ACEOF
2752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } >/dev/null; then
2760 if test -s conftest.err; then
2761 ac_cpp_err=$ac_c_preproc_warn_flag
2762 else
2763 ac_cpp_err=
2764 fi
795ca3e5 2765else
8106cdd5
AK
2766 ac_cpp_err=yes
2767fi
2768if test -z "$ac_cpp_err"; then
795ca3e5
AK
2769 :
2770else
8106cdd5
AK
2771 echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 # Broken: fails on valid input.
2775continue
2776fi
2777rm -f conftest.err conftest.$ac_ext
2778
2779 # OK, works on sane cases. Now check whether non-existent headers
2780 # can be detected and how.
2781 cat >conftest.$ac_ext <<_ACEOF
2782#line $LINENO "configure"
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
2788#include <ac_nonexistent.h>
2789_ACEOF
2790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 ac_status=$?
2793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } >/dev/null; then
2798 if test -s conftest.err; then
2799 ac_cpp_err=$ac_c_preproc_warn_flag
2800 else
2801 ac_cpp_err=
2802 fi
795ca3e5 2803else
8106cdd5 2804 ac_cpp_err=yes
795ca3e5 2805fi
8106cdd5
AK
2806if test -z "$ac_cpp_err"; then
2807 # Broken: success on invalid input.
2808continue
2809else
2810 echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 # Passes both tests.
2814ac_preproc_ok=:
2815break
795ca3e5 2816fi
8106cdd5
AK
2817rm -f conftest.err conftest.$ac_ext
2818
2819done
2820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2821rm -f conftest.err conftest.$ac_ext
2822if $ac_preproc_ok; then
2823 break
795ca3e5 2824fi
8106cdd5
AK
2825
2826 done
2827 ac_cv_prog_CPP=$CPP
2828
2829fi
2830 CPP=$ac_cv_prog_CPP
2831else
2832 ac_cv_prog_CPP=$CPP
2833fi
2834echo "$as_me:$LINENO: result: $CPP" >&5
2835echo "${ECHO_T}$CPP" >&6
2836ac_preproc_ok=false
2837for ac_c_preproc_warn_flag in '' yes
2838do
2839 # Use a header file that comes with gcc, so configuring glibc
2840 # with a fresh cross-compiler works.
2841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2842 # <limits.h> exists even on freestanding compilers.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.$ac_ext <<_ACEOF
2846#line $LINENO "configure"
2847/* confdefs.h. */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h. */
2852#ifdef __STDC__
2853# include <limits.h>
2854#else
2855# include <assert.h>
2856#endif
2857 Syntax error
2858_ACEOF
2859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } >/dev/null; then
2867 if test -s conftest.err; then
2868 ac_cpp_err=$ac_c_preproc_warn_flag
2869 else
2870 ac_cpp_err=
2871 fi
2872else
2873 ac_cpp_err=yes
2874fi
2875if test -z "$ac_cpp_err"; then
2876 :
2877else
2878 echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881 # Broken: fails on valid input.
2882continue
2883fi
2884rm -f conftest.err conftest.$ac_ext
2885
2886 # OK, works on sane cases. Now check whether non-existent headers
2887 # can be detected and how.
2888 cat >conftest.$ac_ext <<_ACEOF
2889#line $LINENO "configure"
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895#include <ac_nonexistent.h>
2896_ACEOF
2897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } >/dev/null; then
2905 if test -s conftest.err; then
2906 ac_cpp_err=$ac_c_preproc_warn_flag
2907 else
2908 ac_cpp_err=
2909 fi
2910else
2911 ac_cpp_err=yes
2912fi
2913if test -z "$ac_cpp_err"; then
2914 # Broken: success on invalid input.
2915continue
2916else
2917 echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920 # Passes both tests.
2921ac_preproc_ok=:
2922break
2923fi
2924rm -f conftest.err conftest.$ac_ext
2925
2926done
2927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2928rm -f conftest.err conftest.$ac_ext
2929if $ac_preproc_ok; then
2930 :
2931else
2932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2933See \`config.log' for more details." >&5
2934echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2935See \`config.log' for more details." >&2;}
2936 { (exit 1); exit 1; }; }
795ca3e5 2937fi
8106cdd5
AK
2938
2939ac_ext=c
2940ac_cpp='$CPP $CPPFLAGS'
2941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944
2945
2946echo "$as_me:$LINENO: checking for egrep" >&5
2947echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2948if test "${ac_cv_prog_egrep+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2950else
8106cdd5
AK
2951 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2952 then ac_cv_prog_egrep='grep -E'
2953 else ac_cv_prog_egrep='egrep'
2954 fi
795ca3e5 2955fi
8106cdd5
AK
2956echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2957echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2958 EGREP=$ac_cv_prog_egrep
795ca3e5 2959
8106cdd5
AK
2960
2961echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2962echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2963if test "${ac_cv_header_stdc+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 2965else
8106cdd5
AK
2966 cat >conftest.$ac_ext <<_ACEOF
2967#line $LINENO "configure"
2968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
795ca3e5
AK
2973#include <stdlib.h>
2974#include <stdarg.h>
2975#include <string.h>
2976#include <float.h>
8106cdd5
AK
2977
2978int
2979main ()
2980{
2981
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
2987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988 (eval $ac_compile) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -s conftest.$ac_objext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
795ca3e5
AK
2998 ac_cv_header_stdc=yes
2999else
8106cdd5
AK
3000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003ac_cv_header_stdc=no
795ca3e5 3004fi
8106cdd5 3005rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5
AK
3006
3007if test $ac_cv_header_stdc = yes; then
3008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8106cdd5
AK
3009 cat >conftest.$ac_ext <<_ACEOF
3010#line $LINENO "configure"
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
795ca3e5 3016#include <string.h>
8106cdd5
AK
3017
3018_ACEOF
795ca3e5 3019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 3020 $EGREP "memchr" >/dev/null 2>&1; then
795ca3e5
AK
3021 :
3022else
795ca3e5
AK
3023 ac_cv_header_stdc=no
3024fi
3025rm -f conftest*
3026
3027fi
3028
3029if test $ac_cv_header_stdc = yes; then
3030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8106cdd5
AK
3031 cat >conftest.$ac_ext <<_ACEOF
3032#line $LINENO "configure"
3033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
795ca3e5 3038#include <stdlib.h>
8106cdd5
AK
3039
3040_ACEOF
795ca3e5 3041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 3042 $EGREP "free" >/dev/null 2>&1; then
795ca3e5
AK
3043 :
3044else
795ca3e5
AK
3045 ac_cv_header_stdc=no
3046fi
3047rm -f conftest*
3048
3049fi
3050
3051if test $ac_cv_header_stdc = yes; then
3052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8106cdd5 3053 if test "$cross_compiling" = yes; then
795ca3e5
AK
3054 :
3055else
8106cdd5
AK
3056 cat >conftest.$ac_ext <<_ACEOF
3057#line $LINENO "configure"
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
795ca3e5 3063#include <ctype.h>
8106cdd5
AK
3064#if ((' ' & 0x0FF) == 0x020)
3065# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3066# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3067#else
3068# define ISLOWER(c) \
3069 (('a' <= (c) && (c) <= 'i') \
3070 || ('j' <= (c) && (c) <= 'r') \
3071 || ('s' <= (c) && (c) <= 'z'))
3072# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3073#endif
795ca3e5 3074
8106cdd5
AK
3075#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3076int
3077main ()
3078{
3079 int i;
3080 for (i = 0; i < 256; i++)
3081 if (XOR (islower (i), ISLOWER (i))
3082 || toupper (i) != TOUPPER (i))
3083 exit(2);
3084 exit (0);
3085}
3086_ACEOF
3087rm -f conftest$ac_exeext
3088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089 (eval $ac_link) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
795ca3e5
AK
3098 :
3099else
8106cdd5
AK
3100 echo "$as_me: program exited with status $ac_status" >&5
3101echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104( exit $ac_status )
3105ac_cv_header_stdc=no
795ca3e5 3106fi
8106cdd5 3107rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
795ca3e5 3108fi
795ca3e5
AK
3109fi
3110fi
8106cdd5
AK
3111echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3112echo "${ECHO_T}$ac_cv_header_stdc" >&6
795ca3e5 3113if test $ac_cv_header_stdc = yes; then
8106cdd5
AK
3114
3115cat >>confdefs.h <<\_ACEOF
795ca3e5 3116#define STDC_HEADERS 1
8106cdd5 3117_ACEOF
795ca3e5
AK
3118
3119fi
3120
8106cdd5
AK
3121# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3132 inttypes.h stdint.h unistd.h
795ca3e5 3133do
8106cdd5
AK
3134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3135echo "$as_me:$LINENO: checking for $ac_header" >&5
3136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3137if eval "test \"\${$as_ac_Header+set}\" = set"; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 cat >conftest.$ac_ext <<_ACEOF
3141#line $LINENO "configure"
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147$ac_includes_default
3148
3149#include <$ac_header>
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
3163 eval "$as_ac_Header=yes"
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168eval "$as_ac_Header=no"
795ca3e5 3169fi
8106cdd5
AK
3170rm -f conftest.$ac_objext conftest.$ac_ext
3171fi
3172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3174if test `eval echo '${'$as_ac_Header'}'` = yes; then
3175 cat >>confdefs.h <<_ACEOF
3176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3177_ACEOF
3178
3179fi
3180
3181done
3182
3183
3184
3185
3186
3187
3188for ac_header in fcntl.h malloc.h sys/ioctl.h unistd.h
3189do
3190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3191if eval "test \"\${$as_ac_Header+set}\" = set"; then
3192 echo "$as_me:$LINENO: checking for $ac_header" >&5
3193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3194if eval "test \"\${$as_ac_Header+set}\" = set"; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196fi
3197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3199else
3200 # Is the header compilable?
3201echo "$as_me:$LINENO: checking $ac_header usability" >&5
3202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3203cat >conftest.$ac_ext <<_ACEOF
3204#line $LINENO "configure"
3205/* confdefs.h. */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
3209/* end confdefs.h. */
3210$ac_includes_default
3211#include <$ac_header>
3212_ACEOF
3213rm -f conftest.$ac_objext
3214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3215 (eval $ac_compile) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -s conftest.$ac_objext'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
3225 ac_header_compiler=yes
3226else
3227 echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230ac_header_compiler=no
3231fi
3232rm -f conftest.$ac_objext conftest.$ac_ext
3233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3234echo "${ECHO_T}$ac_header_compiler" >&6
3235
3236# Is the header present?
3237echo "$as_me:$LINENO: checking $ac_header presence" >&5
3238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3239cat >conftest.$ac_ext <<_ACEOF
3240#line $LINENO "configure"
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246#include <$ac_header>
3247_ACEOF
3248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
795ca3e5 3263fi
8106cdd5
AK
3264if test -z "$ac_cpp_err"; then
3265 ac_header_preproc=yes
795ca3e5 3266else
8106cdd5
AK
3267 echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 ac_header_preproc=no
3271fi
3272rm -f conftest.err conftest.$ac_ext
3273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3274echo "${ECHO_T}$ac_header_preproc" >&6
3275
3276# So? What about this header?
3277case $ac_header_compiler:$ac_header_preproc in
3278 yes:no )
3279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3283 (
3284 cat <<\_ASBOX
3285## ------------------------------------ ##
3286## Report this to bug-autoconf@gnu.org. ##
3287## ------------------------------------ ##
3288_ASBOX
3289 ) |
3290 sed "s/^/$as_me: WARNING: /" >&2
3291 ;;
3292 no:yes )
3293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3298echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3299 (
3300 cat <<\_ASBOX
3301## ------------------------------------ ##
3302## Report this to bug-autoconf@gnu.org. ##
3303## ------------------------------------ ##
3304_ASBOX
3305 ) |
3306 sed "s/^/$as_me: WARNING: /" >&2
3307 ;;
3308esac
3309echo "$as_me:$LINENO: checking for $ac_header" >&5
3310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3311if eval "test \"\${$as_ac_Header+set}\" = set"; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313else
3314 eval "$as_ac_Header=$ac_header_preproc"
3315fi
3316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3318
3319fi
3320if test `eval echo '${'$as_ac_Header'}'` = yes; then
3321 cat >>confdefs.h <<_ACEOF
3322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3323_ACEOF
3324
795ca3e5 3325fi
8106cdd5 3326
795ca3e5
AK
3327done
3328
3329
8106cdd5
AK
3330echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3331echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3332if test "${ac_cv_c_const+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335 cat >conftest.$ac_ext <<_ACEOF
3336#line $LINENO "configure"
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342
3343int
3344main ()
3345{
3346/* FIXME: Include the comments suggested by Paul. */
3347#ifndef __cplusplus
3348 /* Ultrix mips cc rejects this. */
3349 typedef int charset[2];
3350 const charset x;
3351 /* SunOS 4.1.1 cc rejects this. */
3352 char const *const *ccp;
3353 char **p;
3354 /* NEC SVR4.0.2 mips cc rejects this. */
3355 struct point {int x, y;};
3356 static struct point const zero = {0,0};
3357 /* AIX XL C 1.02.0.0 rejects this.
3358 It does not let you subtract one const X* pointer from another in
3359 an arm of an if-expression whose if-part is not a constant
3360 expression */
3361 const char *g = "string";
3362 ccp = &g + (g ? g-g : 0);
3363 /* HPUX 7.0 cc rejects these. */
3364 ++ccp;
3365 p = (char**) ccp;
3366 ccp = (char const *const *) p;
3367 { /* SCO 3.2v4 cc rejects this. */
3368 char *t;
3369 char const *s = 0 ? (char *) 0 : (char const *) 0;
3370
3371 *t++ = 0;
3372 }
3373 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3374 int x[] = {25, 17};
3375 const int *foo = &x[0];
3376 ++foo;
3377 }
3378 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3379 typedef const int *iptr;
3380 iptr p = 0;
3381 ++p;
3382 }
3383 { /* AIX XL C 1.02.0.0 rejects this saying
3384 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3385 struct s { int j; const int *ap[3]; };
3386 struct s *b; b->j = 5;
3387 }
3388 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3389 const int foo = 10;
3390 }
3391#endif
795ca3e5 3392
8106cdd5
AK
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 (eval $ac_try) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
795ca3e5
AK
3409 ac_cv_c_const=yes
3410else
8106cdd5
AK
3411 echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414ac_cv_c_const=no
795ca3e5 3415fi
8106cdd5 3416rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3417fi
8106cdd5
AK
3418echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3419echo "${ECHO_T}$ac_cv_c_const" >&6
795ca3e5 3420if test $ac_cv_c_const = no; then
8106cdd5
AK
3421
3422cat >>confdefs.h <<\_ACEOF
3423#define const
3424_ACEOF
795ca3e5
AK
3425
3426fi
3427
8106cdd5
AK
3428echo "$as_me:$LINENO: checking for inline" >&5
3429echo $ECHO_N "checking for inline... $ECHO_C" >&6
3430if test "${ac_cv_c_inline+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
3432else
3433 ac_cv_c_inline=no
3434for ac_kw in inline __inline__ __inline; do
8106cdd5
AK
3435 cat >conftest.$ac_ext <<_ACEOF
3436#line $LINENO "configure"
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#ifndef __cplusplus
3443typedef int foo_t;
3444static $ac_kw foo_t static_foo () {return 0; }
3445$ac_kw foo_t foo () {return 0; }
3446#endif
3447
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } &&
3455 { ac_try='test -s conftest.$ac_objext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
795ca3e5
AK
3461 ac_cv_c_inline=$ac_kw; break
3462else
8106cdd5
AK
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
795ca3e5 3466fi
8106cdd5 3467rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5
AK
3468done
3469
3470fi
8106cdd5
AK
3471echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3472echo "${ECHO_T}$ac_cv_c_inline" >&6
3473case $ac_cv_c_inline in
795ca3e5 3474 inline | yes) ;;
8106cdd5
AK
3475 no)
3476cat >>confdefs.h <<\_ACEOF
3477#define inline
3478_ACEOF
795ca3e5 3479 ;;
8106cdd5 3480 *) cat >>confdefs.h <<_ACEOF
795ca3e5 3481#define inline $ac_cv_c_inline
8106cdd5 3482_ACEOF
795ca3e5
AK
3483 ;;
3484esac
3485
8106cdd5
AK
3486echo "$as_me:$LINENO: checking for off_t" >&5
3487echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3488if test "${ac_cv_type_off_t+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3490else
8106cdd5
AK
3491 cat >conftest.$ac_ext <<_ACEOF
3492#line $LINENO "configure"
3493/* confdefs.h. */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h. */
3498$ac_includes_default
3499int
3500main ()
3501{
3502if ((off_t *) 0)
3503 return 0;
3504if (sizeof (off_t))
3505 return 0;
3506 ;
3507 return 0;
3508}
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
795ca3e5
AK
3522 ac_cv_type_off_t=yes
3523else
8106cdd5
AK
3524 echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3526
8106cdd5 3527ac_cv_type_off_t=no
795ca3e5 3528fi
8106cdd5
AK
3529rm -f conftest.$ac_objext conftest.$ac_ext
3530fi
3531echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3532echo "${ECHO_T}$ac_cv_type_off_t" >&6
3533if test $ac_cv_type_off_t = yes; then
3534 :
3535else
3536
3537cat >>confdefs.h <<_ACEOF
795ca3e5 3538#define off_t long
8106cdd5 3539_ACEOF
795ca3e5
AK
3540
3541fi
3542
8106cdd5
AK
3543echo "$as_me:$LINENO: checking for pid_t" >&5
3544echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3545if test "${ac_cv_type_pid_t+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3547else
8106cdd5
AK
3548 cat >conftest.$ac_ext <<_ACEOF
3549#line $LINENO "configure"
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555$ac_includes_default
3556int
3557main ()
3558{
3559if ((pid_t *) 0)
3560 return 0;
3561if (sizeof (pid_t))
3562 return 0;
3563 ;
3564 return 0;
3565}
3566_ACEOF
3567rm -f conftest.$ac_objext
3568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
795ca3e5
AK
3579 ac_cv_type_pid_t=yes
3580else
8106cdd5
AK
3581 echo "$as_me: failed program was:" >&5
3582sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3583
8106cdd5 3584ac_cv_type_pid_t=no
795ca3e5 3585fi
8106cdd5
AK
3586rm -f conftest.$ac_objext conftest.$ac_ext
3587fi
3588echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3589echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3590if test $ac_cv_type_pid_t = yes; then
3591 :
3592else
3593
3594cat >>confdefs.h <<_ACEOF
795ca3e5 3595#define pid_t int
8106cdd5 3596_ACEOF
795ca3e5
AK
3597
3598fi
3599
8106cdd5
AK
3600echo "$as_me:$LINENO: checking for size_t" >&5
3601echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3602if test "${ac_cv_type_size_t+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3604else
8106cdd5
AK
3605 cat >conftest.$ac_ext <<_ACEOF
3606#line $LINENO "configure"
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612$ac_includes_default
3613int
3614main ()
3615{
3616if ((size_t *) 0)
3617 return 0;
3618if (sizeof (size_t))
3619 return 0;
3620 ;
3621 return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext
3625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
795ca3e5
AK
3636 ac_cv_type_size_t=yes
3637else
8106cdd5
AK
3638 echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3640
8106cdd5 3641ac_cv_type_size_t=no
795ca3e5 3642fi
8106cdd5
AK
3643rm -f conftest.$ac_objext conftest.$ac_ext
3644fi
3645echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3646echo "${ECHO_T}$ac_cv_type_size_t" >&6
3647if test $ac_cv_type_size_t = yes; then
3648 :
3649else
3650
3651cat >>confdefs.h <<_ACEOF
795ca3e5 3652#define size_t unsigned
8106cdd5 3653_ACEOF
795ca3e5
AK
3654
3655fi
3656
8106cdd5
AK
3657
3658echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
3659echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
3660if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3662else
8106cdd5
AK
3663 cat >conftest.$ac_ext <<_ACEOF
3664#line $LINENO "configure"
3665/* confdefs.h. */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h. */
3670$ac_includes_default
3671int
3672main ()
3673{
3674static struct stat ac_aggr;
3675if (ac_aggr.st_rdev)
3676return 0;
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext
3682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683 (eval $ac_compile) 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try='test -s conftest.$ac_objext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_cv_member_struct_stat_st_rdev=yes
3694else
3695 echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698cat >conftest.$ac_ext <<_ACEOF
3699#line $LINENO "configure"
3700/* confdefs.h. */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h. */
3705$ac_includes_default
3706int
3707main ()
3708{
3709static struct stat ac_aggr;
3710if (sizeof ac_aggr.st_rdev)
3711return 0;
3712 ;
3713 return 0;
3714}
3715_ACEOF
3716rm -f conftest.$ac_objext
3717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_member_struct_stat_st_rdev=yes
3729else
3730 echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733ac_cv_member_struct_stat_st_rdev=no
795ca3e5 3734fi
8106cdd5
AK
3735rm -f conftest.$ac_objext conftest.$ac_ext
3736fi
3737rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3738fi
8106cdd5
AK
3739echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
3740echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
3741if test $ac_cv_member_struct_stat_st_rdev = yes; then
795ca3e5 3742
8106cdd5
AK
3743cat >>confdefs.h <<_ACEOF
3744#define HAVE_STRUCT_STAT_ST_RDEV 1
3745_ACEOF
3746
3747
3748cat >>confdefs.h <<\_ACEOF
795ca3e5 3749#define HAVE_ST_RDEV 1
8106cdd5 3750_ACEOF
795ca3e5
AK
3751
3752fi
3753
8106cdd5
AK
3754
3755echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3756echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3757if test "${ac_cv_header_time+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 3759else
8106cdd5
AK
3760 cat >conftest.$ac_ext <<_ACEOF
3761#line $LINENO "configure"
3762/* confdefs.h. */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h. */
795ca3e5
AK
3767#include <sys/types.h>
3768#include <sys/time.h>
3769#include <time.h>
8106cdd5
AK
3770
3771int
3772main ()
3773{
3774if ((struct tm *) 0)
3775return 0;
3776 ;
3777 return 0;
3778}
3779_ACEOF
3780rm -f conftest.$ac_objext
3781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3782 (eval $ac_compile) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
795ca3e5
AK
3792 ac_cv_header_time=yes
3793else
8106cdd5
AK
3794 echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797ac_cv_header_time=no
795ca3e5 3798fi
8106cdd5 3799rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 3800fi
8106cdd5
AK
3801echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3802echo "${ECHO_T}$ac_cv_header_time" >&6
795ca3e5 3803if test $ac_cv_header_time = yes; then
8106cdd5
AK
3804
3805cat >>confdefs.h <<\_ACEOF
795ca3e5 3806#define TIME_WITH_SYS_TIME 1
8106cdd5 3807_ACEOF
795ca3e5
AK
3808
3809fi
3810
3811
b896caa1 3812# Make sure we can run config.sub.
8106cdd5
AK
3813$ac_config_sub sun4 >/dev/null 2>&1 ||
3814 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3815echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3816 { (exit 1); exit 1; }; }
3817
3818echo "$as_me:$LINENO: checking build system type" >&5
3819echo $ECHO_N "checking build system type... $ECHO_C" >&6
3820if test "${ac_cv_build+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 ac_cv_build_alias=$build_alias
3824test -z "$ac_cv_build_alias" &&
3825 ac_cv_build_alias=`$ac_config_guess`
3826test -z "$ac_cv_build_alias" &&
3827 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3828echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3829 { (exit 1); exit 1; }; }
3830ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3831 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3832echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3833 { (exit 1); exit 1; }; }
3834
3835fi
3836echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3837echo "${ECHO_T}$ac_cv_build" >&6
3838build=$ac_cv_build
3839build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3840build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3841build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3842
3843
3844echo "$as_me:$LINENO: checking host system type" >&5
3845echo $ECHO_N "checking host system type... $ECHO_C" >&6
3846if test "${ac_cv_host+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 ac_cv_host_alias=$host_alias
3850test -z "$ac_cv_host_alias" &&
3851 ac_cv_host_alias=$ac_cv_build_alias
3852ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3853 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3854echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3855 { (exit 1); exit 1; }; }
3856
3857fi
3858echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3859echo "${ECHO_T}$ac_cv_host" >&6
3860host=$ac_cv_host
3861host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3862host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3863host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3864
3865
3866echo "$as_me:$LINENO: checking target system type" >&5
3867echo $ECHO_N "checking target system type... $ECHO_C" >&6
3868if test "${ac_cv_target+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 ac_cv_target_alias=$target_alias
3872test "x$ac_cv_target_alias" = "x" &&
3873 ac_cv_target_alias=$ac_cv_host_alias
3874ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3875 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3876echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3877 { (exit 1); exit 1; }; }
b896caa1 3878
8106cdd5
AK
3879fi
3880echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3881echo "${ECHO_T}$ac_cv_target" >&6
3882target=$ac_cv_target
3883target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3884target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3885target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b896caa1 3886
b896caa1 3887
8106cdd5
AK
3888# The aliases save the names the user supplied, while $host etc.
3889# will get canonicalized.
3890test -n "$target_alias" &&
b896caa1
AK
3891 test "$program_prefix$program_suffix$program_transform_name" = \
3892 NONENONEs,x,x, &&
3893 program_prefix=${target_alias}-
3894
b896caa1
AK
3895case "$host_os" in
3896 linux*)
8106cdd5
AK
3897 CFLAGS=
3898 CLDFLAGS="-Wl,--version-script,.export.sym"
3899 CLDWHOLEARCHIVE="-Wl,-whole-archive"
3900 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
3901 LD_DEPS=".export.sym"
d68a82ec 3902 LD_FLAGS="-Wl,--export-dynamic"
8106cdd5
AK
3903 SOFLAG="-shared"
3904 DEVMAPPER=yes
1a9ea74d 3905 ODIRECT=yes
d3c8211f 3906 CLUSTER=internal
809fae91 3907 FSADM=no ;;
8106cdd5
AK
3908 darwin*)
3909 CFLAGS="-no-cpp-precomp -fno-common"
3910 CLDFLAGS=
3911 CLDWHOLEARCHIVE="-all_load"
3912 CLDNOWHOLEARCHIVE=
3913 LD_DEPS=
d68a82ec 3914 LD_FLAGS=
8106cdd5
AK
3915 SOFLAG="-dynamiclib"
3916 DEVMAPPER=no
1a9ea74d 3917 ODIRECT=no
d3c8211f 3918 CLUSTER=none
1a9ea74d 3919 FSADM=no ;;
b896caa1
AK
3920esac
3921
3922
795ca3e5 3923
a38df97f
AK
3924OWNER="root"
3925GROUP="root"
3926
8106cdd5 3927
795ca3e5
AK
3928# Check whether --with-user or --without-user was given.
3929if test "${with_user+set}" = set; then
3930 withval="$with_user"
8106cdd5 3931 OWNER="$withval"
8106cdd5 3932fi;
795ca3e5 3933
a38df97f
AK
3934if test x$OWNER != x; then
3935 OWNER="-o $OWNER"
3936fi
3937
795ca3e5
AK
3938
3939# Check whether --with-group or --without-group was given.
3940if test "${with_group+set}" = set; then
3941 withval="$with_group"
8106cdd5 3942 GROUP="$withval"
8106cdd5 3943fi;
795ca3e5 3944
a38df97f
AK
3945if test x$GROUP != x; then
3946 GROUP="-g $GROUP"
3947fi
3948
7d1552c9
AK
3949# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
3950if test "${enable_lvm1_fallback+set}" = set; then
3951 enableval="$enable_lvm1_fallback"
3952 LVM1_FALLBACK=$enableval
3953else
3954 LVM1_FALLBACK=no
3955fi;
3956
3957if test x$LVM1_FALLBACK = xyes; then
3958 CFLAGS="$CFLAGS -DLVM1_FALLBACK"
3959fi
3960
795ca3e5 3961
5a52dca9
AK
3962# Check whether --with-lvm1 or --without-lvm1 was given.
3963if test "${with_lvm1+set}" = set; then
3964 withval="$with_lvm1"
8106cdd5 3965 LVM1="$withval"
5a52dca9 3966else
8106cdd5
AK
3967 LVM1="internal"
3968fi;
5a52dca9
AK
3969
3970if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
8106cdd5
AK
3971 then { { echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
3972" >&5
3973echo "$as_me: error: --with-lvm1 parameter invalid
3974" >&2;}
3975 { (exit 1); exit 1; }; }
5a52dca9
AK
3976 exit
3977fi;
3978
b896caa1
AK
3979if test x$LVM1 = xinternal; then
3980 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
3981fi
3982
d8ac0fbc
AK
3983
3984# Check whether --with-pool or --without-pool was given.
3985if test "${with_pool+set}" = set; then
3986 withval="$with_pool"
3987 POOL="$withval"
3988else
3989 POOL="internal"
3990fi;
3991
3992if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
3993 then { { echo "$as_me:$LINENO: error: --with-pool parameter invalid
3994" >&5
3995echo "$as_me: error: --with-pool parameter invalid
3996" >&2;}
3997 { (exit 1); exit 1; }; }
3998 exit
3999fi;
4000
4001if test x$POOL = xinternal; then
4002 CFLAGS="$CFLAGS -DPOOL_INTERNAL"
4003fi
4004
4005
d3c8211f
AK
4006# Check whether --with-cluster or --without-cluster was given.
4007if test "${with_cluster+set}" = set; then
4008 withval="$with_cluster"
4009 CLUSTER="$withval"
4010fi;
4011
4012if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
4013 then { { echo "$as_me:$LINENO: error: --with-cluster parameter invalid
4014" >&5
4015echo "$as_me: error: --with-cluster parameter invalid
4016" >&2;}
4017 { (exit 1); exit 1; }; }
4018 exit
4019fi;
4020
4021if test x$CLUSTER = xinternal; then
4022 CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL"
4023fi
4024
795ca3e5
AK
4025# Check whether --enable-jobs or --disable-jobs was given.
4026if test "${enable_jobs+set}" = set; then
4027 enableval="$enable_jobs"
4028 JOBS=-j$enableval
4029else
8ef2b021 4030 JOBS=-j2
8106cdd5 4031fi;
795ca3e5 4032
4922197a
AK
4033
4034# Check whether --with-snapshots or --without-snapshots was given.
4035if test "${with_snapshots+set}" = set; then
4036 withval="$with_snapshots"
4037 SNAPSHOTS="$withval"
4038else
4039 SNAPSHOTS="internal"
4040fi;
4041
4042if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
4043 then { { echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
4044" >&5
4045echo "$as_me: error: --with-snapshots parameter invalid
4046" >&2;}
4047 { (exit 1); exit 1; }; }
4048 exit
4049fi;
4050
4051if test x$SNAPSHOTS = xinternal; then
4052 CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
4053fi
4054
4055
4056# Check whether --with-mirrors or --without-mirrors was given.
4057if test "${with_mirrors+set}" = set; then
4058 withval="$with_mirrors"
4059 MIRRORS="$withval"
4060else
4061 MIRRORS="internal"
4062fi;
4063
4064if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
4065 then { { echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
4066" >&5
4067echo "$as_me: error: --with-mirrors parameter invalid
4068" >&2;}
4069 { (exit 1); exit 1; }; }
4070 exit
4071fi;
4072
4073if test x$MIRRORS = xinternal; then
4074 CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
4075fi
4076
795ca3e5
AK
4077# Check whether --enable-static_link or --disable-static_link was given.
4078if test "${enable_static_link+set}" = set; then
4079 enableval="$enable_static_link"
4080 STATIC_LINK=$enableval
4081else
4082 STATIC_LINK=no
8106cdd5 4083fi;
795ca3e5
AK
4084
4085# Check whether --enable-readline or --disable-readline was given.
4086if test "${enable_readline+set}" = set; then
4087 enableval="$enable_readline"
4088 \
4089READLINE=$enableval
4090else
5a52dca9 4091 READLINE=no
8106cdd5 4092fi;
795ca3e5 4093
b896caa1
AK
4094if test x$READLINE = xyes; then
4095 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
4096fi
4097
d3c8211f
AK
4098
4099# Check whether --with-clvmd or --without-clvmd was given.
4100if test "${with_clvmd+set}" = set; then
4101 withval="$with_clvmd"
4102 \
4103CLVMD=$withval
4104else
4105 CLVMD=no
4106fi;
4107if test x$CLVMD = xyes && test x$CLUSTER = xnone; then
4108 CLUSTER=internal
4109fi
4110echo "$ac_t""$CLVMD" 1>&6
4111
69792976 4112echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
8ef2b021
AK
4113# Check whether --enable-debug or --disable-debug was given.
4114if test "${enable_debug+set}" = set; then
4115 enableval="$enable_debug"
4116 \
4117DEBUG=yes
4118else
4119 DEBUG=no
8106cdd5 4120fi;
69792976 4121echo "$ac_t""$DEBUG" 1>&6
8ef2b021 4122
69792976 4123echo $ac_n "checking whether to enable device-mapper""... $ac_c" 1>&6
199e490e
AK
4124# Check whether --enable-devmapper or --disable-devmapper was given.
4125if test "${enable_devmapper+set}" = set; then
4126 enableval="$enable_devmapper"
4127 \
4128DEVMAPPER=no
8106cdd5 4129fi;
69792976 4130echo "$ac_t""$DEVMAPPER" 1>&6
199e490e 4131
b896caa1
AK
4132if test x$DEVMAPPER = xyes; then
4133 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
4134fi
4135
69792976 4136echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6
2dc95e1c
AK
4137# Check whether --enable-o_direct or --disable-o_direct was given.
4138if test "${enable_o_direct+set}" = set; then
4139 enableval="$enable_o_direct"
4140 \
4141ODIRECT=no
8106cdd5 4142fi;
69792976 4143echo "$ac_t""$ODIRECT" 1>&6
2dc95e1c
AK
4144
4145if test x$ODIRECT = xyes; then
4146 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
4147fi
4148
8106cdd5
AK
4149echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6
4150# Check whether --enable-cmdlib or --disable-cmdlib was given.
4151if test "${enable_cmdlib+set}" = set; then
4152 enableval="$enable_cmdlib"
4153 \
4154CMDLIB=yes
4155else
4156 CMDLIB=no
4157fi;
4158echo "$ac_t""$CMDLIB" 1>&6
4159
4160if test x$CMDLIB = xyes; then
4161 CFLAGS="$CFLAGS -DCMDLIB"
4162fi
4163
809fae91
AK
4164echo $ac_n "checking whether to enable fsadm""... $ac_c" 1>&6
4165# Check whether --enable-fsadm or --disable-fsadm was given.
4166if test "${enable_fsadm+set}" = set; then
4167 enableval="$enable_fsadm"
4168 FSADM=yes
4169fi;
4170echo "$ac_t""$FSADM" 1>&6
4171
795ca3e5
AK
4172if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
4173 then exec_prefix="";
4174fi;
4175
8106cdd5
AK
4176if test $ac_cv_c_compiler_gnu = yes; then
4177 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4178echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4179if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5
AK
4181else
4182 ac_pattern="Autoconf.*'x'"
8106cdd5
AK
4183 cat >conftest.$ac_ext <<_ACEOF
4184#line $LINENO "configure"
4185/* confdefs.h. */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h. */
795ca3e5
AK
4190#include <sgtty.h>
4191Autoconf TIOCGETP
8106cdd5 4192_ACEOF
795ca3e5 4193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 4194 $EGREP "$ac_pattern" >/dev/null 2>&1; then
795ca3e5
AK
4195 ac_cv_prog_gcc_traditional=yes
4196else
795ca3e5
AK
4197 ac_cv_prog_gcc_traditional=no
4198fi
4199rm -f conftest*
4200
4201
4202 if test $ac_cv_prog_gcc_traditional = no; then
8106cdd5
AK
4203 cat >conftest.$ac_ext <<_ACEOF
4204#line $LINENO "configure"
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
795ca3e5
AK
4210#include <termio.h>
4211Autoconf TCGETA
8106cdd5 4212_ACEOF
795ca3e5 4213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106cdd5 4214 $EGREP "$ac_pattern" >/dev/null 2>&1; then
795ca3e5
AK
4215 ac_cv_prog_gcc_traditional=yes
4216fi
4217rm -f conftest*
4218
4219 fi
4220fi
8106cdd5
AK
4221echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4222echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
795ca3e5
AK
4223 if test $ac_cv_prog_gcc_traditional = yes; then
4224 CC="$CC -traditional"
4225 fi
4226fi
4227
8106cdd5
AK
4228echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4229echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4230if test "${ac_cv_type_signal+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4232else
8106cdd5
AK
4233 cat >conftest.$ac_ext <<_ACEOF
4234#line $LINENO "configure"
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
795ca3e5
AK
4240#include <sys/types.h>
4241#include <signal.h>
4242#ifdef signal
8106cdd5 4243# undef signal
795ca3e5
AK
4244#endif
4245#ifdef __cplusplus
4246extern "C" void (*signal (int, void (*)(int)))(int);
4247#else
4248void (*signal ()) ();
4249#endif
4250
8106cdd5
AK
4251int
4252main ()
4253{
795ca3e5 4254int i;
8106cdd5
AK
4255 ;
4256 return 0;
4257}
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261 (eval $ac_compile) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -s conftest.$ac_objext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 (eval $ac_try) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
795ca3e5
AK
4271 ac_cv_type_signal=void
4272else
8106cdd5
AK
4273 echo "$as_me: failed program was:" >&5
4274sed 's/^/| /' conftest.$ac_ext >&5
4275
4276ac_cv_type_signal=int
795ca3e5 4277fi
8106cdd5 4278rm -f conftest.$ac_objext conftest.$ac_ext
795ca3e5 4279fi
8106cdd5
AK
4280echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4281echo "${ECHO_T}$ac_cv_type_signal" >&6
795ca3e5 4282
8106cdd5 4283cat >>confdefs.h <<_ACEOF
795ca3e5 4284#define RETSIGTYPE $ac_cv_type_signal
8106cdd5 4285_ACEOF
795ca3e5
AK
4286
4287
8106cdd5
AK
4288
4289for ac_func in vprintf
4290do
4291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4292echo "$as_me:$LINENO: checking for $ac_func" >&5
4293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4294if eval "test \"\${$as_ac_var+set}\" = set"; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4296else
8106cdd5
AK
4297 cat >conftest.$ac_ext <<_ACEOF
4298#line $LINENO "configure"
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
795ca3e5 4304/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
4305 which can conflict with char $ac_func (); below.
4306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 <limits.h> exists even on freestanding compilers. */
4308#ifdef __STDC__
4309# include <limits.h>
4310#else
4311# include <assert.h>
4312#endif
795ca3e5 4313/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4314#ifdef __cplusplus
4315extern "C"
4316{
4317#endif
795ca3e5 4318/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4319 builtin and then its argument prototype would still apply. */
4320char $ac_func ();
795ca3e5
AK
4321/* The GNU C library defines this for functions which it implements
4322 to always fail with ENOSYS. Some functions are actually named
4323 something starting with __ and the normal name is an alias. */
8106cdd5 4324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
795ca3e5
AK
4325choke me
4326#else
8106cdd5
AK
4327char (*f) () = $ac_func;
4328#endif
4329#ifdef __cplusplus
4330}
795ca3e5
AK
4331#endif
4332
8106cdd5
AK
4333int
4334main ()
4335{
4336return f != $ac_func;
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext conftest$ac_exeext
4342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -s conftest$ac_exeext'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 eval "$as_ac_var=yes"
795ca3e5 4354else
8106cdd5
AK
4355 echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4357
8106cdd5 4358eval "$as_ac_var=no"
795ca3e5 4359fi
8106cdd5
AK
4360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4361fi
4362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4364if test `eval echo '${'$as_ac_var'}'` = yes; then
4365 cat >>confdefs.h <<_ACEOF
4366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4367_ACEOF
795ca3e5 4368
8106cdd5
AK
4369echo "$as_me:$LINENO: checking for _doprnt" >&5
4370echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4371if test "${ac_cv_func__doprnt+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4373else
8106cdd5
AK
4374 cat >conftest.$ac_ext <<_ACEOF
4375#line $LINENO "configure"
4376/* confdefs.h. */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h. */
795ca3e5 4381/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
4382 which can conflict with char _doprnt (); below.
4383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 <limits.h> exists even on freestanding compilers. */
4385#ifdef __STDC__
4386# include <limits.h>
4387#else
4388# include <assert.h>
4389#endif
795ca3e5 4390/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4391#ifdef __cplusplus
4392extern "C"
4393{
4394#endif
795ca3e5 4395/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4396 builtin and then its argument prototype would still apply. */
4397char _doprnt ();
795ca3e5
AK
4398/* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401#if defined (__stub__doprnt) || defined (__stub____doprnt)
4402choke me
4403#else
8106cdd5
AK
4404char (*f) () = _doprnt;
4405#endif
4406#ifdef __cplusplus
4407}
795ca3e5
AK
4408#endif
4409
8106cdd5
AK
4410int
4411main ()
4412{
4413return f != _doprnt;
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418rm -f conftest.$ac_objext conftest$ac_exeext
4419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420 (eval $ac_link) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -s conftest$ac_exeext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_func__doprnt=yes
795ca3e5 4431else
8106cdd5
AK
4432 echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
4435ac_cv_func__doprnt=no
795ca3e5 4436fi
8106cdd5 4437rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 4438fi
8106cdd5
AK
4439echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4440echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4441if test $ac_cv_func__doprnt = yes; then
795ca3e5 4442
8106cdd5 4443cat >>confdefs.h <<\_ACEOF
795ca3e5 4444#define HAVE_DOPRNT 1
8106cdd5 4445_ACEOF
795ca3e5 4446
795ca3e5
AK
4447fi
4448
4449fi
8106cdd5
AK
4450done
4451
4452
4453
4454
795ca3e5
AK
4455
4456for ac_func in mkdir rmdir uname
4457do
8106cdd5
AK
4458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4459echo "$as_me:$LINENO: checking for $ac_func" >&5
4460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4461if eval "test \"\${$as_ac_var+set}\" = set"; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464 cat >conftest.$ac_ext <<_ACEOF
4465#line $LINENO "configure"
4466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
795ca3e5 4471/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
4472 which can conflict with char $ac_func (); below.
4473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 <limits.h> exists even on freestanding compilers. */
4475#ifdef __STDC__
4476# include <limits.h>
4477#else
4478# include <assert.h>
4479#endif
795ca3e5 4480/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4481#ifdef __cplusplus
4482extern "C"
4483{
4484#endif
795ca3e5 4485/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4486 builtin and then its argument prototype would still apply. */
4487char $ac_func ();
795ca3e5
AK
4488/* The GNU C library defines this for functions which it implements
4489 to always fail with ENOSYS. Some functions are actually named
4490 something starting with __ and the normal name is an alias. */
4491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4492choke me
4493#else
8106cdd5
AK
4494char (*f) () = $ac_func;
4495#endif
4496#ifdef __cplusplus
4497}
795ca3e5
AK
4498#endif
4499
8106cdd5
AK
4500int
4501main ()
4502{
4503return f != $ac_func;
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.$ac_objext conftest$ac_exeext
4509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4510 (eval $ac_link) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest$ac_exeext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 eval "$as_ac_var=yes"
795ca3e5 4521else
8106cdd5
AK
4522 echo "$as_me: failed program was:" >&5
4523sed 's/^/| /' conftest.$ac_ext >&5
4524
4525eval "$as_ac_var=no"
795ca3e5 4526fi
8106cdd5 4527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 4528fi
8106cdd5
AK
4529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4531if test `eval echo '${'$as_ac_var'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4534_ACEOF
795ca3e5 4535
795ca3e5
AK
4536fi
4537done
4538
4539
4540if test x$READLINE = xyes; then
8106cdd5
AK
4541 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
4542echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
4543if test "${ac_cv_search_tgetent+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 ac_func_search_save_LIBS=$LIBS
4547ac_cv_search_tgetent=no
4548cat >conftest.$ac_ext <<_ACEOF
4549#line $LINENO "configure"
4550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
4555
795ca3e5 4556/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4557#ifdef __cplusplus
4558extern "C"
4559#endif
795ca3e5 4560/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4561 builtin and then its argument prototype would still apply. */
4562char tgetent ();
4563int
4564main ()
4565{
4566tgetent ();
4567 ;
4568 return 0;
4569}
4570_ACEOF
4571rm -f conftest.$ac_objext conftest$ac_exeext
4572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4573 (eval $ac_link) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } &&
4577 { ac_try='test -s conftest$ac_exeext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
795ca3e5
AK
4583 ac_cv_search_tgetent="none required"
4584else
8106cdd5
AK
4585 echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588fi
4589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4590if test "$ac_cv_search_tgetent" = no; then
4591 for ac_lib in ncurses curses termcap termlib; do
4592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4593 cat >conftest.$ac_ext <<_ACEOF
4594#line $LINENO "configure"
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
4600
795ca3e5 4601/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4602#ifdef __cplusplus
4603extern "C"
4604#endif
795ca3e5 4605/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4606 builtin and then its argument prototype would still apply. */
4607char tgetent ();
4608int
4609main ()
4610{
4611tgetent ();
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -s conftest$ac_exeext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 (eval $ac_try) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 ac_cv_search_tgetent="-l$ac_lib"
795ca3e5
AK
4629break
4630else
8106cdd5
AK
4631 echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
795ca3e5 4634fi
8106cdd5
AK
4635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4636 done
795ca3e5 4637fi
8106cdd5
AK
4638LIBS=$ac_func_search_save_LIBS
4639fi
4640echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
4641echo "${ECHO_T}$ac_cv_search_tgetent" >&6
4642if test "$ac_cv_search_tgetent" != no; then
795ca3e5 4643 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8106cdd5
AK
4644
4645else
4646 { { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
4647--enable-readline option (which is enabled by default). Either disable readline
4648support with --disable-readline or download and install termcap from:
4649 ftp.gnu.org/gnu/termcap
4650Note: if you are using precompiled packages you will also need the development
4651 package as well (which may be called termcap-devel or something similar).
4652Note: (n)curses also seems to work as a substitute for termcap. This was
4653 not found either - but you could try installing that as well.
4654" >&5
4655echo "$as_me: error: termcap could not be found which is required for the
795ca3e5
AK
4656--enable-readline option (which is enabled by default). Either disable readline
4657support with --disable-readline or download and install termcap from:
4658 ftp.gnu.org/gnu/termcap
4659Note: if you are using precompiled packages you will also need the development
4660 package as well (which may be called termcap-devel or something similar).
4661Note: (n)curses also seems to work as a substitute for termcap. This was
4662 not found either - but you could try installing that as well.
8106cdd5
AK
4663" >&2;}
4664 { (exit 1); exit 1; }; }
795ca3e5 4665 exit
8106cdd5 4666
795ca3e5 4667fi
8106cdd5 4668
795ca3e5
AK
4669fi
4670
8106cdd5
AK
4671echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4672echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4673if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
26e7f2e0 4675else
8106cdd5 4676 ac_check_lib_save_LIBS=$LIBS
26e7f2e0 4677LIBS="-ldl $LIBS"
8106cdd5
AK
4678cat >conftest.$ac_ext <<_ACEOF
4679#line $LINENO "configure"
4680/* confdefs.h. */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h. */
4685
26e7f2e0 4686/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4687#ifdef __cplusplus
4688extern "C"
4689#endif
26e7f2e0 4690/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4691 builtin and then its argument prototype would still apply. */
4692char dlopen ();
4693int
4694main ()
4695{
4696dlopen ();
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701rm -f conftest.$ac_objext conftest$ac_exeext
4702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -s conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_lib_dl_dlopen=yes
4714else
4715 echo "$as_me: failed program was:" >&5
4716sed 's/^/| /' conftest.$ac_ext >&5
26e7f2e0 4717
8106cdd5 4718ac_cv_lib_dl_dlopen=no
26e7f2e0 4719fi
8106cdd5
AK
4720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4721LIBS=$ac_check_lib_save_LIBS
4722fi
4723echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4725if test $ac_cv_lib_dl_dlopen = yes; then
26e7f2e0
AK
4726 HAVE_LIBDL=yes
4727else
8106cdd5 4728 HAVE_LIBDL=no
26e7f2e0
AK
4729fi
4730
4731
74583a91 4732if [ "x$HAVE_LIBDL" = xyes -a "x$STATIC_LINK" = xno ]; then
b896caa1 4733 CFLAGS="$CFLAGS -DHAVE_LIBDL"
26e7f2e0 4734 LIBS="-ldl $LIBS"
d68a82ec
AK
4735else
4736 HAVE_LIBDL=no
26e7f2e0
AK
4737fi
4738
d3c8211f 4739if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared -o \
4922197a
AK
4740 "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
4741 \) -a "x$STATIC_LINK" = xyes ];
036f273a 4742 then { { echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
d68a82ec 4743" >&5
036f273a 4744echo "$as_me: error: Features cannot be 'shared' when building statically
d68a82ec
AK
4745" >&2;}
4746 { (exit 1); exit 1; }; }
4747 exit
036f273a
AK
4748fi
4749
4750echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4751echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
4752if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 ac_check_lib_save_LIBS=$LIBS
4756LIBS="-lselinux $LIBS"
4757cat >conftest.$ac_ext <<_ACEOF
4758#line $LINENO "configure"
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764
4765/* Override any gcc2 internal prototype to avoid an error. */
4766#ifdef __cplusplus
4767extern "C"
4768#endif
4769/* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
4771char is_selinux_enabled ();
4772int
4773main ()
4774{
4775is_selinux_enabled ();
4776 ;
4777 return 0;
4778}
4779_ACEOF
4780rm -f conftest.$ac_objext conftest$ac_exeext
4781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782 (eval $ac_link) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -s conftest$ac_exeext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_lib_selinux_is_selinux_enabled=yes
4793else
4794 echo "$as_me: failed program was:" >&5
4795sed 's/^/| /' conftest.$ac_ext >&5
4796
4797ac_cv_lib_selinux_is_selinux_enabled=no
4798fi
4799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4800LIBS=$ac_check_lib_save_LIBS
4801fi
4802echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4803echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
4804if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4805 HAVE_SELINUX=yes
4806else
4807 HAVE_SELINUX=no
4808fi
4809
4810
4811if test x$HAVE_SELINUX = xyes; then
4812 CFLAGS="$CFLAGS -DHAVE_SELINUX"
4813 LIBS="-lselinux $LIBS"
4814fi
d68a82ec 4815
8106cdd5
AK
4816
4817for ac_header in getopt.h
b896caa1 4818do
8106cdd5
AK
4819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821 echo "$as_me:$LINENO: checking for $ac_header" >&5
4822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4825fi
4826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4828else
4829 # Is the header compilable?
4830echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4832cat >conftest.$ac_ext <<_ACEOF
4833#line $LINENO "configure"
4834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
4839$ac_includes_default
4840#include <$ac_header>
4841_ACEOF
4842rm -f conftest.$ac_objext
4843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844 (eval $ac_compile) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_header_compiler=yes
4855else
4856 echo "$as_me: failed program was:" >&5
4857sed 's/^/| /' conftest.$ac_ext >&5
4858
4859ac_header_compiler=no
4860fi
4861rm -f conftest.$ac_objext conftest.$ac_ext
4862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4863echo "${ECHO_T}$ac_header_compiler" >&6
4864
4865# Is the header present?
4866echo "$as_me:$LINENO: checking $ac_header presence" >&5
4867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4868cat >conftest.$ac_ext <<_ACEOF
4869#line $LINENO "configure"
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include <$ac_header>
4876_ACEOF
4877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev/null; then
4885 if test -s conftest.err; then
4886 ac_cpp_err=$ac_c_preproc_warn_flag
4887 else
4888 ac_cpp_err=
4889 fi
4890else
4891 ac_cpp_err=yes
b896caa1 4892fi
8106cdd5
AK
4893if test -z "$ac_cpp_err"; then
4894 ac_header_preproc=yes
4895else
4896 echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 ac_header_preproc=no
4900fi
4901rm -f conftest.err conftest.$ac_ext
4902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4903echo "${ECHO_T}$ac_header_preproc" >&6
4904
4905# So? What about this header?
4906case $ac_header_compiler:$ac_header_preproc in
4907 yes:no )
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4912 (
4913 cat <<\_ASBOX
4914## ------------------------------------ ##
4915## Report this to bug-autoconf@gnu.org. ##
4916## ------------------------------------ ##
4917_ASBOX
4918 ) |
4919 sed "s/^/$as_me: WARNING: /" >&2
4920 ;;
4921 no:yes )
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4928 (
4929 cat <<\_ASBOX
4930## ------------------------------------ ##
4931## Report this to bug-autoconf@gnu.org. ##
4932## ------------------------------------ ##
4933_ASBOX
4934 ) |
4935 sed "s/^/$as_me: WARNING: /" >&2
4936 ;;
4937esac
4938echo "$as_me:$LINENO: checking for $ac_header" >&5
4939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942else
4943 eval "$as_ac_Header=$ac_header_preproc"
4944fi
4945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4947
b896caa1 4948fi
8106cdd5
AK
4949if test `eval echo '${'$as_ac_Header'}'` = yes; then
4950 cat >>confdefs.h <<_ACEOF
4951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4952_ACEOF
b896caa1 4953 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
b896caa1 4954fi
8106cdd5 4955
b896caa1
AK
4956done
4957
4958
795ca3e5 4959if test x$READLINE = xyes; then
8106cdd5
AK
4960
4961echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4962echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4963if test "${ac_cv_lib_readline_readline+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
795ca3e5 4965else
8106cdd5 4966 ac_check_lib_save_LIBS=$LIBS
795ca3e5 4967LIBS="-lreadline $LIBS"
8106cdd5
AK
4968cat >conftest.$ac_ext <<_ACEOF
4969#line $LINENO "configure"
4970/* confdefs.h. */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h. */
4975
795ca3e5 4976/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
4977#ifdef __cplusplus
4978extern "C"
4979#endif
795ca3e5 4980/* We use char because int might match the return type of a gcc2
8106cdd5
AK
4981 builtin and then its argument prototype would still apply. */
4982char readline ();
4983int
4984main ()
4985{
4986readline ();
4987 ;
4988 return 0;
4989}
4990_ACEOF
4991rm -f conftest.$ac_objext conftest$ac_exeext
4992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest$ac_exeext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_lib_readline_readline=yes
5004else
5005 echo "$as_me: failed program was:" >&5
5006sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 5007
8106cdd5 5008ac_cv_lib_readline_readline=no
795ca3e5 5009fi
8106cdd5
AK
5010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5011LIBS=$ac_check_lib_save_LIBS
5012fi
5013echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
5014echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
5015if test $ac_cv_lib_readline_readline = yes; then
5016 cat >>confdefs.h <<_ACEOF
5017#define HAVE_LIBREADLINE 1
5018_ACEOF
795ca3e5
AK
5019
5020 LIBS="-lreadline $LIBS"
5021
5022else
8106cdd5
AK
5023 { { echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
5024--enable-readline option (which is enabled by default). Either disable readline
5025support with --disable-readline or download and install readline from:
5026 ftp.gnu.org/gnu/readline
5027Note: if you are using precompiled packages you will also need the development
5028package as well (which may be called readline-devel or something similar).
5029" >&5
5030echo "$as_me: error: GNU Readline could not be found which is required for the
795ca3e5
AK
5031--enable-readline option (which is enabled by default). Either disable readline
5032support with --disable-readline or download and install readline from:
5033 ftp.gnu.org/gnu/readline
5034Note: if you are using precompiled packages you will also need the development
5035package as well (which may be called readline-devel or something similar).
8106cdd5
AK
5036" >&2;}
5037 { (exit 1); exit 1; }; }
795ca3e5 5038 exit
8106cdd5 5039
795ca3e5
AK
5040fi
5041
8106cdd5
AK
5042 echo "$as_me:$LINENO: checking for rl_completion_matches" >&5
5043echo $ECHO_N "checking for rl_completion_matches... $ECHO_C" >&6
5044if test "${ac_cv_func_rl_completion_matches+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
83912faa 5046else
8106cdd5
AK
5047 cat >conftest.$ac_ext <<_ACEOF
5048#line $LINENO "configure"
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
83912faa 5054/* System header to define __stub macros and hopefully few prototypes,
8106cdd5
AK
5055 which can conflict with char rl_completion_matches (); below.
5056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 <limits.h> exists even on freestanding compilers. */
5058#ifdef __STDC__
5059# include <limits.h>
5060#else
5061# include <assert.h>
5062#endif
83912faa 5063/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5
AK
5064#ifdef __cplusplus
5065extern "C"
5066{
5067#endif
83912faa 5068/* We use char because int might match the return type of a gcc2
8106cdd5
AK
5069 builtin and then its argument prototype would still apply. */
5070char rl_completion_matches ();
83912faa
AK
5071/* The GNU C library defines this for functions which it implements
5072 to always fail with ENOSYS. Some functions are actually named
5073 something starting with __ and the normal name is an alias. */
5074#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
5075choke me
5076#else
8106cdd5
AK
5077char (*f) () = rl_completion_matches;
5078#endif
5079#ifdef __cplusplus
5080}
83912faa
AK
5081#endif
5082
8106cdd5
AK
5083int
5084main ()
5085{
5086return f != rl_completion_matches;
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext conftest$ac_exeext
5092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5093 (eval $ac_link) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -s conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_func_rl_completion_matches=yes
83912faa 5104else
8106cdd5
AK
5105 echo "$as_me: failed program was:" >&5
5106sed 's/^/| /' conftest.$ac_ext >&5
5107
5108ac_cv_func_rl_completion_matches=no
83912faa 5109fi
8106cdd5 5110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
795ca3e5 5111fi
8106cdd5
AK
5112echo "$as_me:$LINENO: result: $ac_cv_func_rl_completion_matches" >&5
5113echo "${ECHO_T}$ac_cv_func_rl_completion_matches" >&6
5114if test $ac_cv_func_rl_completion_matches = yes; then
b896caa1 5115 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
83912faa
AK
5116fi
5117
8106cdd5 5118
69792976
AK
5119fi
5120
5121echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6
5122# Check whether --enable-nls or --disable-nls was given.
5123if test "${enable_nls+set}" = set; then
5124 enableval="$enable_nls"
5125 \
5126 INTL=yes
5127else
5128 INTL=no
8106cdd5 5129fi;
69792976
AK
5130echo "$ac_t""$INTL" 1>&6
5131
5132if test x$INTL = xyes; then
5133 INTL_PACKAGE="lvm2"
5134 # Extract the first word of "msgfmt", so it can be a program name with args.
5135set dummy msgfmt; ac_word=$2
8106cdd5
AK
5136echo "$as_me:$LINENO: checking for $ac_word" >&5
5137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138if test "${ac_cv_path_MSGFMT+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
69792976 5140else
8106cdd5
AK
5141 case $MSGFMT in
5142 [\\/]* | ?:[\\/]*)
69792976
AK
5143 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5144 ;;
69792976 5145 *)
8106cdd5
AK
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157done
5158done
5159
69792976
AK
5160 ;;
5161esac
5162fi
8106cdd5
AK
5163MSGFMT=$ac_cv_path_MSGFMT
5164
69792976 5165if test -n "$MSGFMT"; then
8106cdd5
AK
5166 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5167echo "${ECHO_T}$MSGFMT" >&6
69792976 5168else
8106cdd5
AK
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
69792976
AK
5171fi
5172
5173 if [ "x$MSGFMT" == x ];
8106cdd5
AK
5174 then { { echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
5175 " >&5
5176echo "$as_me: error: msgfmt not found in path $PATH
5177 " >&2;}
5178 { (exit 1); exit 1; }; }
5179 exit
69792976
AK
5180 fi;
5181
8106cdd5
AK
5182
5183# Check whether --with-localedir or --without-localedir was given.
69792976
AK
5184if test "${with_localedir+set}" = set; then
5185 withval="$with_localedir"
8106cdd5 5186 LOCALEDIR="$withval"
69792976 5187else
8106cdd5
AK
5188 LOCALEDIR='${prefix}/share/locale'
5189fi;
83912faa
AK
5190fi
5191
4a7f3eb2
AK
5192
5193# Check whether --with-confdir or --without-confdir was given.
5194if test "${with_confdir+set}" = set; then
5195 withval="$with_confdir"
5196 CONFDIR="$withval"
5197else
0a62c911 5198 CONFDIR='/etc'
4a7f3eb2
AK
5199fi;
5200
0a62c911
AK
5201
5202# Check whether --with-staticdir or --without-staticdir was given.
5203if test "${with_staticdir+set}" = set; then
5204 withval="$with_staticdir"
5205 STATICDIR="$withval"
5206else
5207 STATICDIR='${exec_prefix}/sbin'
5208fi;
5209
5210
fae0c576
AK
5211if test "-f VERSION"; then
5212 LVM_VERSION="\"`cat VERSION`\""
5213else
5214 LVM_VERSION="Unknown"
5215fi
5216
5217
83912faa 5218
795ca3e5
AK
5219
5220
5221
5222
5223
5224
5a52dca9 5225
8ef2b021 5226
199e490e 5227
69792976
AK
5228
5229
5230
5231
8106cdd5
AK
5232
5233
5234
5235
5236
d68a82ec 5237
036f273a 5238
7d1552c9 5239
8106cdd5 5240
0a62c911 5241
8106cdd5 5242
4a7f3eb2 5243
4922197a
AK
5244
5245
d8ac0fbc 5246
1a9ea74d 5247
d3c8211f
AK
5248
5249
5250 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"
8106cdd5 5251cat >confcache <<\_ACEOF
795ca3e5
AK
5252# This file is a shell script that caches the results of configure
5253# tests run on this system so they can be shared between configure
8106cdd5
AK
5254# scripts and configure runs, see configure's option --config-cache.
5255# It is not useful on other systems. If it contains results you don't
5256# want to keep, you may remove or edit it.
795ca3e5 5257#
8106cdd5
AK
5258# config.status only pays attention to the cache file if you give it
5259# the --recheck option to rerun configure.
795ca3e5 5260#
8106cdd5
AK
5261# `ac_cv_env_foo' variables (set or unset) will be overridden when
5262# loading this file, other *unset* `ac_cv_foo' will be assigned the
5263# following values.
5264
5265_ACEOF
5266
795ca3e5
AK
5267# The following way of writing the cache mishandles newlines in values,
5268# but we know of no workaround that is simple, portable, and efficient.
5269# So, don't put newlines in cache variables' values.
5270# Ultrix sh set writes to stderr and can't be redirected directly,
5271# and sets the high bit in the cache file unless we assign to the vars.
8106cdd5
AK
5272{
5273 (set) 2>&1 |
5274 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5275 *ac_space=\ *)
5276 # `set' does not quote correctly, so add quotes (double-quote
5277 # substitution turns \\\\ into \\, and sed turns \\ into \).
5278 sed -n \
5279 "s/'/'\\\\''/g;
5280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5281 ;;
5282 *)
5283 # `set' quotes correctly as required by POSIX, so do not add quotes.
5284 sed -n \
5285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5286 ;;
5287 esac;
5288} |
5289 sed '
5290 t clear
5291 : clear
5292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5293 t end
5294 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5295 : end' >>confcache
5296if diff $cache_file confcache >/dev/null 2>&1; then :; else
795ca3e5 5297 if test -w $cache_file; then
8106cdd5
AK
5298 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5299 cat confcache >$cache_file
795ca3e5
AK
5300 else
5301 echo "not updating unwritable cache $cache_file"
5302 fi
5303fi
5304rm -f confcache
5305
795ca3e5
AK
5306test "x$prefix" = xNONE && prefix=$ac_default_prefix
5307# Let make expand exec_prefix.
5308test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5309
8106cdd5
AK
5310# VPATH may cause trouble with some makes, so we remove $(srcdir),
5311# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5312# trailing colons and then remove the whole line if VPATH becomes empty
5313# (actually we leave an empty line to preserve line numbers).
795ca3e5 5314if test "x$srcdir" = x.; then
8106cdd5
AK
5315 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5316s/:*\$(srcdir):*/:/;
5317s/:*\${srcdir}:*/:/;
5318s/:*@srcdir@:*/:/;
5319s/^\([^=]*=[ ]*\):*/\1/;
5320s/:*$//;
5321s/^[^=]*=[ ]*$//;
5322}'
795ca3e5
AK
5323fi
5324
795ca3e5
AK
5325# Transform confdefs.h into DEFS.
5326# Protect against shell expansion while executing Makefile rules.
5327# Protect against Makefile macro expansion.
8106cdd5
AK
5328#
5329# If the first sed substitution is executed (which looks for macros that
5330# take arguments), then we branch to the quote section. Otherwise,
5331# look for a macro that doesn't take arguments.
5332cat >confdef2opt.sed <<\_ACEOF
5333t clear
5334: clear
5335s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5336t quote
5337s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5338t quote
5339d
5340: quote
5341s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5342s,\[,\\&,g
5343s,\],\\&,g
5344s,\$,$$,g
5345p
5346_ACEOF
5347# We use echo to avoid assuming a particular line-breaking character.
5348# The extra dot is to prevent the shell from consuming trailing
5349# line-breaks from the sub-command output. A line-break within
5350# single-quotes doesn't work because, if this script is created in a
5351# platform that uses two characters for line-breaks (e.g., DOS), tr
5352# would break.
5353ac_LF_and_DOT=`echo; echo .`
5354DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5355rm -f confdef2opt.sed
5356
5357
5358ac_libobjs=
5359ac_ltlibobjs=
5360for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5361 # 1. Remove the extension, and $U if already installed.
5362 ac_i=`echo "$ac_i" |
5363 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5364 # 2. Add them.
5365 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5366 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5367done
5368LIBOBJS=$ac_libobjs
795ca3e5 5369
8106cdd5
AK
5370LTLIBOBJS=$ac_ltlibobjs
5371
5372
5373
5374: ${CONFIG_STATUS=./config.status}
5375ac_clean_files_save=$ac_clean_files
5376ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5377{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5378echo "$as_me: creating $CONFIG_STATUS" >&6;}
5379cat >$CONFIG_STATUS <<_ACEOF
5380#! $SHELL
5381# Generated by $as_me.
795ca3e5 5382# Run this file to recreate the current configuration.
795ca3e5 5383# Compiler output produced by configure, useful for debugging
8106cdd5
AK
5384# configure, is in config.log if it exists.
5385
5386debug=false
5387ac_cs_recheck=false
5388ac_cs_silent=false
5389SHELL=\${CONFIG_SHELL-$SHELL}
5390_ACEOF
5391
5392cat >>$CONFIG_STATUS <<\_ACEOF
5393## --------------------- ##
5394## M4sh Initialization. ##
5395## --------------------- ##
5396
5397# Be Bourne compatible
5398if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5399 emulate sh
5400 NULLCMD=:
5401 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5402 # is contrary to our usage. Disable this feature.
5403 alias -g '${1+"$@"}'='"$@"'
5404elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5405 set -o posix
5406fi
5407
5408# Support unset when possible.
5409if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5410 as_unset=unset
5411else
5412 as_unset=false
5413fi
795ca3e5 5414
8106cdd5
AK
5415
5416# Work around bugs in pre-3.0 UWIN ksh.
5417$as_unset ENV MAIL MAILPATH
5418PS1='$ '
5419PS2='> '
5420PS4='+ '
5421
5422# NLS nuisances.
5423for as_var in \
5424 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5425 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5426 LC_TELEPHONE LC_TIME
795ca3e5 5427do
8106cdd5
AK
5428 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5429 eval $as_var=C; export $as_var
5430 else
5431 $as_unset $as_var
5432 fi
795ca3e5
AK
5433done
5434
8106cdd5
AK
5435# Required to use basename.
5436if expr a : '\(a\)' >/dev/null 2>&1; then
5437 as_expr=expr
5438else
5439 as_expr=false
5440fi
795ca3e5 5441
8106cdd5
AK
5442if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5443 as_basename=basename
5444else
5445 as_basename=false
5446fi
5447
5448
5449# Name of the executable.
5450as_me=`$as_basename "$0" ||
5451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5452 X"$0" : 'X\(//\)$' \| \
5453 X"$0" : 'X\(/\)$' \| \
5454 . : '\(.\)' 2>/dev/null ||
5455echo X/"$0" |
5456 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5457 /^X\/\(\/\/\)$/{ s//\1/; q; }
5458 /^X\/\(\/\).*/{ s//\1/; q; }
5459 s/.*/./; q'`
5460
5461
5462# PATH needs CR, and LINENO needs CR and PATH.
5463# Avoid depending upon Character Ranges.
5464as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5465as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5466as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5467as_cr_digits='0123456789'
5468as_cr_alnum=$as_cr_Letters$as_cr_digits
5469
5470# The user is always right.
5471if test "${PATH_SEPARATOR+set}" != set; then
5472 echo "#! /bin/sh" >conf$$.sh
5473 echo "exit 0" >>conf$$.sh
5474 chmod +x conf$$.sh
5475 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5476 PATH_SEPARATOR=';'
795ca3e5 5477 else
8106cdd5 5478 PATH_SEPARATOR=:
795ca3e5 5479 fi
8106cdd5
AK
5480 rm -f conf$$.sh
5481fi
5482
5483
5484 as_lineno_1=$LINENO
5485 as_lineno_2=$LINENO
5486 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5487 test "x$as_lineno_1" != "x$as_lineno_2" &&
5488 test "x$as_lineno_3" = "x$as_lineno_2" || {
5489 # Find who we are. Look in the path if we contain no path at all
5490 # relative or not.
5491 case $0 in
5492 *[\\/]* ) as_myself=$0 ;;
5493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5499done
5500
5501 ;;
5502 esac
5503 # We did not find ourselves, most probably we were run as `sh COMMAND'
5504 # in which case we are not to be found in the path.
5505 if test "x$as_myself" = x; then
5506 as_myself=$0
5507 fi
5508 if test ! -f "$as_myself"; then
5509 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5510echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5511 { (exit 1); exit 1; }; }
795ca3e5 5512 fi
8106cdd5
AK
5513 case $CONFIG_SHELL in
5514 '')
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5517do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for as_base in sh bash ksh sh5; do
5521 case $as_dir in
5522 /*)
5523 if ("$as_dir/$as_base" -c '
5524 as_lineno_1=$LINENO
5525 as_lineno_2=$LINENO
5526 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5527 test "x$as_lineno_1" != "x$as_lineno_2" &&
5528 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5529 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5530 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5531 CONFIG_SHELL=$as_dir/$as_base
5532 export CONFIG_SHELL
5533 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5534 fi;;
5535 esac
5536 done
795ca3e5 5537done
8106cdd5 5538;;
795ca3e5
AK
5539 esac
5540
8106cdd5
AK
5541 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5542 # uniformly replaced by the line number. The first 'sed' inserts a
5543 # line-number line before each line; the second 'sed' does the real
5544 # work. The second script uses 'N' to pair each line-number line
5545 # with the numbered line, and appends trailing '-' during
5546 # substitution so that $LINENO is not a special case at line end.
5547 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5548 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5549 sed '=' <$as_myself |
5550 sed '
5551 N
5552 s,$,-,
5553 : loop
5554 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5555 t loop
5556 s,-$,,
5557 s,^['$as_cr_digits']*\n,,
5558 ' >$as_me.lineno &&
5559 chmod +x $as_me.lineno ||
5560 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5561echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5562 { (exit 1); exit 1; }; }
5563
5564 # Don't try to exec as it changes $[0], causing all sort of problems
5565 # (the dirname of $[0] is not the place where we might find the
5566 # original and so on. Autoconf is especially sensible to this).
5567 . ./$as_me.lineno
5568 # Exit status is that of the last command.
5569 exit
5570}
5571
795ca3e5 5572
8106cdd5
AK
5573case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5574 *c*,-n*) ECHO_N= ECHO_C='
5575' ECHO_T=' ' ;;
5576 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5577 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5578esac
5579
5580if expr a : '\(a\)' >/dev/null 2>&1; then
5581 as_expr=expr
5582else
5583 as_expr=false
5584fi
5585
5586rm -f conf$$ conf$$.exe conf$$.file
5587echo >conf$$.file
5588if ln -s conf$$.file conf$$ 2>/dev/null; then
5589 # We could just check for DJGPP; but this test a) works b) is more generic
5590 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5591 if test -f conf$$.exe; then
5592 # Don't use ln at all; we don't have any links
5593 as_ln_s='cp -p'
795ca3e5 5594 else
8106cdd5 5595 as_ln_s='ln -s'
795ca3e5 5596 fi
8106cdd5
AK
5597elif ln conf$$.file conf$$ 2>/dev/null; then
5598 as_ln_s=ln
5599else
5600 as_ln_s='cp -p'
5601fi
5602rm -f conf$$ conf$$.exe conf$$.file
795ca3e5 5603
8106cdd5
AK
5604if mkdir -p . 2>/dev/null; then
5605 as_mkdir_p=:
5606else
5607 as_mkdir_p=false
5608fi
5609
5610as_executable_p="test -f"
5611
5612# Sed expression to map a string onto a valid CPP name.
5613as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5614
5615# Sed expression to map a string onto a valid variable name.
5616as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5617
5618
5619# IFS
5620# We need space, tab and new line, in precisely that order.
5621as_nl='
5622'
5623IFS=" $as_nl"
5624
5625# CDPATH.
5626$as_unset CDPATH
5627
5628exec 6>&1
5629
5630# Open the log real soon, to keep \$[0] and so on meaningful, and to
5631# report actual input values of CONFIG_FILES etc. instead of their
5632# values after options handling. Logging --version etc. is OK.
5633exec 5>>config.log
5634{
5635 echo
5636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5637## Running $as_me. ##
5638_ASBOX
5639} >&5
5640cat >&5 <<_CSEOF
5641
5642This file was extended by $as_me, which was
5643generated by GNU Autoconf 2.57. Invocation command line was
5644
5645 CONFIG_FILES = $CONFIG_FILES
5646 CONFIG_HEADERS = $CONFIG_HEADERS
5647 CONFIG_LINKS = $CONFIG_LINKS
5648 CONFIG_COMMANDS = $CONFIG_COMMANDS
5649 $ $0 $@
5650
5651_CSEOF
5652echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5653echo >&5
5654_ACEOF
5655
5656# Files that config.status was made for.
5657if test -n "$ac_config_files"; then
5658 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5659fi
5660
5661if test -n "$ac_config_headers"; then
5662 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5663fi
5664
5665if test -n "$ac_config_links"; then
5666 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5667fi
5668
5669if test -n "$ac_config_commands"; then
5670 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5671fi
5672
5673cat >>$CONFIG_STATUS <<\_ACEOF
5674
5675ac_cs_usage="\
5676\`$as_me' instantiates files from templates according to the
5677current configuration.
5678
5679Usage: $0 [OPTIONS] [FILE]...
5680
5681 -h, --help print this help, then exit
5682 -V, --version print version number, then exit
5683 -q, --quiet do not print progress messages
5684 -d, --debug don't remove temporary files
5685 --recheck update $as_me by reconfiguring in the same conditions
5686 --file=FILE[:TEMPLATE]
5687 instantiate the configuration file FILE
5688
5689Configuration files:
5690$config_files
5691
5692Report bugs to <bug-autoconf@gnu.org>."
5693_ACEOF
5694
5695cat >>$CONFIG_STATUS <<_ACEOF
5696ac_cs_version="\\
5697config.status
5698configured by $0, generated by GNU Autoconf 2.57,
5699 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5700
5701Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5702Free Software Foundation, Inc.
5703This config.status script is free software; the Free Software Foundation
5704gives unlimited permission to copy, distribute and modify it."
5705srcdir=$srcdir
5706INSTALL="$INSTALL"
5707_ACEOF
5708
5709cat >>$CONFIG_STATUS <<\_ACEOF
5710# If no file are specified by the user, then we need to provide default
5711# value. By we need to know if files were specified by the user.
5712ac_need_defaults=:
5713while test $# != 0
5714do
5715 case $1 in
5716 --*=*)
5717 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5718 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5719 ac_shift=:
5720 ;;
5721 -*)
5722 ac_option=$1
5723 ac_optarg=$2
5724 ac_shift=shift
5725 ;;
5726 *) # This is not an option, so the user has probably given explicit
5727 # arguments.
5728 ac_option=$1
5729 ac_need_defaults=false;;
5730 esac
5731
5732 case $ac_option in
5733 # Handling of the options.
5734_ACEOF
5735cat >>$CONFIG_STATUS <<\_ACEOF
5736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5737 ac_cs_recheck=: ;;
5738 --version | --vers* | -V )
5739 echo "$ac_cs_version"; exit 0 ;;
5740 --he | --h)
5741 # Conflict between --help and --header
5742 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5743Try \`$0 --help' for more information." >&5
5744echo "$as_me: error: ambiguous option: $1
5745Try \`$0 --help' for more information." >&2;}
5746 { (exit 1); exit 1; }; };;
5747 --help | --hel | -h )
5748 echo "$ac_cs_usage"; exit 0 ;;
5749 --debug | --d* | -d )
5750 debug=: ;;
5751 --file | --fil | --fi | --f )
5752 $ac_shift
5753 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5754 ac_need_defaults=false;;
5755 --header | --heade | --head | --hea )
5756 $ac_shift
5757 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5758 ac_need_defaults=false;;
5759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5760 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5761 ac_cs_silent=: ;;
5762
5763 # This is an error.
5764 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5765Try \`$0 --help' for more information." >&5
5766echo "$as_me: error: unrecognized option: $1
5767Try \`$0 --help' for more information." >&2;}
5768 { (exit 1); exit 1; }; } ;;
5769
5770 *) ac_config_targets="$ac_config_targets $1" ;;
5771
5772 esac
5773 shift
5774done
5775
5776ac_configure_extra_args=
5777
5778if $ac_cs_silent; then
5779 exec 6>/dev/null
5780 ac_configure_extra_args="$ac_configure_extra_args --silent"
5781fi
5782
5783_ACEOF
5784cat >>$CONFIG_STATUS <<_ACEOF
5785if \$ac_cs_recheck; then
5786 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5787 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5788fi
5789
5790_ACEOF
5791
5792
5793
5794
5795
5796cat >>$CONFIG_STATUS <<\_ACEOF
5797for ac_config_target in $ac_config_targets
5798do
5799 case "$ac_config_target" in
5800 # Handling of arguments.
5801 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5802 "make.tmpl" ) CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
d3c8211f
AK
5803 "daemons/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
5804 "daemons/clvmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
4a7f3eb2 5805 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8106cdd5
AK
5806 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5807 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5808 "lib/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
d8ac0fbc 5809 "lib/format_pool/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
d3c8211f 5810 "lib/locking/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
4922197a
AK
5811 "lib/mirror/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
5812 "lib/snapshot/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
8106cdd5
AK
5813 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
5814 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
5815 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
5816 "tools/version.h" ) CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
1a9ea74d 5817 "tools/fsadm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/fsadm/Makefile" ;;
8106cdd5
AK
5818 "test/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/mm/Makefile" ;;
5819 "test/device/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/device/Makefile" ;;
5820 "test/format1/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/format1/Makefile" ;;
5821 "test/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/regex/Makefile" ;;
5822 "test/filters/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/filters/Makefile" ;;
5823 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5824echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5825 { (exit 1); exit 1; }; };;
795ca3e5 5826 esac
8106cdd5
AK
5827done
5828
5829# If the user did not use the arguments to specify the items to instantiate,
5830# then the envvar interface is used. Set only those that are not.
5831# We use the long form for the default assignment because of an extremely
5832# bizarre bug on SunOS 4.1.3.
5833if $ac_need_defaults; then
5834 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5835fi
5836
5837# Have a temporary directory for convenience. Make it in the build tree
5838# simply because there is no reason to put it here, and in addition,
5839# creating and moving files from /tmp can sometimes cause problems.
5840# Create a temporary directory, and hook for its removal unless debugging.
5841$debug ||
5842{
5843 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5844 trap '{ (exit 1); exit 1; }' 1 2 13 15
5845}
5846
5847# Create a (secure) tmp directory for tmp files.
5848
5849{
5850 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5851 test -n "$tmp" && test -d "$tmp"
5852} ||
5853{
5854 tmp=./confstat$$-$RANDOM
5855 (umask 077 && mkdir $tmp)
5856} ||
5857{
5858 echo "$me: cannot create a temporary directory in ." >&2
5859 { (exit 1); exit 1; }
5860}
5861
5862_ACEOF
5863
5864cat >>$CONFIG_STATUS <<_ACEOF
795ca3e5 5865
8106cdd5
AK
5866#
5867# CONFIG_FILES section.
5868#
5869
5870# No need to generate the scripts if there are no CONFIG_FILES.
5871# This happens for instance when ./config.status config.h
5872if test -n "\$CONFIG_FILES"; then
5873 # Protect against being on the right side of a sed subst in config.status.
5874 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5875 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5876s,@SHELL@,$SHELL,;t t
5877s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5878s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5879s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5880s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5881s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5882s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5883s,@exec_prefix@,$exec_prefix,;t t
5884s,@prefix@,$prefix,;t t
5885s,@program_transform_name@,$program_transform_name,;t t
5886s,@bindir@,$bindir,;t t
5887s,@sbindir@,$sbindir,;t t
5888s,@libexecdir@,$libexecdir,;t t
5889s,@datadir@,$datadir,;t t
5890s,@sysconfdir@,$sysconfdir,;t t
5891s,@sharedstatedir@,$sharedstatedir,;t t
5892s,@localstatedir@,$localstatedir,;t t
5893s,@libdir@,$libdir,;t t
5894s,@includedir@,$includedir,;t t
5895s,@oldincludedir@,$oldincludedir,;t t
5896s,@infodir@,$infodir,;t t
5897s,@mandir@,$mandir,;t t
5898s,@build_alias@,$build_alias,;t t
5899s,@host_alias@,$host_alias,;t t
5900s,@target_alias@,$target_alias,;t t
5901s,@DEFS@,$DEFS,;t t
5902s,@ECHO_C@,$ECHO_C,;t t
5903s,@ECHO_N@,$ECHO_N,;t t
5904s,@ECHO_T@,$ECHO_T,;t t
5905s,@LIBS@,$LIBS,;t t
5906s,@AWK@,$AWK,;t t
5907s,@CC@,$CC,;t t
5908s,@CFLAGS@,$CFLAGS,;t t
5909s,@LDFLAGS@,$LDFLAGS,;t t
5910s,@CPPFLAGS@,$CPPFLAGS,;t t
5911s,@ac_ct_CC@,$ac_ct_CC,;t t
5912s,@EXEEXT@,$EXEEXT,;t t
5913s,@OBJEXT@,$OBJEXT,;t t
5914s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5915s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5916s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5917s,@LN_S@,$LN_S,;t t
5918s,@SET_MAKE@,$SET_MAKE,;t t
5919s,@RANLIB@,$RANLIB,;t t
5920s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5921s,@CPP@,$CPP,;t t
5922s,@EGREP@,$EGREP,;t t
5923s,@build@,$build,;t t
5924s,@build_cpu@,$build_cpu,;t t
5925s,@build_vendor@,$build_vendor,;t t
5926s,@build_os@,$build_os,;t t
5927s,@host@,$host,;t t
5928s,@host_cpu@,$host_cpu,;t t
5929s,@host_vendor@,$host_vendor,;t t
5930s,@host_os@,$host_os,;t t
5931s,@target@,$target,;t t
5932s,@target_cpu@,$target_cpu,;t t
5933s,@target_vendor@,$target_vendor,;t t
5934s,@target_os@,$target_os,;t t
5935s,@MSGFMT@,$MSGFMT,;t t
5936s,@JOBS@,$JOBS,;t t
5937s,@STATIC_LINK@,$STATIC_LINK,;t t
5938s,@LVM1@,$LVM1,;t t
d8ac0fbc 5939s,@POOL@,$POOL,;t t
4922197a
AK
5940s,@SNAPSHOTS@,$SNAPSHOTS,;t t
5941s,@MIRRORS@,$MIRRORS,;t t
8106cdd5
AK
5942s,@OWNER@,$OWNER,;t t
5943s,@GROUP@,$GROUP,;t t
5944s,@CLDFLAGS@,$CLDFLAGS,;t t
5945s,@CLDWHOLEARCHIVE@,$CLDWHOLEARCHIVE,;t t
5946s,@CLDNOWHOLEARCHIVE@,$CLDNOWHOLEARCHIVE,;t t
5947s,@LD_DEPS@,$LD_DEPS,;t t
d68a82ec 5948s,@LD_FLAGS@,$LD_FLAGS,;t t
8106cdd5
AK
5949s,@SOFLAG@,$SOFLAG,;t t
5950s,@LVM_VERSION@,$LVM_VERSION,;t t
7d1552c9 5951s,@LVM1_FALLBACK@,$LVM1_FALLBACK,;t t
8106cdd5
AK
5952s,@DEBUG@,$DEBUG,;t t
5953s,@DEVMAPPER@,$DEVMAPPER,;t t
5954s,@HAVE_LIBDL@,$HAVE_LIBDL,;t t
036f273a 5955s,@HAVE_SELINUX@,$HAVE_SELINUX,;t t
8106cdd5
AK
5956s,@CMDLIB@,$CMDLIB,;t t
5957s,@LOCALEDIR@,$LOCALEDIR,;t t
4a7f3eb2 5958s,@CONFDIR@,$CONFDIR,;t t
0a62c911 5959s,@STATICDIR@,$STATICDIR,;t t
8106cdd5
AK
5960s,@INTL_PACKAGE@,$INTL_PACKAGE,;t t
5961s,@INTL@,$INTL,;t t
d3c8211f
AK
5962s,@CLVMD@,$CLVMD,;t t
5963s,@CLUSTER@,$CLUSTER,;t t
1a9ea74d 5964s,@FSADM@,$FSADM,;t t
8106cdd5
AK
5965s,@LIBOBJS@,$LIBOBJS,;t t
5966s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5967CEOF
5968
5969_ACEOF
5970
5971 cat >>$CONFIG_STATUS <<\_ACEOF
5972 # Split the substitutions into bite-sized pieces for seds with
5973 # small command number limits, like on Digital OSF/1 and HP-UX.
5974 ac_max_sed_lines=48
5975 ac_sed_frag=1 # Number of current file.
5976 ac_beg=1 # First line for current file.
5977 ac_end=$ac_max_sed_lines # Line after last line for current file.
5978 ac_more_lines=:
5979 ac_sed_cmds=
5980 while $ac_more_lines; do
5981 if test $ac_beg -gt 1; then
5982 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5983 else
5984 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5985 fi
5986 if test ! -s $tmp/subs.frag; then
5987 ac_more_lines=false
5988 else
5989 # The purpose of the label and of the branching condition is to
5990 # speed up the sed processing (if there are no `@' at all, there
5991 # is no need to browse any of the substitutions).
5992 # These are the two extra sed commands mentioned above.
5993 (echo ':t
5994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5995 if test -z "$ac_sed_cmds"; then
5996 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5997 else
5998 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5999 fi
6000 ac_sed_frag=`expr $ac_sed_frag + 1`
6001 ac_beg=$ac_end
6002 ac_end=`expr $ac_end + $ac_max_sed_lines`
6003 fi
6004 done
6005 if test -z "$ac_sed_cmds"; then
6006 ac_sed_cmds=cat
6007 fi
6008fi # test -n "$CONFIG_FILES"
6009
6010_ACEOF
6011cat >>$CONFIG_STATUS <<\_ACEOF
6012for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6014 case $ac_file in
6015 - | *:- | *:-:* ) # input from stdin
6016 cat >$tmp/stdin
6017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6021 * ) ac_file_in=$ac_file.in ;;
795ca3e5
AK
6022 esac
6023
8106cdd5
AK
6024 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6026$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6027 X"$ac_file" : 'X\(//\)[^/]' \| \
6028 X"$ac_file" : 'X\(//\)$' \| \
6029 X"$ac_file" : 'X\(/\)' \| \
6030 . : '\(.\)' 2>/dev/null ||
6031echo X"$ac_file" |
6032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6034 /^X\(\/\/\)$/{ s//\1/; q; }
6035 /^X\(\/\).*/{ s//\1/; q; }
6036 s/.*/./; q'`
6037 { if $as_mkdir_p; then
6038 mkdir -p "$ac_dir"
6039 else
6040 as_dir="$ac_dir"
6041 as_dirs=
6042 while test ! -d "$as_dir"; do
6043 as_dirs="$as_dir $as_dirs"
6044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6046 X"$as_dir" : 'X\(//\)[^/]' \| \
6047 X"$as_dir" : 'X\(//\)$' \| \
6048 X"$as_dir" : 'X\(/\)' \| \
6049 . : '\(.\)' 2>/dev/null ||
6050echo X"$as_dir" |
6051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6053 /^X\(\/\/\)$/{ s//\1/; q; }
6054 /^X\(\/\).*/{ s//\1/; q; }
6055 s/.*/./; q'`
6056 done
6057 test ! -n "$as_dirs" || mkdir $as_dirs
6058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6059echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6060 { (exit 1); exit 1; }; }; }
6061
6062 ac_builddir=.
6063
6064if test "$ac_dir" != .; then
6065 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6066 # A "../" for each directory in $ac_dir_suffix.
6067 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6068else
6069 ac_dir_suffix= ac_top_builddir=
6070fi
6071
6072case $srcdir in
6073 .) # No --srcdir option. We are building in place.
6074 ac_srcdir=.
6075 if test -z "$ac_top_builddir"; then
6076 ac_top_srcdir=.
6077 else
6078 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6079 fi ;;
6080 [\\/]* | ?:[\\/]* ) # Absolute path.
6081 ac_srcdir=$srcdir$ac_dir_suffix;
6082 ac_top_srcdir=$srcdir ;;
6083 *) # Relative path.
6084 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6085 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6086esac
6087# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6088# absolute.
6089ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6090ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6091ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6092ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6093
6094
6095 case $INSTALL in
6096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6097 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
795ca3e5
AK
6098 esac
6099
8106cdd5
AK
6100 if test x"$ac_file" != x-; then
6101 { echo "$as_me:$LINENO: creating $ac_file" >&5
6102echo "$as_me: creating $ac_file" >&6;}
6103 rm -f "$ac_file"
6104 fi
6105 # Let's still pretend it is `configure' which instantiates (i.e., don't
6106 # use $as_me), people would be surprised to read:
6107 # /* config.h. Generated by config.status. */
6108 if test x"$ac_file" = x-; then
6109 configure_input=
6110 else
6111 configure_input="$ac_file. "
6112 fi
6113 configure_input=$configure_input"Generated from `echo $ac_file_in |
6114 sed 's,.*/,,'` by configure."
6115
6116 # First look for the input files in the build tree, otherwise in the
6117 # src tree.
6118 ac_file_inputs=`IFS=:
6119 for f in $ac_file_in; do
6120 case $f in
6121 -) echo $tmp/stdin ;;
6122 [\\/$]*)
6123 # Absolute (can't be DOS-style, as IFS=:)
6124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6125echo "$as_me: error: cannot find input file: $f" >&2;}
6126 { (exit 1); exit 1; }; }
6127 echo $f;;
6128 *) # Relative
6129 if test -f "$f"; then
6130 # Build tree
6131 echo $f
6132 elif test -f "$srcdir/$f"; then
6133 # Source tree
6134 echo $srcdir/$f
6135 else
6136 # /dev/null tree
6137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6138echo "$as_me: error: cannot find input file: $f" >&2;}
6139 { (exit 1); exit 1; }; }
6140 fi;;
6141 esac
6142 done` || { (exit 1); exit 1; }
6143_ACEOF
6144cat >>$CONFIG_STATUS <<_ACEOF
6145 sed "$ac_vpsub
6146$extrasub
6147_ACEOF
6148cat >>$CONFIG_STATUS <<\_ACEOF
6149:t
6150/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6151s,@configure_input@,$configure_input,;t t
6152s,@srcdir@,$ac_srcdir,;t t
6153s,@abs_srcdir@,$ac_abs_srcdir,;t t
6154s,@top_srcdir@,$ac_top_srcdir,;t t
6155s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6156s,@builddir@,$ac_builddir,;t t
6157s,@abs_builddir@,$ac_abs_builddir,;t t
6158s,@top_builddir@,$ac_top_builddir,;t t
6159s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6160s,@INSTALL@,$ac_INSTALL,;t t
6161" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6162 rm -f $tmp/stdin
6163 if test x"$ac_file" != x-; then
6164 mv $tmp/out $ac_file
6165 else
6166 cat $tmp/out
6167 rm -f $tmp/out
6168 fi
795ca3e5 6169
8106cdd5
AK
6170done
6171_ACEOF
795ca3e5 6172
8106cdd5 6173cat >>$CONFIG_STATUS <<\_ACEOF
795ca3e5 6174
8106cdd5
AK
6175{ (exit 0); exit 0; }
6176_ACEOF
795ca3e5 6177chmod +x $CONFIG_STATUS
8106cdd5
AK
6178ac_clean_files=$ac_clean_files_save
6179
6180
6181# configure is writing to config.log, and then calls config.status.
6182# config.status does its own redirection, appending to config.log.
6183# Unfortunately, on DOS this fails, as config.log is still kept open
6184# by configure, so config.status won't be able to write to it; its
6185# output is simply discarded. So we exec the FD to /dev/null,
6186# effectively closing config.log, so it can be properly (re)opened and
6187# appended to by config.status. When coming back to configure, we
6188# need to make the FD available again.
6189if test "$no_create" != yes; then
6190 ac_cs_success=:
6191 ac_config_status_args=
6192 test "$silent" = yes &&
6193 ac_config_status_args="$ac_config_status_args --quiet"
6194 exec 5>/dev/null
6195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6196 exec 5>>config.log
6197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6198 # would make configure fail if this is the last instruction.
6199 $ac_cs_success || { (exit 1); exit 1; }
6200fi
795ca3e5 6201
2dc95e1c
AK
6202
6203if test x$ODIRECT != xyes; then
6204 echo
6205 echo Warning: O_DIRECT disabled.
6206 echo Use of pvmove may cause machine to lock up under low memory conditions.
6207 echo
6208fi
809fae91
AK
6209
6210if test x$FSADM == xyes; then
6211 echo
6212 echo Warning: fsadm support is untested.
6213 echo
6214fi
This page took 0.689178 seconds and 5 git commands to generate.