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