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