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