]> sourceware.org Git - lvm2.git/blame - configure
Fix ftp urls
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
80992638 2
795ca3e5 3# Guess values for system-dependent variables and create Makefiles.
80992638
AK
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
795ca3e5
AK
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
80992638
AK
10# Defaults:
11ac_help=
795ca3e5 12ac_default_prefix=/usr/local
80992638 13# Any additions from configure.in:
795ca3e5 14ac_default_prefix=/usr
80992638
AK
15ac_help="$ac_help
16 --enable-jobs=NUM Number of jobs to run simultaneously"
17ac_help="$ac_help
18 --with-user=USER Set the owner of installed files "
19ac_help="$ac_help
20 --with-group=GROUP Set the group owner of installed files "
21ac_help="$ac_help
22 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries if
23 device-mapper is missing from the kernel"
24ac_help="$ac_help
25 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
26 [TYPE=internal] "
27ac_help="$ac_help
28 --with-pool=TYPE GFS pool read-only support: internal/shared/none
29 [TYPE=internal] "
30ac_help="$ac_help
31 --with-cluster=TYPE Cluster LVM locking support: internal/shared/none
32 [TYPE=internal] "
33ac_help="$ac_help
34 --with-snapshots=TYPE Snapshot support: internal/shared/none
35 [TYPE=internal] "
36ac_help="$ac_help
37 --with-mirrors=TYPE Mirror support: internal/shared/none
38 [TYPE=internal] "
39ac_help="$ac_help
40 --enable-static_link Use this to link the tools to their libraries
41 statically. Default is dynamic linking"
42ac_help="$ac_help
43 --enable-readline Enable readline support"
44ac_help="$ac_help
45 --disable-selinux Disable selinux support"
46ac_help="$ac_help
47 --with-clvmd Build cluster LVM Daemon"
48ac_help="$ac_help
49 --enable-debug Enable debugging"
8ce0cbda
AK
50ac_help="$ac_help
51 --with-optimisation=OPT C optimisation flag [OPT=-O2] "
80992638
AK
52ac_help="$ac_help
53 --disable-devmapper Disable device-mapper interaction"
54ac_help="$ac_help
55 --disable-o_direct Disable O_DIRECT"
56ac_help="$ac_help
57 --enable-cmdlib Build shared command library"
58ac_help="$ac_help
59 --enable-fsadm Enable fsadm"
60ac_help="$ac_help
61 --enable-nls Enable Native Language Support"
62ac_help="$ac_help
63 --with-localedir=DIR Translation files in DIR [PREFIX/share/locale]"
64ac_help="$ac_help
65 --with-confdir=DIR Configuration files in DIR [/etc]"
66ac_help="$ac_help
67 --with-staticdir=DIR Static binary in DIR [EXEC_PREFIX/sbin]"
795ca3e5
AK
68
69# Initialize some variables set by options.
70# The variables have the same names as the options, with
71# dashes changed to underlines.
80992638
AK
72build=NONE
73cache_file=./config.cache
795ca3e5 74exec_prefix=NONE
80992638 75host=NONE
795ca3e5 76no_create=
80992638 77nonopt=NONE
795ca3e5
AK
78no_recursion=
79prefix=NONE
80program_prefix=NONE
81program_suffix=NONE
82program_transform_name=s,x,x,
83silent=
84site=
85srcdir=
80992638 86target=NONE
795ca3e5
AK
87verbose=
88x_includes=NONE
89x_libraries=NONE
90bindir='${exec_prefix}/bin'
91sbindir='${exec_prefix}/sbin'
92libexecdir='${exec_prefix}/libexec'
93datadir='${prefix}/share'
94sysconfdir='${prefix}/etc'
95sharedstatedir='${prefix}/com'
96localstatedir='${prefix}/var'
97libdir='${exec_prefix}/lib'
98includedir='${prefix}/include'
99oldincludedir='/usr/include'
100infodir='${prefix}/info'
101mandir='${prefix}/man'
102
80992638
AK
103# Initialize some other variables.
104subdirs=
105MFLAGS= MAKEFLAGS=
106SHELL=${CONFIG_SHELL-/bin/sh}
107# Maximum number of lines to put in a shell here document.
108ac_max_here_lines=12
109
795ca3e5
AK
110ac_prev=
111for ac_option
112do
80992638 113
795ca3e5
AK
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
119 fi
120
80992638
AK
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
795ca3e5
AK
125
126 # Accept the important Cygnus configure options, so we can diagnose typos.
127
80992638 128 case "$ac_option" in
795ca3e5
AK
129
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80992638 133 bindir="$ac_optarg" ;;
795ca3e5
AK
134
135 -build | --build | --buil | --bui | --bu)
80992638 136 ac_prev=build ;;
795ca3e5 137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
80992638 138 build="$ac_optarg" ;;
795ca3e5
AK
139
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
80992638 145 cache_file="$ac_optarg" ;;
795ca3e5
AK
146
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
80992638 151 datadir="$ac_optarg" ;;
795ca3e5
AK
152
153 -disable-* | --disable-*)
80992638 154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
795ca3e5 155 # Reject names that are not valid shell variable names.
80992638
AK
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 fi
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
795ca3e5
AK
161
162 -enable-* | --enable-*)
80992638 163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
795ca3e5 164 # Reject names that are not valid shell variable names.
80992638
AK
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 fi
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
795ca3e5
AK
171 *) ac_optarg=yes ;;
172 esac
80992638 173 eval "enable_${ac_feature}='$ac_optarg'" ;;
795ca3e5
AK
174
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
80992638 182 exec_prefix="$ac_optarg" ;;
795ca3e5
AK
183
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
187
80992638
AK
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192Usage: configure [options] [host]
193Options: [defaults in brackets after descriptions]
194Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
224EOF
225 cat << EOF
226Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
237EOF
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
240 fi
241 exit 0 ;;
795ca3e5
AK
242
243 -host | --host | --hos | --ho)
80992638 244 ac_prev=host ;;
795ca3e5 245 -host=* | --host=* | --hos=* | --ho=*)
80992638 246 host="$ac_optarg" ;;
795ca3e5
AK
247
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
80992638 253 includedir="$ac_optarg" ;;
795ca3e5
AK
254
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
80992638 258 infodir="$ac_optarg" ;;
795ca3e5
AK
259
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
80992638 263 libdir="$ac_optarg" ;;
795ca3e5
AK
264
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
80992638 270 libexecdir="$ac_optarg" ;;
795ca3e5
AK
271
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
80992638 279 localstatedir="$ac_optarg" ;;
795ca3e5
AK
280
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
80992638 284 mandir="$ac_optarg" ;;
795ca3e5
AK
285
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
289
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
80992638 291 | --no-cr | --no-c)
795ca3e5
AK
292 no_create=yes ;;
293
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
297
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
80992638 305 oldincludedir="$ac_optarg" ;;
795ca3e5
AK
306
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
80992638 310 prefix="$ac_optarg" ;;
795ca3e5
AK
311
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
80992638 317 program_prefix="$ac_optarg" ;;
795ca3e5
AK
318
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
80992638 324 program_suffix="$ac_optarg" ;;
795ca3e5
AK
325
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
80992638 341 program_transform_name="$ac_optarg" ;;
795ca3e5
AK
342
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
346
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
80992638 351 sbindir="$ac_optarg" ;;
795ca3e5
AK
352
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
80992638 362 sharedstatedir="$ac_optarg" ;;
795ca3e5
AK
363
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
80992638 367 site="$ac_optarg" ;;
795ca3e5
AK
368
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
80992638 372 srcdir="$ac_optarg" ;;
795ca3e5
AK
373
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
80992638 379 sysconfdir="$ac_optarg" ;;
795ca3e5
AK
380
381 -target | --target | --targe | --targ | --tar | --ta | --t)
80992638 382 ac_prev=target ;;
795ca3e5 383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
80992638 384 target="$ac_optarg" ;;
795ca3e5
AK
385
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
388
80992638
AK
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
391 exit 0 ;;
795ca3e5
AK
392
393 -with-* | --with-*)
80992638 394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
795ca3e5 395 # Reject names that are not valid shell variable names.
80992638
AK
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 fi
795ca3e5 399 ac_package=`echo $ac_package| sed 's/-/_/g'`
80992638
AK
400 case "$ac_option" in
401 *=*) ;;
795ca3e5
AK
402 *) ac_optarg=yes ;;
403 esac
80992638 404 eval "with_${ac_package}='$ac_optarg'" ;;
795ca3e5
AK
405
406 -without-* | --without-*)
80992638 407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
795ca3e5 408 # Reject names that are not valid shell variable names.
80992638
AK
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 fi
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
795ca3e5
AK
414
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
418
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
80992638 424 x_includes="$ac_optarg" ;;
795ca3e5
AK
425
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
80992638 431 x_libraries="$ac_optarg" ;;
795ca3e5 432
80992638 433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
795ca3e5
AK
434 ;;
435
436 *)
80992638
AK
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 fi
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 fi
443 nonopt="$ac_option"
795ca3e5
AK
444 ;;
445
446 esac
447done
448
449if test -n "$ac_prev"; then
80992638 450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
795ca3e5 451fi
795ca3e5 452
80992638
AK
453trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455# File descriptor usage:
456# 0 standard input
457# 1 file creation
458# 2 errors and warnings
459# 3 some systems may open it to /dev/tty
460# 4 used on the Kubota Titan
461# 6 checking for... messages and results
462# 5 compiler messages saved in config.log
463if test "$silent" = yes; then
464 exec 6>/dev/null
465else
466 exec 6>&1
467fi
468exec 5>./config.log
469
470echo "\
471This file contains any messages produced by compilers while
472running configure, to aid debugging if configure makes a mistake.
473" 1>&5
795ca3e5 474
80992638
AK
475# Strip out --no-create and --no-recursion so they do not pile up.
476# Also quote any args containing shell metacharacters.
477ac_configure_args=
478for ac_arg
795ca3e5 479do
80992638
AK
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
795ca3e5
AK
488 esac
489done
490
80992638
AK
491# NLS nuisances.
492# Only set these to C if already set. These must not be set unconditionally
493# because not all systems understand e.g. LANG=C (notably SCO).
494# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495# Non-C LC_CTYPE values break the ctype check.
496if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
8106cdd5 500
80992638
AK
501# confdefs.h avoids OS command line length limits that DEFS can exceed.
502rm -rf conftest* confdefs.h
503# AIX cpp loses on an empty file, so make sure it contains at least a newline.
504echo > confdefs.h
795ca3e5 505
80992638
AK
506# A filename unique to this package, relative to the directory that
507# configure is in, which we can look for to find out if srcdir is correct.
508ac_unique_file=lib/device/dev-cache.h
795ca3e5
AK
509
510# Find the source files, if location was not specified.
511if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
80992638
AK
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
795ca3e5
AK
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
520 fi
521else
522 ac_srcdir_defaulted=no
523fi
524if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
80992638 526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
795ca3e5 527 else
80992638 528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
795ca3e5
AK
529 fi
530fi
80992638 531srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
8106cdd5 532
795ca3e5
AK
533# Prefer explicitly selected file to automatically selected ones.
534if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 fi
540fi
541for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
80992638 543 echo "loading site script $ac_site_file"
795ca3e5
AK
544 . "$ac_site_file"
545 fi
546done
547
548if test -r "$cache_file"; then
80992638
AK
549 echo "loading cache $cache_file"
550 . $cache_file
795ca3e5 551else
80992638
AK
552 echo "creating cache $cache_file"
553 > $cache_file
795ca3e5
AK
554fi
555
556ac_ext=c
80992638 557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
795ca3e5 558ac_cpp='$CPP $CPPFLAGS'
80992638
AK
559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561cross_compiling=$ac_cv_prog_cc_cross
562
563ac_exeext=
564ac_objext=o
565if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
572 fi
573else
574 ac_n= ac_c='\c' ac_t=
575fi
795ca3e5
AK
576
577
578
80992638 579################################################################################
795ca3e5
AK
580ac_aux_dir=
581for ac_dir in autoconf $srcdir/autoconf; do
582 if test -f $ac_dir/install-sh; then
583 ac_aux_dir=$ac_dir
584 ac_install_sh="$ac_aux_dir/install-sh -c"
585 break
586 elif test -f $ac_dir/install.sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install.sh -c"
589 break
590 fi
591done
592if test -z "$ac_aux_dir"; then
80992638 593 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
795ca3e5 594fi
80992638
AK
595ac_config_guess=$ac_aux_dir/config.guess
596ac_config_sub=$ac_aux_dir/config.sub
597ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
598
8106cdd5 599
8ce0cbda
AK
600################################################################################
601
602# Do some error checking and defaulting for the host and target type.
603# The inputs are:
604# configure --host=HOST --target=TARGET --build=BUILD NONOPT
605#
606# The rules are:
607# 1. You are not allowed to specify --host, --target, and nonopt at the
608# same time.
609# 2. Host defaults to nonopt.
610# 3. If nonopt is not specified, then host defaults to the current host,
611# as determined by config.guess.
612# 4. Target and build default to nonopt.
613# 5. If nonopt is not specified, then target and build default to host.
614
615# The aliases save the names the user supplied, while $host etc.
616# will get canonicalized.
617case $host---$target---$nonopt in
618NONE---*---* | *---NONE---* | *---*---NONE) ;;
619*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
620esac
621
622
623# Make sure we can run config.sub.
624if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
625else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
626fi
627
628echo $ac_n "checking host system type""... $ac_c" 1>&6
629echo "configure:630: checking host system type" >&5
630
631host_alias=$host
632case "$host_alias" in
633NONE)
634 case $nonopt in
635 NONE)
636 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
638 fi ;;
639 *) host_alias=$nonopt ;;
640 esac ;;
641esac
642
643host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647echo "$ac_t""$host" 1>&6
648
649echo $ac_n "checking target system type""... $ac_c" 1>&6
650echo "configure:651: checking target system type" >&5
651
652target_alias=$target
653case "$target_alias" in
654NONE)
655 case $nonopt in
656 NONE) target_alias=$host_alias ;;
657 *) target_alias=$nonopt ;;
658 esac ;;
659esac
660
661target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
662target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
663target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
664target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
665echo "$ac_t""$target" 1>&6
666
667echo $ac_n "checking build system type""... $ac_c" 1>&6
668echo "configure:669: checking build system type" >&5
669
670build_alias=$build
671case "$build_alias" in
672NONE)
673 case $nonopt in
674 NONE) build_alias=$host_alias ;;
675 *) build_alias=$nonopt ;;
676 esac ;;
677esac
678
679build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
680build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683echo "$ac_t""$build" 1>&6
684
685test "$host_alias" != "$target_alias" &&
686 test "$program_prefix$program_suffix$program_transform_name" = \
687 NONENONEs,x,x, &&
688 program_prefix=${target_alias}-
689
690
691case "$host_os" in
692 linux*)
693 CFLAGS="$CFLAGS"
694 COPTIMISE_FLAG="-O2"
695 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
696 CLDWHOLEARCHIVE="-Wl,-whole-archive"
697 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
698 LDDEPS="$LDDEPS .export.sym"
699 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
700 SOFLAG="-shared"
701 DEVMAPPER=yes
702 ODIRECT=yes
703 SELINUX=yes
704 CLUSTER=internal
705 FSADM=no ;;
706 darwin*)
707 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
708 COPTIMISE_FLAG="-O2"
709 CLDFLAGS="$CLDFLAGS"
710 CLDWHOLEARCHIVE="-all_load"
711 CLDNOWHOLEARCHIVE=
712 LDDEPS="$LDDEPS"
713 LDFLAGS="$LDFLAGS"
714 SOFLAG="-dynamiclib"
715 DEVMAPPER=no
716 ODIRECT=no
717 SELINUX=no
718 CLUSTER=none
719 FSADM=no ;;
720esac
721
80992638
AK
722################################################################################
723for ac_prog in mawk gawk nawk awk
795ca3e5 724do
80992638 725# Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 726set dummy $ac_prog; ac_word=$2
80992638 727echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8ce0cbda 728echo "configure:729: checking for $ac_word" >&5
80992638
AK
729if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5
AK
731else
732 if test -n "$AWK"; then
733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
734else
80992638
AK
735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
736 ac_dummy="$PATH"
737 for ac_dir in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir=.
739 if test -f $ac_dir/$ac_word; then
740 ac_cv_prog_AWK="$ac_prog"
741 break
742 fi
743 done
744 IFS="$ac_save_ifs"
795ca3e5
AK
745fi
746fi
80992638 747AWK="$ac_cv_prog_AWK"
795ca3e5 748if test -n "$AWK"; then
80992638 749 echo "$ac_t""$AWK" 1>&6
795ca3e5 750else
80992638 751 echo "$ac_t""no" 1>&6
795ca3e5
AK
752fi
753
80992638 754test -n "$AWK" && break
8106cdd5
AK
755done
756
80992638 757# Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 758set dummy gcc; ac_word=$2
80992638 759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8ce0cbda 760echo "configure:761: checking for $ac_word" >&5
80992638
AK
761if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
8106cdd5
AK
763else
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
766else
80992638
AK
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
768 ac_dummy="$PATH"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
772 ac_cv_prog_CC="gcc"
773 break
774 fi
775 done
776 IFS="$ac_save_ifs"
8106cdd5
AK
777fi
778fi
80992638 779CC="$ac_cv_prog_CC"
8106cdd5 780if test -n "$CC"; then
80992638 781 echo "$ac_t""$CC" 1>&6
8106cdd5 782else
80992638 783 echo "$ac_t""no" 1>&6
8106cdd5
AK
784fi
785
795ca3e5
AK
786if test -z "$CC"; then
787 # Extract the first word of "cc", so it can be a program name with args.
788set dummy cc; ac_word=$2
80992638 789echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8ce0cbda 790echo "configure:791: checking for $ac_word" >&5
80992638
AK
791if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5
AK
793else
794 if test -n "$CC"; then
795 ac_cv_prog_CC="$CC" # Let the user override the test.
796else
80992638 797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
795ca3e5 798 ac_prog_rejected=no
80992638
AK
799 ac_dummy="$PATH"
800 for ac_dir in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir=.
802 if test -f $ac_dir/$ac_word; then
803 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
804 ac_prog_rejected=yes
805 continue
806 fi
807 ac_cv_prog_CC="cc"
808 break
809 fi
810 done
811 IFS="$ac_save_ifs"
795ca3e5
AK
812if test $ac_prog_rejected = yes; then
813 # We found a bogon in the path, so make sure we never use it.
814 set dummy $ac_cv_prog_CC
815 shift
80992638 816 if test $# -gt 0; then
795ca3e5
AK
817 # We chose a different compiler from the bogus one.
818 # However, it has the same basename, so the bogon will be chosen
819 # first if we set CC to just the basename; use the full file name.
820 shift
80992638
AK
821 set dummy "$ac_dir/$ac_word" "$@"
822 shift
823 ac_cv_prog_CC="$@"
795ca3e5
AK
824 fi
825fi
826fi
827fi
80992638 828CC="$ac_cv_prog_CC"
795ca3e5 829if test -n "$CC"; then
80992638 830 echo "$ac_t""$CC" 1>&6
795ca3e5 831else
80992638 832 echo "$ac_t""no" 1>&6
795ca3e5
AK
833fi
834
80992638
AK
835 if test -z "$CC"; then
836 case "`uname -s`" in
837 *win32* | *WIN32*)
838 # Extract the first word of "cl", so it can be a program name with args.
839set dummy cl; ac_word=$2
840echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8ce0cbda 841echo "configure:842: checking for $ac_word" >&5
80992638
AK
842if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5
AK
844else
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
847else
80992638
AK
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
849 ac_dummy="$PATH"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
853 ac_cv_prog_CC="cl"
854 break
855 fi
856 done
857 IFS="$ac_save_ifs"
795ca3e5
AK
858fi
859fi
80992638 860CC="$ac_cv_prog_CC"
795ca3e5 861if test -n "$CC"; then
80992638 862 echo "$ac_t""$CC" 1>&6
795ca3e5 863else
80992638 864 echo "$ac_t""no" 1>&6
795ca3e5 865fi
80992638
AK
866 ;;
867 esac
795ca3e5 868 fi
80992638 869 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
795ca3e5
AK
870fi
871
80992638 872echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8ce0cbda 873echo "configure:874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795ca3e5 874
80992638
AK
875ac_ext=c
876# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
877ac_cpp='$CPP $CPPFLAGS'
878ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
879ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
880cross_compiling=$ac_cv_prog_cc_cross
881
882cat > conftest.$ac_ext << EOF
883
8ce0cbda 884#line 885 "configure"
80992638
AK
885#include "confdefs.h"
886
887main(){return(0);}
888EOF
8ce0cbda 889if { (eval echo configure:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
890 ac_cv_prog_cc_works=yes
891 # If we can't run a trivial program, we are probably using a cross compiler.
892 if (./conftest; exit) 2>/dev/null; then
893 ac_cv_prog_cc_cross=no
795ca3e5 894 else
80992638 895 ac_cv_prog_cc_cross=yes
795ca3e5 896 fi
8106cdd5 897else
80992638
AK
898 echo "configure: failed program was:" >&5
899 cat conftest.$ac_ext >&5
900 ac_cv_prog_cc_works=no
901fi
902rm -fr conftest*
903ac_ext=c
904# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
905ac_cpp='$CPP $CPPFLAGS'
906ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
907ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
908cross_compiling=$ac_cv_prog_cc_cross
909
910echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
911if test $ac_cv_prog_cc_works = no; then
912 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
913fi
914echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8ce0cbda 915echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
80992638
AK
916echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
917cross_compiling=$ac_cv_prog_cc_cross
918
919echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8ce0cbda 920echo "configure:921: checking whether we are using GNU C" >&5
80992638
AK
921if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
923else
924 cat > conftest.c <<EOF
925#ifdef __GNUC__
926 yes;
8106cdd5 927#endif
80992638 928EOF
8ce0cbda 929if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
80992638 930 ac_cv_prog_gcc=yes
795ca3e5 931else
80992638
AK
932 ac_cv_prog_gcc=no
933fi
795ca3e5
AK
934fi
935
80992638
AK
936echo "$ac_t""$ac_cv_prog_gcc" 1>&6
937
938if test $ac_cv_prog_gcc = yes; then
939 GCC=yes
940else
941 GCC=
8106cdd5 942fi
80992638
AK
943
944ac_test_CFLAGS="${CFLAGS+set}"
945ac_save_CFLAGS="$CFLAGS"
946CFLAGS=
947echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8ce0cbda 948echo "configure:949: checking whether ${CC-cc} accepts -g" >&5
80992638
AK
949if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 951else
80992638
AK
952 echo 'void f(){}' > conftest.c
953if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
795ca3e5
AK
954 ac_cv_prog_cc_g=yes
955else
80992638 956 ac_cv_prog_cc_g=no
795ca3e5 957fi
80992638
AK
958rm -f conftest*
959
8106cdd5 960fi
80992638
AK
961
962echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
795ca3e5 963if test "$ac_test_CFLAGS" = set; then
80992638 964 CFLAGS="$ac_save_CFLAGS"
795ca3e5
AK
965elif test $ac_cv_prog_cc_g = yes; then
966 if test "$GCC" = yes; then
967 CFLAGS="-g -O2"
968 else
969 CFLAGS="-g"
970 fi
971else
972 if test "$GCC" = yes; then
973 CFLAGS="-O2"
974 else
975 CFLAGS=
976 fi
977fi
978
979# Find a good install program. We prefer a C program (faster),
980# so one script is as good as another. But avoid the broken or
981# incompatible versions:
982# SysV /etc/install, /usr/sbin/install
983# SunOS /usr/etc/install
984# IRIX /sbin/install
985# AIX /bin/install
986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
987# AFS /usr/afsws/bin/install, which mishandles nonexistent args
988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
989# ./install, which can be erroneously created by make from ./install.sh.
80992638 990echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8ce0cbda 991echo "configure:992: checking for a BSD compatible install" >&5
795ca3e5 992if test -z "$INSTALL"; then
80992638
AK
993if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
995else
996 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
997 for ac_dir in $PATH; do
998 # Account for people who put trailing slashes in PATH elements.
999 case "$ac_dir/" in
1000 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1001 *)
1002 # OSF1 and SCO ODT 3.0 have their own names for install.
1003 # Don't use installbsd from OSF since it installs stuff as root
1004 # by default.
1005 for ac_prog in ginstall scoinst install; do
1006 if test -f $ac_dir/$ac_prog; then
1007 if test $ac_prog = install &&
1008 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1009 # AIX install. It has an incompatible calling convention.
1010 :
1011 else
1012 ac_cv_path_install="$ac_dir/$ac_prog -c"
1013 break 2
1014 fi
1015 fi
795ca3e5 1016 done
80992638
AK
1017 ;;
1018 esac
1019 done
1020 IFS="$ac_save_IFS"
795ca3e5
AK
1021
1022fi
1023 if test "${ac_cv_path_install+set}" = set; then
80992638 1024 INSTALL="$ac_cv_path_install"
795ca3e5
AK
1025 else
1026 # As a last resort, use the slow shell script. We don't cache a
1027 # path for INSTALL within a source directory, because that will
1028 # break other packages using the cache if that directory is
1029 # removed, or if the path is relative.
80992638 1030 INSTALL="$ac_install_sh"
795ca3e5
AK
1031 fi
1032fi
80992638 1033echo "$ac_t""$INSTALL" 1>&6
795ca3e5
AK
1034
1035# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1036# It thinks the first close brace ends the variable substitution.
1037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1038
80992638 1039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
795ca3e5
AK
1040
1041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1042
80992638 1043echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8ce0cbda 1044echo "configure:1045: checking whether ln -s works" >&5
80992638
AK
1045if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1047else
1048 rm -f conftestdata
1049if ln -s X conftestdata 2>/dev/null
1050then
1051 rm -f conftestdata
1052 ac_cv_prog_LN_S="ln -s"
795ca3e5 1053else
80992638
AK
1054 ac_cv_prog_LN_S=ln
1055fi
1056fi
1057LN_S="$ac_cv_prog_LN_S"
1058if test "$ac_cv_prog_LN_S" = "ln -s"; then
1059 echo "$ac_t""yes" 1>&6
1060else
1061 echo "$ac_t""no" 1>&6
795ca3e5
AK
1062fi
1063
80992638 1064echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8ce0cbda 1065echo "configure:1066: checking whether ${MAKE-make} sets \${MAKE}" >&5
80992638
AK
1066set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1067if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1069else
80992638 1070 cat > conftestmake <<\EOF
795ca3e5 1071all:
80992638
AK
1072 @echo 'ac_maketemp="${MAKE}"'
1073EOF
795ca3e5 1074# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
80992638 1075eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
795ca3e5
AK
1076if test -n "$ac_maketemp"; then
1077 eval ac_cv_prog_make_${ac_make}_set=yes
1078else
1079 eval ac_cv_prog_make_${ac_make}_set=no
1080fi
80992638 1081rm -f conftestmake
795ca3e5
AK
1082fi
1083if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
80992638 1084 echo "$ac_t""yes" 1>&6
795ca3e5
AK
1085 SET_MAKE=
1086else
80992638 1087 echo "$ac_t""no" 1>&6
795ca3e5
AK
1088 SET_MAKE="MAKE=${MAKE-make}"
1089fi
1090
80992638
AK
1091# Extract the first word of "ranlib", so it can be a program name with args.
1092set dummy ranlib; ac_word=$2
1093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8ce0cbda 1094echo "configure:1095: checking for $ac_word" >&5
80992638
AK
1095if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5
AK
1097else
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1100else
80992638
AK
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 ac_dummy="$PATH"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB="ranlib"
1107 break
1108 fi
1109 done
1110 IFS="$ac_save_ifs"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
795ca3e5
AK
1112fi
1113fi
80992638 1114RANLIB="$ac_cv_prog_RANLIB"
795ca3e5 1115if test -n "$RANLIB"; then
80992638 1116 echo "$ac_t""$RANLIB" 1>&6
8106cdd5 1117else
80992638 1118 echo "$ac_t""no" 1>&6
8106cdd5
AK
1119fi
1120
8106cdd5 1121
80992638 1122################################################################################
795ca3e5 1123ac_header_dirent=no
80992638
AK
1124for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1125do
1126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1127echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8ce0cbda 1128echo "configure:1129: checking for $ac_hdr that defines DIR" >&5
80992638
AK
1129if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131else
1132 cat > conftest.$ac_ext <<EOF
8ce0cbda 1133#line 1134 "configure"
80992638 1134#include "confdefs.h"
795ca3e5
AK
1135#include <sys/types.h>
1136#include <$ac_hdr>
80992638
AK
1137int main() {
1138DIR *dirp = 0;
1139; return 0; }
1140EOF
8ce0cbda 1141if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
80992638
AK
1142 rm -rf conftest*
1143 eval "ac_cv_header_dirent_$ac_safe=yes"
1144else
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1147 rm -rf conftest*
1148 eval "ac_cv_header_dirent_$ac_safe=no"
795ca3e5 1149fi
80992638 1150rm -f conftest*
795ca3e5 1151fi
80992638
AK
1152if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1153 echo "$ac_t""yes" 1>&6
1154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1155 cat >> confdefs.h <<EOF
1156#define $ac_tr_hdr 1
1157EOF
1158 ac_header_dirent=$ac_hdr; break
1159else
1160 echo "$ac_t""no" 1>&6
795ca3e5
AK
1161fi
1162done
1163# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1164if test $ac_header_dirent = dirent.h; then
80992638 1165echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8ce0cbda 1166echo "configure:1167: checking for opendir in -ldir" >&5
80992638
AK
1167ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1168if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170else
1171 ac_save_LIBS="$LIBS"
1172LIBS="-ldir $LIBS"
1173cat > conftest.$ac_ext <<EOF
8ce0cbda 1174#line 1175 "configure"
80992638 1175#include "confdefs.h"
795ca3e5
AK
1176/* Override any gcc2 internal prototype to avoid an error. */
1177/* We use char because int might match the return type of a gcc2
80992638
AK
1178 builtin and then its argument prototype would still apply. */
1179char opendir();
1180
1181int main() {
1182opendir()
1183; return 0; }
1184EOF
8ce0cbda 1185if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
1186 rm -rf conftest*
1187 eval "ac_cv_lib_$ac_lib_var=yes"
1188else
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1191 rm -rf conftest*
1192 eval "ac_cv_lib_$ac_lib_var=no"
8106cdd5 1193fi
80992638
AK
1194rm -f conftest*
1195LIBS="$ac_save_LIBS"
8106cdd5 1196
795ca3e5 1197fi
80992638
AK
1198if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1200 LIBS="$LIBS -ldir"
795ca3e5 1201else
80992638
AK
1202 echo "$ac_t""no" 1>&6
1203fi
8106cdd5 1204
8106cdd5 1205else
80992638 1206echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8ce0cbda 1207echo "configure:1208: checking for opendir in -lx" >&5
80992638
AK
1208ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1209if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1211else
1212 ac_save_LIBS="$LIBS"
1213LIBS="-lx $LIBS"
1214cat > conftest.$ac_ext <<EOF
8ce0cbda 1215#line 1216 "configure"
80992638 1216#include "confdefs.h"
8106cdd5 1217/* Override any gcc2 internal prototype to avoid an error. */
8106cdd5 1218/* We use char because int might match the return type of a gcc2
80992638
AK
1219 builtin and then its argument prototype would still apply. */
1220char opendir();
1221
1222int main() {
1223opendir()
1224; return 0; }
1225EOF
8ce0cbda 1226if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
1227 rm -rf conftest*
1228 eval "ac_cv_lib_$ac_lib_var=yes"
1229else
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1232 rm -rf conftest*
1233 eval "ac_cv_lib_$ac_lib_var=no"
8106cdd5 1234fi
80992638
AK
1235rm -f conftest*
1236LIBS="$ac_save_LIBS"
8106cdd5 1237
795ca3e5 1238fi
80992638
AK
1239if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1241 LIBS="$LIBS -lx"
1242else
1243 echo "$ac_t""no" 1>&6
1244fi
795ca3e5
AK
1245
1246fi
1247
80992638 1248echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8ce0cbda 1249echo "configure:1250: checking how to run the C preprocessor" >&5
795ca3e5
AK
1250# On Suns, sometimes $CPP names a directory.
1251if test -n "$CPP" && test -d "$CPP"; then
1252 CPP=
1253fi
1254if test -z "$CPP"; then
80992638
AK
1255if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1257else
80992638
AK
1258 # This must be in double quotes, not single quotes, because CPP may get
1259 # substituted into the Makefile and "${CC-cc}" will confuse make.
1260 CPP="${CC-cc} -E"
795ca3e5 1261 # On the NeXT, cc -E runs the code through the compiler's parser,
80992638
AK
1262 # not just through cpp.
1263 cat > conftest.$ac_ext <<EOF
8ce0cbda 1264#line 1265 "configure"
80992638
AK
1265#include "confdefs.h"
1266#include <assert.h>
1267Syntax Error
1268EOF
1269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8ce0cbda 1270{ (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
80992638
AK
1271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1272if test -z "$ac_err"; then
795ca3e5
AK
1273 :
1274else
80992638
AK
1275 echo "$ac_err" >&5
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1278 rm -rf conftest*
1279 CPP="${CC-cc} -E -traditional-cpp"
1280 cat > conftest.$ac_ext <<EOF
8ce0cbda 1281#line 1282 "configure"
80992638
AK
1282#include "confdefs.h"
1283#include <assert.h>
1284Syntax Error
1285EOF
1286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8ce0cbda 1287{ (eval echo configure:1288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
80992638
AK
1288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1289if test -z "$ac_err"; then
8106cdd5
AK
1290 :
1291else
80992638
AK
1292 echo "$ac_err" >&5
1293 echo "configure: failed program was:" >&5
1294 cat conftest.$ac_ext >&5
1295 rm -rf conftest*
1296 CPP="${CC-cc} -nologo -E"
1297 cat > conftest.$ac_ext <<EOF
8ce0cbda 1298#line 1299 "configure"
80992638
AK
1299#include "confdefs.h"
1300#include <assert.h>
1301Syntax Error
1302EOF
1303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8ce0cbda 1304{ (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
80992638
AK
1305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1306if test -z "$ac_err"; then
1307 :
8106cdd5 1308else
80992638
AK
1309 echo "$ac_err" >&5
1310 echo "configure: failed program was:" >&5
1311 cat conftest.$ac_ext >&5
1312 rm -rf conftest*
1313 CPP=/lib/cpp
8106cdd5 1314fi
80992638 1315rm -f conftest*
8106cdd5 1316fi
80992638 1317rm -f conftest*
795ca3e5 1318fi
80992638
AK
1319rm -f conftest*
1320 ac_cv_prog_CPP="$CPP"
1321fi
1322 CPP="$ac_cv_prog_CPP"
795ca3e5 1323else
80992638 1324 ac_cv_prog_CPP="$CPP"
795ca3e5 1325fi
80992638 1326echo "$ac_t""$CPP" 1>&6
8106cdd5 1327
80992638 1328echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8ce0cbda 1329echo "configure:1330: checking for ANSI C header files" >&5
80992638
AK
1330if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1332else
80992638 1333 cat > conftest.$ac_ext <<EOF
8ce0cbda 1334#line 1335 "configure"
80992638 1335#include "confdefs.h"
795ca3e5
AK
1336#include <stdlib.h>
1337#include <stdarg.h>
1338#include <string.h>
1339#include <float.h>
80992638
AK
1340EOF
1341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8ce0cbda 1342{ (eval echo configure:1343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
80992638
AK
1343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1344if test -z "$ac_err"; then
1345 rm -rf conftest*
795ca3e5
AK
1346 ac_cv_header_stdc=yes
1347else
80992638
AK
1348 echo "$ac_err" >&5
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1351 rm -rf conftest*
1352 ac_cv_header_stdc=no
795ca3e5 1353fi
80992638 1354rm -f conftest*
795ca3e5
AK
1355
1356if test $ac_cv_header_stdc = yes; then
1357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
80992638 1358cat > conftest.$ac_ext <<EOF
8ce0cbda 1359#line 1360 "configure"
80992638 1360#include "confdefs.h"
795ca3e5 1361#include <string.h>
80992638 1362EOF
795ca3e5 1363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
80992638 1364 egrep "memchr" >/dev/null 2>&1; then
795ca3e5
AK
1365 :
1366else
80992638 1367 rm -rf conftest*
795ca3e5
AK
1368 ac_cv_header_stdc=no
1369fi
1370rm -f conftest*
1371
1372fi
1373
1374if test $ac_cv_header_stdc = yes; then
1375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
80992638 1376cat > conftest.$ac_ext <<EOF
8ce0cbda 1377#line 1378 "configure"
80992638 1378#include "confdefs.h"
795ca3e5 1379#include <stdlib.h>
80992638 1380EOF
795ca3e5 1381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
80992638 1382 egrep "free" >/dev/null 2>&1; then
795ca3e5
AK
1383 :
1384else
80992638 1385 rm -rf conftest*
795ca3e5
AK
1386 ac_cv_header_stdc=no
1387fi
1388rm -f conftest*
1389
1390fi
1391
1392if test $ac_cv_header_stdc = yes; then
1393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
80992638 1394if test "$cross_compiling" = yes; then
795ca3e5
AK
1395 :
1396else
80992638 1397 cat > conftest.$ac_ext <<EOF
8ce0cbda 1398#line 1399 "configure"
80992638 1399#include "confdefs.h"
795ca3e5 1400#include <ctype.h>
80992638
AK
1401#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1402#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8106cdd5 1403#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
80992638
AK
1404int main () { int i; for (i = 0; i < 256; i++)
1405if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1406exit (0); }
1407
1408EOF
8ce0cbda 1409if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
80992638 1410then
795ca3e5
AK
1411 :
1412else
80992638
AK
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1415 rm -fr conftest*
1416 ac_cv_header_stdc=no
795ca3e5 1417fi
80992638 1418rm -fr conftest*
795ca3e5 1419fi
80992638 1420
795ca3e5
AK
1421fi
1422fi
8106cdd5 1423
80992638
AK
1424echo "$ac_t""$ac_cv_header_stdc" 1>&6
1425if test $ac_cv_header_stdc = yes; then
1426 cat >> confdefs.h <<\EOF
795ca3e5 1427#define STDC_HEADERS 1
80992638 1428EOF
8106cdd5 1429
795ca3e5 1430fi
8106cdd5 1431
80992638 1432for ac_hdr in fcntl.h malloc.h sys/ioctl.h unistd.h
8106cdd5 1433do
80992638
AK
1434ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1435echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8ce0cbda 1436echo "configure:1437: checking for $ac_hdr" >&5
80992638
AK
1437if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439else
1440 cat > conftest.$ac_ext <<EOF
8ce0cbda 1441#line 1442 "configure"
80992638
AK
1442#include "confdefs.h"
1443#include <$ac_hdr>
1444EOF
1445ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8ce0cbda 1446{ (eval echo configure:1447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
80992638
AK
1447ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1448if test -z "$ac_err"; then
1449 rm -rf conftest*
1450 eval "ac_cv_header_$ac_safe=yes"
1451else
1452 echo "$ac_err" >&5
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1455 rm -rf conftest*
1456 eval "ac_cv_header_$ac_safe=no"
8106cdd5 1457fi
80992638 1458rm -f conftest*
8106cdd5 1459fi
80992638
AK
1460if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1463 cat >> confdefs.h <<EOF
1464#define $ac_tr_hdr 1
1465EOF
1466
1467else
1468 echo "$ac_t""no" 1>&6
795ca3e5
AK
1469fi
1470done
1471
1472
80992638
AK
1473################################################################################
1474echo $ac_n "checking for working const""... $ac_c" 1>&6
8ce0cbda 1475echo "configure:1476: checking for working const" >&5
80992638
AK
1476if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478else
1479 cat > conftest.$ac_ext <<EOF
8ce0cbda 1480#line 1481 "configure"
80992638
AK
1481#include "confdefs.h"
1482
1483int main() {
1484
1485/* Ultrix mips cc rejects this. */
1486typedef int charset[2]; const charset x = {0,0};
1487/* SunOS 4.1.1 cc rejects this. */
1488char const *const *ccp;
1489char **p;
1490/* NEC SVR4.0.2 mips cc rejects this. */
1491struct point {int x, y;};
1492static struct point const zero = {0,0};
1493/* AIX XL C 1.02.0.0 rejects this.
1494 It does not let you subtract one const X* pointer from another in an arm
1495 of an if-expression whose if-part is not a constant expression */
1496const char *g = "string";
1497ccp = &g + (g ? g-g : 0);
1498/* HPUX 7.0 cc rejects these. */
1499++ccp;
1500p = (char**) ccp;
1501ccp = (char const *const *) p;
1502{ /* SCO 3.2v4 cc rejects this. */
1503 char *t;
1504 char const *s = 0 ? (char *) 0 : (char const *) 0;
1505
1506 *t++ = 0;
1507}
1508{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1509 int x[] = {25, 17};
1510 const int *foo = &x[0];
1511 ++foo;
8106cdd5 1512}
80992638
AK
1513{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1514 typedef const int *iptr;
1515 iptr p = 0;
1516 ++p;
1517}
1518{ /* AIX XL C 1.02.0.0 rejects this saying
1519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1520 struct s { int j; const int *ap[3]; };
1521 struct s *b; b->j = 5;
1522}
1523{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1524 const int foo = 10;
1525}
1526
1527; return 0; }
1528EOF
8ce0cbda 1529if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
80992638 1530 rm -rf conftest*
795ca3e5
AK
1531 ac_cv_c_const=yes
1532else
80992638
AK
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1535 rm -rf conftest*
1536 ac_cv_c_const=no
795ca3e5 1537fi
80992638 1538rm -f conftest*
795ca3e5 1539fi
8106cdd5 1540
80992638
AK
1541echo "$ac_t""$ac_cv_c_const" 1>&6
1542if test $ac_cv_c_const = no; then
1543 cat >> confdefs.h <<\EOF
1544#define const
1545EOF
795ca3e5
AK
1546
1547fi
1548
80992638 1549echo $ac_n "checking for inline""... $ac_c" 1>&6
8ce0cbda 1550echo "configure:1551: checking for inline" >&5
80992638
AK
1551if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5
AK
1553else
1554 ac_cv_c_inline=no
1555for ac_kw in inline __inline__ __inline; do
80992638 1556 cat > conftest.$ac_ext <<EOF
8ce0cbda 1557#line 1558 "configure"
80992638
AK
1558#include "confdefs.h"
1559
1560int main() {
1561} int $ac_kw foo() {
1562; return 0; }
1563EOF
8ce0cbda 1564if { (eval echo configure:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
80992638 1565 rm -rf conftest*
795ca3e5
AK
1566 ac_cv_c_inline=$ac_kw; break
1567else
80992638
AK
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
795ca3e5 1570fi
80992638 1571rm -f conftest*
795ca3e5
AK
1572done
1573
1574fi
80992638
AK
1575
1576echo "$ac_t""$ac_cv_c_inline" 1>&6
1577case "$ac_cv_c_inline" in
795ca3e5 1578 inline | yes) ;;
80992638
AK
1579 no) cat >> confdefs.h <<\EOF
1580#define inline
1581EOF
795ca3e5 1582 ;;
80992638 1583 *) cat >> confdefs.h <<EOF
795ca3e5 1584#define inline $ac_cv_c_inline
80992638 1585EOF
795ca3e5
AK
1586 ;;
1587esac
1588
80992638 1589echo $ac_n "checking for off_t""... $ac_c" 1>&6
8ce0cbda 1590echo "configure:1591: checking for off_t" >&5
80992638
AK
1591if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1593else
80992638 1594 cat > conftest.$ac_ext <<EOF
8ce0cbda 1595#line 1596 "configure"
80992638
AK
1596#include "confdefs.h"
1597#include <sys/types.h>
1598#if STDC_HEADERS
1599#include <stdlib.h>
1600#include <stddef.h>
1601#endif
1602EOF
1603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1604 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1605 rm -rf conftest*
795ca3e5
AK
1606 ac_cv_type_off_t=yes
1607else
80992638
AK
1608 rm -rf conftest*
1609 ac_cv_type_off_t=no
795ca3e5 1610fi
80992638 1611rm -f conftest*
8106cdd5 1612
80992638
AK
1613fi
1614echo "$ac_t""$ac_cv_type_off_t" 1>&6
1615if test $ac_cv_type_off_t = no; then
1616 cat >> confdefs.h <<\EOF
795ca3e5 1617#define off_t long
80992638 1618EOF
795ca3e5
AK
1619
1620fi
1621
80992638 1622echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8ce0cbda 1623echo "configure:1624: checking for pid_t" >&5
80992638
AK
1624if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1626else
80992638 1627 cat > conftest.$ac_ext <<EOF
8ce0cbda 1628#line 1629 "configure"
80992638
AK
1629#include "confdefs.h"
1630#include <sys/types.h>
1631#if STDC_HEADERS
1632#include <stdlib.h>
1633#include <stddef.h>
1634#endif
1635EOF
1636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1637 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1638 rm -rf conftest*
795ca3e5
AK
1639 ac_cv_type_pid_t=yes
1640else
80992638
AK
1641 rm -rf conftest*
1642 ac_cv_type_pid_t=no
795ca3e5 1643fi
80992638 1644rm -f conftest*
8106cdd5 1645
80992638
AK
1646fi
1647echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1648if test $ac_cv_type_pid_t = no; then
1649 cat >> confdefs.h <<\EOF
795ca3e5 1650#define pid_t int
80992638 1651EOF
795ca3e5
AK
1652
1653fi
1654
80992638 1655echo $ac_n "checking for size_t""... $ac_c" 1>&6
8ce0cbda 1656echo "configure:1657: checking for size_t" >&5
80992638
AK
1657if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1659else
80992638 1660 cat > conftest.$ac_ext <<EOF
8ce0cbda 1661#line 1662 "configure"
80992638
AK
1662#include "confdefs.h"
1663#include <sys/types.h>
1664#if STDC_HEADERS
1665#include <stdlib.h>
1666#include <stddef.h>
1667#endif
1668EOF
1669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1670 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1671 rm -rf conftest*
795ca3e5
AK
1672 ac_cv_type_size_t=yes
1673else
80992638
AK
1674 rm -rf conftest*
1675 ac_cv_type_size_t=no
795ca3e5 1676fi
80992638 1677rm -f conftest*
8106cdd5 1678
80992638
AK
1679fi
1680echo "$ac_t""$ac_cv_type_size_t" 1>&6
1681if test $ac_cv_type_size_t = no; then
1682 cat >> confdefs.h <<\EOF
795ca3e5 1683#define size_t unsigned
80992638 1684EOF
795ca3e5
AK
1685
1686fi
1687
80992638 1688echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
8ce0cbda 1689echo "configure:1690: checking for st_rdev in struct stat" >&5
80992638
AK
1690if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
8106cdd5 1692else
80992638 1693 cat > conftest.$ac_ext <<EOF
8ce0cbda 1694#line 1695 "configure"
80992638
AK
1695#include "confdefs.h"
1696#include <sys/types.h>
1697#include <sys/stat.h>
1698int main() {
1699struct stat s; s.st_rdev;
1700; return 0; }
1701EOF
8ce0cbda 1702if { (eval echo configure:1703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
80992638
AK
1703 rm -rf conftest*
1704 ac_cv_struct_st_rdev=yes
1705else
1706 echo "configure: failed program was:" >&5
1707 cat conftest.$ac_ext >&5
1708 rm -rf conftest*
1709 ac_cv_struct_st_rdev=no
8106cdd5 1710fi
80992638 1711rm -f conftest*
795ca3e5 1712fi
8106cdd5 1713
80992638
AK
1714echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1715if test $ac_cv_struct_st_rdev = yes; then
1716 cat >> confdefs.h <<\EOF
795ca3e5 1717#define HAVE_ST_RDEV 1
80992638 1718EOF
795ca3e5
AK
1719
1720fi
1721
80992638 1722echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8ce0cbda 1723echo "configure:1724: checking whether time.h and sys/time.h may both be included" >&5
80992638
AK
1724if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 1726else
80992638 1727 cat > conftest.$ac_ext <<EOF
8ce0cbda 1728#line 1729 "configure"
80992638 1729#include "confdefs.h"
795ca3e5
AK
1730#include <sys/types.h>
1731#include <sys/time.h>
1732#include <time.h>
80992638
AK
1733int main() {
1734struct tm *tp;
1735; return 0; }
1736EOF
8ce0cbda 1737if { (eval echo configure:1738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
80992638 1738 rm -rf conftest*
795ca3e5
AK
1739 ac_cv_header_time=yes
1740else
80992638
AK
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1743 rm -rf conftest*
1744 ac_cv_header_time=no
795ca3e5 1745fi
80992638 1746rm -f conftest*
795ca3e5 1747fi
8106cdd5 1748
80992638
AK
1749echo "$ac_t""$ac_cv_header_time" 1>&6
1750if test $ac_cv_header_time = yes; then
1751 cat >> confdefs.h <<\EOF
795ca3e5 1752#define TIME_WITH_SYS_TIME 1
80992638 1753EOF
b896caa1 1754
8106cdd5 1755fi
b896caa1 1756
b896caa1 1757
80992638 1758################################################################################
b896caa1 1759
b896caa1 1760
80992638
AK
1761################################################################################
1762# Check whether --enable-jobs or --disable-jobs was given.
1763if test "${enable_jobs+set}" = set; then
1764 enableval="$enable_jobs"
1765 JOBS=-j$enableval
1766else
1767 JOBS=-j2
1768fi
b896caa1 1769
795ca3e5 1770
80992638
AK
1771################################################################################
1772echo $ac_n "Setting file owner to""... $ac_c" 1>&6
a38df97f 1773OWNER="root"
8106cdd5 1774
795ca3e5
AK
1775# Check whether --with-user or --without-user was given.
1776if test "${with_user+set}" = set; then
1777 withval="$with_user"
80992638
AK
1778 OWNER="$withval"
1779fi
1780
1781echo "$ac_t""$OWNER" 1>&6
795ca3e5 1782
a38df97f
AK
1783if test x$OWNER != x; then
1784 OWNER="-o $OWNER"
1785fi
1786
80992638
AK
1787################################################################################
1788echo $ac_n "Setting group owner to""... $ac_c" 1>&6
1789GROUP="root"
795ca3e5
AK
1790# Check whether --with-group or --without-group was given.
1791if test "${with_group+set}" = set; then
1792 withval="$with_group"
80992638
AK
1793 GROUP="$withval"
1794fi
1795
1796echo "$ac_t""$GROUP" 1>&6
795ca3e5 1797
a38df97f
AK
1798if test x$GROUP != x; then
1799 GROUP="-g $GROUP"
1800fi
1801
80992638
AK
1802################################################################################
1803echo $ac_n "checking whether to enable lvm1 fallback""... $ac_c" 1>&6
7d1552c9
AK
1804# Check whether --enable-lvm1_fallback or --disable-lvm1_fallback was given.
1805if test "${enable_lvm1_fallback+set}" = set; then
1806 enableval="$enable_lvm1_fallback"
1807 LVM1_FALLBACK=$enableval
1808else
1809 LVM1_FALLBACK=no
80992638
AK
1810fi
1811
1812echo "$ac_t""$LVM1_FALLBACK" 1>&6
7d1552c9
AK
1813
1814if test x$LVM1_FALLBACK = xyes; then
1815 CFLAGS="$CFLAGS -DLVM1_FALLBACK"
1816fi
1817
80992638
AK
1818################################################################################
1819echo $ac_n "checking whether to include support for lvm1 metadata""... $ac_c" 1>&6
5a52dca9
AK
1820# Check whether --with-lvm1 or --without-lvm1 was given.
1821if test "${with_lvm1+set}" = set; then
1822 withval="$with_lvm1"
80992638 1823 LVM1="$withval"
5a52dca9 1824else
80992638
AK
1825 LVM1="internal"
1826fi
1827
1828echo "$ac_t""$LVM1" 1>&6
5a52dca9
AK
1829
1830if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
80992638
AK
1831 then { echo "configure: error: --with-lvm1 parameter invalid
1832" 1>&2; exit 1; }
5a52dca9
AK
1833 exit
1834fi;
1835
b896caa1
AK
1836if test x$LVM1 = xinternal; then
1837 CFLAGS="$CFLAGS -DLVM1_INTERNAL"
1838fi
1839
80992638
AK
1840################################################################################
1841echo $ac_n "checking whether to include support for GFS pool metadata""... $ac_c" 1>&6
d8ac0fbc
AK
1842# Check whether --with-pool or --without-pool was given.
1843if test "${with_pool+set}" = set; then
1844 withval="$with_pool"
80992638 1845 POOL="$withval"
d8ac0fbc 1846else
80992638
AK
1847 POOL="internal"
1848fi
1849
1850echo "$ac_t""$POOL" 1>&6
d8ac0fbc
AK
1851
1852if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
80992638
AK
1853 then { echo "configure: error: --with-pool parameter invalid
1854" 1>&2; exit 1; }
d8ac0fbc
AK
1855 exit
1856fi;
1857
1858if test x$POOL = xinternal; then
1859 CFLAGS="$CFLAGS -DPOOL_INTERNAL"
1860fi
1861
80992638
AK
1862################################################################################
1863echo $ac_n "checking whether to include support for cluster locking""... $ac_c" 1>&6
d3c8211f
AK
1864# Check whether --with-cluster or --without-cluster was given.
1865if test "${with_cluster+set}" = set; then
1866 withval="$with_cluster"
80992638
AK
1867 CLUSTER="$withval"
1868fi
1869
1870echo "$ac_t""$CLUSTER" 1>&6
d3c8211f
AK
1871
1872if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
80992638
AK
1873 then { echo "configure: error: --with-cluster parameter invalid
1874" 1>&2; exit 1; }
d3c8211f
AK
1875 exit
1876fi;
1877
1878if test x$CLUSTER = xinternal; then
1879 CFLAGS="$CFLAGS -DCLUSTER_LOCKING_INTERNAL"
1880fi
1881
80992638
AK
1882################################################################################
1883echo $ac_n "checking whether to include snapshots""... $ac_c" 1>&6
4922197a
AK
1884# Check whether --with-snapshots or --without-snapshots was given.
1885if test "${with_snapshots+set}" = set; then
1886 withval="$with_snapshots"
80992638 1887 SNAPSHOTS="$withval"
4922197a 1888else
80992638
AK
1889 SNAPSHOTS="internal"
1890fi
1891
1892echo "$ac_t""$SNAPSHOTS" 1>&6
4922197a
AK
1893
1894if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
80992638
AK
1895 then { echo "configure: error: --with-snapshots parameter invalid
1896" 1>&2; exit 1; }
4922197a
AK
1897 exit
1898fi;
1899
1900if test x$SNAPSHOTS = xinternal; then
1901 CFLAGS="$CFLAGS -DSNAPSHOT_INTERNAL"
1902fi
1903
80992638
AK
1904################################################################################
1905echo $ac_n "checking whether to include mirrors""... $ac_c" 1>&6
4922197a
AK
1906# Check whether --with-mirrors or --without-mirrors was given.
1907if test "${with_mirrors+set}" = set; then
1908 withval="$with_mirrors"
80992638 1909 MIRRORS="$withval"
4922197a 1910else
80992638
AK
1911 MIRRORS="internal"
1912fi
1913
1914echo "$ac_t""$MIRRORS" 1>&6
4922197a
AK
1915
1916if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
80992638
AK
1917 then { echo "configure: error: --with-mirrors parameter invalid
1918" 1>&2; exit 1; }
4922197a
AK
1919 exit
1920fi;
1921
1922if test x$MIRRORS = xinternal; then
1923 CFLAGS="$CFLAGS -DMIRRORED_INTERNAL"
1924fi
1925
80992638
AK
1926################################################################################
1927echo $ac_n "checking whether to use static linking""... $ac_c" 1>&6
795ca3e5
AK
1928# Check whether --enable-static_link or --disable-static_link was given.
1929if test "${enable_static_link+set}" = set; then
1930 enableval="$enable_static_link"
1931 STATIC_LINK=$enableval
1932else
1933 STATIC_LINK=no
80992638
AK
1934fi
1935
1936echo "$ac_t""$STATIC_LINK" 1>&6
795ca3e5 1937
80992638
AK
1938################################################################################
1939echo $ac_n "checking whether to enable readline""... $ac_c" 1>&6
795ca3e5
AK
1940# Check whether --enable-readline or --disable-readline was given.
1941if test "${enable_readline+set}" = set; then
1942 enableval="$enable_readline"
1943 \
1944READLINE=$enableval
1945else
5a52dca9 1946 READLINE=no
80992638
AK
1947fi
1948
1949echo "$ac_t""$READLINE" 1>&6
795ca3e5 1950
b896caa1
AK
1951if test x$READLINE = xyes; then
1952 CFLAGS="$CFLAGS -DREADLINE_SUPPORT"
1953fi
1954
80992638
AK
1955################################################################################
1956echo $ac_n "checking whether to enable selinux support""... $ac_c" 1>&6
1957# Check whether --enable-selinux or --disable-selinux was given.
1958if test "${enable_selinux+set}" = set; then
1959 enableval="$enable_selinux"
1960 \
1961SELINUX=$enableval
1962fi
1963
1964echo "$ac_t""$SELINUX" 1>&6
d3c8211f 1965
80992638
AK
1966################################################################################
1967echo $ac_n "checking whether to build cluster LVM daemon""... $ac_c" 1>&6
d3c8211f
AK
1968# Check whether --with-clvmd or --without-clvmd was given.
1969if test "${with_clvmd+set}" = set; then
1970 withval="$with_clvmd"
1971 \
1972CLVMD=$withval
1973else
1974 CLVMD=no
80992638
AK
1975fi
1976
1977echo "$ac_t""$CLVMD" 1>&6
1978
d3c8211f
AK
1979if test x$CLVMD = xyes && test x$CLUSTER = xnone; then
1980 CLUSTER=internal
1981fi
d3c8211f 1982
80992638 1983################################################################################
69792976 1984echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
8ef2b021
AK
1985# Check whether --enable-debug or --disable-debug was given.
1986if test "${enable_debug+set}" = set; then
1987 enableval="$enable_debug"
1988 \
1989DEBUG=yes
1990else
1991 DEBUG=no
80992638
AK
1992fi
1993
69792976 1994echo "$ac_t""$DEBUG" 1>&6
8ef2b021 1995
8ce0cbda
AK
1996if test x$DEBUG = xyes; then
1997 COPTIMISE_FLAG=
1998fi
1999
2000################################################################################
2001echo $ac_n "checking for C optimisation flag""... $ac_c" 1>&6
2002# Check whether --with-optimisation or --without-optimisation was given.
2003if test "${with_optimisation+set}" = set; then
2004 withval="$with_optimisation"
2005 COPTIMISE_FLAG="$withval"
2006fi
2007
2008echo "$ac_t""$COPTIMISE_FLAG" 1>&6
2009
80992638
AK
2010################################################################################
2011echo $ac_n "checking whether to use device-mapper""... $ac_c" 1>&6
199e490e
AK
2012# Check whether --enable-devmapper or --disable-devmapper was given.
2013if test "${enable_devmapper+set}" = set; then
2014 enableval="$enable_devmapper"
2015 \
2016DEVMAPPER=no
80992638
AK
2017fi
2018
69792976 2019echo "$ac_t""$DEVMAPPER" 1>&6
199e490e 2020
b896caa1
AK
2021if test x$DEVMAPPER = xyes; then
2022 CFLAGS="$CFLAGS -DDEVMAPPER_SUPPORT"
2023fi
2024
80992638 2025################################################################################
69792976 2026echo $ac_n "checking whether to enable O_DIRECT""... $ac_c" 1>&6
2dc95e1c
AK
2027# Check whether --enable-o_direct or --disable-o_direct was given.
2028if test "${enable_o_direct+set}" = set; then
2029 enableval="$enable_o_direct"
2030 \
2031ODIRECT=no
80992638
AK
2032fi
2033
69792976 2034echo "$ac_t""$ODIRECT" 1>&6
2dc95e1c
AK
2035
2036if test x$ODIRECT = xyes; then
2037 CFLAGS="$CFLAGS -DO_DIRECT_SUPPORT"
2038fi
2039
80992638 2040################################################################################
8106cdd5
AK
2041echo $ac_n "checking whether to compile liblvm2cmd.so""... $ac_c" 1>&6
2042# Check whether --enable-cmdlib or --disable-cmdlib was given.
2043if test "${enable_cmdlib+set}" = set; then
2044 enableval="$enable_cmdlib"
2045 \
2046CMDLIB=yes
2047else
2048 CMDLIB=no
80992638
AK
2049fi
2050
8106cdd5
AK
2051echo "$ac_t""$CMDLIB" 1>&6
2052
2053if test x$CMDLIB = xyes; then
2054 CFLAGS="$CFLAGS -DCMDLIB"
2055fi
2056
80992638
AK
2057################################################################################
2058echo $ac_n "checking whether to build fsadm""... $ac_c" 1>&6
809fae91
AK
2059# Check whether --enable-fsadm or --disable-fsadm was given.
2060if test "${enable_fsadm+set}" = set; then
2061 enableval="$enable_fsadm"
2062 FSADM=yes
80992638
AK
2063fi
2064
809fae91
AK
2065echo "$ac_t""$FSADM" 1>&6
2066
80992638 2067################################################################################
795ca3e5
AK
2068if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
2069 then exec_prefix="";
2070fi;
2071
80992638
AK
2072################################################################################
2073if test $ac_cv_prog_gcc = yes; then
2074 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8ce0cbda 2075echo "configure:2076: checking whether ${CC-cc} needs -traditional" >&5
80992638
AK
2076if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5
AK
2078else
2079 ac_pattern="Autoconf.*'x'"
80992638 2080 cat > conftest.$ac_ext <<EOF
8ce0cbda 2081#line 2082 "configure"
80992638 2082#include "confdefs.h"
795ca3e5
AK
2083#include <sgtty.h>
2084Autoconf TIOCGETP
80992638 2085EOF
795ca3e5 2086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
80992638
AK
2087 egrep "$ac_pattern" >/dev/null 2>&1; then
2088 rm -rf conftest*
795ca3e5
AK
2089 ac_cv_prog_gcc_traditional=yes
2090else
80992638 2091 rm -rf conftest*
795ca3e5
AK
2092 ac_cv_prog_gcc_traditional=no
2093fi
2094rm -f conftest*
2095
2096
2097 if test $ac_cv_prog_gcc_traditional = no; then
80992638 2098 cat > conftest.$ac_ext <<EOF
8ce0cbda 2099#line 2100 "configure"
80992638 2100#include "confdefs.h"
795ca3e5
AK
2101#include <termio.h>
2102Autoconf TCGETA
80992638 2103EOF
795ca3e5 2104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
80992638
AK
2105 egrep "$ac_pattern" >/dev/null 2>&1; then
2106 rm -rf conftest*
795ca3e5
AK
2107 ac_cv_prog_gcc_traditional=yes
2108fi
2109rm -f conftest*
2110
2111 fi
2112fi
80992638
AK
2113
2114echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
795ca3e5
AK
2115 if test $ac_cv_prog_gcc_traditional = yes; then
2116 CC="$CC -traditional"
2117 fi
2118fi
2119
80992638 2120echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8ce0cbda 2121echo "configure:2122: checking return type of signal handlers" >&5
80992638
AK
2122if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 2124else
80992638 2125 cat > conftest.$ac_ext <<EOF
8ce0cbda 2126#line 2127 "configure"
80992638 2127#include "confdefs.h"
795ca3e5
AK
2128#include <sys/types.h>
2129#include <signal.h>
2130#ifdef signal
80992638 2131#undef signal
795ca3e5
AK
2132#endif
2133#ifdef __cplusplus
2134extern "C" void (*signal (int, void (*)(int)))(int);
2135#else
2136void (*signal ()) ();
2137#endif
2138
80992638 2139int main() {
795ca3e5 2140int i;
80992638
AK
2141; return 0; }
2142EOF
8ce0cbda 2143if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
80992638 2144 rm -rf conftest*
795ca3e5
AK
2145 ac_cv_type_signal=void
2146else
80992638
AK
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 rm -rf conftest*
2150 ac_cv_type_signal=int
795ca3e5 2151fi
80992638 2152rm -f conftest*
795ca3e5
AK
2153fi
2154
80992638
AK
2155echo "$ac_t""$ac_cv_type_signal" 1>&6
2156cat >> confdefs.h <<EOF
795ca3e5 2157#define RETSIGTYPE $ac_cv_type_signal
80992638 2158EOF
795ca3e5 2159
8106cdd5 2160
80992638 2161echo $ac_n "checking for vprintf""... $ac_c" 1>&6
8ce0cbda 2162echo "configure:2163: checking for vprintf" >&5
80992638
AK
2163if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 2165else
80992638 2166 cat > conftest.$ac_ext <<EOF
8ce0cbda 2167#line 2168 "configure"
80992638 2168#include "confdefs.h"
795ca3e5 2169/* System header to define __stub macros and hopefully few prototypes,
80992638
AK
2170 which can conflict with char vprintf(); below. */
2171#include <assert.h>
795ca3e5
AK
2172/* Override any gcc2 internal prototype to avoid an error. */
2173/* We use char because int might match the return type of a gcc2
80992638
AK
2174 builtin and then its argument prototype would still apply. */
2175char vprintf();
2176
2177int main() {
2178
795ca3e5
AK
2179/* The GNU C library defines this for functions which it implements
2180 to always fail with ENOSYS. Some functions are actually named
2181 something starting with __ and the normal name is an alias. */
80992638 2182#if defined (__stub_vprintf) || defined (__stub___vprintf)
795ca3e5
AK
2183choke me
2184#else
80992638 2185vprintf();
795ca3e5
AK
2186#endif
2187
80992638
AK
2188; return 0; }
2189EOF
8ce0cbda 2190if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2191 rm -rf conftest*
2192 eval "ac_cv_func_vprintf=yes"
795ca3e5 2193else
80992638
AK
2194 echo "configure: failed program was:" >&5
2195 cat conftest.$ac_ext >&5
2196 rm -rf conftest*
2197 eval "ac_cv_func_vprintf=no"
2198fi
2199rm -f conftest*
795ca3e5 2200fi
80992638
AK
2201
2202if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2204 cat >> confdefs.h <<\EOF
2205#define HAVE_VPRINTF 1
2206EOF
2207
2208else
2209 echo "$ac_t""no" 1>&6
8106cdd5 2210fi
795ca3e5 2211
80992638
AK
2212if test "$ac_cv_func_vprintf" != yes; then
2213echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
8ce0cbda 2214echo "configure:2215: checking for _doprnt" >&5
80992638
AK
2215if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 2217else
80992638 2218 cat > conftest.$ac_ext <<EOF
8ce0cbda 2219#line 2220 "configure"
80992638 2220#include "confdefs.h"
795ca3e5 2221/* System header to define __stub macros and hopefully few prototypes,
80992638
AK
2222 which can conflict with char _doprnt(); below. */
2223#include <assert.h>
795ca3e5
AK
2224/* Override any gcc2 internal prototype to avoid an error. */
2225/* We use char because int might match the return type of a gcc2
80992638
AK
2226 builtin and then its argument prototype would still apply. */
2227char _doprnt();
2228
2229int main() {
2230
795ca3e5
AK
2231/* The GNU C library defines this for functions which it implements
2232 to always fail with ENOSYS. Some functions are actually named
2233 something starting with __ and the normal name is an alias. */
2234#if defined (__stub__doprnt) || defined (__stub____doprnt)
2235choke me
2236#else
80992638 2237_doprnt();
795ca3e5
AK
2238#endif
2239
80992638
AK
2240; return 0; }
2241EOF
8ce0cbda 2242if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2243 rm -rf conftest*
2244 eval "ac_cv_func__doprnt=yes"
795ca3e5 2245else
80992638
AK
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2248 rm -rf conftest*
2249 eval "ac_cv_func__doprnt=no"
795ca3e5 2250fi
80992638 2251rm -f conftest*
795ca3e5
AK
2252fi
2253
80992638
AK
2254if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 cat >> confdefs.h <<\EOF
795ca3e5 2257#define HAVE_DOPRNT 1
80992638 2258EOF
795ca3e5 2259
80992638
AK
2260else
2261 echo "$ac_t""no" 1>&6
795ca3e5
AK
2262fi
2263
2264fi
2265
2266for ac_func in mkdir rmdir uname
2267do
80992638 2268echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8ce0cbda 2269echo "configure:2270: checking for $ac_func" >&5
80992638
AK
2270if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272else
2273 cat > conftest.$ac_ext <<EOF
8ce0cbda 2274#line 2275 "configure"
80992638 2275#include "confdefs.h"
795ca3e5 2276/* System header to define __stub macros and hopefully few prototypes,
80992638
AK
2277 which can conflict with char $ac_func(); below. */
2278#include <assert.h>
795ca3e5
AK
2279/* Override any gcc2 internal prototype to avoid an error. */
2280/* We use char because int might match the return type of a gcc2
80992638
AK
2281 builtin and then its argument prototype would still apply. */
2282char $ac_func();
2283
2284int main() {
2285
795ca3e5
AK
2286/* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2290choke me
2291#else
80992638 2292$ac_func();
795ca3e5
AK
2293#endif
2294
80992638
AK
2295; return 0; }
2296EOF
8ce0cbda 2297if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2298 rm -rf conftest*
2299 eval "ac_cv_func_$ac_func=yes"
795ca3e5 2300else
80992638
AK
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -rf conftest*
2304 eval "ac_cv_func_$ac_func=no"
795ca3e5 2305fi
80992638 2306rm -f conftest*
795ca3e5
AK
2307fi
2308
80992638
AK
2309if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2312 cat >> confdefs.h <<EOF
2313#define $ac_tr_func 1
2314EOF
2315
2316else
2317 echo "$ac_t""no" 1>&6
795ca3e5
AK
2318fi
2319done
2320
2321
80992638 2322################################################################################
795ca3e5 2323if test x$READLINE = xyes; then
80992638
AK
2324
2325echo $ac_n "checking for library containing tgetent""... $ac_c" 1>&6
8ce0cbda 2326echo "configure:2327: checking for library containing tgetent" >&5
80992638
AK
2327if eval "test \"`echo '$''{'ac_cv_search_tgetent'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329else
2330 ac_func_search_save_LIBS="$LIBS"
2331ac_cv_search_tgetent="no"
2332cat > conftest.$ac_ext <<EOF
8ce0cbda 2333#line 2334 "configure"
80992638 2334#include "confdefs.h"
795ca3e5
AK
2335/* Override any gcc2 internal prototype to avoid an error. */
2336/* We use char because int might match the return type of a gcc2
80992638
AK
2337 builtin and then its argument prototype would still apply. */
2338char tgetent();
2339
2340int main() {
2341tgetent()
2342; return 0; }
2343EOF
8ce0cbda 2344if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638 2345 rm -rf conftest*
795ca3e5
AK
2346 ac_cv_search_tgetent="none required"
2347else
80992638
AK
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350fi
2351rm -f conftest*
2352test "$ac_cv_search_tgetent" = "no" && for i in ncurses curses termcap termlib; do
2353LIBS="-l$i $ac_func_search_save_LIBS"
2354cat > conftest.$ac_ext <<EOF
8ce0cbda 2355#line 2356 "configure"
80992638 2356#include "confdefs.h"
795ca3e5
AK
2357/* Override any gcc2 internal prototype to avoid an error. */
2358/* We use char because int might match the return type of a gcc2
80992638
AK
2359 builtin and then its argument prototype would still apply. */
2360char tgetent();
2361
2362int main() {
2363tgetent()
2364; return 0; }
2365EOF
8ce0cbda 2366if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2367 rm -rf conftest*
2368 ac_cv_search_tgetent="-l$i"
2369break
2370else
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
795ca3e5 2373fi
80992638
AK
2374rm -f conftest*
2375done
2376LIBS="$ac_func_search_save_LIBS"
8106cdd5 2377fi
8106cdd5 2378
80992638
AK
2379echo "$ac_t""$ac_cv_search_tgetent" 1>&6
2380if test "$ac_cv_search_tgetent" != "no"; then
2381 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
2382
2383else :
2384 { echo "configure: error: termcap could not be found which is required for the
795ca3e5
AK
2385--enable-readline option (which is enabled by default). Either disable readline
2386support with --disable-readline or download and install termcap from:
2387 ftp.gnu.org/gnu/termcap
2388Note: if you are using precompiled packages you will also need the development
2389 package as well (which may be called termcap-devel or something similar).
2390Note: (n)curses also seems to work as a substitute for termcap. This was
2391 not found either - but you could try installing that as well.
80992638 2392" 1>&2; exit 1; }
795ca3e5 2393 exit
80992638 2394
795ca3e5
AK
2395fi
2396fi
2397
80992638
AK
2398################################################################################
2399echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8ce0cbda 2400echo "configure:2401: checking for dlopen in -ldl" >&5
80992638
AK
2401ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
26e7f2e0 2404else
80992638 2405 ac_save_LIBS="$LIBS"
26e7f2e0 2406LIBS="-ldl $LIBS"
80992638 2407cat > conftest.$ac_ext <<EOF
8ce0cbda 2408#line 2409 "configure"
80992638 2409#include "confdefs.h"
26e7f2e0
AK
2410/* Override any gcc2 internal prototype to avoid an error. */
2411/* We use char because int might match the return type of a gcc2
80992638
AK
2412 builtin and then its argument prototype would still apply. */
2413char dlopen();
2414
2415int main() {
2416dlopen()
2417; return 0; }
2418EOF
8ce0cbda 2419if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2420 rm -rf conftest*
2421 eval "ac_cv_lib_$ac_lib_var=yes"
2422else
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 eval "ac_cv_lib_$ac_lib_var=no"
26e7f2e0 2427fi
80992638
AK
2428rm -f conftest*
2429LIBS="$ac_save_LIBS"
2430
8106cdd5 2431fi
80992638
AK
2432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
26e7f2e0
AK
2434 HAVE_LIBDL=yes
2435else
80992638
AK
2436 echo "$ac_t""no" 1>&6
2437HAVE_LIBDL=no
26e7f2e0
AK
2438fi
2439
2440
74583a91 2441if [ "x$HAVE_LIBDL" = xyes -a "x$STATIC_LINK" = xno ]; then
b896caa1 2442 CFLAGS="$CFLAGS -DHAVE_LIBDL"
26e7f2e0 2443 LIBS="-ldl $LIBS"
d68a82ec
AK
2444else
2445 HAVE_LIBDL=no
26e7f2e0
AK
2446fi
2447
80992638
AK
2448################################################################################
2449if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
2450 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
4922197a 2451 \) -a "x$STATIC_LINK" = xyes ];
80992638
AK
2452 then { echo "configure: error: Features cannot be 'shared' when building statically
2453" 1>&2; exit 1; }
d68a82ec 2454 exit
036f273a
AK
2455fi
2456
80992638
AK
2457################################################################################
2458if test x$SELINUX = xyes; then
2459 echo $ac_n "checking for is_selinux_enabled in -lselinux""... $ac_c" 1>&6
8ce0cbda 2460echo "configure:2461: checking for is_selinux_enabled in -lselinux" >&5
80992638
AK
2461ac_lib_var=`echo selinux'_'is_selinux_enabled | sed 'y%./+-%__p_%'`
2462if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
036f273a 2464else
80992638 2465 ac_save_LIBS="$LIBS"
036f273a 2466LIBS="-lselinux $LIBS"
80992638 2467cat > conftest.$ac_ext <<EOF
8ce0cbda 2468#line 2469 "configure"
80992638 2469#include "confdefs.h"
036f273a 2470/* Override any gcc2 internal prototype to avoid an error. */
036f273a 2471/* We use char because int might match the return type of a gcc2
80992638
AK
2472 builtin and then its argument prototype would still apply. */
2473char is_selinux_enabled();
2474
2475int main() {
2476is_selinux_enabled()
2477; return 0; }
2478EOF
8ce0cbda 2479if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2480 rm -rf conftest*
2481 eval "ac_cv_lib_$ac_lib_var=yes"
2482else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -rf conftest*
2486 eval "ac_cv_lib_$ac_lib_var=no"
036f273a 2487fi
80992638
AK
2488rm -f conftest*
2489LIBS="$ac_save_LIBS"
2490
036f273a 2491fi
80992638
AK
2492if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2493 echo "$ac_t""yes" 1>&6
036f273a
AK
2494 HAVE_SELINUX=yes
2495else
80992638
AK
2496 echo "$ac_t""no" 1>&6
2497HAVE_SELINUX=no
036f273a
AK
2498fi
2499
2500
80992638
AK
2501 if test x$HAVE_SELINUX = xyes; then
2502 CFLAGS="$CFLAGS -DHAVE_SELINUX"
2503 LIBS="-lselinux $LIBS"
2504 else
2505 echo "Disabling selinux" 1>&6
2506 fi
036f273a 2507fi
d68a82ec 2508
80992638
AK
2509################################################################################
2510for ac_hdr in getopt.h
b896caa1 2511do
80992638
AK
2512ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2513echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8ce0cbda 2514echo "configure:2515: checking for $ac_hdr" >&5
80992638
AK
2515if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517else
2518 cat > conftest.$ac_ext <<EOF
8ce0cbda 2519#line 2520 "configure"
80992638
AK
2520#include "confdefs.h"
2521#include <$ac_hdr>
2522EOF
2523ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8ce0cbda 2524{ (eval echo configure:2525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
80992638
AK
2525ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2526if test -z "$ac_err"; then
2527 rm -rf conftest*
2528 eval "ac_cv_header_$ac_safe=yes"
2529else
2530 echo "$ac_err" >&5
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2533 rm -rf conftest*
2534 eval "ac_cv_header_$ac_safe=no"
8106cdd5 2535fi
80992638 2536rm -f conftest*
b896caa1 2537fi
80992638
AK
2538if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2539 echo "$ac_t""yes" 1>&6
2540 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2541 cat >> confdefs.h <<EOF
2542#define $ac_tr_hdr 1
2543EOF
b896caa1 2544 CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
80992638
AK
2545else
2546 echo "$ac_t""no" 1>&6
b896caa1
AK
2547fi
2548done
2549
2550
80992638 2551################################################################################
795ca3e5 2552if test x$READLINE = xyes; then
80992638 2553 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8ce0cbda 2554echo "configure:2555: checking for readline in -lreadline" >&5
80992638
AK
2555ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2556if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
795ca3e5 2558else
80992638 2559 ac_save_LIBS="$LIBS"
795ca3e5 2560LIBS="-lreadline $LIBS"
80992638 2561cat > conftest.$ac_ext <<EOF
8ce0cbda 2562#line 2563 "configure"
80992638 2563#include "confdefs.h"
795ca3e5
AK
2564/* Override any gcc2 internal prototype to avoid an error. */
2565/* We use char because int might match the return type of a gcc2
80992638
AK
2566 builtin and then its argument prototype would still apply. */
2567char readline();
2568
2569int main() {
2570readline()
2571; return 0; }
2572EOF
8ce0cbda 2573if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2574 rm -rf conftest*
2575 eval "ac_cv_lib_$ac_lib_var=yes"
2576else
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 rm -rf conftest*
2580 eval "ac_cv_lib_$ac_lib_var=no"
795ca3e5 2581fi
80992638
AK
2582rm -f conftest*
2583LIBS="$ac_save_LIBS"
2584
8106cdd5 2585fi
80992638
AK
2586if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2587 echo "$ac_t""yes" 1>&6
2588 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2589 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2590 cat >> confdefs.h <<EOF
2591#define $ac_tr_lib 1
2592EOF
795ca3e5
AK
2593
2594 LIBS="-lreadline $LIBS"
2595
2596else
80992638
AK
2597 echo "$ac_t""no" 1>&6
2598{ echo "configure: error: GNU Readline could not be found which is required for the
795ca3e5
AK
2599--enable-readline option (which is enabled by default). Either disable readline
2600support with --disable-readline or download and install readline from:
2601 ftp.gnu.org/gnu/readline
2602Note: if you are using precompiled packages you will also need the development
2603package as well (which may be called readline-devel or something similar).
80992638 2604" 1>&2; exit 1; }
795ca3e5 2605 exit
80992638 2606
795ca3e5
AK
2607fi
2608
80992638 2609 echo $ac_n "checking for rl_completion_matches""... $ac_c" 1>&6
8ce0cbda 2610echo "configure:2611: checking for rl_completion_matches" >&5
80992638
AK
2611if eval "test \"`echo '$''{'ac_cv_func_rl_completion_matches'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
83912faa 2613else
80992638 2614 cat > conftest.$ac_ext <<EOF
8ce0cbda 2615#line 2616 "configure"
80992638 2616#include "confdefs.h"
83912faa 2617/* System header to define __stub macros and hopefully few prototypes,
80992638
AK
2618 which can conflict with char rl_completion_matches(); below. */
2619#include <assert.h>
83912faa
AK
2620/* Override any gcc2 internal prototype to avoid an error. */
2621/* We use char because int might match the return type of a gcc2
80992638
AK
2622 builtin and then its argument prototype would still apply. */
2623char rl_completion_matches();
2624
2625int main() {
2626
83912faa
AK
2627/* The GNU C library defines this for functions which it implements
2628 to always fail with ENOSYS. Some functions are actually named
2629 something starting with __ and the normal name is an alias. */
2630#if defined (__stub_rl_completion_matches) || defined (__stub___rl_completion_matches)
2631choke me
2632#else
80992638 2633rl_completion_matches();
83912faa
AK
2634#endif
2635
80992638
AK
2636; return 0; }
2637EOF
8ce0cbda 2638if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
80992638
AK
2639 rm -rf conftest*
2640 eval "ac_cv_func_rl_completion_matches=yes"
83912faa 2641else
80992638
AK
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 rm -rf conftest*
2645 eval "ac_cv_func_rl_completion_matches=no"
83912faa 2646fi
80992638 2647rm -f conftest*
795ca3e5 2648fi
80992638
AK
2649
2650if eval "test \"`echo '$ac_cv_func_'rl_completion_matches`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
b896caa1 2652 CFLAGS="$CFLAGS -DHAVE_RL_COMPLETION_MATCHES"
80992638
AK
2653else
2654 echo "$ac_t""no" 1>&6
83912faa
AK
2655fi
2656
80992638 2657
69792976
AK
2658fi
2659
80992638 2660################################################################################
69792976
AK
2661echo $ac_n "checking whether to enable internationalisation""... $ac_c" 1>&6
2662# Check whether --enable-nls or --disable-nls was given.
2663if test "${enable_nls+set}" = set; then
2664 enableval="$enable_nls"
2665 \
2666 INTL=yes
2667else
2668 INTL=no
80992638
AK
2669fi
2670
69792976
AK
2671echo "$ac_t""$INTL" 1>&6
2672
2673if test x$INTL = xyes; then
2674 INTL_PACKAGE="lvm2"
2675 # Extract the first word of "msgfmt", so it can be a program name with args.
2676set dummy msgfmt; ac_word=$2
80992638 2677echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8ce0cbda 2678echo "configure:2679: checking for $ac_word" >&5
80992638
AK
2679if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
69792976 2681else
80992638
AK
2682 case "$MSGFMT" in
2683 /*)
69792976
AK
2684 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2685 ;;
80992638
AK
2686 ?:/*)
2687 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
2688 ;;
69792976 2689 *)
80992638
AK
2690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2691 ac_dummy="$PATH"
2692 for ac_dir in $ac_dummy; do
2693 test -z "$ac_dir" && ac_dir=.
2694 if test -f $ac_dir/$ac_word; then
2695 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2696 break
2697 fi
2698 done
2699 IFS="$ac_save_ifs"
69792976
AK
2700 ;;
2701esac
2702fi
80992638 2703MSGFMT="$ac_cv_path_MSGFMT"
69792976 2704if test -n "$MSGFMT"; then
80992638 2705 echo "$ac_t""$MSGFMT" 1>&6
69792976 2706else
80992638 2707 echo "$ac_t""no" 1>&6
69792976
AK
2708fi
2709
2710 if [ "x$MSGFMT" == x ];
80992638
AK
2711 then { echo "configure: error: msgfmt not found in path $PATH
2712 " 1>&2; exit 1; }
2713 exit
69792976
AK
2714 fi;
2715
80992638 2716 # Check whether --with-localedir or --without-localedir was given.
69792976
AK
2717if test "${with_localedir+set}" = set; then
2718 withval="$with_localedir"
80992638 2719 LOCALEDIR="$withval"
69792976 2720else
80992638 2721 LOCALEDIR='${prefix}/share/locale'
83912faa
AK
2722fi
2723
80992638 2724fi
4a7f3eb2 2725
80992638 2726################################################################################
4a7f3eb2
AK
2727# Check whether --with-confdir or --without-confdir was given.
2728if test "${with_confdir+set}" = set; then
2729 withval="$with_confdir"
80992638 2730 CONFDIR="$withval"
4a7f3eb2 2731else
80992638
AK
2732 CONFDIR='/etc'
2733fi
4a7f3eb2 2734
0a62c911
AK
2735
2736# Check whether --with-staticdir or --without-staticdir was given.
2737if test "${with_staticdir+set}" = set; then
2738 withval="$with_staticdir"
80992638 2739 STATICDIR="$withval"
0a62c911 2740else
80992638
AK
2741 STATICDIR='${exec_prefix}/sbin'
2742fi
2743
0a62c911
AK
2744
2745
80992638 2746################################################################################
fae0c576
AK
2747if test "-f VERSION"; then
2748 LVM_VERSION="\"`cat VERSION`\""
2749else
2750 LVM_VERSION="Unknown"
2751fi
2752
80992638 2753################################################################################
fae0c576 2754
83912faa 2755
795ca3e5
AK
2756
2757
2758
2759
2760
2761
5a52dca9 2762
8ef2b021 2763
199e490e 2764
69792976
AK
2765
2766
2767
2768
8106cdd5
AK
2769
2770
2771
2772
2773
d68a82ec 2774
036f273a 2775
7d1552c9 2776
8106cdd5 2777
0a62c911 2778
8106cdd5 2779
4a7f3eb2 2780
4922197a
AK
2781
2782
d8ac0fbc 2783
1a9ea74d 2784
8ce0cbda 2785
d3c8211f
AK
2786
2787
80992638
AK
2788################################################################################
2789trap '' 1 2 15
2790cat > confcache <<\EOF
795ca3e5
AK
2791# This file is a shell script that caches the results of configure
2792# tests run on this system so they can be shared between configure
80992638
AK
2793# scripts and configure runs. It is not useful on other systems.
2794# If it contains results you don't want to keep, you may remove or edit it.
795ca3e5 2795#
80992638
AK
2796# By default, configure uses ./config.cache as the cache file,
2797# creating it if it does not exist already. You can give configure
2798# the --cache-file=FILE option to use a different cache file; that is
2799# what configure does when it calls configure scripts in
2800# subdirectories, so they share the cache.
2801# Giving --cache-file=/dev/null disables caching, for debugging configure.
2802# config.status only pays attention to the cache file if you give it the
2803# --recheck option to rerun configure.
795ca3e5 2804#
80992638 2805EOF
795ca3e5
AK
2806# The following way of writing the cache mishandles newlines in values,
2807# but we know of no workaround that is simple, portable, and efficient.
2808# So, don't put newlines in cache variables' values.
2809# Ultrix sh set writes to stderr and can't be redirected directly,
2810# and sets the high bit in the cache file unless we assign to the vars.
80992638
AK
2811(set) 2>&1 |
2812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2813 *ac_space=\ *)
2814 # `set' does not quote correctly, so add quotes (double-quote substitution
2815 # turns \\\\ into \\, and sed turns \\ into \).
2816 sed -n \
2817 -e "s/'/'\\\\''/g" \
2818 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2819 ;;
2820 *)
2821 # `set' quotes correctly as required by POSIX, so do not add quotes.
2822 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2823 ;;
2824 esac >> confcache
2825if cmp -s $cache_file confcache; then
2826 :
2827else
795ca3e5 2828 if test -w $cache_file; then
80992638
AK
2829 echo "updating cache $cache_file"
2830 cat confcache > $cache_file
795ca3e5
AK
2831 else
2832 echo "not updating unwritable cache $cache_file"
2833 fi
2834fi
2835rm -f confcache
2836
80992638
AK
2837trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2838
795ca3e5
AK
2839test "x$prefix" = xNONE && prefix=$ac_default_prefix
2840# Let make expand exec_prefix.
2841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2842
80992638
AK
2843# Any assignment to VPATH causes Sun make to only execute
2844# the first set of double-colon rules, so remove it if not needed.
2845# If there is a colon in the path, we need to keep it.
795ca3e5 2846if test "x$srcdir" = x.; then
80992638 2847 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
795ca3e5
AK
2848fi
2849
80992638
AK
2850trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2851
795ca3e5
AK
2852# Transform confdefs.h into DEFS.
2853# Protect against shell expansion while executing Makefile rules.
2854# Protect against Makefile macro expansion.
80992638
AK
2855cat > conftest.defs <<\EOF
2856s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2857s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2858s%\[%\\&%g
2859s%\]%\\&%g
2860s%\$%$$%g
2861EOF
2862DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2863rm -f conftest.defs
2864
2865
2866# Without the "./", some shells look in PATH for config.status.
8106cdd5 2867: ${CONFIG_STATUS=./config.status}
80992638
AK
2868
2869echo creating $CONFIG_STATUS
2870rm -f $CONFIG_STATUS
2871cat > $CONFIG_STATUS <<EOF
2872#! /bin/sh
2873# Generated automatically by configure.
795ca3e5 2874# Run this file to recreate the current configuration.
80992638
AK
2875# This directory was configured as follows,
2876# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2877#
2878# $0 $ac_configure_args
2879#
795ca3e5 2880# Compiler output produced by configure, useful for debugging
80992638 2881# configure, is in ./config.log if it exists.
8106cdd5 2882
80992638
AK
2883ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2884for ac_option
8106cdd5 2885do
80992638 2886 case "\$ac_option" in
8106cdd5 2887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
80992638
AK
2888 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2889 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2890 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2891 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2892 exit 0 ;;
2893 -help | --help | --hel | --he | --h)
2894 echo "\$ac_cs_usage"; exit 0 ;;
2895 *) echo "\$ac_cs_usage"; exit 1 ;;
795ca3e5 2896 esac
8106cdd5
AK
2897done
2898
80992638
AK
2899ac_given_srcdir=$srcdir
2900ac_given_INSTALL="$INSTALL"
2901
2902trap 'rm -fr `echo "\
2903Makefile \
2904make.tmpl \
2905daemons/Makefile \
2906daemons/clvmd/Makefile \
2907doc/Makefile \
2908include/Makefile \
2909lib/Makefile \
2910lib/format1/Makefile \
2911lib/format_pool/Makefile \
2912lib/locking/Makefile \
2913lib/mirror/Makefile \
2914lib/snapshot/Makefile \
2915man/Makefile \
2916po/Makefile \
2917tools/Makefile \
2918tools/version.h \
2919tools/fsadm/Makefile \
2920test/mm/Makefile \
2921test/device/Makefile \
2922test/format1/Makefile \
2923test/regex/Makefile \
2924test/filters/Makefile \
2925" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2926EOF
2927cat >> $CONFIG_STATUS <<EOF
2928
2929# Protect against being on the right side of a sed subst in config.status.
2930sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2931 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2932$ac_vpsub
2933$extrasub
2934s%@SHELL@%$SHELL%g
2935s%@CFLAGS@%$CFLAGS%g
2936s%@CPPFLAGS@%$CPPFLAGS%g
2937s%@CXXFLAGS@%$CXXFLAGS%g
2938s%@FFLAGS@%$FFLAGS%g
2939s%@DEFS@%$DEFS%g
2940s%@LDFLAGS@%$LDFLAGS%g
2941s%@LIBS@%$LIBS%g
2942s%@exec_prefix@%$exec_prefix%g
2943s%@prefix@%$prefix%g
2944s%@program_transform_name@%$program_transform_name%g
2945s%@bindir@%$bindir%g
2946s%@sbindir@%$sbindir%g
2947s%@libexecdir@%$libexecdir%g
2948s%@datadir@%$datadir%g
2949s%@sysconfdir@%$sysconfdir%g
2950s%@sharedstatedir@%$sharedstatedir%g
2951s%@localstatedir@%$localstatedir%g
2952s%@libdir@%$libdir%g
2953s%@includedir@%$includedir%g
2954s%@oldincludedir@%$oldincludedir%g
2955s%@infodir@%$infodir%g
2956s%@mandir@%$mandir%g
80992638
AK
2957s%@host@%$host%g
2958s%@host_alias@%$host_alias%g
2959s%@host_cpu@%$host_cpu%g
2960s%@host_vendor@%$host_vendor%g
2961s%@host_os@%$host_os%g
2962s%@target@%$target%g
2963s%@target_alias@%$target_alias%g
2964s%@target_cpu@%$target_cpu%g
2965s%@target_vendor@%$target_vendor%g
2966s%@target_os@%$target_os%g
2967s%@build@%$build%g
2968s%@build_alias@%$build_alias%g
2969s%@build_cpu@%$build_cpu%g
2970s%@build_vendor@%$build_vendor%g
2971s%@build_os@%$build_os%g
8ce0cbda
AK
2972s%@AWK@%$AWK%g
2973s%@CC@%$CC%g
2974s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2975s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2976s%@INSTALL_DATA@%$INSTALL_DATA%g
2977s%@LN_S@%$LN_S%g
2978s%@SET_MAKE@%$SET_MAKE%g
2979s%@RANLIB@%$RANLIB%g
80992638
AK
2980s%@CPP@%$CPP%g
2981s%@MSGFMT@%$MSGFMT%g
2982s%@JOBS@%$JOBS%g
2983s%@STATIC_LINK@%$STATIC_LINK%g
2984s%@LVM1@%$LVM1%g
2985s%@POOL@%$POOL%g
2986s%@SNAPSHOTS@%$SNAPSHOTS%g
2987s%@MIRRORS@%$MIRRORS%g
2988s%@OWNER@%$OWNER%g
2989s%@GROUP@%$GROUP%g
8ce0cbda 2990s%@COPTIMISE_FLAG@%$COPTIMISE_FLAG%g
80992638
AK
2991s%@CLDFLAGS@%$CLDFLAGS%g
2992s%@CLDWHOLEARCHIVE@%$CLDWHOLEARCHIVE%g
2993s%@CLDNOWHOLEARCHIVE@%$CLDNOWHOLEARCHIVE%g
2994s%@LDDEPS@%$LDDEPS%g
2995s%@SOFLAG@%$SOFLAG%g
2996s%@LVM_VERSION@%$LVM_VERSION%g
2997s%@LVM1_FALLBACK@%$LVM1_FALLBACK%g
2998s%@DEBUG@%$DEBUG%g
2999s%@DEVMAPPER@%$DEVMAPPER%g
3000s%@HAVE_LIBDL@%$HAVE_LIBDL%g
3001s%@HAVE_SELINUX@%$HAVE_SELINUX%g
3002s%@CMDLIB@%$CMDLIB%g
3003s%@LOCALEDIR@%$LOCALEDIR%g
3004s%@CONFDIR@%$CONFDIR%g
3005s%@STATICDIR@%$STATICDIR%g
3006s%@INTL_PACKAGE@%$INTL_PACKAGE%g
3007s%@INTL@%$INTL%g
3008s%@CLVMD@%$CLVMD%g
3009s%@CLUSTER@%$CLUSTER%g
3010s%@FSADM@%$FSADM%g
8106cdd5 3011
8106cdd5 3012CEOF
80992638
AK
3013EOF
3014
3015cat >> $CONFIG_STATUS <<\EOF
3016
3017# Split the substitutions into bite-sized pieces for seds with
3018# small command number limits, like on Digital OSF/1 and HP-UX.
3019ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3020ac_file=1 # Number of current file.
3021ac_beg=1 # First line for current file.
3022ac_end=$ac_max_sed_cmds # Line after last line for current file.
3023ac_more_lines=:
3024ac_sed_cmds=""
3025while $ac_more_lines; do
3026 if test $ac_beg -gt 1; then
3027 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3028 else
3029 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3030 fi
3031 if test ! -s conftest.s$ac_file; then
3032 ac_more_lines=false
3033 rm -f conftest.s$ac_file
3034 else
3035 if test -z "$ac_sed_cmds"; then
3036 ac_sed_cmds="sed -f conftest.s$ac_file"
8106cdd5 3037 else
80992638 3038 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8106cdd5 3039 fi
80992638
AK
3040 ac_file=`expr $ac_file + 1`
3041 ac_beg=$ac_end
3042 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8106cdd5 3043 fi
80992638
AK
3044done
3045if test -z "$ac_sed_cmds"; then
3046 ac_sed_cmds=cat
3047fi
3048EOF
3049
3050cat >> $CONFIG_STATUS <<EOF
3051
3052CONFIG_FILES=\${CONFIG_FILES-"\
3053Makefile \
3054make.tmpl \
3055daemons/Makefile \
3056daemons/clvmd/Makefile \
3057doc/Makefile \
3058include/Makefile \
3059lib/Makefile \
3060lib/format1/Makefile \
3061lib/format_pool/Makefile \
3062lib/locking/Makefile \
3063lib/mirror/Makefile \
3064lib/snapshot/Makefile \
3065man/Makefile \
3066po/Makefile \
3067tools/Makefile \
3068tools/version.h \
3069tools/fsadm/Makefile \
3070test/mm/Makefile \
3071test/device/Makefile \
3072test/format1/Makefile \
3073test/regex/Makefile \
3074test/filters/Makefile \
3075"}
3076EOF
3077cat >> $CONFIG_STATUS <<\EOF
3078for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8106cdd5 3079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
80992638
AK
3080 case "$ac_file" in
3081 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3082 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3083 *) ac_file_in="${ac_file}.in" ;;
795ca3e5
AK
3084 esac
3085
80992638
AK
3086 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3087
3088 # Remove last slash and all that follows it. Not all systems have dirname.
3089 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3090 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3091 # The file is in a subdirectory.
3092 test ! -d "$ac_dir" && mkdir "$ac_dir"
3093 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3094 # A "../" for each directory in $ac_dir_suffix.
3095 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8106cdd5 3096 else
80992638
AK
3097 ac_dir_suffix= ac_dots=
3098 fi
8106cdd5 3099
80992638
AK
3100 case "$ac_given_srcdir" in
3101 .) srcdir=.
3102 if test -z "$ac_dots"; then top_srcdir=.
3103 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3104 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8106cdd5 3105 *) # Relative path.
80992638
AK
3106 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3107 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3108 esac
8106cdd5 3109
80992638
AK
3110 case "$ac_given_INSTALL" in
3111 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3112 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3113 esac
8106cdd5 3114
80992638
AK
3115 echo creating "$ac_file"
3116 rm -f "$ac_file"
3117 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3118 case "$ac_file" in
3119 *Makefile*) ac_comsub="1i\\
3120# $configure_input" ;;
3121 *) ac_comsub= ;;
795ca3e5
AK
3122 esac
3123
80992638
AK
3124 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3125 sed -e "$ac_comsub
3126s%@configure_input@%$configure_input%g
3127s%@srcdir@%$srcdir%g
3128s%@top_srcdir@%$top_srcdir%g
3129s%@INSTALL@%$INSTALL%g
3130" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3131fi; done
3132rm -f conftest.s*
795ca3e5 3133
80992638
AK
3134EOF
3135cat >> $CONFIG_STATUS <<EOF
795ca3e5 3136
80992638
AK
3137EOF
3138cat >> $CONFIG_STATUS <<\EOF
795ca3e5 3139
80992638
AK
3140exit 0
3141EOF
795ca3e5 3142chmod +x $CONFIG_STATUS
80992638
AK
3143rm -fr confdefs* $ac_clean_files
3144test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
795ca3e5 3145
2dc95e1c
AK
3146
3147if test x$ODIRECT != xyes; then
3148 echo
3149 echo Warning: O_DIRECT disabled.
3150 echo Use of pvmove may cause machine to lock up under low memory conditions.
3151 echo
3152fi
809fae91
AK
3153
3154if test x$FSADM == xyes; then
3155 echo
3156 echo Warning: fsadm support is untested.
3157 echo
3158fi
This page took 0.388619 seconds and 5 git commands to generate.