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