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