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