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