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