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