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