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