]>
Commit | Line | Data |
---|---|---|
8fe44445 | 1 | #! /bin/sh |
885824d3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
9dcb30d1 | 3 | # Generated by Autoconf 2.52 for Splint 3.0.1.1. |
8fe44445 | 4 | # |
4dd72714 | 5 | # Report bugs to <splint-bug@splint.org>. |
8fe44445 | 6 | # |
7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
8 | # Free Software Foundation, Inc. | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
885824d3 | 11 | |
8fe44445 | 12 | # Avoid depending upon Character Ranges. |
13 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16 | as_cr_digits='0123456789' | |
17 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
885824d3 | 18 | |
8fe44445 | 19 | # Sed expression to map a string onto a valid variable name. |
20 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
885824d3 | 21 | |
8fe44445 | 22 | # Sed expression to map a string onto a valid CPP name. |
23 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
885824d3 | 24 | |
8fe44445 | 25 | # Be Bourne compatible |
26 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
27 | emulate sh | |
28 | NULLCMD=: | |
29 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
30 | set -o posix | |
31 | fi | |
885824d3 | 32 | |
8fe44445 | 33 | # Name of the executable. |
34 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
885824d3 | 35 | |
8fe44445 | 36 | if expr a : '\(a\)' >/dev/null 2>&1; then |
37 | as_expr=expr | |
38 | else | |
39 | as_expr=false | |
40 | fi | |
41 | ||
42 | rm -f conf$$ conf$$.exe conf$$.file | |
43 | echo >conf$$.file | |
44 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
45 | # We could just check for DJGPP; but this test a) works b) is more generic | |
46 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
47 | if test -f conf$$.exe; then | |
48 | # Don't use ln at all; we don't have any links | |
49 | as_ln_s='cp -p' | |
885824d3 | 50 | else |
8fe44445 | 51 | as_ln_s='ln -s' |
52 | fi | |
53 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
54 | as_ln_s=ln | |
55 | else | |
56 | as_ln_s='cp -p' | |
57 | fi | |
58 | rm -f conf$$ conf$$.exe conf$$.file | |
59 | ||
60 | as_executable_p="test -f" | |
61 | ||
62 | # Support unset when possible. | |
63 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
64 | as_unset=unset | |
65 | else | |
66 | as_unset=false | |
67 | fi | |
68 | ||
69 | # NLS nuisances. | |
70 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
71 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
72 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
73 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
74 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
75 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
76 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
77 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
78 | ||
79 | # IFS | |
80 | # We need space, tab and new line, in precisely that order. | |
81 | as_nl=' | |
82 | ' | |
83 | IFS=" $as_nl" | |
84 | ||
85 | # CDPATH. | |
86 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
87 | ||
88 | # Name of the host. | |
89 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
90 | # so uname gets run too. | |
91 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
92 | ||
93 | exec 6>&1 | |
94 | ||
95 | # | |
96 | # Initializations. | |
97 | # | |
98 | ac_default_prefix=/usr/local | |
99 | cross_compiling=no | |
100 | subdirs= | |
101 | MFLAGS= MAKEFLAGS= | |
102 | SHELL=${CONFIG_SHELL-/bin/sh} | |
103 | ||
104 | # Maximum number of lines to put in a shell here document. | |
105 | # This variable seems obsolete. It should probably be removed, and | |
106 | # only ac_max_sed_lines should be used. | |
107 | : ${ac_max_here_lines=38} | |
108 | ||
109 | ac_unique_file="src/lclinit.c" | |
110 | ||
111 | # Initialize some variables set by options. | |
112 | ac_init_help= | |
113 | ac_init_version=false | |
114 | # The variables have the same names as the options, with | |
115 | # dashes changed to underlines. | |
116 | cache_file=/dev/null | |
117 | exec_prefix=NONE | |
118 | no_create= | |
119 | no_recursion= | |
120 | prefix=NONE | |
121 | program_prefix=NONE | |
122 | program_suffix=NONE | |
123 | program_transform_name=s,x,x, | |
124 | silent= | |
125 | site= | |
126 | srcdir= | |
127 | verbose= | |
128 | x_includes=NONE | |
129 | x_libraries=NONE | |
130 | ||
131 | # Installation directory options. | |
132 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
133 | # and all the variables that are supposed to be based on exec_prefix | |
134 | # by default will actually change. | |
135 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
136 | bindir='${exec_prefix}/bin' | |
137 | sbindir='${exec_prefix}/sbin' | |
138 | libexecdir='${exec_prefix}/libexec' | |
139 | datadir='${prefix}/share' | |
140 | sysconfdir='${prefix}/etc' | |
141 | sharedstatedir='${prefix}/com' | |
142 | localstatedir='${prefix}/var' | |
143 | libdir='${exec_prefix}/lib' | |
144 | includedir='${prefix}/include' | |
145 | oldincludedir='/usr/include' | |
146 | infodir='${prefix}/info' | |
147 | mandir='${prefix}/man' | |
148 | ||
149 | # Identity of this package. | |
11db3170 | 150 | PACKAGE_NAME='Splint' |
151 | PACKAGE_TARNAME='splint' | |
9dcb30d1 | 152 | PACKAGE_VERSION='3.0.1.1' |
153 | PACKAGE_STRING='Splint 3.0.1.1' | |
4dd72714 | 154 | PACKAGE_BUGREPORT='splint-bug@splint.org' |
8fe44445 | 155 | |
156 | ac_prev= | |
157 | for ac_option | |
158 | do | |
159 | # If the previous option needs an argument, assign it. | |
160 | if test -n "$ac_prev"; then | |
161 | eval "$ac_prev=\$ac_option" | |
162 | ac_prev= | |
163 | continue | |
885824d3 | 164 | fi |
8fe44445 | 165 | |
166 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
167 | ||
168 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
169 | ||
170 | case $ac_option in | |
171 | ||
172 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
173 | ac_prev=bindir ;; | |
174 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
175 | bindir=$ac_optarg ;; | |
176 | ||
177 | -build | --build | --buil | --bui | --bu) | |
178 | ac_prev=build_alias ;; | |
179 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
180 | build_alias=$ac_optarg ;; | |
181 | ||
182 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
183 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
184 | ac_prev=cache_file ;; | |
185 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
186 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
187 | cache_file=$ac_optarg ;; | |
188 | ||
189 | --config-cache | -C) | |
190 | cache_file=config.cache ;; | |
191 | ||
192 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
193 | ac_prev=datadir ;; | |
194 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
195 | | --da=*) | |
196 | datadir=$ac_optarg ;; | |
197 | ||
198 | -disable-* | --disable-*) | |
199 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
200 | # Reject names that are not valid shell variable names. | |
201 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
202 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
203 | { (exit 1); exit 1; }; } | |
204 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
205 | eval "enable_$ac_feature=no" ;; | |
206 | ||
207 | -enable-* | --enable-*) | |
208 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
209 | # Reject names that are not valid shell variable names. | |
210 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
211 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
212 | { (exit 1); exit 1; }; } | |
213 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
214 | case $ac_option in | |
215 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
216 | *) ac_optarg=yes ;; | |
217 | esac | |
218 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
219 | ||
220 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
221 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
222 | | --exec | --exe | --ex) | |
223 | ac_prev=exec_prefix ;; | |
224 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
225 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
226 | | --exec=* | --exe=* | --ex=*) | |
227 | exec_prefix=$ac_optarg ;; | |
228 | ||
229 | -gas | --gas | --ga | --g) | |
230 | # Obsolete; use --with-gas. | |
231 | with_gas=yes ;; | |
232 | ||
233 | -help | --help | --hel | --he | -h) | |
234 | ac_init_help=long ;; | |
235 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
236 | ac_init_help=recursive ;; | |
237 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
238 | ac_init_help=short ;; | |
239 | ||
240 | -host | --host | --hos | --ho) | |
241 | ac_prev=host_alias ;; | |
242 | -host=* | --host=* | --hos=* | --ho=*) | |
243 | host_alias=$ac_optarg ;; | |
244 | ||
245 | -includedir | --includedir | --includedi | --included | --include \ | |
246 | | --includ | --inclu | --incl | --inc) | |
247 | ac_prev=includedir ;; | |
248 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
249 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
250 | includedir=$ac_optarg ;; | |
251 | ||
252 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
253 | ac_prev=infodir ;; | |
254 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
255 | infodir=$ac_optarg ;; | |
256 | ||
257 | -libdir | --libdir | --libdi | --libd) | |
258 | ac_prev=libdir ;; | |
259 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
260 | libdir=$ac_optarg ;; | |
261 | ||
262 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
263 | | --libexe | --libex | --libe) | |
264 | ac_prev=libexecdir ;; | |
265 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
266 | | --libexe=* | --libex=* | --libe=*) | |
267 | libexecdir=$ac_optarg ;; | |
268 | ||
269 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
270 | | --localstate | --localstat | --localsta | --localst \ | |
271 | | --locals | --local | --loca | --loc | --lo) | |
272 | ac_prev=localstatedir ;; | |
273 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
274 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
275 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
276 | localstatedir=$ac_optarg ;; | |
277 | ||
278 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
279 | ac_prev=mandir ;; | |
280 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
281 | mandir=$ac_optarg ;; | |
282 | ||
283 | -nfp | --nfp | --nf) | |
284 | # Obsolete; use --without-fp. | |
285 | with_fp=no ;; | |
286 | ||
287 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
288 | | --no-cr | --no-c) | |
289 | no_create=yes ;; | |
290 | ||
291 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
292 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
293 | no_recursion=yes ;; | |
294 | ||
295 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
296 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
297 | | --oldin | --oldi | --old | --ol | --o) | |
298 | ac_prev=oldincludedir ;; | |
299 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
300 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
301 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
302 | oldincludedir=$ac_optarg ;; | |
303 | ||
304 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
305 | ac_prev=prefix ;; | |
306 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
307 | prefix=$ac_optarg ;; | |
308 | ||
309 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
310 | | --program-pre | --program-pr | --program-p) | |
311 | ac_prev=program_prefix ;; | |
312 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
313 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
314 | program_prefix=$ac_optarg ;; | |
315 | ||
316 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
317 | | --program-suf | --program-su | --program-s) | |
318 | ac_prev=program_suffix ;; | |
319 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
320 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
321 | program_suffix=$ac_optarg ;; | |
322 | ||
323 | -program-transform-name | --program-transform-name \ | |
324 | | --program-transform-nam | --program-transform-na \ | |
325 | | --program-transform-n | --program-transform- \ | |
326 | | --program-transform | --program-transfor \ | |
327 | | --program-transfo | --program-transf \ | |
328 | | --program-trans | --program-tran \ | |
329 | | --progr-tra | --program-tr | --program-t) | |
330 | ac_prev=program_transform_name ;; | |
331 | -program-transform-name=* | --program-transform-name=* \ | |
332 | | --program-transform-nam=* | --program-transform-na=* \ | |
333 | | --program-transform-n=* | --program-transform-=* \ | |
334 | | --program-transform=* | --program-transfor=* \ | |
335 | | --program-transfo=* | --program-transf=* \ | |
336 | | --program-trans=* | --program-tran=* \ | |
337 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
338 | program_transform_name=$ac_optarg ;; | |
339 | ||
340 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
341 | | -silent | --silent | --silen | --sile | --sil) | |
342 | silent=yes ;; | |
343 | ||
344 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
345 | ac_prev=sbindir ;; | |
346 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
347 | | --sbi=* | --sb=*) | |
348 | sbindir=$ac_optarg ;; | |
349 | ||
350 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
351 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
352 | | --sharedst | --shareds | --shared | --share | --shar \ | |
353 | | --sha | --sh) | |
354 | ac_prev=sharedstatedir ;; | |
355 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
356 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
357 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
358 | | --sha=* | --sh=*) | |
359 | sharedstatedir=$ac_optarg ;; | |
360 | ||
361 | -site | --site | --sit) | |
362 | ac_prev=site ;; | |
363 | -site=* | --site=* | --sit=*) | |
364 | site=$ac_optarg ;; | |
365 | ||
366 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
367 | ac_prev=srcdir ;; | |
368 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
369 | srcdir=$ac_optarg ;; | |
370 | ||
371 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
372 | | --syscon | --sysco | --sysc | --sys | --sy) | |
373 | ac_prev=sysconfdir ;; | |
374 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
375 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
376 | sysconfdir=$ac_optarg ;; | |
377 | ||
378 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
379 | ac_prev=target_alias ;; | |
380 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
381 | target_alias=$ac_optarg ;; | |
382 | ||
383 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
384 | verbose=yes ;; | |
385 | ||
386 | -version | --version | --versio | --versi | --vers | -V) | |
387 | ac_init_version=: ;; | |
388 | ||
389 | -with-* | --with-*) | |
390 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
391 | # Reject names that are not valid shell variable names. | |
392 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
393 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
394 | { (exit 1); exit 1; }; } | |
395 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
396 | case $ac_option in | |
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
398 | *) ac_optarg=yes ;; | |
399 | esac | |
400 | eval "with_$ac_package='$ac_optarg'" ;; | |
401 | ||
402 | -without-* | --without-*) | |
403 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
404 | # Reject names that are not valid shell variable names. | |
405 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
406 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
407 | { (exit 1); exit 1; }; } | |
408 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
409 | eval "with_$ac_package=no" ;; | |
410 | ||
411 | --x) | |
412 | # Obsolete; use --with-x. | |
413 | with_x=yes ;; | |
414 | ||
415 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
416 | | --x-incl | --x-inc | --x-in | --x-i) | |
417 | ac_prev=x_includes ;; | |
418 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
419 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
420 | x_includes=$ac_optarg ;; | |
421 | ||
422 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
423 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
424 | ac_prev=x_libraries ;; | |
425 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
426 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
427 | x_libraries=$ac_optarg ;; | |
428 | ||
429 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
430 | Try \`$0 --help' for more information." >&2 | |
431 | { (exit 1); exit 1; }; } | |
432 | ;; | |
433 | ||
434 | *=*) | |
435 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
436 | # Reject names that are not valid shell variable names. | |
437 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
438 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
439 | { (exit 1); exit 1; }; } | |
440 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
441 | eval "$ac_envvar='$ac_optarg'" | |
442 | export $ac_envvar ;; | |
443 | ||
444 | *) | |
445 | # FIXME: should be removed in autoconf 3.0. | |
446 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
447 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
448 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
449 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
450 | ;; | |
451 | ||
452 | esac | |
453 | done | |
454 | ||
455 | if test -n "$ac_prev"; then | |
456 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
457 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
458 | { (exit 1); exit 1; }; } | |
459 | fi | |
460 | ||
461 | # Be sure to have absolute paths. | |
462 | for ac_var in exec_prefix prefix | |
463 | do | |
464 | eval ac_val=$`echo $ac_var` | |
465 | case $ac_val in | |
466 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
467 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
468 | { (exit 1); exit 1; }; };; | |
469 | esac | |
470 | done | |
471 | ||
472 | # Be sure to have absolute paths. | |
473 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
474 | localstatedir libdir includedir oldincludedir infodir mandir | |
475 | do | |
476 | eval ac_val=$`echo $ac_var` | |
477 | case $ac_val in | |
478 | [\\/$]* | ?:[\\/]* ) ;; | |
479 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
480 | { (exit 1); exit 1; }; };; | |
481 | esac | |
885824d3 | 482 | done |
483 | ||
8fe44445 | 484 | # There might be people who depend on the old broken behavior: `$host' |
485 | # used to hold the argument of --host etc. | |
486 | build=$build_alias | |
487 | host=$host_alias | |
488 | target=$target_alias | |
885824d3 | 489 | |
8fe44445 | 490 | # FIXME: should be removed in autoconf 3.0. |
491 | if test "x$host_alias" != x; then | |
492 | if test "x$build_alias" = x; then | |
493 | cross_compiling=maybe | |
494 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
495 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
496 | elif test "x$build_alias" != "x$host_alias"; then | |
497 | cross_compiling=yes | |
498 | fi | |
885824d3 | 499 | fi |
500 | ||
8fe44445 | 501 | ac_tool_prefix= |
502 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
885824d3 | 503 | |
8fe44445 | 504 | test "$silent" = yes && exec 6>/dev/null |
885824d3 | 505 | |
506 | # Find the source files, if location was not specified. | |
507 | if test -z "$srcdir"; then | |
8fe44445 | 508 | ac_srcdir_defaulted=yes |
509 | # Try the directory containing this script, then its parent. | |
510 | ac_prog=$0 | |
511 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
512 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
513 | srcdir=$ac_confdir | |
514 | if test ! -r $srcdir/$ac_unique_file; then | |
885824d3 | 515 | srcdir=.. |
516 | fi | |
8fe44445 | 517 | else |
518 | ac_srcdir_defaulted=no | |
885824d3 | 519 | fi |
8fe44445 | 520 | if test ! -r $srcdir/$ac_unique_file; then |
521 | if test "$ac_srcdir_defaulted" = yes; then | |
522 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 | |
523 | { (exit 1); exit 1; }; } | |
885824d3 | 524 | else |
8fe44445 | 525 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
526 | { (exit 1); exit 1; }; } | |
885824d3 | 527 | fi |
885824d3 | 528 | fi |
8fe44445 | 529 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
530 | ac_env_build_alias_set=${build_alias+set} | |
531 | ac_env_build_alias_value=$build_alias | |
532 | ac_cv_env_build_alias_set=${build_alias+set} | |
533 | ac_cv_env_build_alias_value=$build_alias | |
534 | ac_env_host_alias_set=${host_alias+set} | |
535 | ac_env_host_alias_value=$host_alias | |
536 | ac_cv_env_host_alias_set=${host_alias+set} | |
537 | ac_cv_env_host_alias_value=$host_alias | |
538 | ac_env_target_alias_set=${target_alias+set} | |
539 | ac_env_target_alias_value=$target_alias | |
540 | ac_cv_env_target_alias_set=${target_alias+set} | |
541 | ac_cv_env_target_alias_value=$target_alias | |
8fe44445 | 542 | ac_env_CC_set=${CC+set} |
543 | ac_env_CC_value=$CC | |
544 | ac_cv_env_CC_set=${CC+set} | |
545 | ac_cv_env_CC_value=$CC | |
546 | ac_env_CFLAGS_set=${CFLAGS+set} | |
547 | ac_env_CFLAGS_value=$CFLAGS | |
548 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
549 | ac_cv_env_CFLAGS_value=$CFLAGS | |
c1dda563 | 550 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
551 | ac_env_LDFLAGS_value=$LDFLAGS | |
552 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
553 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
554 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
555 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
556 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
557 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
8fe44445 | 558 | ac_env_CPP_set=${CPP+set} |
559 | ac_env_CPP_value=$CPP | |
560 | ac_cv_env_CPP_set=${CPP+set} | |
561 | ac_cv_env_CPP_value=$CPP | |
885824d3 | 562 | |
8fe44445 | 563 | # |
564 | # Report the --help message. | |
565 | # | |
566 | if test "$ac_init_help" = "long"; then | |
567 | # Omit some internal or obsolete options to make the list less imposing. | |
568 | # This message is too long to be a string in the A/UX 3.1 sh. | |
569 | cat <<EOF | |
9dcb30d1 | 570 | \`configure' configures Splint 3.0.1.1 to adapt to many kinds of systems. |
885824d3 | 571 | |
8fe44445 | 572 | Usage: $0 [OPTION]... [VAR=VALUE]... |
885824d3 | 573 | |
8fe44445 | 574 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
575 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
576 | ||
577 | Defaults for the options are specified in brackets. | |
578 | ||
579 | Configuration: | |
580 | -h, --help display this help and exit | |
581 | --help=short display options specific to this package | |
582 | --help=recursive display the short help of all the included packages | |
583 | -V, --version display version information and exit | |
584 | -q, --quiet, --silent do not print \`checking...' messages | |
585 | --cache-file=FILE cache test results in FILE [disabled] | |
586 | -C, --config-cache alias for \`--cache-file=config.cache' | |
587 | -n, --no-create do not create output files | |
588 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
589 | ||
590 | EOF | |
591 | ||
592 | cat <<EOF | |
593 | Installation directories: | |
594 | --prefix=PREFIX install architecture-independent files in PREFIX | |
595 | [$ac_default_prefix] | |
596 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
597 | [PREFIX] | |
598 | ||
599 | By default, \`make install' will install all the files in | |
600 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
601 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
602 | for instance \`--prefix=\$HOME'. | |
603 | ||
604 | For better control, use the options below. | |
605 | ||
606 | Fine tuning of the installation directories: | |
607 | --bindir=DIR user executables [EPREFIX/bin] | |
608 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
609 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
610 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
611 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
612 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
613 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
614 | --libdir=DIR object code libraries [EPREFIX/lib] | |
615 | --includedir=DIR C header files [PREFIX/include] | |
616 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
617 | --infodir=DIR info documentation [PREFIX/info] | |
618 | --mandir=DIR man documentation [PREFIX/man] | |
619 | EOF | |
620 | ||
621 | cat <<\EOF | |
622 | ||
623 | Program names: | |
624 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
625 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
626 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
627 | ||
628 | System types: | |
629 | --build=BUILD configure for building on BUILD [guessed] | |
630 | --host=HOST build programs to run on HOST [BUILD] | |
885824d3 | 631 | EOF |
885824d3 | 632 | fi |
885824d3 | 633 | |
8fe44445 | 634 | if test -n "$ac_init_help"; then |
635 | case $ac_init_help in | |
9dcb30d1 | 636 | short | recursive ) echo "Configuration of Splint 3.0.1.1:";; |
8fe44445 | 637 | esac |
638 | cat <<\EOF | |
639 | ||
640 | Optional Features: | |
641 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
642 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
643 | --disable-dependency-tracking Speeds up one-time builds | |
644 | --enable-dependency-tracking Do not reject slow dependency extractors | |
645 | ||
646 | Optional Packages: | |
647 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
648 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
649 | --without-lcl don't include support for LCL files | |
650 | ||
651 | Some influential environment variables: | |
c1dda563 | 652 | CC C compiler command |
653 | CFLAGS C compiler flags | |
8fe44445 | 654 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
655 | nonstandard directory <lib dir> | |
656 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
657 | headers in a nonstandard directory <include dir> | |
8fe44445 | 658 | CPP C preprocessor |
659 | ||
660 | Use these variables to override the choices made by `configure' or to help | |
661 | it to find libraries and programs with nonstandard names/locations. | |
662 | ||
4dd72714 | 663 | Report bugs to <splint-bug@splint.org>. |
8fe44445 | 664 | EOF |
885824d3 | 665 | fi |
666 | ||
8fe44445 | 667 | if test "$ac_init_help" = "recursive"; then |
668 | # If there are subdirs, report their specific --help. | |
669 | ac_popdir=`pwd` | |
670 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
671 | cd $ac_subdir | |
672 | # A "../" for each directory in /$ac_subdir. | |
673 | ac_dots=`echo $ac_subdir | | |
674 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
885824d3 | 675 | |
8fe44445 | 676 | case $srcdir in |
677 | .) # No --srcdir option. We are building in place. | |
678 | ac_sub_srcdir=$srcdir ;; | |
679 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
680 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
681 | *) # Relative path. | |
682 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
683 | esac | |
684 | ||
685 | # Check for guested configure; otherwise get Cygnus style configure. | |
686 | if test -f $ac_sub_srcdir/configure.gnu; then | |
687 | echo | |
688 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
689 | elif test -f $ac_sub_srcdir/configure; then | |
690 | echo | |
691 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
692 | elif test -f $ac_sub_srcdir/configure.ac || | |
693 | test -f $ac_sub_srcdir/configure.in; then | |
694 | echo | |
695 | $ac_configure --help | |
696 | else | |
697 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
885824d3 | 698 | fi |
8fe44445 | 699 | cd $ac_popdir |
885824d3 | 700 | done |
885824d3 | 701 | fi |
702 | ||
8fe44445 | 703 | test -n "$ac_init_help" && exit 0 |
704 | if $ac_init_version; then | |
705 | cat <<\EOF | |
9dcb30d1 | 706 | Splint configure 3.0.1.1 |
8fe44445 | 707 | generated by GNU Autoconf 2.52 |
885824d3 | 708 | |
8fe44445 | 709 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
710 | Free Software Foundation, Inc. | |
711 | This configure script is free software; the Free Software Foundation | |
712 | gives unlimited permission to copy, distribute and modify it. | |
885824d3 | 713 | EOF |
8fe44445 | 714 | exit 0 |
885824d3 | 715 | fi |
8fe44445 | 716 | exec 5>config.log |
717 | cat >&5 <<EOF | |
718 | This file contains any messages produced by compilers while | |
719 | running configure, to aid debugging if configure makes a mistake. | |
720 | ||
9dcb30d1 | 721 | It was created by Splint $as_me 3.0.1.1, which was |
8fe44445 | 722 | generated by GNU Autoconf 2.52. Invocation command line was |
723 | ||
724 | $ $0 $@ | |
725 | ||
726 | EOF | |
727 | { | |
728 | cat <<_ASUNAME | |
729 | ## ---------- ## | |
730 | ## Platform. ## | |
731 | ## ---------- ## | |
732 | ||
733 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
734 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
735 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
736 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
737 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
738 | ||
739 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
740 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
741 | ||
742 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
743 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
744 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
745 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
746 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
747 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
748 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
749 | ||
750 | PATH = $PATH | |
751 | ||
752 | _ASUNAME | |
753 | } >&5 | |
754 | ||
755 | cat >&5 <<EOF | |
756 | ## ------------ ## | |
757 | ## Core tests. ## | |
758 | ## ------------ ## | |
759 | ||
760 | EOF | |
761 | ||
762 | # Keep a trace of the command line. | |
763 | # Strip out --no-create and --no-recursion so they do not pile up. | |
764 | # Also quote any args containing shell meta-characters. | |
765 | ac_configure_args= | |
766 | ac_sep= | |
767 | for ac_arg | |
768 | do | |
769 | case $ac_arg in | |
770 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
771 | | --no-cr | --no-c) ;; | |
772 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
773 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
774 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
775 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
776 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
777 | ac_sep=" " ;; | |
778 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
779 | ac_sep=" " ;; | |
780 | esac | |
781 | # Get rid of the leading space. | |
782 | done | |
783 | ||
784 | # When interrupted or exit'd, cleanup temporary files, and complete | |
785 | # config.log. We remove comments because anyway the quotes in there | |
786 | # would cause problems or look ugly. | |
787 | trap 'exit_status=$? | |
788 | # Save into config.log some information that might help in debugging. | |
789 | echo >&5 | |
790 | echo "## ----------------- ##" >&5 | |
791 | echo "## Cache variables. ##" >&5 | |
792 | echo "## ----------------- ##" >&5 | |
793 | echo >&5 | |
794 | # The following way of writing the cache mishandles newlines in values, | |
795 | { | |
796 | (set) 2>&1 | | |
797 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
798 | *ac_space=\ *) | |
799 | sed -n \ | |
800 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
801 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
802 | ;; | |
803 | *) | |
804 | sed -n \ | |
805 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
806 | ;; | |
807 | esac; | |
808 | } >&5 | |
809 | sed "/^$/d" confdefs.h >conftest.log | |
810 | if test -s conftest.log; then | |
811 | echo >&5 | |
812 | echo "## ------------ ##" >&5 | |
813 | echo "## confdefs.h. ##" >&5 | |
814 | echo "## ------------ ##" >&5 | |
815 | echo >&5 | |
816 | cat conftest.log >&5 | |
817 | fi | |
818 | (echo; echo) >&5 | |
819 | test "$ac_signal" != 0 && | |
820 | echo "$as_me: caught signal $ac_signal" >&5 | |
821 | echo "$as_me: exit $exit_status" >&5 | |
822 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
823 | exit $exit_status | |
824 | ' 0 | |
825 | for ac_signal in 1 2 13 15; do | |
826 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
827 | done | |
828 | ac_signal=0 | |
829 | ||
830 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
831 | rm -rf conftest* confdefs.h | |
832 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
833 | echo >confdefs.h | |
885824d3 | 834 | |
8fe44445 | 835 | # Let the site file select an alternate cache file if it wants to. |
836 | # Prefer explicitly selected file to automatically selected ones. | |
837 | if test -z "$CONFIG_SITE"; then | |
838 | if test "x$prefix" != xNONE; then | |
839 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
840 | else | |
841 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
842 | fi | |
885824d3 | 843 | fi |
8fe44445 | 844 | for ac_site_file in $CONFIG_SITE; do |
845 | if test -r "$ac_site_file"; then | |
c1dda563 | 846 | { echo "$as_me:846: loading site script $ac_site_file" >&5 |
8fe44445 | 847 | echo "$as_me: loading site script $ac_site_file" >&6;} |
848 | cat "$ac_site_file" >&5 | |
849 | . "$ac_site_file" | |
850 | fi | |
851 | done | |
885824d3 | 852 | |
8fe44445 | 853 | if test -r "$cache_file"; then |
854 | # Some versions of bash will fail to source /dev/null (special | |
855 | # files actually), so we avoid doing that. | |
856 | if test -f "$cache_file"; then | |
c1dda563 | 857 | { echo "$as_me:857: loading cache $cache_file" >&5 |
8fe44445 | 858 | echo "$as_me: loading cache $cache_file" >&6;} |
859 | case $cache_file in | |
860 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
861 | *) . ./$cache_file;; | |
862 | esac | |
863 | fi | |
885824d3 | 864 | else |
c1dda563 | 865 | { echo "$as_me:865: creating cache $cache_file" >&5 |
8fe44445 | 866 | echo "$as_me: creating cache $cache_file" >&6;} |
867 | >$cache_file | |
885824d3 | 868 | fi |
885824d3 | 869 | |
8fe44445 | 870 | # Check that the precious variables saved in the cache have kept the same |
871 | # value. | |
872 | ac_cache_corrupted=false | |
873 | for ac_var in `(set) 2>&1 | | |
874 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
875 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
876 | eval ac_new_set=\$ac_env_${ac_var}_set | |
877 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
878 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
879 | case $ac_old_set,$ac_new_set in | |
880 | set,) | |
c1dda563 | 881 | { echo "$as_me:881: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8fe44445 | 882 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
883 | ac_cache_corrupted=: ;; | |
884 | ,set) | |
c1dda563 | 885 | { echo "$as_me:885: error: \`$ac_var' was not set in the previous run" >&5 |
8fe44445 | 886 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
887 | ac_cache_corrupted=: ;; | |
888 | ,);; | |
885824d3 | 889 | *) |
8fe44445 | 890 | if test "x$ac_old_val" != "x$ac_new_val"; then |
c1dda563 | 891 | { echo "$as_me:891: error: \`$ac_var' has changed since the previous run:" >&5 |
8fe44445 | 892 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
c1dda563 | 893 | { echo "$as_me:893: former value: $ac_old_val" >&5 |
8fe44445 | 894 | echo "$as_me: former value: $ac_old_val" >&2;} |
c1dda563 | 895 | { echo "$as_me:895: current value: $ac_new_val" >&5 |
8fe44445 | 896 | echo "$as_me: current value: $ac_new_val" >&2;} |
897 | ac_cache_corrupted=: | |
898 | fi;; | |
899 | esac | |
900 | # Pass precious variables to config.status. It doesn't matter if | |
901 | # we pass some twice (in addition to the command line arguments). | |
902 | if test "$ac_new_set" = set; then | |
903 | case $ac_new_val in | |
904 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
905 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
906 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
885824d3 | 907 | ;; |
8fe44445 | 908 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
909 | ;; | |
885824d3 | 910 | esac |
8fe44445 | 911 | fi |
912 | done | |
913 | if $ac_cache_corrupted; then | |
c1dda563 | 914 | { echo "$as_me:914: error: changes in the environment can compromise the build" >&5 |
8fe44445 | 915 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c1dda563 | 916 | { { echo "$as_me:916: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
8fe44445 | 917 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
918 | { (exit 1); exit 1; }; } | |
885824d3 | 919 | fi |
885824d3 | 920 | |
8fe44445 | 921 | ac_ext=c |
922 | ac_cpp='$CPP $CPPFLAGS' | |
923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
885824d3 | 926 | |
8fe44445 | 927 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
928 | *c*,-n*) ECHO_N= ECHO_C=' | |
929 | ' ECHO_T=' ' ;; | |
930 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
931 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
932 | esac | |
933 | echo "#! $SHELL" >conftest.sh | |
934 | echo "exit 0" >>conftest.sh | |
935 | chmod +x conftest.sh | |
c1dda563 | 936 | if { (echo "$as_me:936: PATH=\".;.\"; conftest.sh") >&5 |
8fe44445 | 937 | (PATH=".;."; conftest.sh) 2>&5 |
938 | ac_status=$? | |
c1dda563 | 939 | echo "$as_me:939: \$? = $ac_status" >&5 |
8fe44445 | 940 | (exit $ac_status); }; then |
941 | ac_path_separator=';' | |
942 | else | |
943 | ac_path_separator=: | |
885824d3 | 944 | fi |
8fe44445 | 945 | PATH_SEPARATOR="$ac_path_separator" |
946 | rm -f conftest.sh | |
885824d3 | 947 | |
8fe44445 | 948 | ac_aux_dir= |
949 | for ac_dir in config $srcdir/config; do | |
950 | if test -f $ac_dir/install-sh; then | |
951 | ac_aux_dir=$ac_dir | |
952 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
953 | break | |
954 | elif test -f $ac_dir/install.sh; then | |
955 | ac_aux_dir=$ac_dir | |
956 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
957 | break | |
958 | elif test -f $ac_dir/shtool; then | |
959 | ac_aux_dir=$ac_dir | |
960 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
961 | break | |
962 | fi | |
963 | done | |
964 | if test -z "$ac_aux_dir"; then | |
c1dda563 | 965 | { { echo "$as_me:965: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
8fe44445 | 966 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} |
967 | { (exit 1); exit 1; }; } | |
885824d3 | 968 | fi |
8fe44445 | 969 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
970 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
971 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
885824d3 | 972 | |
8fe44445 | 973 | # Make sure we can run config.sub. |
974 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
c1dda563 | 975 | { { echo "$as_me:975: error: cannot run $ac_config_sub" >&5 |
8fe44445 | 976 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
977 | { (exit 1); exit 1; }; } | |
885824d3 | 978 | |
c1dda563 | 979 | echo "$as_me:979: checking build system type" >&5 |
8fe44445 | 980 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
981 | if test "${ac_cv_build+set}" = set; then | |
982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 983 | else |
8fe44445 | 984 | ac_cv_build_alias=$build_alias |
985 | test -z "$ac_cv_build_alias" && | |
986 | ac_cv_build_alias=`$ac_config_guess` | |
987 | test -z "$ac_cv_build_alias" && | |
c1dda563 | 988 | { { echo "$as_me:988: error: cannot guess build type; you must specify one" >&5 |
8fe44445 | 989 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
990 | { (exit 1); exit 1; }; } | |
991 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
c1dda563 | 992 | { { echo "$as_me:992: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
8fe44445 | 993 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
994 | { (exit 1); exit 1; }; } | |
885824d3 | 995 | |
996 | fi | |
c1dda563 | 997 | echo "$as_me:997: result: $ac_cv_build" >&5 |
8fe44445 | 998 | echo "${ECHO_T}$ac_cv_build" >&6 |
999 | build=$ac_cv_build | |
1000 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1001 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1002 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885824d3 | 1003 | |
c1dda563 | 1004 | echo "$as_me:1004: checking host system type" >&5 |
8fe44445 | 1005 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1006 | if test "${ac_cv_host+set}" = set; then | |
1007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1008 | else |
8fe44445 | 1009 | ac_cv_host_alias=$host_alias |
1010 | test -z "$ac_cv_host_alias" && | |
1011 | ac_cv_host_alias=$ac_cv_build_alias | |
1012 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
c1dda563 | 1013 | { { echo "$as_me:1013: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
8fe44445 | 1014 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1015 | { (exit 1); exit 1; }; } | |
885824d3 | 1016 | |
1017 | fi | |
c1dda563 | 1018 | echo "$as_me:1018: result: $ac_cv_host" >&5 |
8fe44445 | 1019 | echo "${ECHO_T}$ac_cv_host" >&6 |
1020 | host=$ac_cv_host | |
1021 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1022 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1023 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885824d3 | 1024 | |
8fe44445 | 1025 | # Find a good install program. We prefer a C program (faster), |
1026 | # so one script is as good as another. But avoid the broken or | |
1027 | # incompatible versions: | |
1028 | # SysV /etc/install, /usr/sbin/install | |
1029 | # SunOS /usr/etc/install | |
1030 | # IRIX /sbin/install | |
1031 | # AIX /bin/install | |
1032 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1033 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1034 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1035 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1036 | # ./install, which can be erroneously created by make from ./install.sh. | |
c1dda563 | 1037 | echo "$as_me:1037: checking for a BSD compatible install" >&5 |
8fe44445 | 1038 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
1039 | if test -z "$INSTALL"; then | |
1040 | if test "${ac_cv_path_install+set}" = set; then | |
1041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1042 | else |
8fe44445 | 1043 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1044 | for ac_dir in $PATH; do | |
1045 | IFS=$ac_save_IFS | |
1046 | # Account for people who put trailing slashes in PATH elements. | |
1047 | case $ac_dir/ in | |
1048 | / | ./ | .// | /cC/* \ | |
1049 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1050 | | /usr/ucb/* ) ;; | |
1051 | *) | |
1052 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1053 | # Don't use installbsd from OSF since it installs stuff as root | |
1054 | # by default. | |
1055 | for ac_prog in ginstall scoinst install; do | |
1056 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
1057 | if test $ac_prog = install && | |
1058 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1059 | # AIX install. It has an incompatible calling convention. | |
1060 | : | |
1061 | elif test $ac_prog = install && | |
1062 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1063 | # program-specific install script used by HP pwplus--don't use. | |
1064 | : | |
1065 | else | |
1066 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1067 | break 2 | |
1068 | fi | |
1069 | fi | |
1070 | done | |
1071 | ;; | |
1072 | esac | |
1073 | done | |
885824d3 | 1074 | |
1075 | fi | |
8fe44445 | 1076 | if test "${ac_cv_path_install+set}" = set; then |
1077 | INSTALL=$ac_cv_path_install | |
1078 | else | |
1079 | # As a last resort, use the slow shell script. We don't cache a | |
1080 | # path for INSTALL within a source directory, because that will | |
1081 | # break other packages using the cache if that directory is | |
1082 | # removed, or if the path is relative. | |
1083 | INSTALL=$ac_install_sh | |
1084 | fi | |
1085 | fi | |
c1dda563 | 1086 | echo "$as_me:1086: result: $INSTALL" >&5 |
8fe44445 | 1087 | echo "${ECHO_T}$INSTALL" >&6 |
885824d3 | 1088 | |
8fe44445 | 1089 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1090 | # It thinks the first close brace ends the variable substitution. | |
1091 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1092 | ||
1093 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1094 | ||
1095 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1096 | ||
c1dda563 | 1097 | echo "$as_me:1097: checking whether build environment is sane" >&5 |
8fe44445 | 1098 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1099 | # Just in case | |
1100 | sleep 1 | |
1101 | echo timestamp > conftest.file | |
1102 | # Do `set' in a subshell so we don't clobber the current shell's | |
1103 | # arguments. Must try -L first in case configure is actually a | |
1104 | # symlink; some systems play weird games with the mod time of symlinks | |
1105 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1106 | # directory). | |
1107 | if ( | |
1108 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1109 | if test "$*" = "X"; then | |
1110 | # -L didn't work. | |
1111 | set X `ls -t $srcdir/configure conftest.file` | |
1112 | fi | |
1113 | rm -f conftest.file | |
1114 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1115 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1116 | ||
1117 | # If neither matched, then we have a broken ls. This can happen | |
1118 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1119 | # broken ls alias from the environment. This has actually | |
1120 | # happened. Such a system could not be considered "sane". | |
c1dda563 | 1121 | { { echo "$as_me:1121: error: ls -t appears to fail. Make sure there is not a broken |
8fe44445 | 1122 | alias in your environment" >&5 |
1123 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1124 | alias in your environment" >&2;} | |
1125 | { (exit 1); exit 1; }; } | |
1126 | fi | |
1127 | ||
1128 | test "$2" = conftest.file | |
1129 | ) | |
1130 | then | |
1131 | # Ok. | |
1132 | : | |
885824d3 | 1133 | else |
c1dda563 | 1134 | { { echo "$as_me:1134: error: newly created file is older than distributed files! |
8fe44445 | 1135 | Check your system clock" >&5 |
1136 | echo "$as_me: error: newly created file is older than distributed files! | |
1137 | Check your system clock" >&2;} | |
1138 | { (exit 1); exit 1; }; } | |
885824d3 | 1139 | fi |
c1dda563 | 1140 | echo "$as_me:1140: result: yes" >&5 |
8fe44445 | 1141 | echo "${ECHO_T}yes" >&6 |
1142 | test "$program_prefix" != NONE && | |
1143 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1144 | # Use a double $ so make ignores it. | |
1145 | test "$program_suffix" != NONE && | |
1146 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1147 | # Double any \ or $. echo might interpret backslashes. | |
1148 | # By default was `s,x,x', remove it if useless. | |
1149 | cat <<\_ACEOF >conftest.sed | |
1150 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1151 | _ACEOF | |
1152 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1153 | rm conftest.sed | |
885824d3 | 1154 | |
8fe44445 | 1155 | # expand $ac_aux_dir to an absolute path |
1156 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` | |
1157 | ||
1158 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1159 | # Use eval to expand $SHELL | |
1160 | if eval "$MISSING --run true"; then | |
1161 | am_missing_run="$MISSING --run " | |
885824d3 | 1162 | else |
8fe44445 | 1163 | am_missing_run= |
1164 | am_backtick='`' | |
c1dda563 | 1165 | { echo "$as_me:1165: WARNING: ${am_backtick}missing' script is too old or missing" >&5 |
8fe44445 | 1166 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} |
885824d3 | 1167 | fi |
1168 | ||
8fe44445 | 1169 | for ac_prog in mawk gawk nawk awk |
1170 | do | |
1171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1172 | set dummy $ac_prog; ac_word=$2 | |
c1dda563 | 1173 | echo "$as_me:1173: checking for $ac_word" >&5 |
8fe44445 | 1174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1175 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1177 | else |
8fe44445 | 1178 | if test -n "$AWK"; then |
1179 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1180 | else | |
1181 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1182 | ac_dummy="$PATH" | |
1183 | for ac_dir in $ac_dummy; do | |
1184 | IFS=$ac_save_IFS | |
1185 | test -z "$ac_dir" && ac_dir=. | |
1186 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1187 | ac_cv_prog_AWK="$ac_prog" | |
c1dda563 | 1188 | echo "$as_me:1188: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1189 | break |
1190 | done | |
1191 | ||
1192 | fi | |
1193 | fi | |
1194 | AWK=$ac_cv_prog_AWK | |
1195 | if test -n "$AWK"; then | |
c1dda563 | 1196 | echo "$as_me:1196: result: $AWK" >&5 |
8fe44445 | 1197 | echo "${ECHO_T}$AWK" >&6 |
1198 | else | |
c1dda563 | 1199 | echo "$as_me:1199: result: no" >&5 |
8fe44445 | 1200 | echo "${ECHO_T}no" >&6 |
885824d3 | 1201 | fi |
1202 | ||
8fe44445 | 1203 | test -n "$AWK" && break |
1204 | done | |
1205 | ||
c1dda563 | 1206 | echo "$as_me:1206: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
8fe44445 | 1207 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1208 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1209 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
885824d3 | 1211 | else |
8fe44445 | 1212 | cat >conftest.make <<\EOF |
1213 | all: | |
1214 | @echo 'ac_maketemp="${MAKE}"' | |
1215 | EOF | |
1216 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1217 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1218 | if test -n "$ac_maketemp"; then | |
1219 | eval ac_cv_prog_make_${ac_make}_set=yes | |
885824d3 | 1220 | else |
8fe44445 | 1221 | eval ac_cv_prog_make_${ac_make}_set=no |
885824d3 | 1222 | fi |
8fe44445 | 1223 | rm -f conftest.make |
1224 | fi | |
1225 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c1dda563 | 1226 | echo "$as_me:1226: result: yes" >&5 |
8fe44445 | 1227 | echo "${ECHO_T}yes" >&6 |
1228 | SET_MAKE= | |
1229 | else | |
c1dda563 | 1230 | echo "$as_me:1230: result: no" >&5 |
8fe44445 | 1231 | echo "${ECHO_T}no" >&6 |
1232 | SET_MAKE="MAKE=${MAKE-make}" | |
885824d3 | 1233 | fi |
885824d3 | 1234 | |
8fe44445 | 1235 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
1236 | if test "${enable_dependency_tracking+set}" = set; then | |
1237 | enableval="$enable_dependency_tracking" | |
885824d3 | 1238 | |
8fe44445 | 1239 | fi; |
1240 | if test "x$enable_dependency_tracking" != xno; then | |
1241 | am_depcomp="$ac_aux_dir/depcomp" | |
1242 | AMDEPBACKSLASH='\' | |
885824d3 | 1243 | fi |
1244 | ||
8fe44445 | 1245 | if test "x$enable_dependency_tracking" != xno; then |
1246 | AMDEP_TRUE= | |
1247 | AMDEP_FALSE='#' | |
1248 | else | |
1249 | AMDEP_TRUE='#' | |
1250 | AMDEP_FALSE= | |
885824d3 | 1251 | fi |
8fe44445 | 1252 | |
1253 | rm -f .deps 2>/dev/null | |
1254 | mkdir .deps 2>/dev/null | |
1255 | if test -d .deps; then | |
1256 | DEPDIR=.deps | |
1257 | else | |
1258 | # MS-DOS does not allow filenames that begin with a dot. | |
1259 | DEPDIR=_deps | |
885824d3 | 1260 | fi |
8fe44445 | 1261 | rmdir .deps 2>/dev/null |
1262 | ||
1263 | # test to see if srcdir already configured | |
1264 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && | |
1265 | test -f $srcdir/config.status; then | |
c1dda563 | 1266 | { { echo "$as_me:1266: error: source directory already configured; run \"make distclean\" there first" >&5 |
8fe44445 | 1267 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1268 | { (exit 1); exit 1; }; } | |
885824d3 | 1269 | fi |
885824d3 | 1270 | |
8fe44445 | 1271 | # Define the identity of the package. |
11db3170 | 1272 | PACKAGE=splint |
9dcb30d1 | 1273 | VERSION=3.0.1.1 |
885824d3 | 1274 | |
8fe44445 | 1275 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
1276 | # the ones we care about. | |
1277 | ||
1278 | # Autoconf 2.50 always computes EXEEXT. However we need to be | |
1279 | # compatible with 2.13, for now. So we always define EXEEXT, but we | |
1280 | # don't compute it. | |
1281 | ||
1282 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually | |
1283 | # requests that it be used. This is a bit dumb. | |
1284 | : ${OBJEXT=o} | |
1285 | ||
c1dda563 | 1286 | # Some tools Automake needs. |
8fe44445 | 1287 | |
c1dda563 | 1288 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
8fe44445 | 1289 | |
c1dda563 | 1290 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
8fe44445 | 1291 | |
c1dda563 | 1292 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
8fe44445 | 1293 | |
c1dda563 | 1294 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
8fe44445 | 1295 | |
c1dda563 | 1296 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
8fe44445 | 1297 | |
c1dda563 | 1298 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1299 | ||
1300 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
8fe44445 | 1301 | |
c1dda563 | 1302 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1303 | ||
1304 | # We need awk for the "check" target. The system "awk" is bad on | |
1305 | # some platforms. | |
1306 | ||
1307 | ac_config_headers="$ac_config_headers config.h:config.hin" | |
1308 | ||
11db3170 | 1309 | #drl 12-19-2001 commented out so Splint won't depend on C++ |
c1dda563 | 1310 | #AC_PROG_CXX |
8fe44445 | 1311 | ac_ext=c |
1312 | ac_cpp='$CPP $CPPFLAGS' | |
1313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1316 | if test -n "$ac_tool_prefix"; then | |
1317 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1318 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c1dda563 | 1319 | echo "$as_me:1319: checking for $ac_word" >&5 |
8fe44445 | 1320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1321 | if test "${ac_cv_prog_CC+set}" = set; then | |
1322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1323 | else | |
1324 | if test -n "$CC"; then | |
1325 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1326 | else | |
1327 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1328 | ac_dummy="$PATH" | |
1329 | for ac_dir in $ac_dummy; do | |
1330 | IFS=$ac_save_IFS | |
1331 | test -z "$ac_dir" && ac_dir=. | |
1332 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1333 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
c1dda563 | 1334 | echo "$as_me:1334: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1335 | break |
1336 | done | |
1337 | ||
1338 | fi | |
1339 | fi | |
1340 | CC=$ac_cv_prog_CC | |
1341 | if test -n "$CC"; then | |
c1dda563 | 1342 | echo "$as_me:1342: result: $CC" >&5 |
8fe44445 | 1343 | echo "${ECHO_T}$CC" >&6 |
1344 | else | |
c1dda563 | 1345 | echo "$as_me:1345: result: no" >&5 |
8fe44445 | 1346 | echo "${ECHO_T}no" >&6 |
1347 | fi | |
1348 | ||
1349 | fi | |
1350 | if test -z "$ac_cv_prog_CC"; then | |
1351 | ac_ct_CC=$CC | |
1352 | # Extract the first word of "gcc", so it can be a program name with args. | |
1353 | set dummy gcc; ac_word=$2 | |
c1dda563 | 1354 | echo "$as_me:1354: checking for $ac_word" >&5 |
8fe44445 | 1355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1356 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1358 | else | |
1359 | if test -n "$ac_ct_CC"; then | |
1360 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1361 | else | |
1362 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1363 | ac_dummy="$PATH" | |
1364 | for ac_dir in $ac_dummy; do | |
1365 | IFS=$ac_save_IFS | |
1366 | test -z "$ac_dir" && ac_dir=. | |
1367 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1368 | ac_cv_prog_ac_ct_CC="gcc" | |
c1dda563 | 1369 | echo "$as_me:1369: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1370 | break |
1371 | done | |
1372 | ||
1373 | fi | |
1374 | fi | |
1375 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1376 | if test -n "$ac_ct_CC"; then | |
c1dda563 | 1377 | echo "$as_me:1377: result: $ac_ct_CC" >&5 |
8fe44445 | 1378 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1379 | else | |
c1dda563 | 1380 | echo "$as_me:1380: result: no" >&5 |
8fe44445 | 1381 | echo "${ECHO_T}no" >&6 |
1382 | fi | |
1383 | ||
1384 | CC=$ac_ct_CC | |
1385 | else | |
1386 | CC="$ac_cv_prog_CC" | |
1387 | fi | |
1388 | ||
1389 | if test -z "$CC"; then | |
1390 | if test -n "$ac_tool_prefix"; then | |
1391 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1392 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c1dda563 | 1393 | echo "$as_me:1393: checking for $ac_word" >&5 |
8fe44445 | 1394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1395 | if test "${ac_cv_prog_CC+set}" = set; then | |
1396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1397 | else | |
1398 | if test -n "$CC"; then | |
1399 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1400 | else | |
1401 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1402 | ac_dummy="$PATH" | |
1403 | for ac_dir in $ac_dummy; do | |
1404 | IFS=$ac_save_IFS | |
1405 | test -z "$ac_dir" && ac_dir=. | |
1406 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1407 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
c1dda563 | 1408 | echo "$as_me:1408: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1409 | break |
1410 | done | |
1411 | ||
1412 | fi | |
1413 | fi | |
1414 | CC=$ac_cv_prog_CC | |
1415 | if test -n "$CC"; then | |
c1dda563 | 1416 | echo "$as_me:1416: result: $CC" >&5 |
8fe44445 | 1417 | echo "${ECHO_T}$CC" >&6 |
1418 | else | |
c1dda563 | 1419 | echo "$as_me:1419: result: no" >&5 |
8fe44445 | 1420 | echo "${ECHO_T}no" >&6 |
1421 | fi | |
1422 | ||
1423 | fi | |
1424 | if test -z "$ac_cv_prog_CC"; then | |
1425 | ac_ct_CC=$CC | |
1426 | # Extract the first word of "cc", so it can be a program name with args. | |
1427 | set dummy cc; ac_word=$2 | |
c1dda563 | 1428 | echo "$as_me:1428: checking for $ac_word" >&5 |
8fe44445 | 1429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1430 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1432 | else | |
1433 | if test -n "$ac_ct_CC"; then | |
1434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1435 | else | |
1436 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1437 | ac_dummy="$PATH" | |
1438 | for ac_dir in $ac_dummy; do | |
1439 | IFS=$ac_save_IFS | |
1440 | test -z "$ac_dir" && ac_dir=. | |
1441 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1442 | ac_cv_prog_ac_ct_CC="cc" | |
c1dda563 | 1443 | echo "$as_me:1443: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1444 | break |
1445 | done | |
1446 | ||
1447 | fi | |
1448 | fi | |
1449 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1450 | if test -n "$ac_ct_CC"; then | |
c1dda563 | 1451 | echo "$as_me:1451: result: $ac_ct_CC" >&5 |
8fe44445 | 1452 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1453 | else | |
c1dda563 | 1454 | echo "$as_me:1454: result: no" >&5 |
8fe44445 | 1455 | echo "${ECHO_T}no" >&6 |
1456 | fi | |
1457 | ||
1458 | CC=$ac_ct_CC | |
1459 | else | |
1460 | CC="$ac_cv_prog_CC" | |
1461 | fi | |
1462 | ||
1463 | fi | |
1464 | if test -z "$CC"; then | |
1465 | # Extract the first word of "cc", so it can be a program name with args. | |
1466 | set dummy cc; ac_word=$2 | |
c1dda563 | 1467 | echo "$as_me:1467: checking for $ac_word" >&5 |
8fe44445 | 1468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1469 | if test "${ac_cv_prog_CC+set}" = set; then | |
1470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1471 | else | |
1472 | if test -n "$CC"; then | |
1473 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1474 | else | |
1475 | ac_prog_rejected=no | |
1476 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1477 | ac_dummy="$PATH" | |
1478 | for ac_dir in $ac_dummy; do | |
1479 | IFS=$ac_save_IFS | |
1480 | test -z "$ac_dir" && ac_dir=. | |
1481 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1482 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1483 | ac_prog_rejected=yes | |
1484 | continue | |
1485 | fi | |
1486 | ac_cv_prog_CC="cc" | |
c1dda563 | 1487 | echo "$as_me:1487: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1488 | break |
1489 | done | |
1490 | ||
1491 | if test $ac_prog_rejected = yes; then | |
1492 | # We found a bogon in the path, so make sure we never use it. | |
1493 | set dummy $ac_cv_prog_CC | |
1494 | shift | |
1495 | if test $# != 0; then | |
1496 | # We chose a different compiler from the bogus one. | |
1497 | # However, it has the same basename, so the bogon will be chosen | |
1498 | # first if we set CC to just the basename; use the full file name. | |
1499 | shift | |
1500 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1501 | shift | |
1502 | ac_cv_prog_CC="$@" | |
1503 | fi | |
1504 | fi | |
1505 | fi | |
1506 | fi | |
1507 | CC=$ac_cv_prog_CC | |
1508 | if test -n "$CC"; then | |
c1dda563 | 1509 | echo "$as_me:1509: result: $CC" >&5 |
8fe44445 | 1510 | echo "${ECHO_T}$CC" >&6 |
1511 | else | |
c1dda563 | 1512 | echo "$as_me:1512: result: no" >&5 |
8fe44445 | 1513 | echo "${ECHO_T}no" >&6 |
1514 | fi | |
1515 | ||
1516 | fi | |
1517 | if test -z "$CC"; then | |
1518 | if test -n "$ac_tool_prefix"; then | |
1519 | for ac_prog in cl | |
1520 | do | |
1521 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1522 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c1dda563 | 1523 | echo "$as_me:1523: checking for $ac_word" >&5 |
8fe44445 | 1524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1525 | if test "${ac_cv_prog_CC+set}" = set; then | |
1526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1527 | else | |
1528 | if test -n "$CC"; then | |
1529 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1530 | else | |
1531 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1532 | ac_dummy="$PATH" | |
1533 | for ac_dir in $ac_dummy; do | |
1534 | IFS=$ac_save_IFS | |
1535 | test -z "$ac_dir" && ac_dir=. | |
1536 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1537 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
c1dda563 | 1538 | echo "$as_me:1538: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1539 | break |
1540 | done | |
1541 | ||
1542 | fi | |
1543 | fi | |
1544 | CC=$ac_cv_prog_CC | |
1545 | if test -n "$CC"; then | |
c1dda563 | 1546 | echo "$as_me:1546: result: $CC" >&5 |
8fe44445 | 1547 | echo "${ECHO_T}$CC" >&6 |
1548 | else | |
c1dda563 | 1549 | echo "$as_me:1549: result: no" >&5 |
8fe44445 | 1550 | echo "${ECHO_T}no" >&6 |
1551 | fi | |
1552 | ||
1553 | test -n "$CC" && break | |
1554 | done | |
1555 | fi | |
1556 | if test -z "$CC"; then | |
1557 | ac_ct_CC=$CC | |
1558 | for ac_prog in cl | |
1559 | do | |
1560 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1561 | set dummy $ac_prog; ac_word=$2 | |
c1dda563 | 1562 | echo "$as_me:1562: checking for $ac_word" >&5 |
8fe44445 | 1563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1564 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1566 | else | |
1567 | if test -n "$ac_ct_CC"; then | |
1568 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1569 | else | |
1570 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
1571 | ac_dummy="$PATH" | |
1572 | for ac_dir in $ac_dummy; do | |
1573 | IFS=$ac_save_IFS | |
1574 | test -z "$ac_dir" && ac_dir=. | |
1575 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1576 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
c1dda563 | 1577 | echo "$as_me:1577: found $ac_dir/$ac_word" >&5 |
8fe44445 | 1578 | break |
1579 | done | |
1580 | ||
1581 | fi | |
1582 | fi | |
1583 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1584 | if test -n "$ac_ct_CC"; then | |
c1dda563 | 1585 | echo "$as_me:1585: result: $ac_ct_CC" >&5 |
8fe44445 | 1586 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1587 | else | |
c1dda563 | 1588 | echo "$as_me:1588: result: no" >&5 |
8fe44445 | 1589 | echo "${ECHO_T}no" >&6 |
1590 | fi | |
1591 | ||
1592 | test -n "$ac_ct_CC" && break | |
1593 | done | |
1594 | ||
1595 | CC=$ac_ct_CC | |
1596 | fi | |
1597 | ||
1598 | fi | |
1599 | ||
c1dda563 | 1600 | test -z "$CC" && { { echo "$as_me:1600: error: no acceptable cc found in \$PATH" >&5 |
8fe44445 | 1601 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1602 | { (exit 1); exit 1; }; } | |
1603 | ||
1604 | # Provide some information about the compiler. | |
c1dda563 | 1605 | echo "$as_me:1605:" \ |
8fe44445 | 1606 | "checking for C compiler version" >&5 |
1607 | ac_compiler=`set X $ac_compile; echo $2` | |
c1dda563 | 1608 | { (eval echo "$as_me:1608: \"$ac_compiler --version </dev/null >&5\"") >&5 |
8fe44445 | 1609 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1610 | ac_status=$? | |
c1dda563 | 1611 | echo "$as_me:1611: \$? = $ac_status" >&5 |
8fe44445 | 1612 | (exit $ac_status); } |
c1dda563 | 1613 | { (eval echo "$as_me:1613: \"$ac_compiler -v </dev/null >&5\"") >&5 |
8fe44445 | 1614 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1615 | ac_status=$? | |
c1dda563 | 1616 | echo "$as_me:1616: \$? = $ac_status" >&5 |
8fe44445 | 1617 | (exit $ac_status); } |
c1dda563 | 1618 | { (eval echo "$as_me:1618: \"$ac_compiler -V </dev/null >&5\"") >&5 |
8fe44445 | 1619 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1620 | ac_status=$? | |
c1dda563 | 1621 | echo "$as_me:1621: \$? = $ac_status" >&5 |
8fe44445 | 1622 | (exit $ac_status); } |
1623 | ||
c1dda563 | 1624 | cat >conftest.$ac_ext <<_ACEOF |
1625 | #line 1625 "configure" | |
1626 | #include "confdefs.h" | |
1627 | ||
1628 | int | |
1629 | main () | |
1630 | { | |
1631 | ||
1632 | ; | |
1633 | return 0; | |
1634 | } | |
1635 | _ACEOF | |
1636 | ac_clean_files_save=$ac_clean_files | |
1637 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1638 | # Try to create an executable without -o first, disregard a.out. | |
1639 | # It will help us diagnose broken compilers, and finding out an intuition | |
1640 | # of exeext. | |
1641 | echo "$as_me:1641: checking for C compiler default output" >&5 | |
1642 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
1643 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1644 | if { (eval echo "$as_me:1644: \"$ac_link_default\"") >&5 | |
1645 | (eval $ac_link_default) 2>&5 | |
1646 | ac_status=$? | |
1647 | echo "$as_me:1647: \$? = $ac_status" >&5 | |
1648 | (exit $ac_status); }; then | |
1649 | # Find the output, starting from the most likely. This scheme is | |
1650 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1651 | # resort. | |
1652 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
1653 | ls a.out conftest 2>/dev/null; | |
1654 | ls a.* conftest.* 2>/dev/null`; do | |
1655 | case $ac_file in | |
1656 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1657 | a.out ) # We found the default executable, but exeext='' is most | |
1658 | # certainly right. | |
1659 | break;; | |
1660 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1661 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
1662 | export ac_cv_exeext | |
1663 | break;; | |
1664 | * ) break;; | |
1665 | esac | |
1666 | done | |
1667 | else | |
1668 | echo "$as_me: failed program was:" >&5 | |
1669 | cat conftest.$ac_ext >&5 | |
1670 | { { echo "$as_me:1670: error: C compiler cannot create executables" >&5 | |
1671 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
1672 | { (exit 77); exit 77; }; } | |
1673 | fi | |
1674 | ||
1675 | ac_exeext=$ac_cv_exeext | |
1676 | echo "$as_me:1676: result: $ac_file" >&5 | |
1677 | echo "${ECHO_T}$ac_file" >&6 | |
1678 | ||
1679 | # Check the compiler produces executables we can run. If not, either | |
1680 | # the compiler is broken, or we cross compile. | |
1681 | echo "$as_me:1681: checking whether the C compiler works" >&5 | |
1682 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1683 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1684 | # If not cross compiling, check that we can run a simple program. | |
1685 | if test "$cross_compiling" != yes; then | |
1686 | if { ac_try='./$ac_file' | |
1687 | { (eval echo "$as_me:1687: \"$ac_try\"") >&5 | |
1688 | (eval $ac_try) 2>&5 | |
1689 | ac_status=$? | |
1690 | echo "$as_me:1690: \$? = $ac_status" >&5 | |
1691 | (exit $ac_status); }; }; then | |
1692 | cross_compiling=no | |
1693 | else | |
1694 | if test "$cross_compiling" = maybe; then | |
1695 | cross_compiling=yes | |
1696 | else | |
1697 | { { echo "$as_me:1697: error: cannot run C compiled programs. | |
1698 | If you meant to cross compile, use \`--host'." >&5 | |
1699 | echo "$as_me: error: cannot run C compiled programs. | |
1700 | If you meant to cross compile, use \`--host'." >&2;} | |
1701 | { (exit 1); exit 1; }; } | |
1702 | fi | |
1703 | fi | |
1704 | fi | |
1705 | echo "$as_me:1705: result: yes" >&5 | |
1706 | echo "${ECHO_T}yes" >&6 | |
1707 | ||
1708 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1709 | ac_clean_files=$ac_clean_files_save | |
1710 | # Check the compiler produces executables we can run. If not, either | |
1711 | # the compiler is broken, or we cross compile. | |
1712 | echo "$as_me:1712: checking whether we are cross compiling" >&5 | |
1713 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1714 | echo "$as_me:1714: result: $cross_compiling" >&5 | |
1715 | echo "${ECHO_T}$cross_compiling" >&6 | |
1716 | ||
1717 | echo "$as_me:1717: checking for executable suffix" >&5 | |
1718 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
1719 | if { (eval echo "$as_me:1719: \"$ac_link\"") >&5 | |
1720 | (eval $ac_link) 2>&5 | |
1721 | ac_status=$? | |
1722 | echo "$as_me:1722: \$? = $ac_status" >&5 | |
1723 | (exit $ac_status); }; then | |
1724 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1725 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1726 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1727 | # `rm'. | |
1728 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1729 | case $ac_file in | |
1730 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1731 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1732 | export ac_cv_exeext | |
1733 | break;; | |
1734 | * ) break;; | |
1735 | esac | |
1736 | done | |
1737 | else | |
1738 | { { echo "$as_me:1738: error: cannot compute EXEEXT: cannot compile and link" >&5 | |
1739 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
1740 | { (exit 1); exit 1; }; } | |
1741 | fi | |
1742 | ||
1743 | rm -f conftest$ac_cv_exeext | |
1744 | echo "$as_me:1744: result: $ac_cv_exeext" >&5 | |
1745 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1746 | ||
1747 | rm -f conftest.$ac_ext | |
1748 | EXEEXT=$ac_cv_exeext | |
1749 | ac_exeext=$EXEEXT | |
1750 | echo "$as_me:1750: checking for object suffix" >&5 | |
1751 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
1752 | if test "${ac_cv_objext+set}" = set; then | |
1753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1754 | else | |
1755 | cat >conftest.$ac_ext <<_ACEOF | |
1756 | #line 1756 "configure" | |
1757 | #include "confdefs.h" | |
1758 | ||
1759 | int | |
1760 | main () | |
1761 | { | |
1762 | ||
1763 | ; | |
1764 | return 0; | |
1765 | } | |
1766 | _ACEOF | |
1767 | rm -f conftest.o conftest.obj | |
1768 | if { (eval echo "$as_me:1768: \"$ac_compile\"") >&5 | |
1769 | (eval $ac_compile) 2>&5 | |
1770 | ac_status=$? | |
1771 | echo "$as_me:1771: \$? = $ac_status" >&5 | |
1772 | (exit $ac_status); }; then | |
1773 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1774 | case $ac_file in | |
1775 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1776 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1777 | break;; | |
1778 | esac | |
1779 | done | |
1780 | else | |
1781 | echo "$as_me: failed program was:" >&5 | |
1782 | cat conftest.$ac_ext >&5 | |
1783 | { { echo "$as_me:1783: error: cannot compute OBJEXT: cannot compile" >&5 | |
1784 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
1785 | { (exit 1); exit 1; }; } | |
1786 | fi | |
1787 | ||
1788 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1789 | fi | |
1790 | echo "$as_me:1790: result: $ac_cv_objext" >&5 | |
1791 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1792 | OBJEXT=$ac_cv_objext | |
1793 | ac_objext=$OBJEXT | |
1794 | echo "$as_me:1794: checking whether we are using the GNU C compiler" >&5 | |
8fe44445 | 1795 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1796 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1798 | else | |
1799 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 1800 | #line 1800 "configure" |
8fe44445 | 1801 | #include "confdefs.h" |
1802 | ||
1803 | int | |
1804 | main () | |
1805 | { | |
1806 | #ifndef __GNUC__ | |
1807 | choke me | |
1808 | #endif | |
1809 | ||
1810 | ; | |
1811 | return 0; | |
1812 | } | |
1813 | _ACEOF | |
1814 | rm -f conftest.$ac_objext | |
c1dda563 | 1815 | if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5 |
8fe44445 | 1816 | (eval $ac_compile) 2>&5 |
1817 | ac_status=$? | |
c1dda563 | 1818 | echo "$as_me:1818: \$? = $ac_status" >&5 |
8fe44445 | 1819 | (exit $ac_status); } && |
1820 | { ac_try='test -s conftest.$ac_objext' | |
c1dda563 | 1821 | { (eval echo "$as_me:1821: \"$ac_try\"") >&5 |
8fe44445 | 1822 | (eval $ac_try) 2>&5 |
1823 | ac_status=$? | |
c1dda563 | 1824 | echo "$as_me:1824: \$? = $ac_status" >&5 |
8fe44445 | 1825 | (exit $ac_status); }; }; then |
1826 | ac_compiler_gnu=yes | |
1827 | else | |
1828 | echo "$as_me: failed program was:" >&5 | |
1829 | cat conftest.$ac_ext >&5 | |
1830 | ac_compiler_gnu=no | |
1831 | fi | |
1832 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1833 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1834 | ||
1835 | fi | |
c1dda563 | 1836 | echo "$as_me:1836: result: $ac_cv_c_compiler_gnu" >&5 |
8fe44445 | 1837 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1838 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1839 | ac_test_CFLAGS=${CFLAGS+set} | |
1840 | ac_save_CFLAGS=$CFLAGS | |
1841 | CFLAGS="-g" | |
c1dda563 | 1842 | echo "$as_me:1842: checking whether $CC accepts -g" >&5 |
8fe44445 | 1843 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1844 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1846 | else | |
1847 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 1848 | #line 1848 "configure" |
8fe44445 | 1849 | #include "confdefs.h" |
1850 | ||
1851 | int | |
1852 | main () | |
1853 | { | |
1854 | ||
1855 | ; | |
1856 | return 0; | |
1857 | } | |
1858 | _ACEOF | |
1859 | rm -f conftest.$ac_objext | |
c1dda563 | 1860 | if { (eval echo "$as_me:1860: \"$ac_compile\"") >&5 |
8fe44445 | 1861 | (eval $ac_compile) 2>&5 |
1862 | ac_status=$? | |
c1dda563 | 1863 | echo "$as_me:1863: \$? = $ac_status" >&5 |
8fe44445 | 1864 | (exit $ac_status); } && |
1865 | { ac_try='test -s conftest.$ac_objext' | |
c1dda563 | 1866 | { (eval echo "$as_me:1866: \"$ac_try\"") >&5 |
8fe44445 | 1867 | (eval $ac_try) 2>&5 |
1868 | ac_status=$? | |
c1dda563 | 1869 | echo "$as_me:1869: \$? = $ac_status" >&5 |
8fe44445 | 1870 | (exit $ac_status); }; }; then |
1871 | ac_cv_prog_cc_g=yes | |
1872 | else | |
1873 | echo "$as_me: failed program was:" >&5 | |
1874 | cat conftest.$ac_ext >&5 | |
1875 | ac_cv_prog_cc_g=no | |
1876 | fi | |
1877 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1878 | fi | |
c1dda563 | 1879 | echo "$as_me:1879: result: $ac_cv_prog_cc_g" >&5 |
8fe44445 | 1880 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
1881 | if test "$ac_test_CFLAGS" = set; then | |
1882 | CFLAGS=$ac_save_CFLAGS | |
1883 | elif test $ac_cv_prog_cc_g = yes; then | |
1884 | if test "$GCC" = yes; then | |
1885 | CFLAGS="-g -O2" | |
1886 | else | |
1887 | CFLAGS="-g" | |
1888 | fi | |
1889 | else | |
1890 | if test "$GCC" = yes; then | |
1891 | CFLAGS="-O2" | |
1892 | else | |
1893 | CFLAGS= | |
1894 | fi | |
1895 | fi | |
1896 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
1897 | # in C++ we need to declare it. In case someone uses the same compiler | |
1898 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1899 | # the declaration of exit, since it's the most demanding environment. | |
1900 | cat >conftest.$ac_ext <<_ACEOF | |
1901 | #ifndef __cplusplus | |
1902 | choke me | |
1903 | #endif | |
1904 | _ACEOF | |
1905 | rm -f conftest.$ac_objext | |
c1dda563 | 1906 | if { (eval echo "$as_me:1906: \"$ac_compile\"") >&5 |
8fe44445 | 1907 | (eval $ac_compile) 2>&5 |
1908 | ac_status=$? | |
c1dda563 | 1909 | echo "$as_me:1909: \$? = $ac_status" >&5 |
8fe44445 | 1910 | (exit $ac_status); } && |
1911 | { ac_try='test -s conftest.$ac_objext' | |
c1dda563 | 1912 | { (eval echo "$as_me:1912: \"$ac_try\"") >&5 |
8fe44445 | 1913 | (eval $ac_try) 2>&5 |
1914 | ac_status=$? | |
c1dda563 | 1915 | echo "$as_me:1915: \$? = $ac_status" >&5 |
8fe44445 | 1916 | (exit $ac_status); }; }; then |
1917 | for ac_declaration in \ | |
1918 | ''\ | |
1919 | '#include <stdlib.h>' \ | |
1920 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1921 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1922 | 'extern "C" void exit (int) throw ();' \ | |
1923 | 'extern "C" void exit (int);' \ | |
1924 | 'void exit (int);' | |
1925 | do | |
1926 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 1927 | #line 1927 "configure" |
8fe44445 | 1928 | #include "confdefs.h" |
1929 | #include <stdlib.h> | |
1930 | $ac_declaration | |
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | exit (42); | |
1935 | ; | |
1936 | return 0; | |
1937 | } | |
1938 | _ACEOF | |
1939 | rm -f conftest.$ac_objext | |
c1dda563 | 1940 | if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5 |
8fe44445 | 1941 | (eval $ac_compile) 2>&5 |
1942 | ac_status=$? | |
c1dda563 | 1943 | echo "$as_me:1943: \$? = $ac_status" >&5 |
8fe44445 | 1944 | (exit $ac_status); } && |
1945 | { ac_try='test -s conftest.$ac_objext' | |
c1dda563 | 1946 | { (eval echo "$as_me:1946: \"$ac_try\"") >&5 |
8fe44445 | 1947 | (eval $ac_try) 2>&5 |
1948 | ac_status=$? | |
c1dda563 | 1949 | echo "$as_me:1949: \$? = $ac_status" >&5 |
8fe44445 | 1950 | (exit $ac_status); }; }; then |
1951 | : | |
1952 | else | |
1953 | echo "$as_me: failed program was:" >&5 | |
1954 | cat conftest.$ac_ext >&5 | |
1955 | continue | |
1956 | fi | |
1957 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1958 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 1959 | #line 1959 "configure" |
8fe44445 | 1960 | #include "confdefs.h" |
1961 | $ac_declaration | |
1962 | int | |
1963 | main () | |
1964 | { | |
1965 | exit (42); | |
1966 | ; | |
1967 | return 0; | |
1968 | } | |
1969 | _ACEOF | |
1970 | rm -f conftest.$ac_objext | |
c1dda563 | 1971 | if { (eval echo "$as_me:1971: \"$ac_compile\"") >&5 |
8fe44445 | 1972 | (eval $ac_compile) 2>&5 |
1973 | ac_status=$? | |
c1dda563 | 1974 | echo "$as_me:1974: \$? = $ac_status" >&5 |
8fe44445 | 1975 | (exit $ac_status); } && |
1976 | { ac_try='test -s conftest.$ac_objext' | |
c1dda563 | 1977 | { (eval echo "$as_me:1977: \"$ac_try\"") >&5 |
8fe44445 | 1978 | (eval $ac_try) 2>&5 |
1979 | ac_status=$? | |
c1dda563 | 1980 | echo "$as_me:1980: \$? = $ac_status" >&5 |
8fe44445 | 1981 | (exit $ac_status); }; }; then |
1982 | break | |
1983 | else | |
1984 | echo "$as_me: failed program was:" >&5 | |
1985 | cat conftest.$ac_ext >&5 | |
1986 | fi | |
1987 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1988 | done | |
1989 | rm -f conftest* | |
1990 | if test -n "$ac_declaration"; then | |
1991 | echo '#ifdef __cplusplus' >>confdefs.h | |
1992 | echo $ac_declaration >>confdefs.h | |
1993 | echo '#endif' >>confdefs.h | |
1994 | fi | |
1995 | ||
1996 | else | |
1997 | echo "$as_me: failed program was:" >&5 | |
1998 | cat conftest.$ac_ext >&5 | |
1999 | fi | |
2000 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2001 | ac_ext=c | |
2002 | ac_cpp='$CPP $CPPFLAGS' | |
2003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2006 | ||
c1dda563 | 2007 | ac_config_commands="$ac_config_commands default-1" |
2008 | ||
2009 | am_make=${MAKE-make} | |
2010 | cat > confinc << 'END' | |
2011 | doit: | |
2012 | @echo done | |
2013 | END | |
2014 | # If we don't find an include directive, just comment out the code. | |
2015 | echo "$as_me:2015: checking for style of include used by $am_make" >&5 | |
2016 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2017 | am__include='#' | |
2018 | am__quote= | |
2019 | _am_result=none | |
2020 | # First try GNU make style include. | |
2021 | echo "include confinc" > confmf | |
2022 | # We grep out `Entering directory' and `Leaving directory' | |
2023 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2024 | # In particular we don't look at `^make:' because GNU make might | |
2025 | # be invoked under some other name (usually "gmake"), in which | |
2026 | # case it prints its new name instead of `make'. | |
2027 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
2028 | am__include=include | |
2029 | am__quote= | |
2030 | _am_result=GNU | |
2031 | fi | |
2032 | # Now try BSD make style include. | |
2033 | if test "$am__include" = "#"; then | |
2034 | echo '.include "confinc"' > confmf | |
2035 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2036 | am__include=.include | |
2037 | am__quote='"' | |
2038 | _am_result=BSD | |
2039 | fi | |
2040 | fi | |
2041 | ||
2042 | echo "$as_me:2042: result: $_am_result" >&5 | |
2043 | echo "${ECHO_T}$_am_result" >&6 | |
2044 | rm -f confinc confmf | |
2045 | ||
8fe44445 | 2046 | depcc="$CC" am_compiler_list= |
2047 | ||
c1dda563 | 2048 | echo "$as_me:2048: checking dependency style of $depcc" >&5 |
8fe44445 | 2049 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2050 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2052 | else | |
2053 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2054 | # We make a subdir and do the tests there. Otherwise we can end up | |
2055 | # making bogus files that we don't know about and never remove. For | |
2056 | # instance it was reported that on HP-UX the gcc test will end up | |
2057 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2058 | # in D'. | |
2059 | mkdir conftest.dir | |
2060 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2061 | # using a relative directory. | |
2062 | cp "$am_depcomp" conftest.dir | |
2063 | cd conftest.dir | |
2064 | ||
2065 | am_cv_CC_dependencies_compiler_type=none | |
2066 | if test "$am_compiler_list" = ""; then | |
2067 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2068 | fi | |
2069 | for depmode in $am_compiler_list; do | |
2070 | # We need to recreate these files for each test, as the compiler may | |
2071 | # overwrite some of them when testing with obscure command lines. | |
2072 | # This happens at least with the AIX C compiler. | |
2073 | echo '#include "conftest.h"' > conftest.c | |
2074 | echo 'int i;' > conftest.h | |
2075 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2076 | ||
2077 | case $depmode in | |
2078 | nosideeffect) | |
2079 | # after this tag, mechanisms are not by side-effect, so they'll | |
2080 | # only be used when explicitly requested | |
2081 | if test "x$enable_dependency_tracking" = xyes; then | |
2082 | continue | |
2083 | else | |
2084 | break | |
2085 | fi | |
2086 | ;; | |
2087 | none) break ;; | |
2088 | esac | |
2089 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2090 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2091 | # handle `-M -o', and we need to detect this. | |
2092 | if depmode=$depmode \ | |
2093 | source=conftest.c object=conftest.o \ | |
2094 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2095 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2096 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2097 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2098 | am_cv_CC_dependencies_compiler_type=$depmode | |
2099 | break | |
2100 | fi | |
2101 | done | |
2102 | ||
2103 | cd .. | |
2104 | rm -rf conftest.dir | |
2105 | else | |
2106 | am_cv_CC_dependencies_compiler_type=none | |
2107 | fi | |
2108 | ||
2109 | fi | |
c1dda563 | 2110 | echo "$as_me:2110: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8fe44445 | 2111 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
2112 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" | |
2113 | ||
2114 | ac_ext=c | |
2115 | ac_cpp='$CPP $CPPFLAGS' | |
2116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c1dda563 | 2119 | echo "$as_me:2119: checking how to run the C preprocessor" >&5 |
8fe44445 | 2120 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2121 | # On Suns, sometimes $CPP names a directory. | |
2122 | if test -n "$CPP" && test -d "$CPP"; then | |
2123 | CPP= | |
2124 | fi | |
2125 | if test -z "$CPP"; then | |
2126 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2128 | else | |
2129 | # Double quotes because CPP needs to be expanded | |
2130 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2131 | do | |
2132 | ac_preproc_ok=false | |
2133 | for ac_c_preproc_warn_flag in '' yes | |
2134 | do | |
2135 | # Use a header file that comes with gcc, so configuring glibc | |
2136 | # with a fresh cross-compiler works. | |
2137 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2138 | # not just through cpp. "Syntax error" is here to catch this case. | |
2139 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 2140 | #line 2140 "configure" |
8fe44445 | 2141 | #include "confdefs.h" |
2142 | #include <assert.h> | |
2143 | Syntax error | |
2144 | _ACEOF | |
c1dda563 | 2145 | if { (eval echo "$as_me:2145: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2147 | ac_status=$? | |
2148 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2149 | rm -f conftest.er1 | |
2150 | cat conftest.err >&5 | |
c1dda563 | 2151 | echo "$as_me:2151: \$? = $ac_status" >&5 |
8fe44445 | 2152 | (exit $ac_status); } >/dev/null; then |
2153 | if test -s conftest.err; then | |
2154 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2155 | else | |
2156 | ac_cpp_err= | |
2157 | fi | |
2158 | else | |
2159 | ac_cpp_err=yes | |
2160 | fi | |
2161 | if test -z "$ac_cpp_err"; then | |
2162 | : | |
2163 | else | |
2164 | echo "$as_me: failed program was:" >&5 | |
2165 | cat conftest.$ac_ext >&5 | |
2166 | # Broken: fails on valid input. | |
2167 | continue | |
2168 | fi | |
2169 | rm -f conftest.err conftest.$ac_ext | |
2170 | ||
2171 | # OK, works on sane cases. Now check whether non-existent headers | |
2172 | # can be detected and how. | |
2173 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 2174 | #line 2174 "configure" |
8fe44445 | 2175 | #include "confdefs.h" |
2176 | #include <ac_nonexistent.h> | |
2177 | _ACEOF | |
c1dda563 | 2178 | if { (eval echo "$as_me:2178: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2179 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2180 | ac_status=$? | |
2181 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2182 | rm -f conftest.er1 | |
2183 | cat conftest.err >&5 | |
c1dda563 | 2184 | echo "$as_me:2184: \$? = $ac_status" >&5 |
8fe44445 | 2185 | (exit $ac_status); } >/dev/null; then |
2186 | if test -s conftest.err; then | |
2187 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2188 | else | |
2189 | ac_cpp_err= | |
2190 | fi | |
2191 | else | |
2192 | ac_cpp_err=yes | |
2193 | fi | |
2194 | if test -z "$ac_cpp_err"; then | |
2195 | # Broken: success on invalid input. | |
2196 | continue | |
2197 | else | |
2198 | echo "$as_me: failed program was:" >&5 | |
2199 | cat conftest.$ac_ext >&5 | |
2200 | # Passes both tests. | |
2201 | ac_preproc_ok=: | |
2202 | break | |
2203 | fi | |
2204 | rm -f conftest.err conftest.$ac_ext | |
2205 | ||
2206 | done | |
2207 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2208 | rm -f conftest.err conftest.$ac_ext | |
2209 | if $ac_preproc_ok; then | |
2210 | break | |
2211 | fi | |
2212 | ||
2213 | done | |
2214 | ac_cv_prog_CPP=$CPP | |
2215 | ||
2216 | fi | |
2217 | CPP=$ac_cv_prog_CPP | |
2218 | else | |
2219 | ac_cv_prog_CPP=$CPP | |
2220 | fi | |
c1dda563 | 2221 | echo "$as_me:2221: result: $CPP" >&5 |
8fe44445 | 2222 | echo "${ECHO_T}$CPP" >&6 |
2223 | ac_preproc_ok=false | |
2224 | for ac_c_preproc_warn_flag in '' yes | |
2225 | do | |
2226 | # Use a header file that comes with gcc, so configuring glibc | |
2227 | # with a fresh cross-compiler works. | |
2228 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2229 | # not just through cpp. "Syntax error" is here to catch this case. | |
2230 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 2231 | #line 2231 "configure" |
8fe44445 | 2232 | #include "confdefs.h" |
2233 | #include <assert.h> | |
2234 | Syntax error | |
2235 | _ACEOF | |
c1dda563 | 2236 | if { (eval echo "$as_me:2236: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2237 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2238 | ac_status=$? | |
2239 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2240 | rm -f conftest.er1 | |
2241 | cat conftest.err >&5 | |
c1dda563 | 2242 | echo "$as_me:2242: \$? = $ac_status" >&5 |
8fe44445 | 2243 | (exit $ac_status); } >/dev/null; then |
2244 | if test -s conftest.err; then | |
2245 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2246 | else | |
2247 | ac_cpp_err= | |
2248 | fi | |
2249 | else | |
2250 | ac_cpp_err=yes | |
2251 | fi | |
2252 | if test -z "$ac_cpp_err"; then | |
2253 | : | |
2254 | else | |
2255 | echo "$as_me: failed program was:" >&5 | |
2256 | cat conftest.$ac_ext >&5 | |
2257 | # Broken: fails on valid input. | |
2258 | continue | |
2259 | fi | |
2260 | rm -f conftest.err conftest.$ac_ext | |
2261 | ||
2262 | # OK, works on sane cases. Now check whether non-existent headers | |
2263 | # can be detected and how. | |
2264 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 2265 | #line 2265 "configure" |
8fe44445 | 2266 | #include "confdefs.h" |
2267 | #include <ac_nonexistent.h> | |
2268 | _ACEOF | |
c1dda563 | 2269 | if { (eval echo "$as_me:2269: \"$ac_cpp conftest.$ac_ext\"") >&5 |
8fe44445 | 2270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2271 | ac_status=$? | |
2272 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2273 | rm -f conftest.er1 | |
2274 | cat conftest.err >&5 | |
c1dda563 | 2275 | echo "$as_me:2275: \$? = $ac_status" >&5 |
8fe44445 | 2276 | (exit $ac_status); } >/dev/null; then |
2277 | if test -s conftest.err; then | |
2278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2279 | else | |
2280 | ac_cpp_err= | |
2281 | fi | |
2282 | else | |
2283 | ac_cpp_err=yes | |
2284 | fi | |
2285 | if test -z "$ac_cpp_err"; then | |
2286 | # Broken: success on invalid input. | |
2287 | continue | |
2288 | else | |
2289 | echo "$as_me: failed program was:" >&5 | |
2290 | cat conftest.$ac_ext >&5 | |
2291 | # Passes both tests. | |
2292 | ac_preproc_ok=: | |
2293 | break | |
2294 | fi | |
2295 | rm -f conftest.err conftest.$ac_ext | |
2296 | ||
2297 | done | |
2298 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2299 | rm -f conftest.err conftest.$ac_ext | |
2300 | if $ac_preproc_ok; then | |
2301 | : | |
2302 | else | |
c1dda563 | 2303 | { { echo "$as_me:2303: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
8fe44445 | 2304 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2305 | { (exit 1); exit 1; }; } | |
2306 | fi | |
2307 | ||
2308 | ac_ext=c | |
2309 | ac_cpp='$CPP $CPPFLAGS' | |
2310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2313 | ||
2314 | for ac_prog in flex lex | |
2315 | do | |
2316 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2317 | set dummy $ac_prog; ac_word=$2 | |
c1dda563 | 2318 | echo "$as_me:2318: checking for $ac_word" >&5 |
8fe44445 | 2319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2320 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2322 | else | |
2323 | if test -n "$LEX"; then | |
2324 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2325 | else | |
2326 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2327 | ac_dummy="$PATH" | |
2328 | for ac_dir in $ac_dummy; do | |
2329 | IFS=$ac_save_IFS | |
2330 | test -z "$ac_dir" && ac_dir=. | |
2331 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2332 | ac_cv_prog_LEX="$ac_prog" | |
c1dda563 | 2333 | echo "$as_me:2333: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2334 | break |
2335 | done | |
2336 | ||
2337 | fi | |
2338 | fi | |
2339 | LEX=$ac_cv_prog_LEX | |
2340 | if test -n "$LEX"; then | |
c1dda563 | 2341 | echo "$as_me:2341: result: $LEX" >&5 |
8fe44445 | 2342 | echo "${ECHO_T}$LEX" >&6 |
2343 | else | |
c1dda563 | 2344 | echo "$as_me:2344: result: no" >&5 |
8fe44445 | 2345 | echo "${ECHO_T}no" >&6 |
2346 | fi | |
2347 | ||
2348 | test -n "$LEX" && break | |
2349 | done | |
2350 | test -n "$LEX" || LEX="${am_missing_run}flex" | |
2351 | ||
2352 | for ac_prog in flex lex | |
2353 | do | |
2354 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2355 | set dummy $ac_prog; ac_word=$2 | |
c1dda563 | 2356 | echo "$as_me:2356: checking for $ac_word" >&5 |
8fe44445 | 2357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2358 | if test "${ac_cv_prog_LEX+set}" = set; then | |
2359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2360 | else | |
2361 | if test -n "$LEX"; then | |
2362 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
2363 | else | |
2364 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2365 | ac_dummy="$PATH" | |
2366 | for ac_dir in $ac_dummy; do | |
2367 | IFS=$ac_save_IFS | |
2368 | test -z "$ac_dir" && ac_dir=. | |
2369 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2370 | ac_cv_prog_LEX="$ac_prog" | |
c1dda563 | 2371 | echo "$as_me:2371: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2372 | break |
2373 | done | |
2374 | ||
2375 | fi | |
2376 | fi | |
2377 | LEX=$ac_cv_prog_LEX | |
2378 | if test -n "$LEX"; then | |
c1dda563 | 2379 | echo "$as_me:2379: result: $LEX" >&5 |
8fe44445 | 2380 | echo "${ECHO_T}$LEX" >&6 |
2381 | else | |
c1dda563 | 2382 | echo "$as_me:2382: result: no" >&5 |
8fe44445 | 2383 | echo "${ECHO_T}no" >&6 |
2384 | fi | |
2385 | ||
2386 | test -n "$LEX" && break | |
2387 | done | |
2388 | test -n "$LEX" || LEX=":" | |
2389 | ||
2390 | if test -z "$LEXLIB" | |
2391 | then | |
c1dda563 | 2392 | echo "$as_me:2392: checking for yywrap in -lfl" >&5 |
8fe44445 | 2393 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
2394 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
2395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2396 | else | |
2397 | ac_check_lib_save_LIBS=$LIBS | |
2398 | LIBS="-lfl $LIBS" | |
2399 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 2400 | #line 2400 "configure" |
8fe44445 | 2401 | #include "confdefs.h" |
2402 | ||
2403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2404 | #ifdef __cplusplus | |
2405 | extern "C" | |
2406 | #endif | |
2407 | /* We use char because int might match the return type of a gcc2 | |
2408 | builtin and then its argument prototype would still apply. */ | |
2409 | char yywrap (); | |
2410 | int | |
2411 | main () | |
2412 | { | |
2413 | yywrap (); | |
2414 | ; | |
2415 | return 0; | |
2416 | } | |
2417 | _ACEOF | |
2418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c1dda563 | 2419 | if { (eval echo "$as_me:2419: \"$ac_link\"") >&5 |
8fe44445 | 2420 | (eval $ac_link) 2>&5 |
2421 | ac_status=$? | |
c1dda563 | 2422 | echo "$as_me:2422: \$? = $ac_status" >&5 |
8fe44445 | 2423 | (exit $ac_status); } && |
2424 | { ac_try='test -s conftest$ac_exeext' | |
c1dda563 | 2425 | { (eval echo "$as_me:2425: \"$ac_try\"") >&5 |
8fe44445 | 2426 | (eval $ac_try) 2>&5 |
2427 | ac_status=$? | |
c1dda563 | 2428 | echo "$as_me:2428: \$? = $ac_status" >&5 |
8fe44445 | 2429 | (exit $ac_status); }; }; then |
2430 | ac_cv_lib_fl_yywrap=yes | |
2431 | else | |
2432 | echo "$as_me: failed program was:" >&5 | |
2433 | cat conftest.$ac_ext >&5 | |
2434 | ac_cv_lib_fl_yywrap=no | |
2435 | fi | |
2436 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2437 | LIBS=$ac_check_lib_save_LIBS | |
2438 | fi | |
c1dda563 | 2439 | echo "$as_me:2439: result: $ac_cv_lib_fl_yywrap" >&5 |
8fe44445 | 2440 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
2441 | if test $ac_cv_lib_fl_yywrap = yes; then | |
2442 | LEXLIB="-lfl" | |
2443 | else | |
c1dda563 | 2444 | echo "$as_me:2444: checking for yywrap in -ll" >&5 |
8fe44445 | 2445 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
2446 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2448 | else | |
2449 | ac_check_lib_save_LIBS=$LIBS | |
2450 | LIBS="-ll $LIBS" | |
2451 | cat >conftest.$ac_ext <<_ACEOF | |
c1dda563 | 2452 | #line 2452 "configure" |
8fe44445 | 2453 | #include "confdefs.h" |
2454 | ||
2455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2456 | #ifdef __cplusplus | |
2457 | extern "C" | |
2458 | #endif | |
2459 | /* We use char because int might match the return type of a gcc2 | |
2460 | builtin and then its argument prototype would still apply. */ | |
2461 | char yywrap (); | |
2462 | int | |
2463 | main () | |
2464 | { | |
2465 | yywrap (); | |
2466 | ; | |
2467 | return 0; | |
2468 | } | |
2469 | _ACEOF | |
2470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c1dda563 | 2471 | if { (eval echo "$as_me:2471: \"$ac_link\"") >&5 |
8fe44445 | 2472 | (eval $ac_link) 2>&5 |
2473 | ac_status=$? | |
c1dda563 | 2474 | echo "$as_me:2474: \$? = $ac_status" >&5 |
8fe44445 | 2475 | (exit $ac_status); } && |
2476 | { ac_try='test -s conftest$ac_exeext' | |
c1dda563 | 2477 | { (eval echo "$as_me:2477: \"$ac_try\"") >&5 |
8fe44445 | 2478 | (eval $ac_try) 2>&5 |
2479 | ac_status=$? | |
c1dda563 | 2480 | echo "$as_me:2480: \$? = $ac_status" >&5 |
8fe44445 | 2481 | (exit $ac_status); }; }; then |
2482 | ac_cv_lib_l_yywrap=yes | |
2483 | else | |
2484 | echo "$as_me: failed program was:" >&5 | |
2485 | cat conftest.$ac_ext >&5 | |
2486 | ac_cv_lib_l_yywrap=no | |
2487 | fi | |
2488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2489 | LIBS=$ac_check_lib_save_LIBS | |
2490 | fi | |
c1dda563 | 2491 | echo "$as_me:2491: result: $ac_cv_lib_l_yywrap" >&5 |
8fe44445 | 2492 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
2493 | if test $ac_cv_lib_l_yywrap = yes; then | |
2494 | LEXLIB="-ll" | |
2495 | fi | |
2496 | ||
2497 | fi | |
2498 | ||
2499 | fi | |
2500 | ||
2501 | if test "x$LEX" != "x:"; then | |
c1dda563 | 2502 | echo "$as_me:2502: checking lex output file root" >&5 |
8fe44445 | 2503 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
2504 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
2505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2506 | else | |
2507 | # The minimal lex program is just a single line: %%. But some broken lexes | |
2508 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
2509 | echo '%% | |
2510 | %%' | $LEX | |
2511 | if test -f lex.yy.c; then | |
2512 | ac_cv_prog_lex_root=lex.yy | |
2513 | elif test -f lexyy.c; then | |
2514 | ac_cv_prog_lex_root=lexyy | |
2515 | else | |
c1dda563 | 2516 | { { echo "$as_me:2516: error: cannot find output from $LEX; giving up" >&5 |
8fe44445 | 2517 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
2518 | { (exit 1); exit 1; }; } | |
2519 | fi | |
2520 | fi | |
c1dda563 | 2521 | echo "$as_me:2521: result: $ac_cv_prog_lex_root" >&5 |
8fe44445 | 2522 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
2523 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
2524 | ||
c1dda563 | 2525 | echo "$as_me:2525: checking whether yytext is a pointer" >&5 |
8fe44445 | 2526 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
2527 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
2528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2529 | else | |
2530 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
2531 | # default is implementation-dependent. Figure out which it is, since | |
2532 | # not all implementations provide the %pointer and %array declarations. | |
2533 | ac_cv_prog_lex_yytext_pointer=no | |
2534 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
2535 | ac_save_LIBS=$LIBS | |
2536 | LIBS="$LIBS $LEXLIB" | |
2537 | cat >conftest.$ac_ext <<_ACEOF | |
2538 | `cat $LEX_OUTPUT_ROOT.c` | |
2539 | _ACEOF | |
2540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c1dda563 | 2541 | if { (eval echo "$as_me:2541: \"$ac_link\"") >&5 |
8fe44445 | 2542 | (eval $ac_link) 2>&5 |
2543 | ac_status=$? | |
c1dda563 | 2544 | echo "$as_me:2544: \$? = $ac_status" >&5 |
8fe44445 | 2545 | (exit $ac_status); } && |
2546 | { ac_try='test -s conftest$ac_exeext' | |
c1dda563 | 2547 | { (eval echo "$as_me:2547: \"$ac_try\"") >&5 |
8fe44445 | 2548 | (eval $ac_try) 2>&5 |
2549 | ac_status=$? | |
c1dda563 | 2550 | echo "$as_me:2550: \$? = $ac_status" >&5 |
8fe44445 | 2551 | (exit $ac_status); }; }; then |
2552 | ac_cv_prog_lex_yytext_pointer=yes | |
2553 | else | |
2554 | echo "$as_me: failed program was:" >&5 | |
2555 | cat conftest.$ac_ext >&5 | |
2556 | fi | |
2557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2558 | LIBS=$ac_save_LIBS | |
2559 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
2560 | ||
2561 | fi | |
c1dda563 | 2562 | echo "$as_me:2562: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
8fe44445 | 2563 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
2564 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
2565 | ||
2566 | cat >>confdefs.h <<\EOF | |
2567 | #define YYTEXT_POINTER 1 | |
2568 | EOF | |
2569 | ||
2570 | fi | |
2571 | ||
2572 | fi | |
2573 | ||
2574 | # Find a good install program. We prefer a C program (faster), | |
2575 | # so one script is as good as another. But avoid the broken or | |
2576 | # incompatible versions: | |
2577 | # SysV /etc/install, /usr/sbin/install | |
2578 | # SunOS /usr/etc/install | |
2579 | # IRIX /sbin/install | |
2580 | # AIX /bin/install | |
2581 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2582 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2583 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2584 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2585 | # ./install, which can be erroneously created by make from ./install.sh. | |
c1dda563 | 2586 | echo "$as_me:2586: checking for a BSD compatible install" >&5 |
8fe44445 | 2587 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
2588 | if test -z "$INSTALL"; then | |
2589 | if test "${ac_cv_path_install+set}" = set; then | |
2590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2591 | else | |
2592 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2593 | for ac_dir in $PATH; do | |
2594 | IFS=$ac_save_IFS | |
2595 | # Account for people who put trailing slashes in PATH elements. | |
2596 | case $ac_dir/ in | |
2597 | / | ./ | .// | /cC/* \ | |
2598 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
2599 | | /usr/ucb/* ) ;; | |
2600 | *) | |
2601 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2602 | # Don't use installbsd from OSF since it installs stuff as root | |
2603 | # by default. | |
2604 | for ac_prog in ginstall scoinst install; do | |
2605 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
2606 | if test $ac_prog = install && | |
2607 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2608 | # AIX install. It has an incompatible calling convention. | |
2609 | : | |
2610 | elif test $ac_prog = install && | |
2611 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2612 | # program-specific install script used by HP pwplus--don't use. | |
2613 | : | |
2614 | else | |
2615 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2616 | break 2 | |
2617 | fi | |
2618 | fi | |
2619 | done | |
2620 | ;; | |
2621 | esac | |
2622 | done | |
2623 | ||
2624 | fi | |
2625 | if test "${ac_cv_path_install+set}" = set; then | |
2626 | INSTALL=$ac_cv_path_install | |
2627 | else | |
2628 | # As a last resort, use the slow shell script. We don't cache a | |
2629 | # path for INSTALL within a source directory, because that will | |
2630 | # break other packages using the cache if that directory is | |
2631 | # removed, or if the path is relative. | |
2632 | INSTALL=$ac_install_sh | |
2633 | fi | |
2634 | fi | |
c1dda563 | 2635 | echo "$as_me:2635: result: $INSTALL" >&5 |
8fe44445 | 2636 | echo "${ECHO_T}$INSTALL" >&6 |
2637 | ||
2638 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2639 | # It thinks the first close brace ends the variable substitution. | |
2640 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2641 | ||
2642 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2643 | ||
2644 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2645 | ||
c1dda563 | 2646 | echo "$as_me:2646: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
8fe44445 | 2647 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
2648 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
2649 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2651 | else | |
2652 | cat >conftest.make <<\EOF | |
2653 | all: | |
2654 | @echo 'ac_maketemp="${MAKE}"' | |
2655 | EOF | |
2656 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2657 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2658 | if test -n "$ac_maketemp"; then | |
2659 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2660 | else | |
2661 | eval ac_cv_prog_make_${ac_make}_set=no | |
2662 | fi | |
2663 | rm -f conftest.make | |
2664 | fi | |
2665 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
c1dda563 | 2666 | echo "$as_me:2666: result: yes" >&5 |
8fe44445 | 2667 | echo "${ECHO_T}yes" >&6 |
2668 | SET_MAKE= | |
2669 | else | |
c1dda563 | 2670 | echo "$as_me:2670: result: no" >&5 |
8fe44445 | 2671 | echo "${ECHO_T}no" >&6 |
2672 | SET_MAKE="MAKE=${MAKE-make}" | |
2673 | fi | |
2674 | ||
c1dda563 | 2675 | echo "$as_me:2675: checking whether ln -s works" >&5 |
8fe44445 | 2676 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
2677 | LN_S=$as_ln_s | |
2678 | if test "$LN_S" = "ln -s"; then | |
c1dda563 | 2679 | echo "$as_me:2679: result: yes" >&5 |
8fe44445 | 2680 | echo "${ECHO_T}yes" >&6 |
2681 | else | |
c1dda563 | 2682 | echo "$as_me:2682: result: no, using $LN_S" >&5 |
8fe44445 | 2683 | echo "${ECHO_T}no, using $LN_S" >&6 |
2684 | fi | |
2685 | ||
2686 | # Extract the first word of "bison", so it can be a program name with args. | |
2687 | set dummy bison; ac_word=$2 | |
c1dda563 | 2688 | echo "$as_me:2688: checking for $ac_word" >&5 |
8fe44445 | 2689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2690 | if test "${ac_cv_prog_BISON+set}" = set; then | |
2691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2692 | else | |
2693 | if test -n "$BISON"; then | |
2694 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
2695 | else | |
2696 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2697 | ac_dummy="$PATH" | |
2698 | for ac_dir in $ac_dummy; do | |
2699 | IFS=$ac_save_IFS | |
2700 | test -z "$ac_dir" && ac_dir=. | |
2701 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2702 | ac_cv_prog_BISON="bison" | |
c1dda563 | 2703 | echo "$as_me:2703: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2704 | break |
2705 | done | |
2706 | ||
2707 | test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="no" | |
2708 | fi | |
2709 | fi | |
2710 | BISON=$ac_cv_prog_BISON | |
2711 | if test -n "$BISON"; then | |
c1dda563 | 2712 | echo "$as_me:2712: result: $BISON" >&5 |
8fe44445 | 2713 | echo "${ECHO_T}$BISON" >&6 |
2714 | else | |
c1dda563 | 2715 | echo "$as_me:2715: result: no" >&5 |
8fe44445 | 2716 | echo "${ECHO_T}no" >&6 |
2717 | fi | |
2718 | ||
2719 | # Extract the first word of "grep", so it can be a program name with args. | |
2720 | set dummy grep; ac_word=$2 | |
c1dda563 | 2721 | echo "$as_me:2721: checking for $ac_word" >&5 |
8fe44445 | 2722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2723 | if test "${ac_cv_prog_GREP+set}" = set; then | |
2724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2725 | else | |
2726 | if test -n "$GREP"; then | |
2727 | ac_cv_prog_GREP="$GREP" # Let the user override the test. | |
2728 | else | |
2729 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2730 | ac_dummy="$PATH" | |
2731 | for ac_dir in $ac_dummy; do | |
2732 | IFS=$ac_save_IFS | |
2733 | test -z "$ac_dir" && ac_dir=. | |
2734 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2735 | ac_cv_prog_GREP="grep" | |
c1dda563 | 2736 | echo "$as_me:2736: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2737 | break |
2738 | done | |
2739 | ||
2740 | test -z "$ac_cv_prog_GREP" && ac_cv_prog_GREP="grep-is-missing" | |
2741 | fi | |
2742 | fi | |
2743 | GREP=$ac_cv_prog_GREP | |
2744 | if test -n "$GREP"; then | |
c1dda563 | 2745 | echo "$as_me:2745: result: $GREP" >&5 |
8fe44445 | 2746 | echo "${ECHO_T}$GREP" >&6 |
2747 | else | |
c1dda563 | 2748 | echo "$as_me:2748: result: no" >&5 |
8fe44445 | 2749 | echo "${ECHO_T}no" >&6 |
2750 | fi | |
2751 | ||
2752 | # Extract the first word of "diff", so it can be a program name with args. | |
2753 | set dummy diff; ac_word=$2 | |
c1dda563 | 2754 | echo "$as_me:2754: checking for $ac_word" >&5 |
8fe44445 | 2755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2756 | if test "${ac_cv_prog_DIFF+set}" = set; then | |
2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2758 | else | |
2759 | if test -n "$DIFF"; then | |
2760 | ac_cv_prog_DIFF="$DIFF" # Let the user override the test. | |
2761 | else | |
2762 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2763 | ac_dummy="$PATH" | |
2764 | for ac_dir in $ac_dummy; do | |
2765 | IFS=$ac_save_IFS | |
2766 | test -z "$ac_dir" && ac_dir=. | |
2767 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2768 | ac_cv_prog_DIFF="diff" | |
c1dda563 | 2769 | echo "$as_me:2769: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2770 | break |
2771 | done | |
2772 | ||
2773 | test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff-is-missing" | |
2774 | fi | |
2775 | fi | |
2776 | DIFF=$ac_cv_prog_DIFF | |
2777 | if test -n "$DIFF"; then | |
c1dda563 | 2778 | echo "$as_me:2778: result: $DIFF" >&5 |
8fe44445 | 2779 | echo "${ECHO_T}$DIFF" >&6 |
2780 | else | |
c1dda563 | 2781 | echo "$as_me:2781: result: no" >&5 |
8fe44445 | 2782 | echo "${ECHO_T}no" >&6 |
2783 | fi | |
2784 | ||
2785 | # Extract the first word of "cat", so it can be a program name with args. | |
2786 | set dummy cat; ac_word=$2 | |
c1dda563 | 2787 | echo "$as_me:2787: checking for $ac_word" >&5 |
8fe44445 | 2788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2789 | if test "${ac_cv_prog_CAT+set}" = set; then | |
2790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2791 | else | |
2792 | if test -n "$CAT"; then | |
2793 | ac_cv_prog_CAT="$CAT" # Let the user override the test. | |
2794 | else | |
2795 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2796 | ac_dummy="$PATH" | |
2797 | for ac_dir in $ac_dummy; do | |
2798 | IFS=$ac_save_IFS | |
2799 | test -z "$ac_dir" && ac_dir=. | |
2800 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2801 | ac_cv_prog_CAT="cat" | |
c1dda563 | 2802 | echo "$as_me:2802: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2803 | break |
2804 | done | |
2805 | ||
2806 | test -z "$ac_cv_prog_CAT" && ac_cv_prog_CAT="cat-is-missing" | |
2807 | fi | |
2808 | fi | |
2809 | CAT=$ac_cv_prog_CAT | |
2810 | if test -n "$CAT"; then | |
c1dda563 | 2811 | echo "$as_me:2811: result: $CAT" >&5 |
8fe44445 | 2812 | echo "${ECHO_T}$CAT" >&6 |
2813 | else | |
c1dda563 | 2814 | echo "$as_me:2814: result: no" >&5 |
8fe44445 | 2815 | echo "${ECHO_T}no" >&6 |
2816 | fi | |
2817 | ||
2818 | # Extract the first word of "rm", so it can be a program name with args. | |
2819 | set dummy rm; ac_word=$2 | |
c1dda563 | 2820 | echo "$as_me:2820: checking for $ac_word" >&5 |
8fe44445 | 2821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2822 | if test "${ac_cv_prog_RM+set}" = set; then | |
2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2824 | else | |
2825 | if test -n "$RM"; then | |
2826 | ac_cv_prog_RM="$RM" # Let the user override the test. | |
2827 | else | |
2828 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2829 | ac_dummy="$PATH" | |
2830 | for ac_dir in $ac_dummy; do | |
2831 | IFS=$ac_save_IFS | |
2832 | test -z "$ac_dir" && ac_dir=. | |
2833 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2834 | ac_cv_prog_RM="rm" | |
c1dda563 | 2835 | echo "$as_me:2835: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2836 | break |
2837 | done | |
2838 | ||
2839 | test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="rm-is-missing" | |
2840 | fi | |
2841 | fi | |
2842 | RM=$ac_cv_prog_RM | |
2843 | if test -n "$RM"; then | |
c1dda563 | 2844 | echo "$as_me:2844: result: $RM" >&5 |
8fe44445 | 2845 | echo "${ECHO_T}$RM" >&6 |
2846 | else | |
c1dda563 | 2847 | echo "$as_me:2847: result: no" >&5 |
8fe44445 | 2848 | echo "${ECHO_T}no" >&6 |
2849 | fi | |
2850 | ||
2851 | # Extract the first word of "mv", so it can be a program name with args. | |
2852 | set dummy mv; ac_word=$2 | |
c1dda563 | 2853 | echo "$as_me:2853: checking for $ac_word" >&5 |
8fe44445 | 2854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2855 | if test "${ac_cv_prog_MV+set}" = set; then | |
2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2857 | else | |
2858 | if test -n "$MV"; then | |
2859 | ac_cv_prog_MV="$MV" # Let the user override the test. | |
2860 | else | |
2861 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2862 | ac_dummy="$PATH" | |
2863 | for ac_dir in $ac_dummy; do | |
2864 | IFS=$ac_save_IFS | |
2865 | test -z "$ac_dir" && ac_dir=. | |
2866 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2867 | ac_cv_prog_MV="mv" | |
c1dda563 | 2868 | echo "$as_me:2868: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2869 | break |
2870 | done | |
2871 | ||
2872 | test -z "$ac_cv_prog_MV" && ac_cv_prog_MV="mv-is-missing" | |
2873 | fi | |
2874 | fi | |
2875 | MV=$ac_cv_prog_MV | |
2876 | if test -n "$MV"; then | |
c1dda563 | 2877 | echo "$as_me:2877: result: $MV" >&5 |
8fe44445 | 2878 | echo "${ECHO_T}$MV" >&6 |
2879 | else | |
c1dda563 | 2880 | echo "$as_me:2880: result: no" >&5 |
8fe44445 | 2881 | echo "${ECHO_T}no" >&6 |
2882 | fi | |
2883 | ||
2884 | # Extract the first word of "cp", so it can be a program name with args. | |
2885 | set dummy cp; ac_word=$2 | |
c1dda563 | 2886 | echo "$as_me:2886: checking for $ac_word" >&5 |
8fe44445 | 2887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2888 | if test "${ac_cv_prog_CP+set}" = set; then | |
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2890 | else | |
2891 | if test -n "$CP"; then | |
2892 | ac_cv_prog_CP="$CP" # Let the user override the test. | |
2893 | else | |
2894 | ac_save_IFS=$IFS; IFS=$ac_path_separator | |
2895 | ac_dummy="$PATH" | |
2896 | for ac_dir in $ac_dummy; do | |
2897 | IFS=$ac_save_IFS | |
2898 | test -z "$ac_dir" && ac_dir=. | |
2899 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2900 | ac_cv_prog_CP="cp" | |
c1dda563 | 2901 | echo "$as_me:2901: found $ac_dir/$ac_word" >&5 |
8fe44445 | 2902 | break |
2903 | done | |
2904 | ||
2905 | test -z "$ac_cv_prog_CP" && ac_cv_prog_CP="cp-is-missing" | |
2906 | fi | |
2907 | fi | |
2908 | CP=$ac_cv_prog_CP | |
2909 | if test -n "$CP"; then | |
c1dda563 | 2910 | echo "$as_me:2910: result: $CP" >&5 |
8fe44445 | 2911 | echo "${ECHO_T}$CP" >&6 |
2912 | else | |
c1dda563 | 2913 | echo "$as_me:2913: result: no" >&5 |
8fe44445 | 2914 | echo "${ECHO_T}no" >&6 |
2915 | fi | |
2916 | ||
55c181ed | 2917 | echo "$as_me:2917: checking whether we need _ALL_SOURCE to expose mode_t" >&5 |
2918 | echo $ECHO_N "checking whether we need _ALL_SOURCE to expose mode_t... $ECHO_C" >&6 | |
2919 | all=no | |
2920 | cat >conftest.$ac_ext <<_ACEOF | |
2921 | #line 2921 "configure" | |
2922 | #include "confdefs.h" | |
2923 | ||
2924 | #include <stdio.h> | |
2925 | mode_t x; | |
2926 | ||
2927 | int | |
2928 | main () | |
2929 | { | |
2930 | ||
2931 | ; | |
2932 | return 0; | |
2933 | } | |
2934 | _ACEOF | |
2935 | rm -f conftest.$ac_objext | |
2936 | if { (eval echo "$as_me:2936: \"$ac_compile\"") >&5 | |
2937 | (eval $ac_compile) 2>&5 | |
2938 | ac_status=$? | |
2939 | echo "$as_me:2939: \$? = $ac_status" >&5 | |
2940 | (exit $ac_status); } && | |
2941 | { ac_try='test -s conftest.$ac_objext' | |
2942 | { (eval echo "$as_me:2942: \"$ac_try\"") >&5 | |
2943 | (eval $ac_try) 2>&5 | |
2944 | ac_status=$? | |
2945 | echo "$as_me:2945: \$? = $ac_status" >&5 | |
2946 | (exit $ac_status); }; }; then | |
2947 | : | |
2948 | else | |
2949 | echo "$as_me: failed program was:" >&5 | |
2950 | cat conftest.$ac_ext >&5 | |
2951 | all=maybe | |
2952 | fi | |
2953 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2954 | if test $all = maybe ; then | |
2955 | cat >conftest.$ac_ext <<_ACEOF | |
2956 | #line 2956 "configure" | |
2957 | #include "confdefs.h" | |
2958 | ||
2959 | #define _ALL_SOURCE | |
2960 | #include <stdio.h> | |
2961 | mode_t x; | |
2962 | ||
2963 | int | |
2964 | main () | |
2965 | { | |
2966 | ||
2967 | ; | |
2968 | return 0; | |
2969 | } | |
2970 | _ACEOF | |
2971 | rm -f conftest.$ac_objext | |
2972 | if { (eval echo "$as_me:2972: \"$ac_compile\"") >&5 | |
2973 | (eval $ac_compile) 2>&5 | |
2974 | ac_status=$? | |
2975 | echo "$as_me:2975: \$? = $ac_status" >&5 | |
2976 | (exit $ac_status); } && | |
2977 | { ac_try='test -s conftest.$ac_objext' | |
2978 | { (eval echo "$as_me:2978: \"$ac_try\"") >&5 | |
2979 | (eval $ac_try) 2>&5 | |
2980 | ac_status=$? | |
2981 | echo "$as_me:2981: \$? = $ac_status" >&5 | |
2982 | (exit $ac_status); }; }; then | |
2983 | cat >>confdefs.h <<\EOF | |
2984 | #define _ALL_SOURCE 1 | |
2985 | EOF | |
2986 | all=yes | |
2987 | else | |
2988 | echo "$as_me: failed program was:" >&5 | |
2989 | cat conftest.$ac_ext >&5 | |
2990 | fi | |
2991 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2992 | fi | |
2993 | if test $all = maybe ; then all=no ; fi | |
2994 | echo "$as_me:2994: result: $all" >&5 | |
2995 | echo "${ECHO_T}$all" >&6 | |
2996 | ||
8fe44445 | 2997 | LCLOBJ='$(lcl_OBJECTS)' |
2998 | ||
2999 | # Check whether --with-lcl or --without-lcl was given. | |
3000 | if test "${with_lcl+set}" = set; then | |
3001 | withval="$with_lcl" | |
3002 | ac_cv_use_lcl=$withval | |
3003 | else | |
55c181ed | 3004 | echo "$as_me:3004: checking whether to include support for LCL files" >&5 |
8fe44445 | 3005 | echo $ECHO_N "checking whether to include support for LCL files... $ECHO_C" >&6 |
3006 | if test "${ac_cv_use_lcl+set}" = set; then | |
3007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3008 | else | |
3009 | ac_cv_use_lcl=yes | |
3010 | fi | |
55c181ed | 3011 | echo "$as_me:3011: result: $ac_cv_use_lcl" >&5 |
8fe44445 | 3012 | echo "${ECHO_T}$ac_cv_use_lcl" >&6 |
3013 | fi; | |
3014 | if test x$ac_cv_use_lcl != xyes; then | |
3015 | LCLOBJ= | |
3016 | ||
3017 | cat >>confdefs.h <<\EOF | |
3018 | #define NOLCL 1 | |
3019 | EOF | |
3020 | ||
3021 | fi | |
3022 | ||
3023 | # Make sure we have an actual value for $prefix | |
3024 | myprefix=$prefix | |
3025 | test x$myprefix = xNONE && myprefix=$ac_default_prefix | |
3026 | ||
3027 | # cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's | |
3028 | # include dir. Not the most portable setup, but let's do our best. | |
3029 | if test x$ac_cv_c_compiler_gnu = xyes; then | |
e5f31c00 | 3030 | |
3031 | # This breaks on gcc-3.0 on redhat fixing drl 11-15-2001 | |
3032 | # GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/'` | |
f2b6724f | 3033 | GCC_INCLUDE_DIR=/usr/include |
3034 | # was /usr/lib/gcc-lib/i386-linux/2.7.2.1/include | |
e5f31c00 | 3035 | # GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/p'` |
8fe44445 | 3036 | |
3037 | cat >>confdefs.h <<EOF | |
3038 | #define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR" | |
3039 | EOF | |
3040 | ||
3041 | fi | |
3042 | ||
3043 | cat >>confdefs.h <<EOF | |
3044 | #define GCC_INCLUDE_DIR2 "$myprefix/include" | |
3045 | EOF | |
3046 | ||
3047 | # These used to be in local_constants.h | |
3048 | ||
3049 | cat >>confdefs.h <<EOF | |
3050 | #define SYSTEM_LIBDIR "$myprefix/include" | |
3051 | EOF | |
3052 | ||
3053 | cat >>confdefs.h <<EOF | |
11db3170 | 3054 | #define DEFAULT_LARCHPATH ".$PATH_SEPARATOR$myprefix/share/splint/lib$PATH_SEPARATOR`pwd`/lib$PATH_SEPARATOR" |
8fe44445 | 3055 | EOF |
3056 | ||
3057 | cat >>confdefs.h <<EOF | |
11db3170 | 3058 | #define DEFAULT_LCLIMPORTDIR ".$PATH_SEPARATOR$myprefix/share/splint/imports$PATH_SEPARATOR`pwd`/imports" |
8fe44445 | 3059 | EOF |
3060 | ||
3061 | # These used to be in herald.h | |
9dcb30d1 | 3062 | LCL_PARSE_VERSION="Splint 3.0.1.1" |
8fe44445 | 3063 | |
3064 | cat >>confdefs.h <<EOF | |
146e25eb | 3065 | #define SPLINT_VERSION "$LCL_PARSE_VERSION --- `date +"%d %b %Y"`" |
8fe44445 | 3066 | EOF |
3067 | ||
3068 | cat >>confdefs.h <<EOF | |
3069 | #define LCL_PARSE_VERSION "$LCL_PARSE_VERSION" | |
3070 | EOF | |
3071 | ||
3072 | cat >>confdefs.h <<EOF | |
3073 | #define LCL_COMPILE "Compiled using $CC $CFLAGS on `uname -a` by `whoami`" | |
3074 | EOF | |
3075 | ||
3076 | cat >>confdefs.h <<\EOF | |
3077 | #define UNIX 1 | |
3078 | EOF | |
3079 | ||
3080 | ac_config_files="$ac_config_files Makefile imports/Makefile lib/Makefile src/Makefile test/Makefile" | |
3081 | ||
3082 | cat >confcache <<\_ACEOF | |
3083 | # This file is a shell script that caches the results of configure | |
3084 | # tests run on this system so they can be shared between configure | |
3085 | # scripts and configure runs, see configure's option --config-cache. | |
3086 | # It is not useful on other systems. If it contains results you don't | |
3087 | # want to keep, you may remove or edit it. | |
3088 | # | |
3089 | # config.status only pays attention to the cache file if you give it | |
3090 | # the --recheck option to rerun configure. | |
3091 | # | |
3092 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
3093 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3094 | # following values. | |
3095 | ||
3096 | _ACEOF | |
3097 | ||
3098 | # The following way of writing the cache mishandles newlines in values, | |
3099 | # but we know of no workaround that is simple, portable, and efficient. | |
3100 | # So, don't put newlines in cache variables' values. | |
3101 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3102 | # and sets the high bit in the cache file unless we assign to the vars. | |
3103 | { | |
3104 | (set) 2>&1 | | |
3105 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3106 | *ac_space=\ *) | |
3107 | # `set' does not quote correctly, so add quotes (double-quote | |
3108 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3109 | sed -n \ | |
3110 | "s/'/'\\\\''/g; | |
3111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3112 | ;; | |
3113 | *) | |
3114 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3115 | sed -n \ | |
3116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3117 | ;; | |
3118 | esac; | |
3119 | } | | |
3120 | sed ' | |
3121 | t clear | |
3122 | : clear | |
3123 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3124 | t end | |
3125 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3126 | : end' >>confcache | |
3127 | if cmp -s $cache_file confcache; then :; else | |
3128 | if test -w $cache_file; then | |
3129 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
3130 | cat confcache >$cache_file | |
3131 | else | |
3132 | echo "not updating unwritable cache $cache_file" | |
3133 | fi | |
3134 | fi | |
3135 | rm -f confcache | |
3136 | ||
3137 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3138 | # Let make expand exec_prefix. | |
3139 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3140 | ||
3141 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3142 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3143 | # trailing colons and then remove the whole line if VPATH becomes empty | |
3144 | # (actually we leave an empty line to preserve line numbers). | |
3145 | if test "x$srcdir" = x.; then | |
3146 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3147 | s/:*\$(srcdir):*/:/; | |
3148 | s/:*\${srcdir}:*/:/; | |
3149 | s/:*@srcdir@:*/:/; | |
3150 | s/^\([^=]*=[ ]*\):*/\1/; | |
3151 | s/:*$//; | |
3152 | s/^[^=]*=[ ]*$//; | |
3153 | }' | |
3154 | fi | |
3155 | ||
3156 | DEFS=-DHAVE_CONFIG_H | |
3157 | ||
3158 | : ${CONFIG_STATUS=./config.status} | |
3159 | ac_clean_files_save=$ac_clean_files | |
3160 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
55c181ed | 3161 | { echo "$as_me:3161: creating $CONFIG_STATUS" >&5 |
8fe44445 | 3162 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
3163 | cat >$CONFIG_STATUS <<_ACEOF | |
3164 | #! $SHELL | |
3165 | # Generated automatically by configure. | |
3166 | # Run this file to recreate the current configuration. | |
3167 | # Compiler output produced by configure, useful for debugging | |
3168 | # configure, is in config.log if it exists. | |
3169 | ||
3170 | debug=false | |
3171 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3172 | ac_cs_invocation="\$0 \$@" | |
3173 | ||
3174 | _ACEOF | |
3175 | ||
3176 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3177 | # Be Bourne compatible | |
3178 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3179 | emulate sh | |
3180 | NULLCMD=: | |
3181 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3182 | set -o posix | |
3183 | fi | |
3184 | ||
3185 | # Name of the executable. | |
3186 | as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
3187 | ||
3188 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
3189 | as_expr=expr | |
3190 | else | |
3191 | as_expr=false | |
3192 | fi | |
3193 | ||
3194 | rm -f conf$$ conf$$.exe conf$$.file | |
3195 | echo >conf$$.file | |
3196 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3197 | # We could just check for DJGPP; but this test a) works b) is more generic | |
3198 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3199 | if test -f conf$$.exe; then | |
3200 | # Don't use ln at all; we don't have any links | |
3201 | as_ln_s='cp -p' | |
3202 | else | |
3203 | as_ln_s='ln -s' | |
3204 | fi | |
3205 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3206 | as_ln_s=ln | |
3207 | else | |
3208 | as_ln_s='cp -p' | |
3209 | fi | |
3210 | rm -f conf$$ conf$$.exe conf$$.file | |
3211 | ||
3212 | as_executable_p="test -f" | |
3213 | ||
3214 | # Support unset when possible. | |
3215 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
3216 | as_unset=unset | |
3217 | else | |
3218 | as_unset=false | |
3219 | fi | |
3220 | ||
3221 | # NLS nuisances. | |
3222 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
3223 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
3224 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
3225 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
3226 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
3227 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
3228 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
3229 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
3230 | ||
3231 | # IFS | |
3232 | # We need space, tab and new line, in precisely that order. | |
3233 | as_nl=' | |
3234 | ' | |
3235 | IFS=" $as_nl" | |
3236 | ||
3237 | # CDPATH. | |
3238 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
3239 | ||
3240 | exec 6>&1 | |
3241 | ||
3242 | _ACEOF | |
3243 | ||
3244 | # Files that config.status was made for. | |
3245 | if test -n "$ac_config_files"; then | |
3246 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3247 | fi | |
3248 | ||
3249 | if test -n "$ac_config_headers"; then | |
3250 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3251 | fi | |
3252 | ||
3253 | if test -n "$ac_config_links"; then | |
3254 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3255 | fi | |
3256 | ||
3257 | if test -n "$ac_config_commands"; then | |
3258 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3259 | fi | |
3260 | ||
3261 | cat >>$CONFIG_STATUS <<\EOF | |
3262 | ||
3263 | ac_cs_usage="\ | |
3264 | \`$as_me' instantiates files from templates according to the | |
3265 | current configuration. | |
3266 | ||
3267 | Usage: $0 [OPTIONS] [FILE]... | |
3268 | ||
3269 | -h, --help print this help, then exit | |
3270 | -V, --version print version number, then exit | |
3271 | -d, --debug don't remove temporary files | |
3272 | --recheck update $as_me by reconfiguring in the same conditions | |
3273 | --file=FILE[:TEMPLATE] | |
3274 | instantiate the configuration file FILE | |
3275 | --header=FILE[:TEMPLATE] | |
3276 | instantiate the configuration header FILE | |
3277 | ||
3278 | Configuration files: | |
3279 | $config_files | |
3280 | ||
3281 | Configuration headers: | |
3282 | $config_headers | |
3283 | ||
3284 | Configuration commands: | |
3285 | $config_commands | |
3286 | ||
3287 | Report bugs to <bug-autoconf@gnu.org>." | |
3288 | EOF | |
3289 | ||
3290 | cat >>$CONFIG_STATUS <<EOF | |
3291 | ac_cs_version="\\ | |
9dcb30d1 | 3292 | Splint config.status 3.0.1.1 |
8fe44445 | 3293 | configured by $0, generated by GNU Autoconf 2.52, |
3294 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3295 | ||
3296 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
3297 | Free Software Foundation, Inc. | |
3298 | This config.status script is free software; the Free Software Foundation | |
3299 | gives unlimited permission to copy, distribute and modify it." | |
3300 | srcdir=$srcdir | |
3301 | INSTALL="$INSTALL" | |
3302 | EOF | |
3303 | ||
3304 | cat >>$CONFIG_STATUS <<\EOF | |
3305 | # If no file are specified by the user, then we need to provide default | |
3306 | # value. By we need to know if files were specified by the user. | |
3307 | ac_need_defaults=: | |
3308 | while test $# != 0 | |
3309 | do | |
3310 | case $1 in | |
3311 | --*=*) | |
3312 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
3313 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
3314 | shift | |
3315 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
3316 | shift | |
3317 | ;; | |
3318 | -*);; | |
3319 | *) # This is not an option, so the user has probably given explicit | |
3320 | # arguments. | |
3321 | ac_need_defaults=false;; | |
3322 | esac | |
3323 | ||
3324 | case $1 in | |
3325 | # Handling of the options. | |
3326 | EOF | |
3327 | cat >>$CONFIG_STATUS <<EOF | |
3328 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3329 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
3330 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
3331 | EOF | |
3332 | cat >>$CONFIG_STATUS <<\EOF | |
3333 | --version | --vers* | -V ) | |
3334 | echo "$ac_cs_version"; exit 0 ;; | |
3335 | --he | --h) | |
3336 | # Conflict between --help and --header | |
55c181ed | 3337 | { { echo "$as_me:3337: error: ambiguous option: $1 |
8fe44445 | 3338 | Try \`$0 --help' for more information." >&5 |
3339 | echo "$as_me: error: ambiguous option: $1 | |
3340 | Try \`$0 --help' for more information." >&2;} | |
3341 | { (exit 1); exit 1; }; };; | |
3342 | --help | --hel | -h ) | |
3343 | echo "$ac_cs_usage"; exit 0 ;; | |
3344 | --debug | --d* | -d ) | |
3345 | debug=: ;; | |
3346 | --file | --fil | --fi | --f ) | |
3347 | shift | |
3348 | CONFIG_FILES="$CONFIG_FILES $1" | |
3349 | ac_need_defaults=false;; | |
3350 | --header | --heade | --head | --hea ) | |
3351 | shift | |
3352 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
3353 | ac_need_defaults=false;; | |
3354 | ||
3355 | # This is an error. | |
55c181ed | 3356 | -*) { { echo "$as_me:3356: error: unrecognized option: $1 |
8fe44445 | 3357 | Try \`$0 --help' for more information." >&5 |
3358 | echo "$as_me: error: unrecognized option: $1 | |
3359 | Try \`$0 --help' for more information." >&2;} | |
3360 | { (exit 1); exit 1; }; } ;; | |
3361 | ||
3362 | *) ac_config_targets="$ac_config_targets $1" ;; | |
3363 | ||
3364 | esac | |
3365 | shift | |
3366 | done | |
3367 | ||
3368 | exec 5>>config.log | |
3369 | cat >&5 << _ACEOF | |
3370 | ||
3371 | ## ----------------------- ## | |
3372 | ## Running config.status. ## | |
3373 | ## ----------------------- ## | |
3374 | ||
9dcb30d1 | 3375 | This file was extended by $as_me (Splint 3.0.1.1) 2.52, executed with |
8fe44445 | 3376 | CONFIG_FILES = $CONFIG_FILES |
3377 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3378 | CONFIG_LINKS = $CONFIG_LINKS | |
3379 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3380 | > $ac_cs_invocation | |
3381 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3382 | ||
3383 | _ACEOF | |
3384 | EOF | |
3385 | ||
3386 | cat >>$CONFIG_STATUS <<EOF | |
3387 | # | |
3388 | # INIT-COMMANDS section. | |
3389 | # | |
3390 | ||
3391 | AMDEP_TRUE="$AMDEP_TRUE" | |
3392 | ac_aux_dir="$ac_aux_dir" | |
3393 | ||
3394 | EOF | |
3395 | ||
3396 | cat >>$CONFIG_STATUS <<\EOF | |
3397 | for ac_config_target in $ac_config_targets | |
3398 | do | |
3399 | case "$ac_config_target" in | |
3400 | # Handling of arguments. | |
3401 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3402 | "imports/Makefile" ) CONFIG_FILES="$CONFIG_FILES imports/Makefile" ;; | |
3403 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
3404 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
3405 | "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
3406 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
3407 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
55c181ed | 3408 | *) { { echo "$as_me:3408: error: invalid argument: $ac_config_target" >&5 |
8fe44445 | 3409 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
3410 | { (exit 1); exit 1; }; };; | |
3411 | esac | |
3412 | done | |
3413 | ||
3414 | # If the user did not use the arguments to specify the items to instantiate, | |
3415 | # then the envvar interface is used. Set only those that are not. | |
3416 | # We use the long form for the default assignment because of an extremely | |
3417 | # bizarre bug on SunOS 4.1.3. | |
3418 | if $ac_need_defaults; then | |
3419 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3420 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3421 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
3422 | fi | |
3423 | ||
3424 | # Create a temporary directory, and hook for its removal unless debugging. | |
3425 | $debug || | |
3426 | { | |
3427 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3428 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3429 | } | |
3430 | ||
3431 | # Create a (secure) tmp directory for tmp files. | |
3432 | : ${TMPDIR=/tmp} | |
3433 | { | |
3434 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
3435 | test -n "$tmp" && test -d "$tmp" | |
3436 | } || | |
3437 | { | |
3438 | tmp=$TMPDIR/cs$$-$RANDOM | |
3439 | (umask 077 && mkdir $tmp) | |
3440 | } || | |
3441 | { | |
3442 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3443 | { (exit 1); exit 1; } | |
3444 | } | |
3445 | ||
3446 | EOF | |
3447 | ||
3448 | cat >>$CONFIG_STATUS <<EOF | |
3449 | ||
3450 | # | |
3451 | # CONFIG_FILES section. | |
3452 | # | |
3453 | ||
3454 | # No need to generate the scripts if there are no CONFIG_FILES. | |
3455 | # This happens for instance when ./config.status config.h | |
3456 | if test -n "\$CONFIG_FILES"; then | |
3457 | # Protect against being on the right side of a sed subst in config.status. | |
3458 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
3459 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
3460 | s,@SHELL@,$SHELL,;t t | |
3461 | s,@exec_prefix@,$exec_prefix,;t t | |
3462 | s,@prefix@,$prefix,;t t | |
3463 | s,@program_transform_name@,$program_transform_name,;t t | |
3464 | s,@bindir@,$bindir,;t t | |
3465 | s,@sbindir@,$sbindir,;t t | |
3466 | s,@libexecdir@,$libexecdir,;t t | |
3467 | s,@datadir@,$datadir,;t t | |
3468 | s,@sysconfdir@,$sysconfdir,;t t | |
3469 | s,@sharedstatedir@,$sharedstatedir,;t t | |
3470 | s,@localstatedir@,$localstatedir,;t t | |
3471 | s,@libdir@,$libdir,;t t | |
3472 | s,@includedir@,$includedir,;t t | |
3473 | s,@oldincludedir@,$oldincludedir,;t t | |
3474 | s,@infodir@,$infodir,;t t | |
3475 | s,@mandir@,$mandir,;t t | |
3476 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
3477 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
3478 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
3479 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
3480 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
3481 | s,@build_alias@,$build_alias,;t t | |
3482 | s,@host_alias@,$host_alias,;t t | |
3483 | s,@target_alias@,$target_alias,;t t | |
3484 | s,@ECHO_C@,$ECHO_C,;t t | |
3485 | s,@ECHO_N@,$ECHO_N,;t t | |
3486 | s,@ECHO_T@,$ECHO_T,;t t | |
3487 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
3488 | s,@DEFS@,$DEFS,;t t | |
3489 | s,@LIBS@,$LIBS,;t t | |
3490 | s,@build@,$build,;t t | |
3491 | s,@build_cpu@,$build_cpu,;t t | |
3492 | s,@build_vendor@,$build_vendor,;t t | |
3493 | s,@build_os@,$build_os,;t t | |
3494 | s,@host@,$host,;t t | |
3495 | s,@host_cpu@,$host_cpu,;t t | |
3496 | s,@host_vendor@,$host_vendor,;t t | |
3497 | s,@host_os@,$host_os,;t t | |
3498 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
3499 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
3500 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
3501 | s,@PACKAGE@,$PACKAGE,;t t | |
3502 | s,@VERSION@,$VERSION,;t t | |
3503 | s,@EXEEXT@,$EXEEXT,;t t | |
3504 | s,@OBJEXT@,$OBJEXT,;t t | |
3505 | s,@ACLOCAL@,$ACLOCAL,;t t | |
3506 | s,@AUTOCONF@,$AUTOCONF,;t t | |
3507 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
3508 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
3509 | s,@MAKEINFO@,$MAKEINFO,;t t | |
3510 | s,@AMTAR@,$AMTAR,;t t | |
3511 | s,@install_sh@,$install_sh,;t t | |
3512 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
3513 | s,@AWK@,$AWK,;t t | |
3514 | s,@SET_MAKE@,$SET_MAKE,;t t | |
3515 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
3516 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
3517 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
3518 | s,@DEPDIR@,$DEPDIR,;t t | |
c1dda563 | 3519 | s,@CC@,$CC,;t t |
3520 | s,@CFLAGS@,$CFLAGS,;t t | |
8fe44445 | 3521 | s,@LDFLAGS@,$LDFLAGS,;t t |
3522 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
c1dda563 | 3523 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
8fe44445 | 3524 | s,@am__include@,$am__include,;t t |
3525 | s,@am__quote@,$am__quote,;t t | |
8fe44445 | 3526 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
3527 | s,@CPP@,$CPP,;t t | |
3528 | s,@LEX@,$LEX,;t t | |
3529 | s,@LEXLIB@,$LEXLIB,;t t | |
3530 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
3531 | s,@LN_S@,$LN_S,;t t | |
3532 | s,@BISON@,$BISON,;t t | |
3533 | s,@GREP@,$GREP,;t t | |
3534 | s,@DIFF@,$DIFF,;t t | |
3535 | s,@CAT@,$CAT,;t t | |
3536 | s,@RM@,$RM,;t t | |
3537 | s,@MV@,$MV,;t t | |
3538 | s,@CP@,$CP,;t t | |
3539 | s,@LCLOBJ@,$LCLOBJ,;t t | |
3540 | CEOF | |
3541 | ||
3542 | EOF | |
3543 | ||
3544 | cat >>$CONFIG_STATUS <<\EOF | |
3545 | # Split the substitutions into bite-sized pieces for seds with | |
3546 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
3547 | ac_max_sed_lines=48 | |
3548 | ac_sed_frag=1 # Number of current file. | |
3549 | ac_beg=1 # First line for current file. | |
3550 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
3551 | ac_more_lines=: | |
3552 | ac_sed_cmds= | |
3553 | while $ac_more_lines; do | |
3554 | if test $ac_beg -gt 1; then | |
3555 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3556 | else | |
3557 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3558 | fi | |
3559 | if test ! -s $tmp/subs.frag; then | |
3560 | ac_more_lines=false | |
3561 | else | |
3562 | # The purpose of the label and of the branching condition is to | |
3563 | # speed up the sed processing (if there are no `@' at all, there | |
3564 | # is no need to browse any of the substitutions). | |
3565 | # These are the two extra sed commands mentioned above. | |
3566 | (echo ':t | |
3567 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
3568 | if test -z "$ac_sed_cmds"; then | |
3569 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
3570 | else | |
3571 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
3572 | fi | |
3573 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
3574 | ac_beg=$ac_end | |
3575 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
3576 | fi | |
3577 | done | |
3578 | if test -z "$ac_sed_cmds"; then | |
3579 | ac_sed_cmds=cat | |
3580 | fi | |
3581 | fi # test -n "$CONFIG_FILES" | |
3582 | ||
3583 | EOF | |
3584 | cat >>$CONFIG_STATUS <<\EOF | |
3585 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
3586 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3587 | case $ac_file in | |
3588 | - | *:- | *:-:* ) # input from stdin | |
3589 | cat >$tmp/stdin | |
3590 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3591 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3592 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3593 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3594 | * ) ac_file_in=$ac_file.in ;; | |
3595 | esac | |
3596 | ||
3597 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
3598 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3599 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3600 | X"$ac_file" : 'X\(//\)$' \| \ | |
3601 | X"$ac_file" : 'X\(/\)' \| \ | |
3602 | . : '\(.\)' 2>/dev/null || | |
3603 | echo X"$ac_file" | | |
3604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3605 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3606 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3607 | /^X\(\/\).*/{ s//\1/; q; } | |
3608 | s/.*/./; q'` | |
3609 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3610 | { case "$ac_dir" in | |
3611 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3612 | *) as_incr_dir=.;; | |
3613 | esac | |
3614 | as_dummy="$ac_dir" | |
3615 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3616 | case $as_mkdir_dir in | |
3617 | # Skip DOS drivespec | |
3618 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3619 | *) | |
3620 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3621 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
3622 | ;; | |
3623 | esac | |
3624 | done; } | |
3625 | ||
3626 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
3627 | # A "../" for each directory in $ac_dir_suffix. | |
3628 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
3629 | else | |
3630 | ac_dir_suffix= ac_dots= | |
3631 | fi | |
3632 | ||
3633 | case $srcdir in | |
3634 | .) ac_srcdir=. | |
3635 | if test -z "$ac_dots"; then | |
3636 | ac_top_srcdir=. | |
3637 | else | |
3638 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
3639 | fi ;; | |
3640 | [\\/]* | ?:[\\/]* ) | |
3641 | ac_srcdir=$srcdir$ac_dir_suffix; | |
3642 | ac_top_srcdir=$srcdir ;; | |
3643 | *) # Relative path. | |
3644 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix | |
3645 | ac_top_srcdir=$ac_dots$srcdir ;; | |
3646 | esac | |
3647 | ||
3648 | case $INSTALL in | |
3649 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3650 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
3651 | esac | |
3652 | ||
3653 | if test x"$ac_file" != x-; then | |
55c181ed | 3654 | { echo "$as_me:3654: creating $ac_file" >&5 |
8fe44445 | 3655 | echo "$as_me: creating $ac_file" >&6;} |
3656 | rm -f "$ac_file" | |
3657 | fi | |
3658 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3659 | # use $as_me), people would be surprised to read: | |
3660 | # /* config.h. Generated automatically by config.status. */ | |
3661 | configure_input="Generated automatically from `echo $ac_file_in | | |
3662 | sed 's,.*/,,'` by configure." | |
3663 | ||
3664 | # First look for the input files in the build tree, otherwise in the | |
3665 | # src tree. | |
3666 | ac_file_inputs=`IFS=: | |
3667 | for f in $ac_file_in; do | |
3668 | case $f in | |
3669 | -) echo $tmp/stdin ;; | |
3670 | [\\/$]*) | |
3671 | # Absolute (can't be DOS-style, as IFS=:) | |
55c181ed | 3672 | test -f "$f" || { { echo "$as_me:3672: error: cannot find input file: $f" >&5 |
8fe44445 | 3673 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3674 | { (exit 1); exit 1; }; } | |
3675 | echo $f;; | |
3676 | *) # Relative | |
3677 | if test -f "$f"; then | |
3678 | # Build tree | |
3679 | echo $f | |
3680 | elif test -f "$srcdir/$f"; then | |
3681 | # Source tree | |
3682 | echo $srcdir/$f | |
3683 | else | |
3684 | # /dev/null tree | |
55c181ed | 3685 | { { echo "$as_me:3685: error: cannot find input file: $f" >&5 |
8fe44445 | 3686 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3687 | { (exit 1); exit 1; }; } | |
3688 | fi;; | |
3689 | esac | |
3690 | done` || { (exit 1); exit 1; } | |
3691 | EOF | |
3692 | cat >>$CONFIG_STATUS <<EOF | |
3693 | sed "$ac_vpsub | |
3694 | $extrasub | |
3695 | EOF | |
3696 | cat >>$CONFIG_STATUS <<\EOF | |
3697 | :t | |
3698 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3699 | s,@configure_input@,$configure_input,;t t | |
3700 | s,@srcdir@,$ac_srcdir,;t t | |
3701 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
3702 | s,@INSTALL@,$ac_INSTALL,;t t | |
3703 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
3704 | rm -f $tmp/stdin | |
3705 | if test x"$ac_file" != x-; then | |
3706 | mv $tmp/out $ac_file | |
3707 | else | |
3708 | cat $tmp/out | |
3709 | rm -f $tmp/out | |
3710 | fi | |
3711 | ||
3712 | done | |
3713 | EOF | |
3714 | cat >>$CONFIG_STATUS <<\EOF | |
3715 | ||
3716 | # | |
3717 | # CONFIG_HEADER section. | |
3718 | # | |
3719 | ||
3720 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
3721 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
3722 | # | |
3723 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3724 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
3725 | ac_dB='[ ].*$,\1#\2' | |
3726 | ac_dC=' ' | |
3727 | ac_dD=',;t' | |
3728 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
3729 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
3730 | ac_uB='$,\1#\2define\3' | |
3731 | ac_uC=' ' | |
3732 | ac_uD=',;t' | |
3733 | ||
3734 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
3735 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3736 | case $ac_file in | |
3737 | - | *:- | *:-:* ) # input from stdin | |
3738 | cat >$tmp/stdin | |
3739 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3740 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3741 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3742 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3743 | * ) ac_file_in=$ac_file.in ;; | |
3744 | esac | |
3745 | ||
55c181ed | 3746 | test x"$ac_file" != x- && { echo "$as_me:3746: creating $ac_file" >&5 |
8fe44445 | 3747 | echo "$as_me: creating $ac_file" >&6;} |
3748 | ||
3749 | # First look for the input files in the build tree, otherwise in the | |
3750 | # src tree. | |
3751 | ac_file_inputs=`IFS=: | |
3752 | for f in $ac_file_in; do | |
3753 | case $f in | |
3754 | -) echo $tmp/stdin ;; | |
3755 | [\\/$]*) | |
3756 | # Absolute (can't be DOS-style, as IFS=:) | |
55c181ed | 3757 | test -f "$f" || { { echo "$as_me:3757: error: cannot find input file: $f" >&5 |
8fe44445 | 3758 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3759 | { (exit 1); exit 1; }; } | |
3760 | echo $f;; | |
3761 | *) # Relative | |
3762 | if test -f "$f"; then | |
3763 | # Build tree | |
3764 | echo $f | |
3765 | elif test -f "$srcdir/$f"; then | |
3766 | # Source tree | |
3767 | echo $srcdir/$f | |
3768 | else | |
3769 | # /dev/null tree | |
55c181ed | 3770 | { { echo "$as_me:3770: error: cannot find input file: $f" >&5 |
8fe44445 | 3771 | echo "$as_me: error: cannot find input file: $f" >&2;} |
3772 | { (exit 1); exit 1; }; } | |
3773 | fi;; | |
3774 | esac | |
3775 | done` || { (exit 1); exit 1; } | |
3776 | # Remove the trailing spaces. | |
3777 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
3778 | ||
3779 | EOF | |
3780 | ||
3781 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
3782 | # `conftest.undefs', that substitutes the proper values into | |
3783 | # config.h.in to produce config.h. The first handles `#define' | |
3784 | # templates, and the second `#undef' templates. | |
3785 | # And first: Protect against being on the right side of a sed subst in | |
3786 | # config.status. Protect against being in an unquoted here document | |
3787 | # in config.status. | |
3788 | rm -f conftest.defines conftest.undefs | |
3789 | # Using a here document instead of a string reduces the quoting nightmare. | |
3790 | # Putting comments in sed scripts is not portable. | |
3791 | # | |
3792 | # `end' is used to avoid that the second main sed command (meant for | |
3793 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
3794 | # See the Autoconf documentation for `clear'. | |
3795 | cat >confdef2sed.sed <<\EOF | |
3796 | s/[\\&,]/\\&/g | |
3797 | s,[\\$`],\\&,g | |
3798 | t clear | |
3799 | : clear | |
3800 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
3801 | t end | |
3802 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
3803 | : end | |
3804 | EOF | |
3805 | # If some macros were called several times there might be several times | |
3806 | # the same #defines, which is useless. Nevertheless, we may not want to | |
3807 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
3808 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
3809 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
3810 | rm -f confdef2sed.sed | |
3811 | ||
3812 | # This sed command replaces #undef with comments. This is necessary, for | |
3813 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
3814 | # on some systems where configure will not decide to define it. | |
3815 | cat >>conftest.undefs <<\EOF | |
3816 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
3817 | EOF | |
3818 | ||
3819 | # Break up conftest.defines because some shells have a limit on the size | |
3820 | # of here documents, and old seds have small limits too (100 cmds). | |
3821 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
3822 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
3823 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
3824 | echo ' :' >>$CONFIG_STATUS | |
3825 | rm -f conftest.tail | |
3826 | while grep . conftest.defines >/dev/null | |
3827 | do | |
3828 | # Write a limited-size here document to $tmp/defines.sed. | |
3829 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
3830 | # Speed up: don't consider the non `#define' lines. | |
3831 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
3832 | # Work around the forget-to-reset-the-flag bug. | |
3833 | echo 't clr' >>$CONFIG_STATUS | |
3834 | echo ': clr' >>$CONFIG_STATUS | |
3835 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
3836 | echo 'CEOF | |
3837 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
3838 | rm -f $tmp/in | |
3839 | mv $tmp/out $tmp/in | |
3840 | ' >>$CONFIG_STATUS | |
3841 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
3842 | rm -f conftest.defines | |
3843 | mv conftest.tail conftest.defines | |
3844 | done | |
3845 | rm -f conftest.defines | |
3846 | echo ' fi # egrep' >>$CONFIG_STATUS | |
3847 | echo >>$CONFIG_STATUS | |
3848 | ||
3849 | # Break up conftest.undefs because some shells have a limit on the size | |
3850 | # of here documents, and old seds have small limits too (100 cmds). | |
3851 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
3852 | rm -f conftest.tail | |
3853 | while grep . conftest.undefs >/dev/null | |
3854 | do | |
3855 | # Write a limited-size here document to $tmp/undefs.sed. | |
3856 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
3857 | # Speed up: don't consider the non `#undef' | |
3858 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
3859 | # Work around the forget-to-reset-the-flag bug. | |
3860 | echo 't clr' >>$CONFIG_STATUS | |
3861 | echo ': clr' >>$CONFIG_STATUS | |
3862 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
3863 | echo 'CEOF | |
3864 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
3865 | rm -f $tmp/in | |
3866 | mv $tmp/out $tmp/in | |
3867 | ' >>$CONFIG_STATUS | |
3868 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
3869 | rm -f conftest.undefs | |
3870 | mv conftest.tail conftest.undefs | |
3871 | done | |
3872 | rm -f conftest.undefs | |
3873 | ||
3874 | cat >>$CONFIG_STATUS <<\EOF | |
3875 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3876 | # use $as_me), people would be surprised to read: | |
3877 | # /* config.h. Generated automatically by config.status. */ | |
3878 | if test x"$ac_file" = x-; then | |
3879 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
3880 | else | |
3881 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h | |
3882 | fi | |
3883 | cat $tmp/in >>$tmp/config.h | |
3884 | rm -f $tmp/in | |
3885 | if test x"$ac_file" != x-; then | |
3886 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
55c181ed | 3887 | { echo "$as_me:3887: $ac_file is unchanged" >&5 |
8fe44445 | 3888 | echo "$as_me: $ac_file is unchanged" >&6;} |
3889 | else | |
3890 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3891 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3892 | X"$ac_file" : 'X\(//\)$' \| \ | |
3893 | X"$ac_file" : 'X\(/\)' \| \ | |
3894 | . : '\(.\)' 2>/dev/null || | |
3895 | echo X"$ac_file" | | |
3896 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3897 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3898 | /^X\(\/\/\)$/{ s//\1/; q; } | |
3899 | /^X\(\/\).*/{ s//\1/; q; } | |
3900 | s/.*/./; q'` | |
3901 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
3902 | { case "$ac_dir" in | |
3903 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
3904 | *) as_incr_dir=.;; | |
3905 | esac | |
3906 | as_dummy="$ac_dir" | |
3907 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
3908 | case $as_mkdir_dir in | |
3909 | # Skip DOS drivespec | |
3910 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
3911 | *) | |
3912 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
3913 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
3914 | ;; | |
3915 | esac | |
3916 | done; } | |
3917 | ||
3918 | fi | |
3919 | rm -f $ac_file | |
3920 | mv $tmp/config.h $ac_file | |
3921 | fi | |
3922 | else | |
3923 | cat $tmp/config.h | |
3924 | rm -f $tmp/config.h | |
3925 | fi | |
3926 | # Run the commands associated with the file. | |
3927 | case $ac_file in | |
3928 | config.h ) # update the timestamp | |
3929 | echo timestamp >"./stamp-h1" | |
3930 | ;; | |
3931 | esac | |
3932 | done | |
3933 | EOF | |
3934 | cat >>$CONFIG_STATUS <<\EOF | |
3935 | ||
3936 | # | |
3937 | # CONFIG_COMMANDS section. | |
3938 | # | |
3939 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
3940 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
3941 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3942 | ||
3943 | case $ac_dest in | |
3944 | default-1 ) | |
3945 | test x"$AMDEP_TRUE" != x"" || | |
3946 | for mf in $CONFIG_FILES; do | |
3947 | case "$mf" in | |
3948 | Makefile) dirpart=.;; | |
3949 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; | |
3950 | *) continue;; | |
3951 | esac | |
3952 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
3953 | # Extract the definition of DEP_FILES from the Makefile without | |
3954 | # running `make'. | |
3955 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
3956 | test -z "$DEPDIR" && continue | |
3957 | # When using ansi2knr, U may be empty or an underscore; expand it | |
3958 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
3959 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
3960 | # We invoke sed twice because it is the simplest approach to | |
3961 | # changing $(DEPDIR) to its actual value in the expansion. | |
3962 | for file in `sed -n -e ' | |
3963 | /^DEP_FILES = .*\\\\$/ { | |
3964 | s/^DEP_FILES = // | |
3965 | :loop | |
3966 | s/\\\\$// | |
3967 | p | |
3968 | n | |
3969 | /\\\\$/ b loop | |
3970 | p | |
3971 | } | |
3972 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
3973 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
3974 | # Make sure the directory exists. | |
3975 | test -f "$dirpart/$file" && continue | |
3976 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` | |
3977 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 | |
3978 | # echo "creating $dirpart/$file" | |
3979 | echo '# dummy' > "$dirpart/$file" | |
3980 | done | |
3981 | done | |
3982 | ;; | |
3983 | esac | |
3984 | done | |
3985 | EOF | |
3986 | ||
3987 | cat >>$CONFIG_STATUS <<\EOF | |
3988 | ||
3989 | { (exit 0); exit 0; } | |
3990 | EOF | |
3991 | chmod +x $CONFIG_STATUS | |
3992 | ac_clean_files=$ac_clean_files_save | |
3993 | ||
3994 | # configure is writing to config.log, and then calls config.status. | |
3995 | # config.status does its own redirection, appending to config.log. | |
3996 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
3997 | # by configure, so config.status won't be able to write to it; its | |
3998 | # output is simply discarded. So we exec the FD to /dev/null, | |
3999 | # effectively closing config.log, so it can be properly (re)opened and | |
4000 | # appended to by config.status. When coming back to configure, we | |
4001 | # need to make the FD available again. | |
4002 | if test "$no_create" != yes; then | |
4003 | ac_cs_success=: | |
4004 | exec 5>/dev/null | |
4005 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
4006 | exec 5>>config.log | |
4007 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4008 | # would make configure fail if this is the last instruction. | |
4009 | $ac_cs_success || { (exit 1); exit 1; } | |
4010 | fi | |
885824d3 | 4011 |