]> sourceware.org Git - lvm2.git/blame - configure
New column-based reporting tools: lvs, pvs & vgs.
[lvm2.git] / configure
CommitLineData
795ca3e5
AK
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_default_prefix=/usr
15ac_help="$ac_help
16 --with-user=USER Set the owner of installed files "
17ac_help="$ac_help
18 --with-group=GROUP Set the group owner of installed files "
5a52dca9
AK
19ac_help="$ac_help
20 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
21 [TYPE=internal] "
795ca3e5
AK
22ac_help="$ac_help
23 --enable-jobs=NUM Number of jobs to run simultaneously"
24ac_help="$ac_help
25 --enable-static_link Use this to link the tools to the liblvm library
26 statically. Default is dynamic linking"
27ac_help="$ac_help
5a52dca9 28 --enable-readline Enable readline support"
795ca3e5
AK
29
30# Initialize some variables set by options.
31# The variables have the same names as the options, with
32# dashes changed to underlines.
33build=NONE
34cache_file=./config.cache
35exec_prefix=NONE
36host=NONE
37no_create=
38nonopt=NONE
39no_recursion=
40prefix=NONE
41program_prefix=NONE
42program_suffix=NONE
43program_transform_name=s,x,x,
44silent=
45site=
46srcdir=
47target=NONE
48verbose=
49x_includes=NONE
50x_libraries=NONE
51bindir='${exec_prefix}/bin'
52sbindir='${exec_prefix}/sbin'
53libexecdir='${exec_prefix}/libexec'
54datadir='${prefix}/share'
55sysconfdir='${prefix}/etc'
56sharedstatedir='${prefix}/com'
57localstatedir='${prefix}/var'
58libdir='${exec_prefix}/lib'
59includedir='${prefix}/include'
60oldincludedir='/usr/include'
61infodir='${prefix}/info'
62mandir='${prefix}/man'
63
64# Initialize some other variables.
65subdirs=
66MFLAGS= MAKEFLAGS=
67SHELL=${CONFIG_SHELL-/bin/sh}
68# Maximum number of lines to put in a shell here document.
69ac_max_here_lines=12
70
71ac_prev=
72for ac_option
73do
74
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
78 ac_prev=
79 continue
80 fi
81
82 case "$ac_option" in
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 *) ac_optarg= ;;
85 esac
86
87 # Accept the important Cygnus configure options, so we can diagnose typos.
88
89 case "$ac_option" in
90
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
92 ac_prev=bindir ;;
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
95
96 -build | --build | --buil | --bui | --bu)
97 ac_prev=build ;;
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 build="$ac_optarg" ;;
100
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
107
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109 ac_prev=datadir ;;
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111 | --da=*)
112 datadir="$ac_optarg" ;;
113
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 fi
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
122
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 fi
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 case "$ac_option" in
131 *=*) ;;
132 *) ac_optarg=yes ;;
133 esac
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
144
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
147 with_gas=yes ;;
148
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
152 cat << EOF
153Usage: configure [options] [host]
154Options: [defaults in brackets after descriptions]
155Configuration:
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
163 [$ac_default_prefix]
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 [same as prefix]
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
170 [PREFIX/share]
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 [PREFIX/com]
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
185EOF
186 cat << EOF
187Host type:
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
198EOF
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
201 fi
202 exit 0 ;;
203
204 -host | --host | --hos | --ho)
205 ac_prev=host ;;
206 -host=* | --host=* | --hos=* | --ho=*)
207 host="$ac_optarg" ;;
208
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
215
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
217 ac_prev=infodir ;;
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
220
221 -libdir | --libdir | --libdi | --libd)
222 ac_prev=libdir ;;
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
225
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
232
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
241
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243 ac_prev=mandir ;;
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
246
247 -nfp | --nfp | --nf)
248 # Obsolete; use --without-fp.
249 with_fp=no ;;
250
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 | --no-cr | --no-c)
253 no_create=yes ;;
254
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 no_recursion=yes ;;
258
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
267
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269 ac_prev=prefix ;;
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
272
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
279
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
286
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
303
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
306 silent=yes ;;
307
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309 ac_prev=sbindir ;;
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311 | --sbi=* | --sb=*)
312 sbindir="$ac_optarg" ;;
313
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
317 | --sha | --sh)
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322 | --sha=* | --sh=*)
323 sharedstatedir="$ac_optarg" ;;
324
325 -site | --site | --sit)
326 ac_prev=site ;;
327 -site=* | --site=* | --sit=*)
328 site="$ac_optarg" ;;
329
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331 ac_prev=srcdir ;;
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
334
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
341
342 -target | --target | --targe | --targ | --tar | --ta | --t)
343 ac_prev=target ;;
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
346
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 verbose=yes ;;
349
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
352 exit 0 ;;
353
354 -with-* | --with-*)
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 case "$ac_option" in
362 *=*) ;;
363 *) ac_optarg=yes ;;
364 esac
365 eval "with_${ac_package}='$ac_optarg'" ;;
366
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 fi
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
375
376 --x)
377 # Obsolete; use --with-x.
378 with_x=yes ;;
379
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
386
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
393
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 ;;
396
397 *)
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 fi
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403 fi
404 nonopt="$ac_option"
405 ;;
406
407 esac
408done
409
410if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412fi
413
414trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416# File descriptor usage:
417# 0 standard input
418# 1 file creation
419# 2 errors and warnings
420# 3 some systems may open it to /dev/tty
421# 4 used on the Kubota Titan
422# 6 checking for... messages and results
423# 5 compiler messages saved in config.log
424if test "$silent" = yes; then
425 exec 6>/dev/null
426else
427 exec 6>&1
428fi
429exec 5>./config.log
430
431echo "\
432This file contains any messages produced by compilers while
433running configure, to aid debugging if configure makes a mistake.
434" 1>&5
435
436# Strip out --no-create and --no-recursion so they do not pile up.
437# Also quote any args containing shell metacharacters.
438ac_configure_args=
439for ac_arg
440do
441 case "$ac_arg" in
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449 esac
450done
451
452# NLS nuisances.
453# Only set these to C if already set. These must not be set unconditionally
454# because not all systems understand e.g. LANG=C (notably SCO).
455# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456# Non-C LC_CTYPE values break the ctype check.
457if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
461
462# confdefs.h avoids OS command line length limits that DEFS can exceed.
463rm -rf conftest* confdefs.h
464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465echo > confdefs.h
466
467# A filename unique to this package, relative to the directory that
468# configure is in, which we can look for to find out if srcdir is correct.
13c7b701 469ac_unique_file=lib/device/dev-cache.h
795ca3e5
AK
470
471# Find the source files, if location was not specified.
472if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
475 ac_prog=$0
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478 srcdir=$ac_confdir
479 if test ! -r $srcdir/$ac_unique_file; then
480 srcdir=..
481 fi
482else
483 ac_srcdir_defaulted=no
484fi
485if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 else
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 fi
491fi
492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494# Prefer explicitly selected file to automatically selected ones.
495if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498 else
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 fi
501fi
502for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
505 . "$ac_site_file"
506 fi
507done
508
509if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
511 . $cache_file
512else
513 echo "creating cache $cache_file"
514 > $cache_file
515fi
516
517ac_ext=c
518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519ac_cpp='$CPP $CPPFLAGS'
520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522cross_compiling=$ac_cv_prog_cc_cross
523
524ac_exeext=
525ac_objext=o
526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='
530' ac_t=' '
531 else
532 ac_n=-n ac_c= ac_t=
533 fi
534else
535 ac_n= ac_c='\c' ac_t=
536fi
537
538
539
540ac_aux_dir=
541for ac_dir in autoconf $srcdir/autoconf; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
550 fi
551done
552if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
554fi
555ac_config_guess=$ac_aux_dir/config.guess
556ac_config_sub=$ac_aux_dir/config.sub
557ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558
559
75559040 560for ac_prog in mawk gawk nawk awk
795ca3e5
AK
561do
562# Extract the first word of "$ac_prog", so it can be a program name with args.
563set dummy $ac_prog; ac_word=$2
564echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5a52dca9 565echo "configure:566: checking for $ac_word" >&5
795ca3e5
AK
566if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
568else
569 if test -n "$AWK"; then
570 ac_cv_prog_AWK="$AWK" # Let the user override the test.
571else
572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
573 ac_dummy="$PATH"
574 for ac_dir in $ac_dummy; do
575 test -z "$ac_dir" && ac_dir=.
576 if test -f $ac_dir/$ac_word; then
577 ac_cv_prog_AWK="$ac_prog"
578 break
579 fi
580 done
581 IFS="$ac_save_ifs"
582fi
583fi
584AWK="$ac_cv_prog_AWK"
585if test -n "$AWK"; then
586 echo "$ac_t""$AWK" 1>&6
587else
588 echo "$ac_t""no" 1>&6
589fi
590
591test -n "$AWK" && break
592done
593
594# Extract the first word of "gcc", so it can be a program name with args.
595set dummy gcc; ac_word=$2
596echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5a52dca9 597echo "configure:598: checking for $ac_word" >&5
795ca3e5
AK
598if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
600else
601 if test -n "$CC"; then
602 ac_cv_prog_CC="$CC" # Let the user override the test.
603else
604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
605 ac_dummy="$PATH"
606 for ac_dir in $ac_dummy; do
607 test -z "$ac_dir" && ac_dir=.
608 if test -f $ac_dir/$ac_word; then
609 ac_cv_prog_CC="gcc"
610 break
611 fi
612 done
613 IFS="$ac_save_ifs"
614fi
615fi
616CC="$ac_cv_prog_CC"
617if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
619else
620 echo "$ac_t""no" 1>&6
621fi
622
623if test -z "$CC"; then
624 # Extract the first word of "cc", so it can be a program name with args.
625set dummy cc; ac_word=$2
626echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5a52dca9 627echo "configure:628: checking for $ac_word" >&5
795ca3e5
AK
628if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
629 echo $ac_n "(cached) $ac_c" 1>&6
630else
631 if test -n "$CC"; then
632 ac_cv_prog_CC="$CC" # Let the user override the test.
633else
634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
635 ac_prog_rejected=no
636 ac_dummy="$PATH"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
640 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
641 ac_prog_rejected=yes
642 continue
643 fi
644 ac_cv_prog_CC="cc"
645 break
646 fi
647 done
648 IFS="$ac_save_ifs"
649if test $ac_prog_rejected = yes; then
650 # We found a bogon in the path, so make sure we never use it.
651 set dummy $ac_cv_prog_CC
652 shift
653 if test $# -gt 0; then
654 # We chose a different compiler from the bogus one.
655 # However, it has the same basename, so the bogon will be chosen
656 # first if we set CC to just the basename; use the full file name.
657 shift
658 set dummy "$ac_dir/$ac_word" "$@"
659 shift
660 ac_cv_prog_CC="$@"
661 fi
662fi
663fi
664fi
665CC="$ac_cv_prog_CC"
666if test -n "$CC"; then
667 echo "$ac_t""$CC" 1>&6
668else
669 echo "$ac_t""no" 1>&6
670fi
671
672 if test -z "$CC"; then
673 case "`uname -s`" in
674 *win32* | *WIN32*)
675 # Extract the first word of "cl", so it can be a program name with args.
676set dummy cl; ac_word=$2
677echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5a52dca9 678echo "configure:679: checking for $ac_word" >&5
795ca3e5
AK
679if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
681else
682 if test -n "$CC"; then
683 ac_cv_prog_CC="$CC" # Let the user override the test.
684else
685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 ac_dummy="$PATH"
687 for ac_dir in $ac_dummy; do
688 test -z "$ac_dir" && ac_dir=.
689 if test -f $ac_dir/$ac_word; then
690 ac_cv_prog_CC="cl"
691 break
692 fi
693 done
694 IFS="$ac_save_ifs"
695fi
696fi
697CC="$ac_cv_prog_CC"
698if test -n "$CC"; then
699 echo "$ac_t""$CC" 1>&6
700else
701 echo "$ac_t""no" 1>&6
702fi
703 ;;
704 esac
705 fi
706 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
707fi
708
709echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5a52dca9 710echo "configure:711: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795ca3e5
AK
711
712ac_ext=c
713# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
714ac_cpp='$CPP $CPPFLAGS'
715ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
716ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
717cross_compiling=$ac_cv_prog_cc_cross
718
719cat > conftest.$ac_ext << EOF
720
5a52dca9 721#line 722 "configure"
795ca3e5
AK
722#include "confdefs.h"
723
724main(){return(0);}
725EOF
5a52dca9 726if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
727 ac_cv_prog_cc_works=yes
728 # If we can't run a trivial program, we are probably using a cross compiler.
729 if (./conftest; exit) 2>/dev/null; then
730 ac_cv_prog_cc_cross=no
731 else
732 ac_cv_prog_cc_cross=yes
733 fi
734else
735 echo "configure: failed program was:" >&5
736 cat conftest.$ac_ext >&5
737 ac_cv_prog_cc_works=no
738fi
739rm -fr conftest*
740ac_ext=c
741# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
742ac_cpp='$CPP $CPPFLAGS'
743ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
744ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
745cross_compiling=$ac_cv_prog_cc_cross
746
747echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
748if test $ac_cv_prog_cc_works = no; then
749 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
750fi
751echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5a52dca9 752echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795ca3e5
AK
753echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
754cross_compiling=$ac_cv_prog_cc_cross
755
756echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5a52dca9 757echo "configure:758: checking whether we are using GNU C" >&5
795ca3e5
AK
758if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
760else
761 cat > conftest.c <<EOF
762#ifdef __GNUC__
763 yes;
764#endif
765EOF
5a52dca9 766if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
795ca3e5
AK
767 ac_cv_prog_gcc=yes
768else
769 ac_cv_prog_gcc=no
770fi
771fi
772
773echo "$ac_t""$ac_cv_prog_gcc" 1>&6
774
775if test $ac_cv_prog_gcc = yes; then
776 GCC=yes
777else
778 GCC=
779fi
780
781ac_test_CFLAGS="${CFLAGS+set}"
782ac_save_CFLAGS="$CFLAGS"
783CFLAGS=
784echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5a52dca9 785echo "configure:786: checking whether ${CC-cc} accepts -g" >&5
795ca3e5
AK
786if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788else
789 echo 'void f(){}' > conftest.c
790if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
791 ac_cv_prog_cc_g=yes
792else
793 ac_cv_prog_cc_g=no
794fi
795rm -f conftest*
796
797fi
798
799echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
800if test "$ac_test_CFLAGS" = set; then
801 CFLAGS="$ac_save_CFLAGS"
802elif test $ac_cv_prog_cc_g = yes; then
803 if test "$GCC" = yes; then
804 CFLAGS="-g -O2"
805 else
806 CFLAGS="-g"
807 fi
808else
809 if test "$GCC" = yes; then
810 CFLAGS="-O2"
811 else
812 CFLAGS=
813 fi
814fi
815
816# Find a good install program. We prefer a C program (faster),
817# so one script is as good as another. But avoid the broken or
818# incompatible versions:
819# SysV /etc/install, /usr/sbin/install
820# SunOS /usr/etc/install
821# IRIX /sbin/install
822# AIX /bin/install
823# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
824# AFS /usr/afsws/bin/install, which mishandles nonexistent args
825# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
826# ./install, which can be erroneously created by make from ./install.sh.
827echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
5a52dca9 828echo "configure:829: checking for a BSD compatible install" >&5
795ca3e5
AK
829if test -z "$INSTALL"; then
830if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
832else
833 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
834 for ac_dir in $PATH; do
835 # Account for people who put trailing slashes in PATH elements.
836 case "$ac_dir/" in
837 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
838 *)
839 # OSF1 and SCO ODT 3.0 have their own names for install.
840 # Don't use installbsd from OSF since it installs stuff as root
841 # by default.
842 for ac_prog in ginstall scoinst install; do
843 if test -f $ac_dir/$ac_prog; then
844 if test $ac_prog = install &&
845 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
846 # AIX install. It has an incompatible calling convention.
847 :
848 else
849 ac_cv_path_install="$ac_dir/$ac_prog -c"
850 break 2
851 fi
852 fi
853 done
854 ;;
855 esac
856 done
857 IFS="$ac_save_IFS"
858
859fi
860 if test "${ac_cv_path_install+set}" = set; then
861 INSTALL="$ac_cv_path_install"
862 else
863 # As a last resort, use the slow shell script. We don't cache a
864 # path for INSTALL within a source directory, because that will
865 # break other packages using the cache if that directory is
866 # removed, or if the path is relative.
867 INSTALL="$ac_install_sh"
868 fi
869fi
870echo "$ac_t""$INSTALL" 1>&6
871
872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
873# It thinks the first close brace ends the variable substitution.
874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
875
876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
877
878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
879
880echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
5a52dca9 881echo "configure:882: checking whether ln -s works" >&5
795ca3e5
AK
882if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
884else
885 rm -f conftestdata
886if ln -s X conftestdata 2>/dev/null
887then
888 rm -f conftestdata
889 ac_cv_prog_LN_S="ln -s"
890else
891 ac_cv_prog_LN_S=ln
892fi
893fi
894LN_S="$ac_cv_prog_LN_S"
895if test "$ac_cv_prog_LN_S" = "ln -s"; then
896 echo "$ac_t""yes" 1>&6
897else
898 echo "$ac_t""no" 1>&6
899fi
900
901echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
5a52dca9 902echo "configure:903: checking whether ${MAKE-make} sets \${MAKE}" >&5
795ca3e5
AK
903set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
904if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
906else
907 cat > conftestmake <<\EOF
908all:
909 @echo 'ac_maketemp="${MAKE}"'
910EOF
911# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
912eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
913if test -n "$ac_maketemp"; then
914 eval ac_cv_prog_make_${ac_make}_set=yes
915else
916 eval ac_cv_prog_make_${ac_make}_set=no
917fi
918rm -f conftestmake
919fi
920if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
922 SET_MAKE=
923else
924 echo "$ac_t""no" 1>&6
925 SET_MAKE="MAKE=${MAKE-make}"
926fi
927
928# Extract the first word of "ranlib", so it can be a program name with args.
929set dummy ranlib; ac_word=$2
930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5a52dca9 931echo "configure:932: checking for $ac_word" >&5
795ca3e5
AK
932if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
934else
935 if test -n "$RANLIB"; then
936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
937else
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 ac_dummy="$PATH"
940 for ac_dir in $ac_dummy; do
941 test -z "$ac_dir" && ac_dir=.
942 if test -f $ac_dir/$ac_word; then
943 ac_cv_prog_RANLIB="ranlib"
944 break
945 fi
946 done
947 IFS="$ac_save_ifs"
948 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
949fi
950fi
951RANLIB="$ac_cv_prog_RANLIB"
952if test -n "$RANLIB"; then
953 echo "$ac_t""$RANLIB" 1>&6
954else
955 echo "$ac_t""no" 1>&6
956fi
957
958
959ac_header_dirent=no
960for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
961do
962ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
963echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5a52dca9 964echo "configure:965: checking for $ac_hdr that defines DIR" >&5
795ca3e5
AK
965if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
967else
968 cat > conftest.$ac_ext <<EOF
5a52dca9 969#line 970 "configure"
795ca3e5
AK
970#include "confdefs.h"
971#include <sys/types.h>
972#include <$ac_hdr>
973int main() {
974DIR *dirp = 0;
975; return 0; }
976EOF
5a52dca9 977if { (eval echo configure:978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
978 rm -rf conftest*
979 eval "ac_cv_header_dirent_$ac_safe=yes"
980else
981 echo "configure: failed program was:" >&5
982 cat conftest.$ac_ext >&5
983 rm -rf conftest*
984 eval "ac_cv_header_dirent_$ac_safe=no"
985fi
986rm -f conftest*
987fi
988if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
989 echo "$ac_t""yes" 1>&6
990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
991 cat >> confdefs.h <<EOF
992#define $ac_tr_hdr 1
993EOF
994 ac_header_dirent=$ac_hdr; break
995else
996 echo "$ac_t""no" 1>&6
997fi
998done
999# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1000if test $ac_header_dirent = dirent.h; then
1001echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5a52dca9 1002echo "configure:1003: checking for opendir in -ldir" >&5
795ca3e5
AK
1003ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1004if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006else
1007 ac_save_LIBS="$LIBS"
1008LIBS="-ldir $LIBS"
1009cat > conftest.$ac_ext <<EOF
5a52dca9 1010#line 1011 "configure"
795ca3e5
AK
1011#include "confdefs.h"
1012/* Override any gcc2 internal prototype to avoid an error. */
1013/* We use char because int might match the return type of a gcc2
1014 builtin and then its argument prototype would still apply. */
1015char opendir();
1016
1017int main() {
1018opendir()
1019; return 0; }
1020EOF
5a52dca9 1021if { (eval echo configure:1022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1022 rm -rf conftest*
1023 eval "ac_cv_lib_$ac_lib_var=yes"
1024else
1025 echo "configure: failed program was:" >&5
1026 cat conftest.$ac_ext >&5
1027 rm -rf conftest*
1028 eval "ac_cv_lib_$ac_lib_var=no"
1029fi
1030rm -f conftest*
1031LIBS="$ac_save_LIBS"
1032
1033fi
1034if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1035 echo "$ac_t""yes" 1>&6
1036 LIBS="$LIBS -ldir"
1037else
1038 echo "$ac_t""no" 1>&6
1039fi
1040
1041else
1042echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5a52dca9 1043echo "configure:1044: checking for opendir in -lx" >&5
795ca3e5
AK
1044ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1045if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1047else
1048 ac_save_LIBS="$LIBS"
1049LIBS="-lx $LIBS"
1050cat > conftest.$ac_ext <<EOF
5a52dca9 1051#line 1052 "configure"
795ca3e5
AK
1052#include "confdefs.h"
1053/* Override any gcc2 internal prototype to avoid an error. */
1054/* We use char because int might match the return type of a gcc2
1055 builtin and then its argument prototype would still apply. */
1056char opendir();
1057
1058int main() {
1059opendir()
1060; return 0; }
1061EOF
5a52dca9 1062if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1063 rm -rf conftest*
1064 eval "ac_cv_lib_$ac_lib_var=yes"
1065else
1066 echo "configure: failed program was:" >&5
1067 cat conftest.$ac_ext >&5
1068 rm -rf conftest*
1069 eval "ac_cv_lib_$ac_lib_var=no"
1070fi
1071rm -f conftest*
1072LIBS="$ac_save_LIBS"
1073
1074fi
1075if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1076 echo "$ac_t""yes" 1>&6
1077 LIBS="$LIBS -lx"
1078else
1079 echo "$ac_t""no" 1>&6
1080fi
1081
1082fi
1083
1084echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
5a52dca9 1085echo "configure:1086: checking how to run the C preprocessor" >&5
795ca3e5
AK
1086# On Suns, sometimes $CPP names a directory.
1087if test -n "$CPP" && test -d "$CPP"; then
1088 CPP=
1089fi
1090if test -z "$CPP"; then
1091if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1093else
1094 # This must be in double quotes, not single quotes, because CPP may get
1095 # substituted into the Makefile and "${CC-cc}" will confuse make.
1096 CPP="${CC-cc} -E"
1097 # On the NeXT, cc -E runs the code through the compiler's parser,
1098 # not just through cpp.
1099 cat > conftest.$ac_ext <<EOF
5a52dca9 1100#line 1101 "configure"
795ca3e5
AK
1101#include "confdefs.h"
1102#include <assert.h>
1103Syntax Error
1104EOF
1105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5a52dca9 1106{ (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1108if test -z "$ac_err"; then
1109 :
1110else
1111 echo "$ac_err" >&5
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 rm -rf conftest*
1115 CPP="${CC-cc} -E -traditional-cpp"
1116 cat > conftest.$ac_ext <<EOF
5a52dca9 1117#line 1118 "configure"
795ca3e5
AK
1118#include "confdefs.h"
1119#include <assert.h>
1120Syntax Error
1121EOF
1122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5a52dca9 1123{ (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1125if test -z "$ac_err"; then
1126 :
1127else
1128 echo "$ac_err" >&5
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1131 rm -rf conftest*
1132 CPP="${CC-cc} -nologo -E"
1133 cat > conftest.$ac_ext <<EOF
5a52dca9 1134#line 1135 "configure"
795ca3e5
AK
1135#include "confdefs.h"
1136#include <assert.h>
1137Syntax Error
1138EOF
1139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5a52dca9 1140{ (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1142if test -z "$ac_err"; then
1143 :
1144else
1145 echo "$ac_err" >&5
1146 echo "configure: failed program was:" >&5
1147 cat conftest.$ac_ext >&5
1148 rm -rf conftest*
1149 CPP=/lib/cpp
1150fi
1151rm -f conftest*
1152fi
1153rm -f conftest*
1154fi
1155rm -f conftest*
1156 ac_cv_prog_CPP="$CPP"
1157fi
1158 CPP="$ac_cv_prog_CPP"
1159else
1160 ac_cv_prog_CPP="$CPP"
1161fi
1162echo "$ac_t""$CPP" 1>&6
1163
1164echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5a52dca9 1165echo "configure:1166: checking for ANSI C header files" >&5
795ca3e5
AK
1166if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1168else
1169 cat > conftest.$ac_ext <<EOF
5a52dca9 1170#line 1171 "configure"
795ca3e5
AK
1171#include "confdefs.h"
1172#include <stdlib.h>
1173#include <stdarg.h>
1174#include <string.h>
1175#include <float.h>
1176EOF
1177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5a52dca9 1178{ (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1180if test -z "$ac_err"; then
1181 rm -rf conftest*
1182 ac_cv_header_stdc=yes
1183else
1184 echo "$ac_err" >&5
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1187 rm -rf conftest*
1188 ac_cv_header_stdc=no
1189fi
1190rm -f conftest*
1191
1192if test $ac_cv_header_stdc = yes; then
1193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1194cat > conftest.$ac_ext <<EOF
5a52dca9 1195#line 1196 "configure"
795ca3e5
AK
1196#include "confdefs.h"
1197#include <string.h>
1198EOF
1199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1200 egrep "memchr" >/dev/null 2>&1; then
1201 :
1202else
1203 rm -rf conftest*
1204 ac_cv_header_stdc=no
1205fi
1206rm -f conftest*
1207
1208fi
1209
1210if test $ac_cv_header_stdc = yes; then
1211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1212cat > conftest.$ac_ext <<EOF
5a52dca9 1213#line 1214 "configure"
795ca3e5
AK
1214#include "confdefs.h"
1215#include <stdlib.h>
1216EOF
1217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1218 egrep "free" >/dev/null 2>&1; then
1219 :
1220else
1221 rm -rf conftest*
1222 ac_cv_header_stdc=no
1223fi
1224rm -f conftest*
1225
1226fi
1227
1228if test $ac_cv_header_stdc = yes; then
1229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1230if test "$cross_compiling" = yes; then
1231 :
1232else
1233 cat > conftest.$ac_ext <<EOF
5a52dca9 1234#line 1235 "configure"
795ca3e5
AK
1235#include "confdefs.h"
1236#include <ctype.h>
1237#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1238#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1239#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1240int main () { int i; for (i = 0; i < 256; i++)
1241if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1242exit (0); }
1243
1244EOF
5a52dca9 1245if { (eval echo configure:1246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
795ca3e5
AK
1246then
1247 :
1248else
1249 echo "configure: failed program was:" >&5
1250 cat conftest.$ac_ext >&5
1251 rm -fr conftest*
1252 ac_cv_header_stdc=no
1253fi
1254rm -fr conftest*
1255fi
1256
1257fi
1258fi
1259
1260echo "$ac_t""$ac_cv_header_stdc" 1>&6
1261if test $ac_cv_header_stdc = yes; then
1262 cat >> confdefs.h <<\EOF
1263#define STDC_HEADERS 1
1264EOF
1265
1266fi
1267
1268for ac_hdr in fcntl.h malloc.h sys/ioctl.h unistd.h
1269do
1270ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1271echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5a52dca9 1272echo "configure:1273: checking for $ac_hdr" >&5
795ca3e5
AK
1273if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1275else
1276 cat > conftest.$ac_ext <<EOF
5a52dca9 1277#line 1278 "configure"
795ca3e5
AK
1278#include "confdefs.h"
1279#include <$ac_hdr>
1280EOF
1281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5a52dca9 1282{ (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795ca3e5
AK
1283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1284if test -z "$ac_err"; then
1285 rm -rf conftest*
1286 eval "ac_cv_header_$ac_safe=yes"
1287else
1288 echo "$ac_err" >&5
1289 echo "configure: failed program was:" >&5
1290 cat conftest.$ac_ext >&5
1291 rm -rf conftest*
1292 eval "ac_cv_header_$ac_safe=no"
1293fi
1294rm -f conftest*
1295fi
1296if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1297 echo "$ac_t""yes" 1>&6
1298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1299 cat >> confdefs.h <<EOF
1300#define $ac_tr_hdr 1
1301EOF
1302
1303else
1304 echo "$ac_t""no" 1>&6
1305fi
1306done
1307
1308
1309echo $ac_n "checking for working const""... $ac_c" 1>&6
5a52dca9 1310echo "configure:1311: checking for working const" >&5
795ca3e5
AK
1311if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1313else
1314 cat > conftest.$ac_ext <<EOF
5a52dca9 1315#line 1316 "configure"
795ca3e5
AK
1316#include "confdefs.h"
1317
1318int main() {
1319
1320/* Ultrix mips cc rejects this. */
4b403510 1321typedef int charset[2]; const charset x = {0,0};
795ca3e5
AK
1322/* SunOS 4.1.1 cc rejects this. */
1323char const *const *ccp;
1324char **p;
1325/* NEC SVR4.0.2 mips cc rejects this. */
1326struct point {int x, y;};
1327static struct point const zero = {0,0};
1328/* AIX XL C 1.02.0.0 rejects this.
1329 It does not let you subtract one const X* pointer from another in an arm
1330 of an if-expression whose if-part is not a constant expression */
1331const char *g = "string";
1332ccp = &g + (g ? g-g : 0);
1333/* HPUX 7.0 cc rejects these. */
1334++ccp;
1335p = (char**) ccp;
1336ccp = (char const *const *) p;
1337{ /* SCO 3.2v4 cc rejects this. */
1338 char *t;
1339 char const *s = 0 ? (char *) 0 : (char const *) 0;
1340
1341 *t++ = 0;
1342}
1343{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1344 int x[] = {25, 17};
1345 const int *foo = &x[0];
1346 ++foo;
1347}
1348{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1349 typedef const int *iptr;
1350 iptr p = 0;
1351 ++p;
1352}
1353{ /* AIX XL C 1.02.0.0 rejects this saying
1354 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1355 struct s { int j; const int *ap[3]; };
1356 struct s *b; b->j = 5;
1357}
1358{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1359 const int foo = 10;
1360}
1361
1362; return 0; }
1363EOF
5a52dca9 1364if { (eval echo configure:1365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1365 rm -rf conftest*
1366 ac_cv_c_const=yes
1367else
1368 echo "configure: failed program was:" >&5
1369 cat conftest.$ac_ext >&5
1370 rm -rf conftest*
1371 ac_cv_c_const=no
1372fi
1373rm -f conftest*
1374fi
1375
1376echo "$ac_t""$ac_cv_c_const" 1>&6
1377if test $ac_cv_c_const = no; then
1378 cat >> confdefs.h <<\EOF
1379#define const
1380EOF
1381
1382fi
1383
1384echo $ac_n "checking for inline""... $ac_c" 1>&6
5a52dca9 1385echo "configure:1386: checking for inline" >&5
795ca3e5
AK
1386if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388else
1389 ac_cv_c_inline=no
1390for ac_kw in inline __inline__ __inline; do
1391 cat > conftest.$ac_ext <<EOF
5a52dca9 1392#line 1393 "configure"
795ca3e5
AK
1393#include "confdefs.h"
1394
1395int main() {
4b403510 1396} int $ac_kw foo() {
795ca3e5
AK
1397; return 0; }
1398EOF
5a52dca9 1399if { (eval echo configure:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1400 rm -rf conftest*
1401 ac_cv_c_inline=$ac_kw; break
1402else
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1405fi
1406rm -f conftest*
1407done
1408
1409fi
1410
1411echo "$ac_t""$ac_cv_c_inline" 1>&6
1412case "$ac_cv_c_inline" in
1413 inline | yes) ;;
1414 no) cat >> confdefs.h <<\EOF
1415#define inline
1416EOF
1417 ;;
1418 *) cat >> confdefs.h <<EOF
1419#define inline $ac_cv_c_inline
1420EOF
1421 ;;
1422esac
1423
1424echo $ac_n "checking for off_t""... $ac_c" 1>&6
5a52dca9 1425echo "configure:1426: checking for off_t" >&5
795ca3e5
AK
1426if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428else
1429 cat > conftest.$ac_ext <<EOF
5a52dca9 1430#line 1431 "configure"
795ca3e5
AK
1431#include "confdefs.h"
1432#include <sys/types.h>
1433#if STDC_HEADERS
1434#include <stdlib.h>
1435#include <stddef.h>
1436#endif
1437EOF
1438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1439 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1440 rm -rf conftest*
1441 ac_cv_type_off_t=yes
1442else
1443 rm -rf conftest*
1444 ac_cv_type_off_t=no
1445fi
1446rm -f conftest*
1447
1448fi
1449echo "$ac_t""$ac_cv_type_off_t" 1>&6
1450if test $ac_cv_type_off_t = no; then
1451 cat >> confdefs.h <<\EOF
1452#define off_t long
1453EOF
1454
1455fi
1456
1457echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5a52dca9 1458echo "configure:1459: checking for pid_t" >&5
795ca3e5
AK
1459if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461else
1462 cat > conftest.$ac_ext <<EOF
5a52dca9 1463#line 1464 "configure"
795ca3e5
AK
1464#include "confdefs.h"
1465#include <sys/types.h>
1466#if STDC_HEADERS
1467#include <stdlib.h>
1468#include <stddef.h>
1469#endif
1470EOF
1471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1472 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1473 rm -rf conftest*
1474 ac_cv_type_pid_t=yes
1475else
1476 rm -rf conftest*
1477 ac_cv_type_pid_t=no
1478fi
1479rm -f conftest*
1480
1481fi
1482echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1483if test $ac_cv_type_pid_t = no; then
1484 cat >> confdefs.h <<\EOF
1485#define pid_t int
1486EOF
1487
1488fi
1489
1490echo $ac_n "checking for size_t""... $ac_c" 1>&6
5a52dca9 1491echo "configure:1492: checking for size_t" >&5
795ca3e5
AK
1492if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1494else
1495 cat > conftest.$ac_ext <<EOF
5a52dca9 1496#line 1497 "configure"
795ca3e5
AK
1497#include "confdefs.h"
1498#include <sys/types.h>
1499#if STDC_HEADERS
1500#include <stdlib.h>
1501#include <stddef.h>
1502#endif
1503EOF
1504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1505 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1506 rm -rf conftest*
1507 ac_cv_type_size_t=yes
1508else
1509 rm -rf conftest*
1510 ac_cv_type_size_t=no
1511fi
1512rm -f conftest*
1513
1514fi
1515echo "$ac_t""$ac_cv_type_size_t" 1>&6
1516if test $ac_cv_type_size_t = no; then
1517 cat >> confdefs.h <<\EOF
1518#define size_t unsigned
1519EOF
1520
1521fi
1522
1523echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
5a52dca9 1524echo "configure:1525: checking for st_rdev in struct stat" >&5
795ca3e5
AK
1525if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527else
1528 cat > conftest.$ac_ext <<EOF
5a52dca9 1529#line 1530 "configure"
795ca3e5
AK
1530#include "confdefs.h"
1531#include <sys/types.h>
1532#include <sys/stat.h>
1533int main() {
1534struct stat s; s.st_rdev;
1535; return 0; }
1536EOF
5a52dca9 1537if { (eval echo configure:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1538 rm -rf conftest*
1539 ac_cv_struct_st_rdev=yes
1540else
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1543 rm -rf conftest*
1544 ac_cv_struct_st_rdev=no
1545fi
1546rm -f conftest*
1547fi
1548
1549echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1550if test $ac_cv_struct_st_rdev = yes; then
1551 cat >> confdefs.h <<\EOF
1552#define HAVE_ST_RDEV 1
1553EOF
1554
1555fi
1556
1557echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5a52dca9 1558echo "configure:1559: checking whether time.h and sys/time.h may both be included" >&5
795ca3e5
AK
1559if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1561else
1562 cat > conftest.$ac_ext <<EOF
5a52dca9 1563#line 1564 "configure"
795ca3e5
AK
1564#include "confdefs.h"
1565#include <sys/types.h>
1566#include <sys/time.h>
1567#include <time.h>
1568int main() {
1569struct tm *tp;
1570; return 0; }
1571EOF
5a52dca9 1572if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1573 rm -rf conftest*
1574 ac_cv_header_time=yes
1575else
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1578 rm -rf conftest*
1579 ac_cv_header_time=no
1580fi
1581rm -f conftest*
1582fi
1583
1584echo "$ac_t""$ac_cv_header_time" 1>&6
1585if test $ac_cv_header_time = yes; then
1586 cat >> confdefs.h <<\EOF
1587#define TIME_WITH_SYS_TIME 1
1588EOF
1589
1590fi
1591
1592
1593
1594
1595# Check whether --with-user or --without-user was given.
1596if test "${with_user+set}" = set; then
1597 withval="$with_user"
1598 OWNER="$withval"
1599else
1600 OWNER="root"
1601fi
1602
1603
1604# Check whether --with-group or --without-group was given.
1605if test "${with_group+set}" = set; then
1606 withval="$with_group"
1607 GROUP="$withval"
1608else
1609 GROUP="root"
1610fi
1611
1612
5a52dca9
AK
1613# Check whether --with-lvm1 or --without-lvm1 was given.
1614if test "${with_lvm1+set}" = set; then
1615 withval="$with_lvm1"
1616 LVM1="$withval"
1617else
1618 LVM1="internal"
1619fi
1620
1621
1622if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
1623 then { echo "configure: error: --with-lvm1 parameter invalid
1624" 1>&2; exit 1; }
1625 exit
1626fi;
1627
795ca3e5
AK
1628# Check whether --enable-jobs or --disable-jobs was given.
1629if test "${enable_jobs+set}" = set; then
1630 enableval="$enable_jobs"
1631 JOBS=-j$enableval
1632else
1633 JOBS=
1634fi
1635
1636
1637# Check whether --enable-static_link or --disable-static_link was given.
1638if test "${enable_static_link+set}" = set; then
1639 enableval="$enable_static_link"
1640 STATIC_LINK=$enableval
1641else
1642 STATIC_LINK=no
1643fi
1644
1645
1646# Check whether --enable-readline or --disable-readline was given.
1647if test "${enable_readline+set}" = set; then
1648 enableval="$enable_readline"
1649 \
1650READLINE=$enableval
1651else
5a52dca9 1652 READLINE=no
795ca3e5
AK
1653fi
1654
1655
1656if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
1657 then exec_prefix="";
1658fi;
1659
1660if test $ac_cv_prog_gcc = yes; then
1661 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
5a52dca9 1662echo "configure:1663: checking whether ${CC-cc} needs -traditional" >&5
795ca3e5
AK
1663if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1665else
1666 ac_pattern="Autoconf.*'x'"
1667 cat > conftest.$ac_ext <<EOF
5a52dca9 1668#line 1669 "configure"
795ca3e5
AK
1669#include "confdefs.h"
1670#include <sgtty.h>
1671Autoconf TIOCGETP
1672EOF
1673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1674 egrep "$ac_pattern" >/dev/null 2>&1; then
1675 rm -rf conftest*
1676 ac_cv_prog_gcc_traditional=yes
1677else
1678 rm -rf conftest*
1679 ac_cv_prog_gcc_traditional=no
1680fi
1681rm -f conftest*
1682
1683
1684 if test $ac_cv_prog_gcc_traditional = no; then
1685 cat > conftest.$ac_ext <<EOF
5a52dca9 1686#line 1687 "configure"
795ca3e5
AK
1687#include "confdefs.h"
1688#include <termio.h>
1689Autoconf TCGETA
1690EOF
1691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1692 egrep "$ac_pattern" >/dev/null 2>&1; then
1693 rm -rf conftest*
1694 ac_cv_prog_gcc_traditional=yes
1695fi
1696rm -f conftest*
1697
1698 fi
1699fi
1700
1701echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1702 if test $ac_cv_prog_gcc_traditional = yes; then
1703 CC="$CC -traditional"
1704 fi
1705fi
1706
1707echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
5a52dca9 1708echo "configure:1709: checking return type of signal handlers" >&5
795ca3e5
AK
1709if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1711else
1712 cat > conftest.$ac_ext <<EOF
5a52dca9 1713#line 1714 "configure"
795ca3e5
AK
1714#include "confdefs.h"
1715#include <sys/types.h>
1716#include <signal.h>
1717#ifdef signal
1718#undef signal
1719#endif
1720#ifdef __cplusplus
1721extern "C" void (*signal (int, void (*)(int)))(int);
1722#else
1723void (*signal ()) ();
1724#endif
1725
1726int main() {
1727int i;
1728; return 0; }
1729EOF
5a52dca9 1730if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
795ca3e5
AK
1731 rm -rf conftest*
1732 ac_cv_type_signal=void
1733else
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 rm -rf conftest*
1737 ac_cv_type_signal=int
1738fi
1739rm -f conftest*
1740fi
1741
1742echo "$ac_t""$ac_cv_type_signal" 1>&6
1743cat >> confdefs.h <<EOF
1744#define RETSIGTYPE $ac_cv_type_signal
1745EOF
1746
1747
1748echo $ac_n "checking for vprintf""... $ac_c" 1>&6
5a52dca9 1749echo "configure:1750: checking for vprintf" >&5
795ca3e5
AK
1750if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752else
1753 cat > conftest.$ac_ext <<EOF
5a52dca9 1754#line 1755 "configure"
795ca3e5
AK
1755#include "confdefs.h"
1756/* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char vprintf(); below. */
1758#include <assert.h>
1759/* Override any gcc2 internal prototype to avoid an error. */
1760/* We use char because int might match the return type of a gcc2
1761 builtin and then its argument prototype would still apply. */
1762char vprintf();
1763
1764int main() {
1765
1766/* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769#if defined (__stub_vprintf) || defined (__stub___vprintf)
1770choke me
1771#else
1772vprintf();
1773#endif
1774
1775; return 0; }
1776EOF
5a52dca9 1777if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1778 rm -rf conftest*
1779 eval "ac_cv_func_vprintf=yes"
1780else
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1783 rm -rf conftest*
1784 eval "ac_cv_func_vprintf=no"
1785fi
1786rm -f conftest*
1787fi
1788
1789if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 cat >> confdefs.h <<\EOF
1792#define HAVE_VPRINTF 1
1793EOF
1794
1795else
1796 echo "$ac_t""no" 1>&6
1797fi
1798
1799if test "$ac_cv_func_vprintf" != yes; then
1800echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
5a52dca9 1801echo "configure:1802: checking for _doprnt" >&5
795ca3e5
AK
1802if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804else
1805 cat > conftest.$ac_ext <<EOF
5a52dca9 1806#line 1807 "configure"
795ca3e5
AK
1807#include "confdefs.h"
1808/* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char _doprnt(); below. */
1810#include <assert.h>
1811/* Override any gcc2 internal prototype to avoid an error. */
1812/* We use char because int might match the return type of a gcc2
1813 builtin and then its argument prototype would still apply. */
1814char _doprnt();
1815
1816int main() {
1817
1818/* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821#if defined (__stub__doprnt) || defined (__stub____doprnt)
1822choke me
1823#else
1824_doprnt();
1825#endif
1826
1827; return 0; }
1828EOF
5a52dca9 1829if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1830 rm -rf conftest*
1831 eval "ac_cv_func__doprnt=yes"
1832else
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 rm -rf conftest*
1836 eval "ac_cv_func__doprnt=no"
1837fi
1838rm -f conftest*
1839fi
1840
1841if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1842 echo "$ac_t""yes" 1>&6
1843 cat >> confdefs.h <<\EOF
1844#define HAVE_DOPRNT 1
1845EOF
1846
1847else
1848 echo "$ac_t""no" 1>&6
1849fi
1850
1851fi
1852
1853for ac_func in mkdir rmdir uname
1854do
1855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5a52dca9 1856echo "configure:1857: checking for $ac_func" >&5
795ca3e5
AK
1857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1859else
1860 cat > conftest.$ac_ext <<EOF
5a52dca9 1861#line 1862 "configure"
795ca3e5
AK
1862#include "confdefs.h"
1863/* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $ac_func(); below. */
1865#include <assert.h>
1866/* Override any gcc2 internal prototype to avoid an error. */
1867/* We use char because int might match the return type of a gcc2
1868 builtin and then its argument prototype would still apply. */
1869char $ac_func();
1870
1871int main() {
1872
1873/* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1877choke me
1878#else
1879$ac_func();
1880#endif
1881
1882; return 0; }
1883EOF
5a52dca9 1884if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1885 rm -rf conftest*
1886 eval "ac_cv_func_$ac_func=yes"
1887else
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1890 rm -rf conftest*
1891 eval "ac_cv_func_$ac_func=no"
1892fi
1893rm -f conftest*
1894fi
1895
1896if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1897 echo "$ac_t""yes" 1>&6
1898 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1899 cat >> confdefs.h <<EOF
1900#define $ac_tr_func 1
1901EOF
1902
1903else
1904 echo "$ac_t""no" 1>&6
1905fi
1906done
1907
1908
1909if test x$READLINE = xyes; then
1910
1911echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
5a52dca9 1912echo "configure:1913: checking for library containing tgetent" >&5
795ca3e5
AK
1913if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915else
1916 ac_func_search_save_LIBS="$LIBS"
1917ac_cv_search_tgetent="no"
1918cat > conftest.$ac_ext <<EOF
5a52dca9 1919#line 1920 "configure"
795ca3e5
AK
1920#include "confdefs.h"
1921/* Override any gcc2 internal prototype to avoid an error. */
1922/* We use char because int might match the return type of a gcc2
1923 builtin and then its argument prototype would still apply. */
1924char tgetent();
1925
1926int main() {
1927tgetent()
1928; return 0; }
1929EOF
5a52dca9 1930if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1931 rm -rf conftest*
1932 ac_cv_search_tgetent="none required"
1933else
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936fi
1937rm -f conftest*
1938test "$ac_cv_search_tgetent" = "no" && for i in ncurses curses termcap termlib; do
1939LIBS="-l$i $ac_func_search_save_LIBS"
1940cat > conftest.$ac_ext <<EOF
5a52dca9 1941#line 1942 "configure"
795ca3e5
AK
1942#include "confdefs.h"
1943/* Override any gcc2 internal prototype to avoid an error. */
1944/* We use char because int might match the return type of a gcc2
1945 builtin and then its argument prototype would still apply. */
1946char tgetent();
1947
1948int main() {
1949tgetent()
1950; return 0; }
1951EOF
5a52dca9 1952if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
1953 rm -rf conftest*
1954 ac_cv_search_tgetent="-l$i"
1955break
1956else
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959fi
1960rm -f conftest*
1961done
1962LIBS="$ac_func_search_save_LIBS"
1963fi
1964
1965echo "$ac_t""$ac_cv_search_tgetent" 1>&6
1966if test "$ac_cv_search_tgetent" != "no"; then
1967 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
1968
1969else :
1970 { echo "configure: error: termcap could not be found which is required for the
1971--enable-readline option (which is enabled by default). Either disable readline
1972support with --disable-readline or download and install termcap from:
1973 ftp.gnu.org/gnu/termcap
1974Note: if you are using precompiled packages you will also need the development
1975 package as well (which may be called termcap-devel or something similar).
1976Note: (n)curses also seems to work as a substitute for termcap. This was
1977 not found either - but you could try installing that as well.
1978" 1>&2; exit 1; }
1979 exit
1980
1981fi
1982fi
1983
1984if test x$READLINE = xyes; then
1985 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
5a52dca9 1986echo "configure:1987: checking for readline in -lreadline" >&5
795ca3e5
AK
1987ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1988if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990else
1991 ac_save_LIBS="$LIBS"
1992LIBS="-lreadline $LIBS"
1993cat > conftest.$ac_ext <<EOF
5a52dca9 1994#line 1995 "configure"
795ca3e5
AK
1995#include "confdefs.h"
1996/* Override any gcc2 internal prototype to avoid an error. */
1997/* We use char because int might match the return type of a gcc2
1998 builtin and then its argument prototype would still apply. */
1999char readline();
2000
2001int main() {
2002readline()
2003; return 0; }
2004EOF
5a52dca9 2005if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
795ca3e5
AK
2006 rm -rf conftest*
2007 eval "ac_cv_lib_$ac_lib_var=yes"
2008else
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 rm -rf conftest*
2012 eval "ac_cv_lib_$ac_lib_var=no"
2013fi
2014rm -f conftest*
2015LIBS="$ac_save_LIBS"
2016
2017fi
2018if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2022 cat >> confdefs.h <<EOF
2023#define $ac_tr_lib 1
2024EOF
2025
2026 LIBS="-lreadline $LIBS"
2027
2028else
2029 echo "$ac_t""no" 1>&6
2030{ echo "configure: error: GNU Readline could not be found which is required for the
2031--enable-readline option (which is enabled by default). Either disable readline
2032support with --disable-readline or download and install readline from:
2033 ftp.gnu.org/gnu/readline
2034Note: if you are using precompiled packages you will also need the development
2035package as well (which may be called readline-devel or something similar).
2036" 1>&2; exit 1; }
2037 exit
2038
2039fi
2040
83912faa 2041 echo $ac_n "checking for rl_completion_matches""... $ac_c" 1>&6
5a52dca9 2042echo "configure:2043: checking for rl_completion_matches" >&5
83912faa
AK
2043if eval "test \"`echo '$''{'ac_cv_func_rl_completion_matches'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045else
2046 cat > conftest.$ac_ext <<EOF
5a52dca9 2047#line 2048 "configure"
83912faa
AK
2048#include "confdefs.h"
2049/* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char rl_completion_matches(); below. */
2051#include <assert.h>
2052/* Override any gcc2 internal prototype to avoid an error. */
2053/* We use char because int might match the return type of a gcc2
2054 builtin and then its argument prototype would still apply. */
2055char rl_completion_matches();
2056
2057int main() {
2058
2059/* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
2063choke me
2064#else
2065rl_completion_matches();
2066#endif
2067
2068; return 0; }
2069EOF
5a52dca9 2070if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83912faa
AK
2071 rm -rf conftest*
2072 eval "ac_cv_func_rl_completion_matches=yes"
2073else
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 eval "ac_cv_func_rl_completion_matches=no"
2078fi
2079rm -f conftest*
795ca3e5
AK
2080fi
2081
83912faa
AK
2082if eval "test \"`echo '$ac_cv_func_'rl_completion_matches`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2084 HAVE_RL_COMPLETION_MATCHES=yes
2085else
2086 echo "$ac_t""no" 1>&6
2087HAVE_RL_COMPLETION_MATCHES=no
2088fi
2089
2090fi
2091
fae0c576
AK
2092if test "-f VERSION"; then
2093 LVM_VERSION="\"`cat VERSION`\""
2094else
2095 LVM_VERSION="Unknown"
2096fi
2097
2098
83912faa 2099
795ca3e5
AK
2100
2101
2102
2103
2104
2105
5a52dca9 2106
795ca3e5
AK
2107trap '' 1 2 15
2108cat > confcache <<\EOF
2109# This file is a shell script that caches the results of configure
2110# tests run on this system so they can be shared between configure
2111# scripts and configure runs. It is not useful on other systems.
2112# If it contains results you don't want to keep, you may remove or edit it.
2113#
2114# By default, configure uses ./config.cache as the cache file,
2115# creating it if it does not exist already. You can give configure
2116# the --cache-file=FILE option to use a different cache file; that is
2117# what configure does when it calls configure scripts in
2118# subdirectories, so they share the cache.
2119# Giving --cache-file=/dev/null disables caching, for debugging configure.
2120# config.status only pays attention to the cache file if you give it the
2121# --recheck option to rerun configure.
2122#
2123EOF
2124# The following way of writing the cache mishandles newlines in values,
2125# but we know of no workaround that is simple, portable, and efficient.
2126# So, don't put newlines in cache variables' values.
2127# Ultrix sh set writes to stderr and can't be redirected directly,
2128# and sets the high bit in the cache file unless we assign to the vars.
2129(set) 2>&1 |
2130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2131 *ac_space=\ *)
2132 # `set' does not quote correctly, so add quotes (double-quote substitution
2133 # turns \\\\ into \\, and sed turns \\ into \).
2134 sed -n \
2135 -e "s/'/'\\\\''/g" \
2136 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2137 ;;
2138 *)
2139 # `set' quotes correctly as required by POSIX, so do not add quotes.
2140 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2141 ;;
2142 esac >> confcache
2143if cmp -s $cache_file confcache; then
2144 :
2145else
2146 if test -w $cache_file; then
2147 echo "updating cache $cache_file"
2148 cat confcache > $cache_file
2149 else
2150 echo "not updating unwritable cache $cache_file"
2151 fi
2152fi
2153rm -f confcache
2154
2155trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2156
2157test "x$prefix" = xNONE && prefix=$ac_default_prefix
2158# Let make expand exec_prefix.
2159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2160
2161# Any assignment to VPATH causes Sun make to only execute
2162# the first set of double-colon rules, so remove it if not needed.
2163# If there is a colon in the path, we need to keep it.
2164if test "x$srcdir" = x.; then
2165 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2166fi
2167
2168trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2169
2170# Transform confdefs.h into DEFS.
2171# Protect against shell expansion while executing Makefile rules.
2172# Protect against Makefile macro expansion.
2173cat > conftest.defs <<\EOF
2174s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2175s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2176s%\[%\\&%g
2177s%\]%\\&%g
2178s%\$%$$%g
2179EOF
2180DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2181rm -f conftest.defs
2182
2183
2184# Without the "./", some shells look in PATH for config.status.
2185: ${CONFIG_STATUS=./config.status}
2186
2187echo creating $CONFIG_STATUS
2188rm -f $CONFIG_STATUS
2189cat > $CONFIG_STATUS <<EOF
2190#! /bin/sh
2191# Generated automatically by configure.
2192# Run this file to recreate the current configuration.
2193# This directory was configured as follows,
2194# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2195#
2196# $0 $ac_configure_args
2197#
2198# Compiler output produced by configure, useful for debugging
2199# configure, is in ./config.log if it exists.
2200
2201ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2202for ac_option
2203do
2204 case "\$ac_option" in
2205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2206 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2207 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2208 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2209 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2210 exit 0 ;;
2211 -help | --help | --hel | --he | --h)
2212 echo "\$ac_cs_usage"; exit 0 ;;
2213 *) echo "\$ac_cs_usage"; exit 1 ;;
2214 esac
2215done
2216
2217ac_given_srcdir=$srcdir
2218ac_given_INSTALL="$INSTALL"
2219
2220trap 'rm -fr `echo "\
2221Makefile \
2222make.tmpl \
fa42e649 2223include/Makefile \
795ca3e5 2224lib/Makefile \
5a52dca9 2225lib/format1/Makefile \
795ca3e5
AK
2226man/Makefile \
2227tools/Makefile \
fae0c576 2228tools/version.h \
e6efb2b0 2229test/mm/Makefile \
43b7b8cf 2230test/device/Makefile \
e0304b58 2231test/format1/Makefile \
d1b28647 2232test/regex/Makefile \
291ec3b6 2233test/filters/Makefile \
795ca3e5
AK
2234" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2235EOF
2236cat >> $CONFIG_STATUS <<EOF
2237
2238# Protect against being on the right side of a sed subst in config.status.
2239sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2240 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2241$ac_vpsub
2242$extrasub
2243s%@SHELL@%$SHELL%g
2244s%@CFLAGS@%$CFLAGS%g
2245s%@CPPFLAGS@%$CPPFLAGS%g
2246s%@CXXFLAGS@%$CXXFLAGS%g
2247s%@FFLAGS@%$FFLAGS%g
2248s%@DEFS@%$DEFS%g
2249s%@LDFLAGS@%$LDFLAGS%g
2250s%@LIBS@%$LIBS%g
2251s%@exec_prefix@%$exec_prefix%g
2252s%@prefix@%$prefix%g
2253s%@program_transform_name@%$program_transform_name%g
2254s%@bindir@%$bindir%g
2255s%@sbindir@%$sbindir%g
2256s%@libexecdir@%$libexecdir%g
2257s%@datadir@%$datadir%g
2258s%@sysconfdir@%$sysconfdir%g
2259s%@sharedstatedir@%$sharedstatedir%g
2260s%@localstatedir@%$localstatedir%g
2261s%@libdir@%$libdir%g
2262s%@includedir@%$includedir%g
2263s%@oldincludedir@%$oldincludedir%g
2264s%@infodir@%$infodir%g
2265s%@mandir@%$mandir%g
2266s%@AWK@%$AWK%g
2267s%@CC@%$CC%g
2268s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2269s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2270s%@INSTALL_DATA@%$INSTALL_DATA%g
2271s%@LN_S@%$LN_S%g
2272s%@SET_MAKE@%$SET_MAKE%g
2273s%@RANLIB@%$RANLIB%g
2274s%@CPP@%$CPP%g
2275s%@JOBS@%$JOBS%g
2276s%@STATIC_LINK@%$STATIC_LINK%g
2277s%@READLINE@%$READLINE%g
5a52dca9 2278s%@LVM1@%$LVM1%g
83912faa 2279s%@HAVE_RL_COMPLETION_MATCHES@%$HAVE_RL_COMPLETION_MATCHES%g
795ca3e5
AK
2280s%@OWNER@%$OWNER%g
2281s%@GROUP@%$GROUP%g
fae0c576 2282s%@LVM_VERSION@%$LVM_VERSION%g
795ca3e5
AK
2283
2284CEOF
2285EOF
2286
2287cat >> $CONFIG_STATUS <<\EOF
2288
2289# Split the substitutions into bite-sized pieces for seds with
2290# small command number limits, like on Digital OSF/1 and HP-UX.
2291ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2292ac_file=1 # Number of current file.
2293ac_beg=1 # First line for current file.
2294ac_end=$ac_max_sed_cmds # Line after last line for current file.
2295ac_more_lines=:
2296ac_sed_cmds=""
2297while $ac_more_lines; do
2298 if test $ac_beg -gt 1; then
2299 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2300 else
2301 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2302 fi
2303 if test ! -s conftest.s$ac_file; then
2304 ac_more_lines=false
2305 rm -f conftest.s$ac_file
2306 else
2307 if test -z "$ac_sed_cmds"; then
2308 ac_sed_cmds="sed -f conftest.s$ac_file"
2309 else
2310 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2311 fi
2312 ac_file=`expr $ac_file + 1`
2313 ac_beg=$ac_end
2314 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2315 fi
2316done
2317if test -z "$ac_sed_cmds"; then
2318 ac_sed_cmds=cat
2319fi
2320EOF
2321
2322cat >> $CONFIG_STATUS <<EOF
2323
2324CONFIG_FILES=\${CONFIG_FILES-"\
2325Makefile \
2326make.tmpl \
fa42e649 2327include/Makefile \
795ca3e5 2328lib/Makefile \
5a52dca9 2329lib/format1/Makefile \
795ca3e5
AK
2330man/Makefile \
2331tools/Makefile \
fae0c576 2332tools/version.h \
e6efb2b0 2333test/mm/Makefile \
43b7b8cf 2334test/device/Makefile \
e0304b58 2335test/format1/Makefile \
d1b28647 2336test/regex/Makefile \
291ec3b6 2337test/filters/Makefile \
795ca3e5
AK
2338"}
2339EOF
2340cat >> $CONFIG_STATUS <<\EOF
2341for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2343 case "$ac_file" in
2344 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2345 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2346 *) ac_file_in="${ac_file}.in" ;;
2347 esac
2348
2349 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2350
2351 # Remove last slash and all that follows it. Not all systems have dirname.
2352 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2353 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2354 # The file is in a subdirectory.
2355 test ! -d "$ac_dir" && mkdir "$ac_dir"
2356 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2357 # A "../" for each directory in $ac_dir_suffix.
2358 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2359 else
2360 ac_dir_suffix= ac_dots=
2361 fi
2362
2363 case "$ac_given_srcdir" in
2364 .) srcdir=.
2365 if test -z "$ac_dots"; then top_srcdir=.
2366 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2367 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2368 *) # Relative path.
2369 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2370 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2371 esac
2372
2373 case "$ac_given_INSTALL" in
2374 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2375 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2376 esac
2377
2378 echo creating "$ac_file"
2379 rm -f "$ac_file"
2380 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2381 case "$ac_file" in
2382 *Makefile*) ac_comsub="1i\\
2383# $configure_input" ;;
2384 *) ac_comsub= ;;
2385 esac
2386
2387 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2388 sed -e "$ac_comsub
2389s%@configure_input@%$configure_input%g
2390s%@srcdir@%$srcdir%g
2391s%@top_srcdir@%$top_srcdir%g
2392s%@INSTALL@%$INSTALL%g
2393" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2394fi; done
2395rm -f conftest.s*
2396
2397EOF
2398cat >> $CONFIG_STATUS <<EOF
2399
2400EOF
2401cat >> $CONFIG_STATUS <<\EOF
2402
2403exit 0
2404EOF
2405chmod +x $CONFIG_STATUS
2406rm -fr confdefs* $ac_clean_files
2407test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2408
This page took 0.250078 seconds and 5 git commands to generate.