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