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