]> andersk Git - splint.git/blame - configure
Got rid of outdated mailing list information.
[splint.git] / configure
CommitLineData
fbb86200 1#! /bin/sh
508533c5 2# Guess values for system-dependent variables and create Makefiles.
36ba812d 3# Generated by GNU Autoconf 2.57 for Splint 3.1.1.
fbb86200 4#
5# Report bugs to <splint-bug@splint.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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.
fbb86200 11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
36ba812d 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
fbb86200 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
fbb86200 26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
36ba812d 33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
fbb86200 65
66
67# Name of the executable.
36ba812d 68as_me=`$as_basename "$0" ||
fbb86200 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
36ba812d 79
fbb86200 80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
36ba812d 90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
fbb86200 94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
36ba812d 98 rm -f conf$$.sh
fbb86200 99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36ba812d 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
fbb86200 148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
36ba812d 220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
fbb86200 226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
36ba812d 242$as_unset CDPATH
fbb86200 243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
36ba812d 256ac_config_libobj_dir=.
fbb86200 257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete. It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME='Splint'
270PACKAGE_TARNAME='splint'
36ba812d 271PACKAGE_VERSION='3.1.1'
272PACKAGE_STRING='Splint 3.1.1'
fbb86200 273PACKAGE_BUGREPORT='splint-bug@splint.org'
274
275ac_unique_file="src/lclinit.c"
36ba812d 276ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP LEX LEXLIB LEX_OUTPUT_ROOT LN_S BISON GREP DIFF CAT RM MV CP SED LCLOBJ LIBOBJS LTLIBOBJS'
277ac_subst_files=''
fbb86200 278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
36ba812d 701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
fbb86200 704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_env_CC_set=${CC+set}
718ac_env_CC_value=$CC
719ac_cv_env_CC_set=${CC+set}
720ac_cv_env_CC_value=$CC
721ac_env_CFLAGS_set=${CFLAGS+set}
722ac_env_CFLAGS_value=$CFLAGS
723ac_cv_env_CFLAGS_set=${CFLAGS+set}
724ac_cv_env_CFLAGS_value=$CFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733ac_env_CPP_set=${CPP+set}
734ac_env_CPP_value=$CPP
735ac_cv_env_CPP_set=${CPP+set}
736ac_cv_env_CPP_value=$CPP
737
738#
739# Report the --help message.
740#
741if test "$ac_init_help" = "long"; then
742 # Omit some internal or obsolete options to make the list less imposing.
743 # This message is too long to be a string in the A/UX 3.1 sh.
744 cat <<_ACEOF
36ba812d 745\`configure' configures Splint 3.1.1 to adapt to many kinds of systems.
fbb86200 746
747Usage: $0 [OPTION]... [VAR=VALUE]...
748
749To assign environment variables (e.g., CC, CFLAGS...), specify them as
750VAR=VALUE. See below for descriptions of some of the useful variables.
751
752Defaults for the options are specified in brackets.
753
754Configuration:
755 -h, --help display this help and exit
756 --help=short display options specific to this package
757 --help=recursive display the short help of all the included packages
758 -V, --version display version information and exit
759 -q, --quiet, --silent do not print \`checking...' messages
760 --cache-file=FILE cache test results in FILE [disabled]
761 -C, --config-cache alias for \`--cache-file=config.cache'
762 -n, --no-create do not create output files
763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764
765_ACEOF
766
767 cat <<_ACEOF
768Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
770 [$ac_default_prefix]
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
772 [PREFIX]
773
774By default, \`make install' will install all the files in
775\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
776an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777for instance \`--prefix=\$HOME'.
778
779For better control, use the options below.
780
781Fine tuning of the installation directories:
782 --bindir=DIR user executables [EPREFIX/bin]
783 --sbindir=DIR system admin executables [EPREFIX/sbin]
784 --libexecdir=DIR program executables [EPREFIX/libexec]
785 --datadir=DIR read-only architecture-independent data [PREFIX/share]
786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
789 --libdir=DIR object code libraries [EPREFIX/lib]
790 --includedir=DIR C header files [PREFIX/include]
791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
792 --infodir=DIR info documentation [PREFIX/info]
793 --mandir=DIR man documentation [PREFIX/man]
794_ACEOF
795
796 cat <<\_ACEOF
797
798Program names:
799 --program-prefix=PREFIX prepend PREFIX to installed program names
800 --program-suffix=SUFFIX append SUFFIX to installed program names
801 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
802
803System types:
804 --build=BUILD configure for building on BUILD [guessed]
805 --host=HOST cross-compile to build programs to run on HOST [BUILD]
806 --target=TARGET configure for building compilers for TARGET [HOST]
807_ACEOF
808fi
809
810if test -n "$ac_init_help"; then
811 case $ac_init_help in
36ba812d 812 short | recursive ) echo "Configuration of Splint 3.1.1:";;
fbb86200 813 esac
814 cat <<\_ACEOF
815
816Optional Features:
817 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
818 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
819 --disable-dependency-tracking Speeds up one-time builds
820 --enable-dependency-tracking Do not reject slow dependency extractors
821
822Optional Packages:
823 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
824 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
825 --without-lcl don't include support for LCL files
826
827Some influential environment variables:
828 CC C compiler command
829 CFLAGS C compiler flags
830 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
831 nonstandard directory <lib dir>
832 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
833 headers in a nonstandard directory <include dir>
834 CPP C preprocessor
835
836Use these variables to override the choices made by `configure' or to help
837it to find libraries and programs with nonstandard names/locations.
838
839Report bugs to <splint-bug@splint.org>.
840_ACEOF
841fi
842
843if test "$ac_init_help" = "recursive"; then
844 # If there are subdirs, report their specific --help.
845 ac_popdir=`pwd`
846 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
847 test -d $ac_dir || continue
848 ac_builddir=.
849
850if test "$ac_dir" != .; then
851 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
852 # A "../" for each directory in $ac_dir_suffix.
853 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
854else
855 ac_dir_suffix= ac_top_builddir=
856fi
857
858case $srcdir in
859 .) # No --srcdir option. We are building in place.
860 ac_srcdir=.
861 if test -z "$ac_top_builddir"; then
862 ac_top_srcdir=.
863 else
864 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
865 fi ;;
866 [\\/]* | ?:[\\/]* ) # Absolute path.
867 ac_srcdir=$srcdir$ac_dir_suffix;
868 ac_top_srcdir=$srcdir ;;
869 *) # Relative path.
870 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
871 ac_top_srcdir=$ac_top_builddir$srcdir ;;
872esac
873# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
874# absolute.
875ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36ba812d 876ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
fbb86200 877ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
878ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
879
880 cd $ac_dir
881 # Check for guested configure; otherwise get Cygnus style configure.
882 if test -f $ac_srcdir/configure.gnu; then
883 echo
884 $SHELL $ac_srcdir/configure.gnu --help=recursive
885 elif test -f $ac_srcdir/configure; then
886 echo
887 $SHELL $ac_srcdir/configure --help=recursive
888 elif test -f $ac_srcdir/configure.ac ||
889 test -f $ac_srcdir/configure.in; then
890 echo
891 $ac_configure --help
892 else
893 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
894 fi
895 cd $ac_popdir
896 done
897fi
898
899test -n "$ac_init_help" && exit 0
900if $ac_init_version; then
901 cat <<\_ACEOF
36ba812d 902Splint configure 3.1.1
903generated by GNU Autoconf 2.57
fbb86200 904
905Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
906Free Software Foundation, Inc.
907This configure script is free software; the Free Software Foundation
908gives unlimited permission to copy, distribute and modify it.
909_ACEOF
910 exit 0
911fi
912exec 5>config.log
913cat >&5 <<_ACEOF
914This file contains any messages produced by compilers while
915running configure, to aid debugging if configure makes a mistake.
916
36ba812d 917It was created by Splint $as_me 3.1.1, which was
918generated by GNU Autoconf 2.57. Invocation command line was
fbb86200 919
920 $ $0 $@
921
922_ACEOF
923{
924cat <<_ASUNAME
925## --------- ##
926## Platform. ##
927## --------- ##
928
929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
930uname -m = `(uname -m) 2>/dev/null || echo unknown`
931uname -r = `(uname -r) 2>/dev/null || echo unknown`
932uname -s = `(uname -s) 2>/dev/null || echo unknown`
933uname -v = `(uname -v) 2>/dev/null || echo unknown`
934
935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
937
938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
941hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
945
946_ASUNAME
947
948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
949for as_dir in $PATH
950do
951 IFS=$as_save_IFS
952 test -z "$as_dir" && as_dir=.
953 echo "PATH: $as_dir"
954done
955
956} >&5
957
958cat >&5 <<_ACEOF
959
960
961## ----------- ##
962## Core tests. ##
963## ----------- ##
964
965_ACEOF
966
967
968# Keep a trace of the command line.
969# Strip out --no-create and --no-recursion so they do not pile up.
36ba812d 970# Strip out --silent because we don't want to record it for future runs.
fbb86200 971# Also quote any args containing shell meta-characters.
36ba812d 972# Make two passes to allow for proper duplicate-argument suppression.
fbb86200 973ac_configure_args=
36ba812d 974ac_configure_args0=
975ac_configure_args1=
fbb86200 976ac_sep=
36ba812d 977ac_must_keep_next=false
978for ac_pass in 1 2
fbb86200 979do
36ba812d 980 for ac_arg
981 do
982 case $ac_arg in
983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
985 | -silent | --silent | --silen | --sile | --sil)
986 continue ;;
987 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
988 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
989 esac
990 case $ac_pass in
991 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
992 2)
993 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
994 if test $ac_must_keep_next = true; then
995 ac_must_keep_next=false # Got value, back to normal.
996 else
997 case $ac_arg in
998 *=* | --config-cache | -C | -disable-* | --disable-* \
999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1001 | -with-* | --with-* | -without-* | --without-* | --x)
1002 case "$ac_configure_args0 " in
1003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1004 esac
1005 ;;
1006 -* ) ac_must_keep_next=true ;;
1007 esac
1008 fi
1009 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1010 # Get rid of the leading space.
1011 ac_sep=" "
1012 ;;
1013 esac
1014 done
fbb86200 1015done
36ba812d 1016$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1017$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
fbb86200 1018
1019# When interrupted or exit'd, cleanup temporary files, and complete
1020# config.log. We remove comments because anyway the quotes in there
1021# would cause problems or look ugly.
1022# WARNING: Be sure not to use single quotes in there, as some shells,
1023# such as our DU 5.0 friend, will then `close' the trap.
1024trap 'exit_status=$?
1025 # Save into config.log some information that might help in debugging.
1026 {
1027 echo
36ba812d 1028
fbb86200 1029 cat <<\_ASBOX
1030## ---------------- ##
1031## Cache variables. ##
1032## ---------------- ##
1033_ASBOX
1034 echo
1035 # The following way of writing the cache mishandles newlines in values,
1036{
1037 (set) 2>&1 |
1038 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1039 *ac_space=\ *)
1040 sed -n \
1041 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1043 ;;
1044 *)
1045 sed -n \
1046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1047 ;;
1048 esac;
1049}
1050 echo
36ba812d 1051
1052 cat <<\_ASBOX
1053## ----------------- ##
1054## Output variables. ##
1055## ----------------- ##
1056_ASBOX
1057 echo
1058 for ac_var in $ac_subst_vars
1059 do
1060 eval ac_val=$`echo $ac_var`
1061 echo "$ac_var='"'"'$ac_val'"'"'"
1062 done | sort
1063 echo
1064
1065 if test -n "$ac_subst_files"; then
1066 cat <<\_ASBOX
1067## ------------- ##
1068## Output files. ##
1069## ------------- ##
1070_ASBOX
1071 echo
1072 for ac_var in $ac_subst_files
1073 do
1074 eval ac_val=$`echo $ac_var`
1075 echo "$ac_var='"'"'$ac_val'"'"'"
1076 done | sort
1077 echo
1078 fi
1079
fbb86200 1080 if test -s confdefs.h; then
1081 cat <<\_ASBOX
1082## ----------- ##
1083## confdefs.h. ##
1084## ----------- ##
1085_ASBOX
1086 echo
36ba812d 1087 sed "/^$/d" confdefs.h | sort
fbb86200 1088 echo
1089 fi
1090 test "$ac_signal" != 0 &&
1091 echo "$as_me: caught signal $ac_signal"
1092 echo "$as_me: exit $exit_status"
1093 } >&5
1094 rm -f core core.* *.core &&
1095 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096 exit $exit_status
1097 ' 0
1098for ac_signal in 1 2 13 15; do
1099 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1100done
1101ac_signal=0
1102
1103# confdefs.h avoids OS command line length limits that DEFS can exceed.
1104rm -rf conftest* confdefs.h
1105# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106echo >confdefs.h
1107
1108# Predefined preprocessor variables.
1109
1110cat >>confdefs.h <<_ACEOF
1111#define PACKAGE_NAME "$PACKAGE_NAME"
1112_ACEOF
1113
1114
1115cat >>confdefs.h <<_ACEOF
1116#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1117_ACEOF
1118
1119
1120cat >>confdefs.h <<_ACEOF
1121#define PACKAGE_VERSION "$PACKAGE_VERSION"
1122_ACEOF
1123
1124
1125cat >>confdefs.h <<_ACEOF
1126#define PACKAGE_STRING "$PACKAGE_STRING"
1127_ACEOF
1128
1129
1130cat >>confdefs.h <<_ACEOF
1131#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1132_ACEOF
1133
1134
1135# Let the site file select an alternate cache file if it wants to.
1136# Prefer explicitly selected file to automatically selected ones.
1137if test -z "$CONFIG_SITE"; then
1138 if test "x$prefix" != xNONE; then
1139 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508533c5 1140 else
fbb86200 1141 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142 fi
1143fi
1144for ac_site_file in $CONFIG_SITE; do
1145 if test -r "$ac_site_file"; then
1146 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1147echo "$as_me: loading site script $ac_site_file" >&6;}
1148 sed 's/^/| /' "$ac_site_file" >&5
1149 . "$ac_site_file"
1150 fi
1151done
1152
1153if test -r "$cache_file"; then
1154 # Some versions of bash will fail to source /dev/null (special
1155 # files actually), so we avoid doing that.
1156 if test -f "$cache_file"; then
1157 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1158echo "$as_me: loading cache $cache_file" >&6;}
1159 case $cache_file in
1160 [\\/]* | ?:[\\/]* ) . $cache_file;;
1161 *) . ./$cache_file;;
1162 esac
1163 fi
1164else
1165 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1166echo "$as_me: creating cache $cache_file" >&6;}
1167 >$cache_file
1168fi
1169
1170# Check that the precious variables saved in the cache have kept the same
1171# value.
1172ac_cache_corrupted=false
1173for ac_var in `(set) 2>&1 |
1174 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1176 eval ac_new_set=\$ac_env_${ac_var}_set
1177 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1178 eval ac_new_val="\$ac_env_${ac_var}_value"
1179 case $ac_old_set,$ac_new_set in
1180 set,)
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1182echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1184 ,set)
1185 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1186echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1187 ac_cache_corrupted=: ;;
1188 ,);;
1189 *)
1190 if test "x$ac_old_val" != "x$ac_new_val"; then
1191 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1192echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1193 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1194echo "$as_me: former value: $ac_old_val" >&2;}
1195 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1196echo "$as_me: current value: $ac_new_val" >&2;}
1197 ac_cache_corrupted=:
1198 fi;;
1199 esac
1200 # Pass precious variables to config.status.
1201 if test "$ac_new_set" = set; then
1202 case $ac_new_val in
1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1204 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1205 *) ac_arg=$ac_var=$ac_new_val ;;
1206 esac
1207 case " $ac_configure_args " in
1208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1209 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508533c5 1210 esac
1211 fi
1212done
fbb86200 1213if $ac_cache_corrupted; then
1214 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1215echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1216 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1217echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1218 { (exit 1); exit 1; }; }
1219fi
1220
1221ac_ext=c
1222ac_cpp='$CPP $CPPFLAGS'
1223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1225ac_compiler_gnu=$ac_cv_c_compiler_gnu
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
36ba812d 1251
fbb86200 1252
1253
1254ac_aux_dir=
1255for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1257 ac_aux_dir=$ac_dir
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1259 break
1260 elif test -f $ac_dir/install.sh; then
1261 ac_aux_dir=$ac_dir
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1263 break
1264 elif test -f $ac_dir/shtool; then
1265 ac_aux_dir=$ac_dir
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1267 break
1268 fi
1269done
1270if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1274fi
1275ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278
1279
1280
1281
1282# Make sure we can run config.sub.
1283$ac_config_sub sun4 >/dev/null 2>&1 ||
1284 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1285echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1286 { (exit 1); exit 1; }; }
1287
1288echo "$as_me:$LINENO: checking build system type" >&5
1289echo $ECHO_N "checking build system type... $ECHO_C" >&6
1290if test "${ac_cv_build+set}" = set; then
1291 echo $ECHO_N "(cached) $ECHO_C" >&6
1292else
1293 ac_cv_build_alias=$build_alias
1294test -z "$ac_cv_build_alias" &&
1295 ac_cv_build_alias=`$ac_config_guess`
1296test -z "$ac_cv_build_alias" &&
1297 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1298echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1299 { (exit 1); exit 1; }; }
1300ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1301 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1302echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1303 { (exit 1); exit 1; }; }
1304
1305fi
1306echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1307echo "${ECHO_T}$ac_cv_build" >&6
1308build=$ac_cv_build
1309build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1310build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1311build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1312
1313
1314echo "$as_me:$LINENO: checking host system type" >&5
1315echo $ECHO_N "checking host system type... $ECHO_C" >&6
1316if test "${ac_cv_host+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1318else
1319 ac_cv_host_alias=$host_alias
1320test -z "$ac_cv_host_alias" &&
1321 ac_cv_host_alias=$ac_cv_build_alias
1322ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1323 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1324echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1325 { (exit 1); exit 1; }; }
1326
1327fi
1328echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1329echo "${ECHO_T}$ac_cv_host" >&6
1330host=$ac_cv_host
1331host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1332host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1333host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1334
1335
1336echo "$as_me:$LINENO: checking target system type" >&5
1337echo $ECHO_N "checking target system type... $ECHO_C" >&6
1338if test "${ac_cv_target+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1340else
1341 ac_cv_target_alias=$target_alias
1342test "x$ac_cv_target_alias" = "x" &&
1343 ac_cv_target_alias=$ac_cv_host_alias
1344ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1345 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1346echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1347 { (exit 1); exit 1; }; }
1348
1349fi
1350echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1351echo "${ECHO_T}$ac_cv_target" >&6
1352target=$ac_cv_target
1353target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356
1357
1358# The aliases save the names the user supplied, while $host etc.
1359# will get canonicalized.
1360test -n "$target_alias" &&
1361 test "$program_prefix$program_suffix$program_transform_name" = \
1362 NONENONEs,x,x, &&
1363 program_prefix=${target_alias}-
1364
1365am__api_version="1.6"
1366# Find a good install program. We prefer a C program (faster),
1367# so one script is as good as another. But avoid the broken or
1368# incompatible versions:
1369# SysV /etc/install, /usr/sbin/install
1370# SunOS /usr/etc/install
1371# IRIX /sbin/install
1372# AIX /bin/install
1373# AmigaOS /C/install, which installs bootblocks on floppy discs
1374# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1375# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1376# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1377# ./install, which can be erroneously created by make from ./install.sh.
1378echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1379echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1380if test -z "$INSTALL"; then
1381if test "${ac_cv_path_install+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385for as_dir in $PATH
1386do
1387 IFS=$as_save_IFS
1388 test -z "$as_dir" && as_dir=.
1389 # Account for people who put trailing slashes in PATH elements.
1390case $as_dir/ in
1391 ./ | .// | /cC/* | \
1392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1393 /usr/ucb/* ) ;;
1394 *)
1395 # OSF1 and SCO ODT 3.0 have their own names for install.
1396 # Don't use installbsd from OSF since it installs stuff as root
1397 # by default.
1398 for ac_prog in ginstall scoinst install; do
1399 for ac_exec_ext in '' $ac_executable_extensions; do
1400 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1401 if test $ac_prog = install &&
1402 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1403 # AIX install. It has an incompatible calling convention.
1404 :
1405 elif test $ac_prog = install &&
1406 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1407 # program-specific install script used by HP pwplus--don't use.
1408 :
1409 else
1410 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1411 break 3
1412 fi
1413 fi
1414 done
1415 done
1416 ;;
1417esac
1418done
1419
1420
1421fi
1422 if test "${ac_cv_path_install+set}" = set; then
1423 INSTALL=$ac_cv_path_install
1424 else
1425 # As a last resort, use the slow shell script. We don't cache a
1426 # path for INSTALL within a source directory, because that will
1427 # break other packages using the cache if that directory is
1428 # removed, or if the path is relative.
1429 INSTALL=$ac_install_sh
1430 fi
1431fi
1432echo "$as_me:$LINENO: result: $INSTALL" >&5
1433echo "${ECHO_T}$INSTALL" >&6
1434
1435# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1436# It thinks the first close brace ends the variable substitution.
1437test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1438
1439test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1440
1441test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1442
1443echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1444echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1445# Just in case
1446sleep 1
1447echo timestamp > conftest.file
1448# Do `set' in a subshell so we don't clobber the current shell's
1449# arguments. Must try -L first in case configure is actually a
1450# symlink; some systems play weird games with the mod time of symlinks
1451# (eg FreeBSD returns the mod time of the symlink's containing
1452# directory).
1453if (
1454 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1455 if test "$*" = "X"; then
1456 # -L didn't work.
1457 set X `ls -t $srcdir/configure conftest.file`
1458 fi
1459 rm -f conftest.file
1460 if test "$*" != "X $srcdir/configure conftest.file" \
1461 && test "$*" != "X conftest.file $srcdir/configure"; then
1462
1463 # If neither matched, then we have a broken ls. This can happen
1464 # if, for instance, CONFIG_SHELL is bash and it inherits a
1465 # broken ls alias from the environment. This has actually
1466 # happened. Such a system could not be considered "sane".
1467 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1468alias in your environment" >&5
1469echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1470alias in your environment" >&2;}
1471 { (exit 1); exit 1; }; }
1472 fi
1473
1474 test "$2" = conftest.file
1475 )
1476then
1477 # Ok.
1478 :
1479else
1480 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1481Check your system clock" >&5
1482echo "$as_me: error: newly created file is older than distributed files!
1483Check your system clock" >&2;}
1484 { (exit 1); exit 1; }; }
1485fi
1486echo "$as_me:$LINENO: result: yes" >&5
1487echo "${ECHO_T}yes" >&6
1488test "$program_prefix" != NONE &&
1489 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1490# Use a double $ so make ignores it.
1491test "$program_suffix" != NONE &&
1492 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1493# Double any \ or $. echo might interpret backslashes.
1494# By default was `s,x,x', remove it if useless.
1495cat <<\_ACEOF >conftest.sed
1496s/[\\$]/&&/g;s/;s,x,x,$//
1497_ACEOF
1498program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1499rm conftest.sed
1500
1501
1502# expand $ac_aux_dir to an absolute path
1503am_aux_dir=`cd $ac_aux_dir && pwd`
1504
1505test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1506# Use eval to expand $SHELL
1507if eval "$MISSING --run true"; then
1508 am_missing_run="$MISSING --run "
1509else
1510 am_missing_run=
1511 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1512echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1513fi
1514
1515for ac_prog in gawk mawk nawk awk
1516do
1517 # Extract the first word of "$ac_prog", so it can be a program name with args.
1518set dummy $ac_prog; ac_word=$2
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_AWK+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
1524 if test -n "$AWK"; then
1525 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1526else
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_AWK="$ac_prog"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538done
1539done
1540
1541fi
1542fi
1543AWK=$ac_cv_prog_AWK
1544if test -n "$AWK"; then
1545 echo "$as_me:$LINENO: result: $AWK" >&5
1546echo "${ECHO_T}$AWK" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552 test -n "$AWK" && break
1553done
1554
36ba812d 1555echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1556echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
fbb86200 1557set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1558if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 cat >conftest.make <<\_ACEOF
1562all:
36ba812d 1563 @echo 'ac_maketemp="$(MAKE)"'
fbb86200 1564_ACEOF
1565# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1566eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1567if test -n "$ac_maketemp"; then
1568 eval ac_cv_prog_make_${ac_make}_set=yes
1569else
1570 eval ac_cv_prog_make_${ac_make}_set=no
1571fi
1572rm -f conftest.make
1573fi
1574if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1575 echo "$as_me:$LINENO: result: yes" >&5
1576echo "${ECHO_T}yes" >&6
1577 SET_MAKE=
1578else
1579 echo "$as_me:$LINENO: result: no" >&5
1580echo "${ECHO_T}no" >&6
1581 SET_MAKE="MAKE=${MAKE-make}"
1582fi
1583
1584 # test to see if srcdir already configured
1585if test "`cd $srcdir && pwd`" != "`pwd`" &&
1586 test -f $srcdir/config.status; then
1587 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1588echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1589 { (exit 1); exit 1; }; }
1590fi
1591
1592# Define the identity of the package.
1593 PACKAGE=splint
36ba812d 1594 VERSION=3.1.1
fbb86200 1595
1596
1597# Some tools Automake needs.
1598
1599ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1600
1601
1602AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1603
1604
1605AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1606
1607
1608AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1609
1610
1611MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1612
1613
1614AMTAR=${AMTAR-"${am_missing_run}tar"}
1615
1616install_sh=${install_sh-"$am_aux_dir/install-sh"}
1617
1618# Installed binaries are usually stripped using `strip' when the user
1619# run `make install-strip'. However `strip' might not be the right
1620# tool to use in cross-compilation environments, therefore Automake
1621# will honor the `STRIP' environment variable to overrule this program.
1622if test "$cross_compiling" != no; then
1623 if test -n "$ac_tool_prefix"; then
1624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1625set dummy ${ac_tool_prefix}strip; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_STRIP+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$STRIP"; then
1632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1633else
1634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
1644 fi
1645done
1646done
1647
1648fi
1649fi
1650STRIP=$ac_cv_prog_STRIP
1651if test -n "$STRIP"; then
1652 echo "$as_me:$LINENO: result: $STRIP" >&5
1653echo "${ECHO_T}$STRIP" >&6
1654else
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657fi
1658
1659fi
1660if test -z "$ac_cv_prog_STRIP"; then
1661 ac_ct_STRIP=$STRIP
1662 # Extract the first word of "strip", so it can be a program name with args.
1663set dummy strip; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$ac_ct_STRIP"; then
1670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_STRIP="strip"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683done
1684done
1685
1686 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1687fi
1688fi
1689ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1690if test -n "$ac_ct_STRIP"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1692echo "${ECHO_T}$ac_ct_STRIP" >&6
1693else
1694 echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698 STRIP=$ac_ct_STRIP
1699else
1700 STRIP="$ac_cv_prog_STRIP"
1701fi
1702
1703fi
1704INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1705
1706# We need awk for the "check" target. The system "awk" is bad on
1707# some platforms.
1708
1709
1710
1711# Add the stamp file to the list of files AC keeps track of,
1712# along with our hook.
36ba812d 1713 ac_config_headers="$ac_config_headers config.h:config.hin"
fbb86200 1714
1715
1716
1717
1718
1719
1720
1721
1722
1723#drl 12-19-2001 commented out so Splint won't depend on C++
1724#AC_PROG_CXX
1725ac_ext=c
1726ac_cpp='$CPP $CPPFLAGS'
1727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1729ac_compiler_gnu=$ac_cv_c_compiler_gnu
1730if test -n "$ac_tool_prefix"; then
1731 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1732set dummy ${ac_tool_prefix}gcc; ac_word=$2
1733echo "$as_me:$LINENO: checking for $ac_word" >&5
1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735if test "${ac_cv_prog_CC+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738 if test -n "$CC"; then
1739 ac_cv_prog_CC="$CC" # Let the user override the test.
1740else
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752done
1753done
1754
1755fi
1756fi
1757CC=$ac_cv_prog_CC
1758if test -n "$CC"; then
1759 echo "$as_me:$LINENO: result: $CC" >&5
1760echo "${ECHO_T}$CC" >&6
1761else
1762 echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764fi
1765
1766fi
1767if test -z "$ac_cv_prog_CC"; then
1768 ac_ct_CC=$CC
1769 # Extract the first word of "gcc", so it can be a program name with args.
1770set dummy gcc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$ac_ct_CC"; then
1777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_ac_ct_CC="gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793fi
1794fi
1795ac_ct_CC=$ac_cv_prog_ac_ct_CC
1796if test -n "$ac_ct_CC"; then
1797 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1798echo "${ECHO_T}$ac_ct_CC" >&6
1799else
1800 echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804 CC=$ac_ct_CC
1805else
1806 CC="$ac_cv_prog_CC"
1807fi
1808
1809if test -z "$CC"; then
1810 if test -n "$ac_tool_prefix"; then
1811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1812set dummy ${ac_tool_prefix}cc; ac_word=$2
1813echo "$as_me:$LINENO: checking for $ac_word" >&5
1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815if test "${ac_cv_prog_CC+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 if test -n "$CC"; then
1819 ac_cv_prog_CC="$CC" # Let the user override the test.
1820else
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 ac_cv_prog_CC="${ac_tool_prefix}cc"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1831 fi
1832done
1833done
1834
1835fi
1836fi
1837CC=$ac_cv_prog_CC
1838if test -n "$CC"; then
1839 echo "$as_me:$LINENO: result: $CC" >&5
1840echo "${ECHO_T}$CC" >&6
1841else
1842 echo "$as_me:$LINENO: result: no" >&5
1843echo "${ECHO_T}no" >&6
1844fi
1845
1846fi
1847if test -z "$ac_cv_prog_CC"; then
1848 ac_ct_CC=$CC
1849 # Extract the first word of "cc", so it can be a program name with args.
1850set dummy cc; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$ac_ct_CC"; then
1857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_ac_ct_CC="cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876if test -n "$ac_ct_CC"; then
1877 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878echo "${ECHO_T}$ac_ct_CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884 CC=$ac_ct_CC
1885else
1886 CC="$ac_cv_prog_CC"
1887fi
1888
1889fi
1890if test -z "$CC"; then
1891 # Extract the first word of "cc", so it can be a program name with args.
1892set dummy cc; ac_word=$2
1893echo "$as_me:$LINENO: checking for $ac_word" >&5
1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895if test "${ac_cv_prog_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897else
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC="$CC" # Let the user override the test.
1900else
1901 ac_prog_rejected=no
1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903for as_dir in $PATH
1904do
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1910 ac_prog_rejected=yes
1911 continue
1912 fi
1913 ac_cv_prog_CC="cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1916 fi
1917done
1918done
1919
1920if test $ac_prog_rejected = yes; then
1921 # We found a bogon in the path, so make sure we never use it.
1922 set dummy $ac_cv_prog_CC
1923 shift
1924 if test $# != 0; then
1925 # We chose a different compiler from the bogus one.
1926 # However, it has the same basename, so the bogon will be chosen
1927 # first if we set CC to just the basename; use the full file name.
1928 shift
36ba812d 1929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
fbb86200 1930 fi
1931fi
1932fi
1933fi
1934CC=$ac_cv_prog_CC
1935if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937echo "${ECHO_T}$CC" >&6
1938else
1939 echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943fi
1944if test -z "$CC"; then
1945 if test -n "$ac_tool_prefix"; then
1946 for ac_prog in cl
1947 do
1948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1950echo "$as_me:$LINENO: checking for $ac_word" >&5
1951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952if test "${ac_cv_prog_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955 if test -n "$CC"; then
1956 ac_cv_prog_CC="$CC" # Let the user override the test.
1957else
1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959for as_dir in $PATH
1960do
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 break 2
1968 fi
1969done
1970done
1971
1972fi
1973fi
1974CC=$ac_cv_prog_CC
1975if test -n "$CC"; then
1976 echo "$as_me:$LINENO: result: $CC" >&5
1977echo "${ECHO_T}$CC" >&6
1978else
1979 echo "$as_me:$LINENO: result: no" >&5
1980echo "${ECHO_T}no" >&6
1981fi
1982
1983 test -n "$CC" && break
1984 done
1985fi
1986if test -z "$CC"; then
1987 ac_ct_CC=$CC
1988 for ac_prog in cl
1989do
1990 # Extract the first word of "$ac_prog", so it can be a program name with args.
1991set dummy $ac_prog; ac_word=$2
1992echo "$as_me:$LINENO: checking for $ac_word" >&5
1993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996else
1997 if test -n "$ac_ct_CC"; then
1998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999else
2000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_ac_ct_CC="$ac_prog"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011done
2012done
2013
2014fi
2015fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then
2018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6
2020else
2021 echo "$as_me:$LINENO: result: no" >&5
2022echo "${ECHO_T}no" >&6
2023fi
2024
2025 test -n "$ac_ct_CC" && break
2026done
2027
2028 CC=$ac_ct_CC
2029fi
2030
2031fi
2032
2033
36ba812d 2034test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2035See \`config.log' for more details." >&5
2036echo "$as_me: error: no acceptable C compiler found in \$PATH
2037See \`config.log' for more details." >&2;}
fbb86200 2038 { (exit 1); exit 1; }; }
2039
2040# Provide some information about the compiler.
2041echo "$as_me:$LINENO:" \
2042 "checking for C compiler version" >&5
2043ac_compiler=`set X $ac_compile; echo $2`
2044{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2045 (eval $ac_compiler --version </dev/null >&5) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }
2049{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2050 (eval $ac_compiler -v </dev/null >&5) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }
2054{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2055 (eval $ac_compiler -V </dev/null >&5) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }
2059
2060cat >conftest.$ac_ext <<_ACEOF
2061#line $LINENO "configure"
36ba812d 2062/* confdefs.h. */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h. */
fbb86200 2067
fbb86200 2068int
2069main ()
2070{
2071
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076ac_clean_files_save=$ac_clean_files
36ba812d 2077ac_clean_files="$ac_clean_files a.out a.exe b.out"
fbb86200 2078# Try to create an executable without -o first, disregard a.out.
2079# It will help us diagnose broken compilers, and finding out an intuition
2080# of exeext.
2081echo "$as_me:$LINENO: checking for C compiler default output" >&5
2082echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2083ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2084if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2085 (eval $ac_link_default) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; then
2089 # Find the output, starting from the most likely. This scheme is
2090# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2091# resort.
2092
2093# Be careful to initialize this variable, since it used to be cached.
2094# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2095ac_cv_exeext=
36ba812d 2096# b.out is created by i960 compilers.
2097for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2098do
2099 test -f "$ac_file" || continue
fbb86200 2100 case $ac_file in
36ba812d 2101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2102 ;;
2103 conftest.$ac_ext )
2104 # This is the source file.
2105 ;;
2106 [ab].out )
2107 # We found the default executable, but exeext='' is most
2108 # certainly right.
2109 break;;
2110 *.* )
2111 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2112 # FIXME: I believe we export ac_cv_exeext for Libtool,
2113 # but it would be cool to find out if it's true. Does anybody
2114 # maintain Libtool? --akim.
2115 export ac_cv_exeext
2116 break;;
2117 * )
2118 break;;
fbb86200 2119 esac
2120done
2121else
2122 echo "$as_me: failed program was:" >&5
36ba812d 2123sed 's/^/| /' conftest.$ac_ext >&5
2124
2125{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: C compiler cannot create executables
2128See \`config.log' for more details." >&2;}
fbb86200 2129 { (exit 77); exit 77; }; }
2130fi
2131
2132ac_exeext=$ac_cv_exeext
2133echo "$as_me:$LINENO: result: $ac_file" >&5
2134echo "${ECHO_T}$ac_file" >&6
2135
2136# Check the compiler produces executables we can run. If not, either
2137# the compiler is broken, or we cross compile.
2138echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2139echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2140# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2141# If not cross compiling, check that we can run a simple program.
2142if test "$cross_compiling" != yes; then
2143 if { ac_try='./$ac_file'
2144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 (eval $ac_try) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; }; then
2149 cross_compiling=no
2150 else
2151 if test "$cross_compiling" = maybe; then
2152 cross_compiling=yes
2153 else
2154 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
36ba812d 2155If you meant to cross compile, use \`--host'.
2156See \`config.log' for more details." >&5
fbb86200 2157echo "$as_me: error: cannot run C compiled programs.
36ba812d 2158If you meant to cross compile, use \`--host'.
2159See \`config.log' for more details." >&2;}
fbb86200 2160 { (exit 1); exit 1; }; }
2161 fi
2162 fi
2163fi
2164echo "$as_me:$LINENO: result: yes" >&5
2165echo "${ECHO_T}yes" >&6
2166
36ba812d 2167rm -f a.out a.exe conftest$ac_cv_exeext b.out
fbb86200 2168ac_clean_files=$ac_clean_files_save
2169# Check the compiler produces executables we can run. If not, either
2170# the compiler is broken, or we cross compile.
2171echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2172echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2173echo "$as_me:$LINENO: result: $cross_compiling" >&5
2174echo "${ECHO_T}$cross_compiling" >&6
2175
2176echo "$as_me:$LINENO: checking for suffix of executables" >&5
2177echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2179 (eval $ac_link) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2184# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2185# work properly (i.e., refer to `conftest.exe'), while it won't with
2186# `rm'.
36ba812d 2187for ac_file in conftest.exe conftest conftest.*; do
2188 test -f "$ac_file" || continue
fbb86200 2189 case $ac_file in
36ba812d 2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
fbb86200 2191 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 export ac_cv_exeext
2193 break;;
2194 * ) break;;
2195 esac
2196done
2197else
36ba812d 2198 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2201See \`config.log' for more details." >&2;}
fbb86200 2202 { (exit 1); exit 1; }; }
2203fi
2204
2205rm -f conftest$ac_cv_exeext
2206echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2207echo "${ECHO_T}$ac_cv_exeext" >&6
2208
2209rm -f conftest.$ac_ext
2210EXEEXT=$ac_cv_exeext
2211ac_exeext=$EXEEXT
2212echo "$as_me:$LINENO: checking for suffix of object files" >&5
2213echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2214if test "${ac_cv_objext+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 cat >conftest.$ac_ext <<_ACEOF
2218#line $LINENO "configure"
36ba812d 2219/* confdefs.h. */
2220_ACEOF
2221cat confdefs.h >>conftest.$ac_ext
2222cat >>conftest.$ac_ext <<_ACEOF
2223/* end confdefs.h. */
fbb86200 2224
fbb86200 2225int
2226main ()
2227{
2228
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233rm -f conftest.o conftest.obj
2234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2240 case $ac_file in
36ba812d 2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
fbb86200 2242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2243 break;;
2244 esac
2245done
2246else
2247 echo "$as_me: failed program was:" >&5
36ba812d 2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253See \`config.log' for more details." >&2;}
fbb86200 2254 { (exit 1); exit 1; }; }
2255fi
2256
2257rm -f conftest.$ac_cv_objext conftest.$ac_ext
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260echo "${ECHO_T}$ac_cv_objext" >&6
2261OBJEXT=$ac_cv_objext
2262ac_objext=$OBJEXT
2263echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2264echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2265if test "${ac_cv_c_compiler_gnu+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268 cat >conftest.$ac_ext <<_ACEOF
2269#line $LINENO "configure"
36ba812d 2270/* confdefs.h. */
2271_ACEOF
2272cat confdefs.h >>conftest.$ac_ext
2273cat >>conftest.$ac_ext <<_ACEOF
2274/* end confdefs.h. */
fbb86200 2275
fbb86200 2276int
2277main ()
2278{
2279#ifndef __GNUC__
2280 choke me
2281#endif
2282
2283 ;
2284 return 0;
2285}
2286_ACEOF
2287rm -f conftest.$ac_objext
2288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2299 ac_compiler_gnu=yes
2300else
2301 echo "$as_me: failed program was:" >&5
36ba812d 2302sed 's/^/| /' conftest.$ac_ext >&5
2303
fbb86200 2304ac_compiler_gnu=no
2305fi
2306rm -f conftest.$ac_objext conftest.$ac_ext
2307ac_cv_c_compiler_gnu=$ac_compiler_gnu
2308
2309fi
2310echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2311echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2312GCC=`test $ac_compiler_gnu = yes && echo yes`
2313ac_test_CFLAGS=${CFLAGS+set}
2314ac_save_CFLAGS=$CFLAGS
2315CFLAGS="-g"
2316echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2317echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2318if test "${ac_cv_prog_cc_g+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 cat >conftest.$ac_ext <<_ACEOF
2322#line $LINENO "configure"
36ba812d 2323/* confdefs.h. */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h. */
fbb86200 2328
fbb86200 2329int
2330main ()
2331{
2332
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_prog_cc_g=yes
2350else
2351 echo "$as_me: failed program was:" >&5
36ba812d 2352sed 's/^/| /' conftest.$ac_ext >&5
2353
fbb86200 2354ac_cv_prog_cc_g=no
2355fi
2356rm -f conftest.$ac_objext conftest.$ac_ext
2357fi
2358echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2359echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2360if test "$ac_test_CFLAGS" = set; then
2361 CFLAGS=$ac_save_CFLAGS
2362elif test $ac_cv_prog_cc_g = yes; then
2363 if test "$GCC" = yes; then
2364 CFLAGS="-g -O2"
2365 else
2366 CFLAGS="-g"
2367 fi
2368else
2369 if test "$GCC" = yes; then
2370 CFLAGS="-O2"
2371 else
2372 CFLAGS=
2373 fi
2374fi
36ba812d 2375echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2376echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2377if test "${ac_cv_prog_cc_stdc+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380 ac_cv_prog_cc_stdc=no
2381ac_save_CC=$CC
2382cat >conftest.$ac_ext <<_ACEOF
2383#line $LINENO "configure"
2384/* confdefs.h. */
2385_ACEOF
2386cat confdefs.h >>conftest.$ac_ext
2387cat >>conftest.$ac_ext <<_ACEOF
2388/* end confdefs.h. */
2389#include <stdarg.h>
2390#include <stdio.h>
2391#include <sys/types.h>
2392#include <sys/stat.h>
2393/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2394struct buf { int x; };
2395FILE * (*rcsopen) (struct buf *, struct stat *, int);
2396static char *e (p, i)
2397 char **p;
2398 int i;
2399{
2400 return p[i];
2401}
2402static char *f (char * (*g) (char **, int), char **p, ...)
2403{
2404 char *s;
2405 va_list v;
2406 va_start (v,p);
2407 s = g (p, va_arg (v,int));
2408 va_end (v);
2409 return s;
2410}
2411int test (int i, double x);
2412struct s1 {int (*f) (int a);};
2413struct s2 {int (*f) (double a);};
2414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2415int argc;
2416char **argv;
2417int
2418main ()
2419{
2420return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425# Don't try gcc -ansi; that turns off useful extensions and
2426# breaks some systems' header files.
2427# AIX -qlanglvl=ansi
2428# Ultrix and OSF/1 -std1
2429# HP-UX 10.20 and later -Ae
2430# HP-UX older versions -Aa -D_HPUX_SOURCE
2431# SVR4 -Xc -D__EXTENSIONS__
2432for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2433do
2434 CC="$ac_save_CC $ac_arg"
2435 rm -f conftest.$ac_objext
2436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 ac_cv_prog_cc_stdc=$ac_arg
2448break
2449else
2450 echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453fi
2454rm -f conftest.$ac_objext
2455done
2456rm -f conftest.$ac_ext conftest.$ac_objext
2457CC=$ac_save_CC
2458
2459fi
2460
2461case "x$ac_cv_prog_cc_stdc" in
2462 x|xno)
2463 echo "$as_me:$LINENO: result: none needed" >&5
2464echo "${ECHO_T}none needed" >&6 ;;
2465 *)
2466 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2467echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2468 CC="$CC $ac_cv_prog_cc_stdc" ;;
2469esac
2470
fbb86200 2471# Some people use a C++ compiler to compile C. Since we use `exit',
2472# in C++ we need to declare it. In case someone uses the same compiler
2473# for both compiling C and C++ we need to have the C++ compiler decide
2474# the declaration of exit, since it's the most demanding environment.
2475cat >conftest.$ac_ext <<_ACEOF
2476#ifndef __cplusplus
2477 choke me
2478#endif
2479_ACEOF
2480rm -f conftest.$ac_objext
2481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482 (eval $ac_compile) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 for ac_declaration in \
2493 ''\
2494 '#include <stdlib.h>' \
2495 'extern "C" void std::exit (int) throw (); using std::exit;' \
2496 'extern "C" void std::exit (int); using std::exit;' \
2497 'extern "C" void exit (int) throw ();' \
2498 'extern "C" void exit (int);' \
2499 'void exit (int);'
2500do
2501 cat >conftest.$ac_ext <<_ACEOF
2502#line $LINENO "configure"
36ba812d 2503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
fbb86200 2508#include <stdlib.h>
2509$ac_declaration
fbb86200 2510int
2511main ()
2512{
2513exit (42);
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -s conftest.$ac_objext'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2530 :
2531else
2532 echo "$as_me: failed program was:" >&5
36ba812d 2533sed 's/^/| /' conftest.$ac_ext >&5
2534
fbb86200 2535continue
2536fi
2537rm -f conftest.$ac_objext conftest.$ac_ext
2538 cat >conftest.$ac_ext <<_ACEOF
2539#line $LINENO "configure"
36ba812d 2540/* confdefs.h. */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h. */
fbb86200 2545$ac_declaration
fbb86200 2546int
2547main ()
2548{
2549exit (42);
2550 ;
2551 return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556 (eval $ac_compile) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 break
2567else
2568 echo "$as_me: failed program was:" >&5
36ba812d 2569sed 's/^/| /' conftest.$ac_ext >&5
2570
fbb86200 2571fi
2572rm -f conftest.$ac_objext conftest.$ac_ext
2573done
2574rm -f conftest*
2575if test -n "$ac_declaration"; then
2576 echo '#ifdef __cplusplus' >>confdefs.h
2577 echo $ac_declaration >>confdefs.h
2578 echo '#endif' >>confdefs.h
2579fi
2580
2581else
2582 echo "$as_me: failed program was:" >&5
36ba812d 2583sed 's/^/| /' conftest.$ac_ext >&5
2584
fbb86200 2585fi
2586rm -f conftest.$ac_objext conftest.$ac_ext
2587ac_ext=c
2588ac_cpp='$CPP $CPPFLAGS'
2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592rm -f .deps 2>/dev/null
2593mkdir .deps 2>/dev/null
2594if test -d .deps; then
2595 DEPDIR=.deps
2596else
2597 # MS-DOS does not allow filenames that begin with a dot.
2598 DEPDIR=_deps
2599fi
2600rmdir .deps 2>/dev/null
2601
2602
36ba812d 2603 ac_config_commands="$ac_config_commands depfiles"
fbb86200 2604
2605
2606am_make=${MAKE-make}
2607cat > confinc << 'END'
2608doit:
2609 @echo done
2610END
2611# If we don't find an include directive, just comment out the code.
2612echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2613echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2614am__include="#"
2615am__quote=
2616_am_result=none
2617# First try GNU make style include.
2618echo "include confinc" > confmf
2619# We grep out `Entering directory' and `Leaving directory'
2620# messages which can occur if `w' ends up in MAKEFLAGS.
2621# In particular we don't look at `^make:' because GNU make might
2622# be invoked under some other name (usually "gmake"), in which
2623# case it prints its new name instead of `make'.
2624if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2625 am__include=include
2626 am__quote=
2627 _am_result=GNU
2628fi
2629# Now try BSD make style include.
2630if test "$am__include" = "#"; then
2631 echo '.include "confinc"' > confmf
2632 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2633 am__include=.include
2634 am__quote="\""
2635 _am_result=BSD
2636 fi
2637fi
2638
2639
2640echo "$as_me:$LINENO: result: $_am_result" >&5
2641echo "${ECHO_T}$_am_result" >&6
2642rm -f confinc confmf
2643
2644# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2645if test "${enable_dependency_tracking+set}" = set; then
2646 enableval="$enable_dependency_tracking"
2647
2648fi;
2649if test "x$enable_dependency_tracking" != xno; then
2650 am_depcomp="$ac_aux_dir/depcomp"
2651 AMDEPBACKSLASH='\'
2652fi
2653
2654
2655if test "x$enable_dependency_tracking" != xno; then
2656 AMDEP_TRUE=
2657 AMDEP_FALSE='#'
2658else
2659 AMDEP_TRUE='#'
2660 AMDEP_FALSE=
2661fi
2662
2663
2664
2665
2666depcc="$CC" am_compiler_list=
2667
2668echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2669echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2670if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2672else
2673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2674 # We make a subdir and do the tests there. Otherwise we can end up
2675 # making bogus files that we don't know about and never remove. For
2676 # instance it was reported that on HP-UX the gcc test will end up
2677 # making a dummy file named `D' -- because `-MD' means `put the output
2678 # in D'.
2679 mkdir conftest.dir
2680 # Copy depcomp to subdir because otherwise we won't find it if we're
2681 # using a relative directory.
2682 cp "$am_depcomp" conftest.dir
2683 cd conftest.dir
2684
2685 am_cv_CC_dependencies_compiler_type=none
2686 if test "$am_compiler_list" = ""; then
2687 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2688 fi
2689 for depmode in $am_compiler_list; do
2690 # We need to recreate these files for each test, as the compiler may
2691 # overwrite some of them when testing with obscure command lines.
2692 # This happens at least with the AIX C compiler.
2693 echo '#include "conftest.h"' > conftest.c
2694 echo 'int i;' > conftest.h
2695 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2696
2697 case $depmode in
2698 nosideeffect)
2699 # after this tag, mechanisms are not by side-effect, so they'll
2700 # only be used when explicitly requested
2701 if test "x$enable_dependency_tracking" = xyes; then
2702 continue
2703 else
2704 break
2705 fi
2706 ;;
2707 none) break ;;
2708 esac
2709 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2710 # mode. It turns out that the SunPro C++ compiler does not properly
2711 # handle `-M -o', and we need to detect this.
2712 if depmode=$depmode \
2713 source=conftest.c object=conftest.o \
2714 depfile=conftest.Po tmpdepfile=conftest.TPo \
2715 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2716 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2718 am_cv_CC_dependencies_compiler_type=$depmode
2719 break
2720 fi
2721 done
2722
2723 cd ..
2724 rm -rf conftest.dir
2725else
2726 am_cv_CC_dependencies_compiler_type=none
2727fi
2728
2729fi
2730echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2731echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2732CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2733
2734
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2741echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2742# On Suns, sometimes $CPP names a directory.
2743if test -n "$CPP" && test -d "$CPP"; then
2744 CPP=
2745fi
2746if test -z "$CPP"; then
2747 if test "${ac_cv_prog_CPP+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749else
2750 # Double quotes because CPP needs to be expanded
2751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2752 do
2753 ac_preproc_ok=false
2754for ac_c_preproc_warn_flag in '' yes
2755do
2756 # Use a header file that comes with gcc, so configuring glibc
2757 # with a fresh cross-compiler works.
36ba812d 2758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2759 # <limits.h> exists even on freestanding compilers.
fbb86200 2760 # On the NeXT, cc -E runs the code through the compiler's parser,
2761 # not just through cpp. "Syntax error" is here to catch this case.
2762 cat >conftest.$ac_ext <<_ACEOF
2763#line $LINENO "configure"
36ba812d 2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769#ifdef __STDC__
2770# include <limits.h>
2771#else
2772# include <assert.h>
2773#endif
fbb86200 2774 Syntax error
2775_ACEOF
2776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2778 ac_status=$?
36ba812d 2779 grep -v '^ *+' conftest.er1 >conftest.err
fbb86200 2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } >/dev/null; then
2784 if test -s conftest.err; then
2785 ac_cpp_err=$ac_c_preproc_warn_flag
2786 else
2787 ac_cpp_err=
2788 fi
2789else
2790 ac_cpp_err=yes
2791fi
2792if test -z "$ac_cpp_err"; then
2793 :
2794else
2795 echo "$as_me: failed program was:" >&5
36ba812d 2796sed 's/^/| /' conftest.$ac_ext >&5
2797
fbb86200 2798 # Broken: fails on valid input.
2799continue
2800fi
2801rm -f conftest.err conftest.$ac_ext
2802
2803 # OK, works on sane cases. Now check whether non-existent headers
2804 # can be detected and how.
2805 cat >conftest.$ac_ext <<_ACEOF
2806#line $LINENO "configure"
36ba812d 2807/* confdefs.h. */
2808_ACEOF
2809cat confdefs.h >>conftest.$ac_ext
2810cat >>conftest.$ac_ext <<_ACEOF
2811/* end confdefs.h. */
fbb86200 2812#include <ac_nonexistent.h>
2813_ACEOF
2814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2816 ac_status=$?
36ba812d 2817 grep -v '^ *+' conftest.er1 >conftest.err
fbb86200 2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } >/dev/null; then
2822 if test -s conftest.err; then
2823 ac_cpp_err=$ac_c_preproc_warn_flag
2824 else
2825 ac_cpp_err=
2826 fi
2827else
2828 ac_cpp_err=yes
2829fi
2830if test -z "$ac_cpp_err"; then
2831 # Broken: success on invalid input.
2832continue
2833else
2834 echo "$as_me: failed program was:" >&5
36ba812d 2835sed 's/^/| /' conftest.$ac_ext >&5
2836
fbb86200 2837 # Passes both tests.
2838ac_preproc_ok=:
2839break
2840fi
2841rm -f conftest.err conftest.$ac_ext
2842
2843done
2844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2845rm -f conftest.err conftest.$ac_ext
2846if $ac_preproc_ok; then
2847 break
2848fi
2849
2850 done
2851 ac_cv_prog_CPP=$CPP
2852
2853fi
2854 CPP=$ac_cv_prog_CPP
2855else
2856 ac_cv_prog_CPP=$CPP
2857fi
2858echo "$as_me:$LINENO: result: $CPP" >&5
2859echo "${ECHO_T}$CPP" >&6
2860ac_preproc_ok=false
2861for ac_c_preproc_warn_flag in '' yes
2862do
2863 # Use a header file that comes with gcc, so configuring glibc
2864 # with a fresh cross-compiler works.
36ba812d 2865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2866 # <limits.h> exists even on freestanding compilers.
fbb86200 2867 # On the NeXT, cc -E runs the code through the compiler's parser,
2868 # not just through cpp. "Syntax error" is here to catch this case.
2869 cat >conftest.$ac_ext <<_ACEOF
2870#line $LINENO "configure"
36ba812d 2871/* confdefs.h. */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h. */
2876#ifdef __STDC__
2877# include <limits.h>
2878#else
2879# include <assert.h>
2880#endif
fbb86200 2881 Syntax error
2882_ACEOF
2883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2885 ac_status=$?
36ba812d 2886 grep -v '^ *+' conftest.er1 >conftest.err
fbb86200 2887 rm -f conftest.er1
2888 cat conftest.err >&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); } >/dev/null; then
2891 if test -s conftest.err; then
2892 ac_cpp_err=$ac_c_preproc_warn_flag
2893 else
2894 ac_cpp_err=
2895 fi
2896else
2897 ac_cpp_err=yes
2898fi
2899if test -z "$ac_cpp_err"; then
2900 :
2901else
2902 echo "$as_me: failed program was:" >&5
36ba812d 2903sed 's/^/| /' conftest.$ac_ext >&5
2904
fbb86200 2905 # Broken: fails on valid input.
2906continue
2907fi
2908rm -f conftest.err conftest.$ac_ext
2909
2910 # OK, works on sane cases. Now check whether non-existent headers
2911 # can be detected and how.
2912 cat >conftest.$ac_ext <<_ACEOF
2913#line $LINENO "configure"
36ba812d 2914/* confdefs.h. */
2915_ACEOF
2916cat confdefs.h >>conftest.$ac_ext
2917cat >>conftest.$ac_ext <<_ACEOF
2918/* end confdefs.h. */
fbb86200 2919#include <ac_nonexistent.h>
2920_ACEOF
2921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2923 ac_status=$?
36ba812d 2924 grep -v '^ *+' conftest.er1 >conftest.err
fbb86200 2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } >/dev/null; then
2929 if test -s conftest.err; then
2930 ac_cpp_err=$ac_c_preproc_warn_flag
2931 else
2932 ac_cpp_err=
2933 fi
2934else
2935 ac_cpp_err=yes
2936fi
2937if test -z "$ac_cpp_err"; then
2938 # Broken: success on invalid input.
2939continue
2940else
2941 echo "$as_me: failed program was:" >&5
36ba812d 2942sed 's/^/| /' conftest.$ac_ext >&5
2943
fbb86200 2944 # Passes both tests.
2945ac_preproc_ok=:
2946break
2947fi
2948rm -f conftest.err conftest.$ac_ext
2949
2950done
2951# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2952rm -f conftest.err conftest.$ac_ext
2953if $ac_preproc_ok; then
2954 :
2955else
36ba812d 2956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2957See \`config.log' for more details." >&5
2958echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2959See \`config.log' for more details." >&2;}
fbb86200 2960 { (exit 1); exit 1; }; }
2961fi
2962
2963ac_ext=c
2964ac_cpp='$CPP $CPPFLAGS'
2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968
2969
2970for ac_prog in flex lex
2971do
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973set dummy $ac_prog; ac_word=$2
2974echo "$as_me:$LINENO: checking for $ac_word" >&5
2975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976if test "${ac_cv_prog_LEX+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979 if test -n "$LEX"; then
2980 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_LEX="$ac_prog"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994done
2995
2996fi
2997fi
2998LEX=$ac_cv_prog_LEX
2999if test -n "$LEX"; then
3000 echo "$as_me:$LINENO: result: $LEX" >&5
3001echo "${ECHO_T}$LEX" >&6
3002else
3003 echo "$as_me:$LINENO: result: no" >&5
3004echo "${ECHO_T}no" >&6
3005fi
3006
3007 test -n "$LEX" && break
3008done
3009test -n "$LEX" || LEX=":"
3010
3011if test -z "$LEXLIB"
3012then
3013 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3014echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3015if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 ac_check_lib_save_LIBS=$LIBS
3019LIBS="-lfl $LIBS"
3020cat >conftest.$ac_ext <<_ACEOF
3021#line $LINENO "configure"
36ba812d 3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
fbb86200 3027
3028/* Override any gcc2 internal prototype to avoid an error. */
3029#ifdef __cplusplus
3030extern "C"
3031#endif
3032/* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3034char yywrap ();
fbb86200 3035int
3036main ()
3037{
3038yywrap ();
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext conftest$ac_exeext
3044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3045 (eval $ac_link) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -s conftest$ac_exeext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 ac_cv_lib_fl_yywrap=yes
3056else
3057 echo "$as_me: failed program was:" >&5
36ba812d 3058sed 's/^/| /' conftest.$ac_ext >&5
3059
fbb86200 3060ac_cv_lib_fl_yywrap=no
3061fi
3062rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063LIBS=$ac_check_lib_save_LIBS
3064fi
3065echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3066echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3067if test $ac_cv_lib_fl_yywrap = yes; then
3068 LEXLIB="-lfl"
3069else
3070 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3071echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3072if test "${ac_cv_lib_l_yywrap+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075 ac_check_lib_save_LIBS=$LIBS
3076LIBS="-ll $LIBS"
3077cat >conftest.$ac_ext <<_ACEOF
3078#line $LINENO "configure"
36ba812d 3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
fbb86200 3084
3085/* Override any gcc2 internal prototype to avoid an error. */
3086#ifdef __cplusplus
3087extern "C"
3088#endif
3089/* We use char because int might match the return type of a gcc2
3090 builtin and then its argument prototype would still apply. */
3091char yywrap ();
fbb86200 3092int
3093main ()
3094{
3095yywrap ();
3096 ;
3097 return 0;
3098}
3099_ACEOF
3100rm -f conftest.$ac_objext conftest$ac_exeext
3101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3102 (eval $ac_link) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -s conftest$ac_exeext'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 (eval $ac_try) 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 ac_cv_lib_l_yywrap=yes
3113else
3114 echo "$as_me: failed program was:" >&5
36ba812d 3115sed 's/^/| /' conftest.$ac_ext >&5
3116
fbb86200 3117ac_cv_lib_l_yywrap=no
3118fi
3119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3120LIBS=$ac_check_lib_save_LIBS
3121fi
3122echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3123echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3124if test $ac_cv_lib_l_yywrap = yes; then
3125 LEXLIB="-ll"
3126fi
3127
3128fi
3129
3130fi
3131
3132if test "x$LEX" != "x:"; then
3133 echo "$as_me:$LINENO: checking lex output file root" >&5
3134echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3135if test "${ac_cv_prog_lex_root+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138 # The minimal lex program is just a single line: %%. But some broken lexes
3139# (Solaris, I think it was) want two %% lines, so accommodate them.
3140cat >conftest.l <<_ACEOF
3141%%
3142%%
3143_ACEOF
3144{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3145 (eval $LEX conftest.l) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149if test -f lex.yy.c; then
3150 ac_cv_prog_lex_root=lex.yy
3151elif test -f lexyy.c; then
3152 ac_cv_prog_lex_root=lexyy
3153else
3154 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3155echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3156 { (exit 1); exit 1; }; }
3157fi
3158fi
3159echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3160echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3161rm -f conftest.l
3162LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3163
3164echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3165echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3166if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169 # POSIX says lex can declare yytext either as a pointer or an array; the
3170# default is implementation-dependent. Figure out which it is, since
3171# not all implementations provide the %pointer and %array declarations.
3172ac_cv_prog_lex_yytext_pointer=no
3173echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3174ac_save_LIBS=$LIBS
3175LIBS="$LIBS $LEXLIB"
3176cat >conftest.$ac_ext <<_ACEOF
3177`cat $LEX_OUTPUT_ROOT.c`
3178_ACEOF
3179rm -f conftest.$ac_objext conftest$ac_exeext
3180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181 (eval $ac_link) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_prog_lex_yytext_pointer=yes
3192else
3193 echo "$as_me: failed program was:" >&5
36ba812d 3194sed 's/^/| /' conftest.$ac_ext >&5
3195
fbb86200 3196fi
3197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198LIBS=$ac_save_LIBS
3199rm -f "${LEX_OUTPUT_ROOT}.c"
3200
3201fi
3202echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3203echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3204if test $ac_cv_prog_lex_yytext_pointer = yes; then
3205
3206cat >>confdefs.h <<\_ACEOF
3207#define YYTEXT_POINTER 1
3208_ACEOF
3209
3210fi
3211
3212fi
3213if test "$LEX" = :; then
3214 LEX=${am_missing_run}flex
3215fi
3216# Find a good install program. We prefer a C program (faster),
3217# so one script is as good as another. But avoid the broken or
3218# incompatible versions:
3219# SysV /etc/install, /usr/sbin/install
3220# SunOS /usr/etc/install
3221# IRIX /sbin/install
3222# AIX /bin/install
3223# AmigaOS /C/install, which installs bootblocks on floppy discs
3224# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3225# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3226# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3227# ./install, which can be erroneously created by make from ./install.sh.
3228echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3229echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3230if test -z "$INSTALL"; then
3231if test "${ac_cv_path_install+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 # Account for people who put trailing slashes in PATH elements.
3240case $as_dir/ in
3241 ./ | .// | /cC/* | \
3242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3243 /usr/ucb/* ) ;;
3244 *)
3245 # OSF1 and SCO ODT 3.0 have their own names for install.
3246 # Don't use installbsd from OSF since it installs stuff as root
3247 # by default.
3248 for ac_prog in ginstall scoinst install; do
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3251 if test $ac_prog = install &&
3252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3253 # AIX install. It has an incompatible calling convention.
3254 :
3255 elif test $ac_prog = install &&
3256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3257 # program-specific install script used by HP pwplus--don't use.
3258 :
3259 else
3260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3261 break 3
3262 fi
3263 fi
3264 done
3265 done
3266 ;;
3267esac
3268done
3269
3270
3271fi
3272 if test "${ac_cv_path_install+set}" = set; then
3273 INSTALL=$ac_cv_path_install
3274 else
3275 # As a last resort, use the slow shell script. We don't cache a
3276 # path for INSTALL within a source directory, because that will
3277 # break other packages using the cache if that directory is
3278 # removed, or if the path is relative.
3279 INSTALL=$ac_install_sh
3280 fi
3281fi
3282echo "$as_me:$LINENO: result: $INSTALL" >&5
3283echo "${ECHO_T}$INSTALL" >&6
3284
3285# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3286# It thinks the first close brace ends the variable substitution.
3287test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3288
3289test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3290
3291test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3292
36ba812d 3293echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3294echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
fbb86200 3295set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3296if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 cat >conftest.make <<\_ACEOF
3300all:
36ba812d 3301 @echo 'ac_maketemp="$(MAKE)"'
fbb86200 3302_ACEOF
3303# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3304eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3305if test -n "$ac_maketemp"; then
3306 eval ac_cv_prog_make_${ac_make}_set=yes
3307else
3308 eval ac_cv_prog_make_${ac_make}_set=no
3309fi
3310rm -f conftest.make
3311fi
3312if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3313 echo "$as_me:$LINENO: result: yes" >&5
3314echo "${ECHO_T}yes" >&6
3315 SET_MAKE=
3316else
3317 echo "$as_me:$LINENO: result: no" >&5
3318echo "${ECHO_T}no" >&6
3319 SET_MAKE="MAKE=${MAKE-make}"
3320fi
3321
3322echo "$as_me:$LINENO: checking whether ln -s works" >&5
3323echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3324LN_S=$as_ln_s
3325if test "$LN_S" = "ln -s"; then
3326 echo "$as_me:$LINENO: result: yes" >&5
3327echo "${ECHO_T}yes" >&6
3328else
3329 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3330echo "${ECHO_T}no, using $LN_S" >&6
3331fi
3332
3333# Extract the first word of "bison", so it can be a program name with args.
3334set dummy bison; ac_word=$2
3335echo "$as_me:$LINENO: checking for $ac_word" >&5
3336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337if test "${ac_cv_prog_BISON+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339else
3340 if test -n "$BISON"; then
3341 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 ac_cv_prog_BISON="bison"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354done
3355done
3356
3357 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="no"
3358fi
3359fi
3360BISON=$ac_cv_prog_BISON
3361if test -n "$BISON"; then
3362 echo "$as_me:$LINENO: result: $BISON" >&5
3363echo "${ECHO_T}$BISON" >&6
3364else
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368
3369# Extract the first word of "grep", so it can be a program name with args.
3370set dummy grep; ac_word=$2
3371echo "$as_me:$LINENO: checking for $ac_word" >&5
3372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373if test "${ac_cv_prog_GREP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376 if test -n "$GREP"; then
3377 ac_cv_prog_GREP="$GREP" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382 IFS=$as_save_IFS
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_GREP="grep"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 break 2
3389 fi
3390done
3391done
3392
3393 test -z "$ac_cv_prog_GREP" && ac_cv_prog_GREP="grep-is-missing"
3394fi
3395fi
3396GREP=$ac_cv_prog_GREP
3397if test -n "$GREP"; then
3398 echo "$as_me:$LINENO: result: $GREP" >&5
3399echo "${ECHO_T}$GREP" >&6
3400else
3401 echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
3404
3405# Extract the first word of "diff", so it can be a program name with args.
3406set dummy diff; ac_word=$2
3407echo "$as_me:$LINENO: checking for $ac_word" >&5
3408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409if test "${ac_cv_prog_DIFF+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412 if test -n "$DIFF"; then
3413 ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_DIFF="diff"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427done
3428
3429 test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff-is-missing"
3430fi
3431fi
3432DIFF=$ac_cv_prog_DIFF
3433if test -n "$DIFF"; then
3434 echo "$as_me:$LINENO: result: $DIFF" >&5
3435echo "${ECHO_T}$DIFF" >&6
3436else
3437 echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439fi
3440
3441# Extract the first word of "cat", so it can be a program name with args.
3442set dummy cat; ac_word=$2
3443echo "$as_me:$LINENO: checking for $ac_word" >&5
3444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445if test "${ac_cv_prog_CAT+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448 if test -n "$CAT"; then
3449 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3450else
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_CAT="cat"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463done
3464
3465 test -z "$ac_cv_prog_CAT" && ac_cv_prog_CAT="cat-is-missing"
3466fi
3467fi
3468CAT=$ac_cv_prog_CAT
3469if test -n "$CAT"; then
3470 echo "$as_me:$LINENO: result: $CAT" >&5
3471echo "${ECHO_T}$CAT" >&6
3472else
3473 echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6
3475fi
3476
3477# Extract the first word of "rm", so it can be a program name with args.
3478set dummy rm; ac_word=$2
3479echo "$as_me:$LINENO: checking for $ac_word" >&5
3480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3481if test "${ac_cv_prog_RM+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484 if test -n "$RM"; then
3485 ac_cv_prog_RM="$RM" # Let the user override the test.
3486else
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_RM="rm"
3495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498done
3499done
3500
3501 test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="rm-is-missing"
3502fi
3503fi
3504RM=$ac_cv_prog_RM
3505if test -n "$RM"; then
3506 echo "$as_me:$LINENO: result: $RM" >&5
3507echo "${ECHO_T}$RM" >&6
3508else
3509 echo "$as_me:$LINENO: result: no" >&5
3510echo "${ECHO_T}no" >&6
3511fi
3512
3513# Extract the first word of "mv", so it can be a program name with args.
3514set dummy mv; ac_word=$2
3515echo "$as_me:$LINENO: checking for $ac_word" >&5
3516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3517if test "${ac_cv_prog_MV+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520 if test -n "$MV"; then
3521 ac_cv_prog_MV="$MV" # Let the user override the test.
3522else
3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524for as_dir in $PATH
3525do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_MV="mv"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534done
3535done
3536
3537 test -z "$ac_cv_prog_MV" && ac_cv_prog_MV="mv-is-missing"
3538fi
3539fi
3540MV=$ac_cv_prog_MV
3541if test -n "$MV"; then
3542 echo "$as_me:$LINENO: result: $MV" >&5
3543echo "${ECHO_T}$MV" >&6
3544else
3545 echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
3547fi
3548
3549# Extract the first word of "cp", so it can be a program name with args.
3550set dummy cp; ac_word=$2
3551echo "$as_me:$LINENO: checking for $ac_word" >&5
3552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553if test "${ac_cv_prog_CP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 if test -n "$CP"; then
3557 ac_cv_prog_CP="$CP" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566 ac_cv_prog_CP="cp"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570done
3571done
3572
3573 test -z "$ac_cv_prog_CP" && ac_cv_prog_CP="cp-is-missing"
3574fi
3575fi
3576CP=$ac_cv_prog_CP
3577if test -n "$CP"; then
3578 echo "$as_me:$LINENO: result: $CP" >&5
3579echo "${ECHO_T}$CP" >&6
3580else
3581 echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
3583fi
3584
3585# Extract the first word of "sed", so it can be a program name with args.
3586set dummy sed; ac_word=$2
3587echo "$as_me:$LINENO: checking for $ac_word" >&5
3588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589if test "${ac_cv_prog_SED+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592 if test -n "$SED"; then
3593 ac_cv_prog_SED="$SED" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_SED="sed"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606done
3607done
3608
3609 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="sed-is-missing"
3610fi
3611fi
3612SED=$ac_cv_prog_SED
3613if test -n "$SED"; then
3614 echo "$as_me:$LINENO: result: $SED" >&5
3615echo "${ECHO_T}$SED" >&6
3616else
3617 echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
3619fi
3620
3621
3622
3623
3624
3625
3626echo "$as_me:$LINENO: checking whether we need _ALL_SOURCE to expose mode_t" >&5
3627echo $ECHO_N "checking whether we need _ALL_SOURCE to expose mode_t... $ECHO_C" >&6
3628all=no
3629cat >conftest.$ac_ext <<_ACEOF
3630#line $LINENO "configure"
36ba812d 3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
fbb86200 3636
3637#include <stdio.h>
3638mode_t x;
3639
fbb86200 3640int
3641main ()
3642{
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try='test -s conftest.$ac_objext'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656 (eval $ac_try) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; }; then
3660 :
3661else
3662 echo "$as_me: failed program was:" >&5
36ba812d 3663sed 's/^/| /' conftest.$ac_ext >&5
3664
fbb86200 3665all=maybe
3666fi
3667rm -f conftest.$ac_objext conftest.$ac_ext
3668if test $all = maybe ; then
3669cat >conftest.$ac_ext <<_ACEOF
3670#line $LINENO "configure"
36ba812d 3671/* confdefs.h. */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h. */
fbb86200 3676
3677#define _ALL_SOURCE
3678#include <stdio.h>
3679mode_t x;
3680
fbb86200 3681int
3682main ()
3683{
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 cat >>confdefs.h <<\_ACEOF
3702#define _ALL_SOURCE 1
3703_ACEOF
3704 all=yes
3705else
3706 echo "$as_me: failed program was:" >&5
36ba812d 3707sed 's/^/| /' conftest.$ac_ext >&5
3708
fbb86200 3709fi
3710rm -f conftest.$ac_objext conftest.$ac_ext
3711fi
3712if test $all = maybe ; then all=no ; fi
3713echo "$as_me:$LINENO: result: $all" >&5
3714echo "${ECHO_T}$all" >&6
3715
36ba812d 3716
3717
fbb86200 3718LCLOBJ='$(lcl_OBJECTS)'
3719
3720# Check whether --with-lcl or --without-lcl was given.
3721if test "${with_lcl+set}" = set; then
3722 withval="$with_lcl"
3723 ac_cv_use_lcl=$withval
3724else
3725 echo "$as_me:$LINENO: checking whether to include support for LCL files" >&5
3726echo $ECHO_N "checking whether to include support for LCL files... $ECHO_C" >&6
3727if test "${ac_cv_use_lcl+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 ac_cv_use_lcl=yes
3731fi
3732echo "$as_me:$LINENO: result: $ac_cv_use_lcl" >&5
3733echo "${ECHO_T}$ac_cv_use_lcl" >&6
3734fi;
3735if test x$ac_cv_use_lcl != xyes; then
3736 LCLOBJ=
3737
3738cat >>confdefs.h <<\_ACEOF
3739#define NOLCL 1
3740_ACEOF
3741
3742fi
3743
3744
3745# Make sure we have an actual value for $prefix
3746myprefix=$prefix
3747test x$myprefix = xNONE && myprefix=$ac_default_prefix
3748
3749
3750### Yuck! This is really kludgey, but I don't understand autoconf well
3751### enough to do something simple that always works. Hopefully this does.
3752
3753# cpplib.h defines 2 include dirs; one is $includedir, the other is gcc's
3754# include dir. Not the most portable setup, but let's do our best.
3755
3756if test x$GCC = xyes; then
3757
3758# This breaks on gcc-3.0 on redhat fixing drl 11-15-2001
3759# GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/'`
3760GCC_INCLUDE_DIR=/usr/include
3761# was /usr/lib/gcc-lib/i386-linux/2.7.2.1/include
3762# GCC_INCLUDE_DIR=`LANGUAGE= LANG= $CC -v 2>&1 | sed -n -e '/^gcc/ d' -e 's/.* \(.*\)specs/\1include/p'`
3763
3764cat >>confdefs.h <<_ACEOF
3765#define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR"
3766_ACEOF
3767
3768else
3769GCC_INCLUDE_DIR=/usr/include
3770
3771cat >>confdefs.h <<_ACEOF
3772#define GCC_INCLUDE_DIR "$GCC_INCLUDE_DIR"
3773_ACEOF
3774
3775fi
3776
3777
3778cat >>confdefs.h <<_ACEOF
3779#define GCC_INCLUDE_DIR2 "$myprefix/include"
3780_ACEOF
3781
3782
3783# These used to be in local_constants.h
3784
3785cat >>confdefs.h <<_ACEOF
3786#define SYSTEM_LIBDIR "$myprefix/include"
3787_ACEOF
3788
3789
3790cat >>confdefs.h <<_ACEOF
3791#define DEFAULT_LARCHPATH ".$PATH_SEPARATOR$myprefix/share/splint/lib$PATH_SEPARATOR`pwd`/lib$PATH_SEPARATOR"
3792_ACEOF
3793
3794
3795cat >>confdefs.h <<_ACEOF
3796#define DEFAULT_LCLIMPORTDIR ".$PATH_SEPARATOR$myprefix/share/splint/imports$PATH_SEPARATOR`pwd`/imports"
3797_ACEOF
3798
3799
3800# These used to be in herald.h
36ba812d 3801LCL_PARSE_VERSION="Splint 3.1.1"
fbb86200 3802
3803cat >>confdefs.h <<_ACEOF
3804#define SPLINT_VERSION "$LCL_PARSE_VERSION --- `date +"%d %b %Y"`"
3805_ACEOF
3806
3807
3808cat >>confdefs.h <<_ACEOF
3809#define LCL_PARSE_VERSION "$LCL_PARSE_VERSION"
3810_ACEOF
3811
3812
3813cat >>confdefs.h <<_ACEOF
3814#define LCL_COMPILE "Compiled using $CC $CFLAGS on `uname -a` by `whoami`"
3815_ACEOF
3816
3817
3818
3819
3820cat >>confdefs.h <<\_ACEOF
3821#define UNIX 1
3822_ACEOF
3823
3824
3825#just define some Header constants for now...
3826
3827UNAME=`uname`
36ba812d 3828
fbb86200 3829cat >>confdefs.h <<_ACEOF
3830#define UNAME "${UNAME}"
3831_ACEOF
3832
3833
36ba812d 3834
fbb86200 3835cat >>confdefs.h <<_ACEOF
3836#define BUILD "${build}"
3837_ACEOF
3838
36ba812d 3839
fbb86200 3840cat >>confdefs.h <<_ACEOF
3841#define HOST "${host}"
3842_ACEOF
3843
36ba812d 3844
fbb86200 3845cat >>confdefs.h <<_ACEOF
3846#define TARGET "${target}"
3847_ACEOF
3848
3849
36ba812d 3850
fbb86200 3851cat >>confdefs.h <<_ACEOF
3852#define BUILD_ALIAS "${build_alias}"
3853_ACEOF
3854
36ba812d 3855
fbb86200 3856cat >>confdefs.h <<_ACEOF
3857#define HOST_ALIAS "${host_alias}"
3858_ACEOF
3859
36ba812d 3860
fbb86200 3861cat >>confdefs.h <<_ACEOF
3862#define TARGET_ALIAS "${TARGET_ALIAS}"
3863_ACEOF
3864
3865
36ba812d 3866
fbb86200 3867cat >>confdefs.h <<_ACEOF
3868#define BUILD_CPU "${build_cpu}"
3869_ACEOF
3870
36ba812d 3871
fbb86200 3872cat >>confdefs.h <<_ACEOF
3873#define HOST_CPU "$host_cpu"
3874_ACEOF
508533c5 3875
36ba812d 3876
fbb86200 3877cat >>confdefs.h <<_ACEOF
3878#define TARGET_CPU "${target_cpu}"
3879_ACEOF
508533c5 3880
508533c5 3881
36ba812d 3882
fbb86200 3883cat >>confdefs.h <<_ACEOF
3884#define BUILD_VENDOR "${build_vendor}"
3885_ACEOF
508533c5 3886
36ba812d 3887
fbb86200 3888cat >>confdefs.h <<_ACEOF
3889#define HOST_VENDOR "${host_vendor}"
3890_ACEOF
508533c5 3891
36ba812d 3892
fbb86200 3893cat >>confdefs.h <<_ACEOF
3894#define TARGET_VENDOR "${target_vendor}"
3895_ACEOF
3896
3897
36ba812d 3898
fbb86200 3899cat >>confdefs.h <<_ACEOF
3900#define BUILD_OS "${build_os}"
3901_ACEOF
3902
36ba812d 3903
fbb86200 3904cat >>confdefs.h <<_ACEOF
3905#define HOST_OS "${host_os}"
3906_ACEOF
3907
36ba812d 3908
fbb86200 3909cat >>confdefs.h <<_ACEOF
3910#define TARGET_OS "${target_os}"
3911_ACEOF
3912
3913
3914
3915
3916
36ba812d 3917 ac_config_files="$ac_config_files Makefile imports/Makefile lib/Makefile src/Makefile test/Makefile doc/Makefile bin/Makefile"
fbb86200 3918
3919cat >confcache <<\_ACEOF
3920# This file is a shell script that caches the results of configure
3921# tests run on this system so they can be shared between configure
3922# scripts and configure runs, see configure's option --config-cache.
3923# It is not useful on other systems. If it contains results you don't
3924# want to keep, you may remove or edit it.
3925#
3926# config.status only pays attention to the cache file if you give it
3927# the --recheck option to rerun configure.
3928#
36ba812d 3929# `ac_cv_env_foo' variables (set or unset) will be overridden when
fbb86200 3930# loading this file, other *unset* `ac_cv_foo' will be assigned the
3931# following values.
3932
3933_ACEOF
3934
3935# The following way of writing the cache mishandles newlines in values,
3936# but we know of no workaround that is simple, portable, and efficient.
3937# So, don't put newlines in cache variables' values.
3938# Ultrix sh set writes to stderr and can't be redirected directly,
3939# and sets the high bit in the cache file unless we assign to the vars.
3940{
3941 (set) 2>&1 |
3942 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3943 *ac_space=\ *)
3944 # `set' does not quote correctly, so add quotes (double-quote
3945 # substitution turns \\\\ into \\, and sed turns \\ into \).
3946 sed -n \
3947 "s/'/'\\\\''/g;
3948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3949 ;;
3950 *)
3951 # `set' quotes correctly as required by POSIX, so do not add quotes.
3952 sed -n \
3953 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3954 ;;
3955 esac;
3956} |
3957 sed '
3958 t clear
3959 : clear
3960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3961 t end
3962 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3963 : end' >>confcache
36ba812d 3964if diff $cache_file confcache >/dev/null 2>&1; then :; else
fbb86200 3965 if test -w $cache_file; then
3966 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3967 cat confcache >$cache_file
508533c5 3968 else
fbb86200 3969 echo "not updating unwritable cache $cache_file"
508533c5 3970 fi
508533c5 3971fi
fbb86200 3972rm -f confcache
508533c5 3973
fbb86200 3974test "x$prefix" = xNONE && prefix=$ac_default_prefix
3975# Let make expand exec_prefix.
3976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
508533c5 3977
fbb86200 3978# VPATH may cause trouble with some makes, so we remove $(srcdir),
3979# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3980# trailing colons and then remove the whole line if VPATH becomes empty
3981# (actually we leave an empty line to preserve line numbers).
3982if test "x$srcdir" = x.; then
3983 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3984s/:*\$(srcdir):*/:/;
3985s/:*\${srcdir}:*/:/;
3986s/:*@srcdir@:*/:/;
3987s/^\([^=]*=[ ]*\):*/\1/;
3988s/:*$//;
3989s/^[^=]*=[ ]*$//;
3990}'
508533c5 3991fi
508533c5 3992
fbb86200 3993DEFS=-DHAVE_CONFIG_H
508533c5 3994
36ba812d 3995ac_libobjs=
3996ac_ltlibobjs=
3997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3998 # 1. Remove the extension, and $U if already installed.
3999 ac_i=`echo "$ac_i" |
4000 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4001 # 2. Add them.
4002 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4003 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4004done
4005LIBOBJS=$ac_libobjs
4006
4007LTLIBOBJS=$ac_ltlibobjs
4008
4009
fbb86200 4010if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4011 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4012Usually this means the macro was only invoked conditionally." >&5
4013echo "$as_me: error: conditional \"AMDEP\" was never defined.
4014Usually this means the macro was only invoked conditionally." >&2;}
4015 { (exit 1); exit 1; }; }
508533c5 4016fi
4017
fbb86200 4018: ${CONFIG_STATUS=./config.status}
4019ac_clean_files_save=$ac_clean_files
4020ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4021{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4022echo "$as_me: creating $CONFIG_STATUS" >&6;}
4023cat >$CONFIG_STATUS <<_ACEOF
4024#! $SHELL
4025# Generated by $as_me.
4026# Run this file to recreate the current configuration.
4027# Compiler output produced by configure, useful for debugging
4028# configure, is in config.log if it exists.
508533c5 4029
fbb86200 4030debug=false
36ba812d 4031ac_cs_recheck=false
4032ac_cs_silent=false
fbb86200 4033SHELL=\${CONFIG_SHELL-$SHELL}
4034_ACEOF
4035
4036cat >>$CONFIG_STATUS <<\_ACEOF
fbb86200 4037## --------------------- ##
4038## M4sh Initialization. ##
4039## --------------------- ##
508533c5 4040
fbb86200 4041# Be Bourne compatible
4042if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4043 emulate sh
4044 NULLCMD=:
36ba812d 4045 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4046 # is contrary to our usage. Disable this feature.
4047 alias -g '${1+"$@"}'='"$@"'
fbb86200 4048elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4049 set -o posix
508533c5 4050fi
4051
fbb86200 4052# Support unset when possible.
4053if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4054 as_unset=unset
508533c5 4055else
fbb86200 4056 as_unset=false
508533c5 4057fi
508533c5 4058
36ba812d 4059
4060# Work around bugs in pre-3.0 UWIN ksh.
4061$as_unset ENV MAIL MAILPATH
4062PS1='$ '
4063PS2='> '
4064PS4='+ '
4065
4066# NLS nuisances.
4067for as_var in \
4068 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4069 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4070 LC_TELEPHONE LC_TIME
4071do
4072 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4073 eval $as_var=C; export $as_var
4074 else
4075 $as_unset $as_var
4076 fi
4077done
4078
4079# Required to use basename.
4080if expr a : '\(a\)' >/dev/null 2>&1; then
4081 as_expr=expr
4082else
4083 as_expr=false
4084fi
4085
4086if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4087 as_basename=basename
4088else
4089 as_basename=false
4090fi
fbb86200 4091
4092
4093# Name of the executable.
36ba812d 4094as_me=`$as_basename "$0" ||
fbb86200 4095$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4096 X"$0" : 'X\(//\)$' \| \
4097 X"$0" : 'X\(/\)$' \| \
4098 . : '\(.\)' 2>/dev/null ||
4099echo X/"$0" |
4100 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4101 /^X\/\(\/\/\)$/{ s//\1/; q; }
4102 /^X\/\(\/\).*/{ s//\1/; q; }
4103 s/.*/./; q'`
4104
36ba812d 4105
fbb86200 4106# PATH needs CR, and LINENO needs CR and PATH.
4107# Avoid depending upon Character Ranges.
4108as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4110as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4111as_cr_digits='0123456789'
4112as_cr_alnum=$as_cr_Letters$as_cr_digits
4113
4114# The user is always right.
4115if test "${PATH_SEPARATOR+set}" != set; then
36ba812d 4116 echo "#! /bin/sh" >conf$$.sh
4117 echo "exit 0" >>conf$$.sh
4118 chmod +x conf$$.sh
4119 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
fbb86200 4120 PATH_SEPARATOR=';'
4121 else
4122 PATH_SEPARATOR=:
4123 fi
36ba812d 4124 rm -f conf$$.sh
508533c5 4125fi
508533c5 4126
fbb86200 4127
4128 as_lineno_1=$LINENO
4129 as_lineno_2=$LINENO
4130 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4131 test "x$as_lineno_1" != "x$as_lineno_2" &&
4132 test "x$as_lineno_3" = "x$as_lineno_2" || {
4133 # Find who we are. Look in the path if we contain no path at all
4134 # relative or not.
4135 case $0 in
4136 *[\\/]* ) as_myself=$0 ;;
4137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4143done
4144
4145 ;;
4146 esac
4147 # We did not find ourselves, most probably we were run as `sh COMMAND'
4148 # in which case we are not to be found in the path.
4149 if test "x$as_myself" = x; then
4150 as_myself=$0
4151 fi
4152 if test ! -f "$as_myself"; then
4153 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4154echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4155 { (exit 1); exit 1; }; }
4156 fi
4157 case $CONFIG_SHELL in
4158 '')
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for as_base in sh bash ksh sh5; do
4165 case $as_dir in
4166 /*)
4167 if ("$as_dir/$as_base" -c '
4168 as_lineno_1=$LINENO
4169 as_lineno_2=$LINENO
4170 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4171 test "x$as_lineno_1" != "x$as_lineno_2" &&
4172 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36ba812d 4173 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4174 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
fbb86200 4175 CONFIG_SHELL=$as_dir/$as_base
4176 export CONFIG_SHELL
4177 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4178 fi;;
4179 esac
4180 done
4181done
4182;;
4183 esac
4184
4185 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4186 # uniformly replaced by the line number. The first 'sed' inserts a
4187 # line-number line before each line; the second 'sed' does the real
4188 # work. The second script uses 'N' to pair each line-number line
4189 # with the numbered line, and appends trailing '-' during
4190 # substitution so that $LINENO is not a special case at line end.
4191 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4192 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4193 sed '=' <$as_myself |
4194 sed '
4195 N
4196 s,$,-,
4197 : loop
4198 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4199 t loop
4200 s,-$,,
4201 s,^['$as_cr_digits']*\n,,
4202 ' >$as_me.lineno &&
4203 chmod +x $as_me.lineno ||
4204 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4205echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4206 { (exit 1); exit 1; }; }
4207
4208 # Don't try to exec as it changes $[0], causing all sort of problems
4209 # (the dirname of $[0] is not the place where we might find the
4210 # original and so on. Autoconf is especially sensible to this).
4211 . ./$as_me.lineno
4212 # Exit status is that of the last command.
4213 exit
508533c5 4214}
4215
508533c5 4216
fbb86200 4217case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4218 *c*,-n*) ECHO_N= ECHO_C='
4219' ECHO_T=' ' ;;
4220 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4221 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4222esac
508533c5 4223
fbb86200 4224if expr a : '\(a\)' >/dev/null 2>&1; then
4225 as_expr=expr
508533c5 4226else
fbb86200 4227 as_expr=false
508533c5 4228fi
4229
fbb86200 4230rm -f conf$$ conf$$.exe conf$$.file
4231echo >conf$$.file
4232if ln -s conf$$.file conf$$ 2>/dev/null; then
4233 # We could just check for DJGPP; but this test a) works b) is more generic
4234 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4235 if test -f conf$$.exe; then
4236 # Don't use ln at all; we don't have any links
4237 as_ln_s='cp -p'
4238 else
4239 as_ln_s='ln -s'
4240 fi
4241elif ln conf$$.file conf$$ 2>/dev/null; then
4242 as_ln_s=ln
508533c5 4243else
fbb86200 4244 as_ln_s='cp -p'
508533c5 4245fi
fbb86200 4246rm -f conf$$ conf$$.exe conf$$.file
508533c5 4247
36ba812d 4248if mkdir -p . 2>/dev/null; then
4249 as_mkdir_p=:
4250else
4251 as_mkdir_p=false
4252fi
4253
fbb86200 4254as_executable_p="test -f"
508533c5 4255
fbb86200 4256# Sed expression to map a string onto a valid CPP name.
4257as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
508533c5 4258
fbb86200 4259# Sed expression to map a string onto a valid variable name.
4260as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
508533c5 4261
508533c5 4262
fbb86200 4263# IFS
4264# We need space, tab and new line, in precisely that order.
4265as_nl='
4266'
4267IFS=" $as_nl"
4268
4269# CDPATH.
36ba812d 4270$as_unset CDPATH
fbb86200 4271
4272exec 6>&1
4273
4274# Open the log real soon, to keep \$[0] and so on meaningful, and to
4275# report actual input values of CONFIG_FILES etc. instead of their
4276# values after options handling. Logging --version etc. is OK.
4277exec 5>>config.log
4278{
4279 echo
4280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4281## Running $as_me. ##
4282_ASBOX
4283} >&5
4284cat >&5 <<_CSEOF
4285
36ba812d 4286This file was extended by Splint $as_me 3.1.1, which was
4287generated by GNU Autoconf 2.57. Invocation command line was
fbb86200 4288
4289 CONFIG_FILES = $CONFIG_FILES
4290 CONFIG_HEADERS = $CONFIG_HEADERS
4291 CONFIG_LINKS = $CONFIG_LINKS
4292 CONFIG_COMMANDS = $CONFIG_COMMANDS
4293 $ $0 $@
4294
4295_CSEOF
4296echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4297echo >&5
4298_ACEOF
4299
4300# Files that config.status was made for.
4301if test -n "$ac_config_files"; then
4302 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
508533c5 4303fi
4304
fbb86200 4305if test -n "$ac_config_headers"; then
4306 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
508533c5 4307fi
4308
fbb86200 4309if test -n "$ac_config_links"; then
4310 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
508533c5 4311fi
4312
fbb86200 4313if test -n "$ac_config_commands"; then
4314 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
508533c5 4315fi
fbb86200 4316
4317cat >>$CONFIG_STATUS <<\_ACEOF
4318
4319ac_cs_usage="\
4320\`$as_me' instantiates files from templates according to the
4321current configuration.
4322
4323Usage: $0 [OPTIONS] [FILE]...
4324
4325 -h, --help print this help, then exit
4326 -V, --version print version number, then exit
36ba812d 4327 -q, --quiet do not print progress messages
fbb86200 4328 -d, --debug don't remove temporary files
4329 --recheck update $as_me by reconfiguring in the same conditions
4330 --file=FILE[:TEMPLATE]
4331 instantiate the configuration file FILE
4332 --header=FILE[:TEMPLATE]
4333 instantiate the configuration header FILE
4334
4335Configuration files:
4336$config_files
4337
4338Configuration headers:
4339$config_headers
4340
4341Configuration commands:
4342$config_commands
4343
4344Report bugs to <bug-autoconf@gnu.org>."
4345_ACEOF
4346
4347cat >>$CONFIG_STATUS <<_ACEOF
4348ac_cs_version="\\
36ba812d 4349Splint config.status 3.1.1
4350configured by $0, generated by GNU Autoconf 2.57,
fbb86200 4351 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4352
4353Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4354Free Software Foundation, Inc.
4355This config.status script is free software; the Free Software Foundation
4356gives unlimited permission to copy, distribute and modify it."
4357srcdir=$srcdir
4358INSTALL="$INSTALL"
4359_ACEOF
4360
4361cat >>$CONFIG_STATUS <<\_ACEOF
4362# If no file are specified by the user, then we need to provide default
4363# value. By we need to know if files were specified by the user.
4364ac_need_defaults=:
4365while test $# != 0
4366do
4367 case $1 in
4368 --*=*)
4369 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4370 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36ba812d 4371 ac_shift=:
4372 ;;
4373 -*)
4374 ac_option=$1
4375 ac_optarg=$2
4376 ac_shift=shift
fbb86200 4377 ;;
fbb86200 4378 *) # This is not an option, so the user has probably given explicit
4379 # arguments.
36ba812d 4380 ac_option=$1
fbb86200 4381 ac_need_defaults=false;;
4382 esac
4383
36ba812d 4384 case $ac_option in
fbb86200 4385 # Handling of the options.
4386_ACEOF
fbb86200 4387cat >>$CONFIG_STATUS <<\_ACEOF
36ba812d 4388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4389 ac_cs_recheck=: ;;
fbb86200 4390 --version | --vers* | -V )
4391 echo "$ac_cs_version"; exit 0 ;;
4392 --he | --h)
4393 # Conflict between --help and --header
4394 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4395Try \`$0 --help' for more information." >&5
4396echo "$as_me: error: ambiguous option: $1
4397Try \`$0 --help' for more information." >&2;}
4398 { (exit 1); exit 1; }; };;
4399 --help | --hel | -h )
4400 echo "$ac_cs_usage"; exit 0 ;;
4401 --debug | --d* | -d )
4402 debug=: ;;
4403 --file | --fil | --fi | --f )
36ba812d 4404 $ac_shift
4405 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
fbb86200 4406 ac_need_defaults=false;;
4407 --header | --heade | --head | --hea )
36ba812d 4408 $ac_shift
4409 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
fbb86200 4410 ac_need_defaults=false;;
36ba812d 4411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4413 ac_cs_silent=: ;;
fbb86200 4414
4415 # This is an error.
4416 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4417Try \`$0 --help' for more information." >&5
4418echo "$as_me: error: unrecognized option: $1
4419Try \`$0 --help' for more information." >&2;}
4420 { (exit 1); exit 1; }; } ;;
4421
4422 *) ac_config_targets="$ac_config_targets $1" ;;
4423
4424 esac
4425 shift
4426done
4427
36ba812d 4428ac_configure_extra_args=
4429
4430if $ac_cs_silent; then
4431 exec 6>/dev/null
4432 ac_configure_extra_args="$ac_configure_extra_args --silent"
4433fi
4434
4435_ACEOF
4436cat >>$CONFIG_STATUS <<_ACEOF
4437if \$ac_cs_recheck; then
4438 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4439 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4440fi
4441
fbb86200 4442_ACEOF
4443
4444cat >>$CONFIG_STATUS <<_ACEOF
4445#
4446# INIT-COMMANDS section.
4447#
4448
4449AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4450
4451_ACEOF
4452
4453
4454
4455cat >>$CONFIG_STATUS <<\_ACEOF
4456for ac_config_target in $ac_config_targets
4457do
4458 case "$ac_config_target" in
4459 # Handling of arguments.
4460 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4461 "imports/Makefile" ) CONFIG_FILES="$CONFIG_FILES imports/Makefile" ;;
4462 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4463 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4464 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4465 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4466 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
4467 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4468 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
4469 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4470echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4471 { (exit 1); exit 1; }; };;
4472 esac
4473done
4474
4475# If the user did not use the arguments to specify the items to instantiate,
4476# then the envvar interface is used. Set only those that are not.
4477# We use the long form for the default assignment because of an extremely
4478# bizarre bug on SunOS 4.1.3.
4479if $ac_need_defaults; then
4480 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4481 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4482 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
508533c5 4483fi
508533c5 4484
36ba812d 4485# Have a temporary directory for convenience. Make it in the build tree
4486# simply because there is no reason to put it here, and in addition,
4487# creating and moving files from /tmp can sometimes cause problems.
fbb86200 4488# Create a temporary directory, and hook for its removal unless debugging.
4489$debug ||
4490{
4491 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4492 trap '{ (exit 1); exit 1; }' 1 2 13 15
4493}
4494
4495# Create a (secure) tmp directory for tmp files.
36ba812d 4496
fbb86200 4497{
36ba812d 4498 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
fbb86200 4499 test -n "$tmp" && test -d "$tmp"
4500} ||
4501{
36ba812d 4502 tmp=./confstat$$-$RANDOM
fbb86200 4503 (umask 077 && mkdir $tmp)
4504} ||
4505{
36ba812d 4506 echo "$me: cannot create a temporary directory in ." >&2
fbb86200 4507 { (exit 1); exit 1; }
4508}
4509
4510_ACEOF
4511
4512cat >>$CONFIG_STATUS <<_ACEOF
4513
4514#
4515# CONFIG_FILES section.
4516#
4517
4518# No need to generate the scripts if there are no CONFIG_FILES.
4519# This happens for instance when ./config.status config.h
4520if test -n "\$CONFIG_FILES"; then
4521 # Protect against being on the right side of a sed subst in config.status.
4522 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4523 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4524s,@SHELL@,$SHELL,;t t
4525s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4526s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4527s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4528s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4529s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4530s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4531s,@exec_prefix@,$exec_prefix,;t t
4532s,@prefix@,$prefix,;t t
4533s,@program_transform_name@,$program_transform_name,;t t
4534s,@bindir@,$bindir,;t t
4535s,@sbindir@,$sbindir,;t t
4536s,@libexecdir@,$libexecdir,;t t
4537s,@datadir@,$datadir,;t t
4538s,@sysconfdir@,$sysconfdir,;t t
4539s,@sharedstatedir@,$sharedstatedir,;t t
4540s,@localstatedir@,$localstatedir,;t t
4541s,@libdir@,$libdir,;t t
4542s,@includedir@,$includedir,;t t
4543s,@oldincludedir@,$oldincludedir,;t t
4544s,@infodir@,$infodir,;t t
4545s,@mandir@,$mandir,;t t
4546s,@build_alias@,$build_alias,;t t
4547s,@host_alias@,$host_alias,;t t
4548s,@target_alias@,$target_alias,;t t
4549s,@DEFS@,$DEFS,;t t
4550s,@ECHO_C@,$ECHO_C,;t t
4551s,@ECHO_N@,$ECHO_N,;t t
4552s,@ECHO_T@,$ECHO_T,;t t
4553s,@LIBS@,$LIBS,;t t
4554s,@build@,$build,;t t
4555s,@build_cpu@,$build_cpu,;t t
4556s,@build_vendor@,$build_vendor,;t t
4557s,@build_os@,$build_os,;t t
4558s,@host@,$host,;t t
4559s,@host_cpu@,$host_cpu,;t t
4560s,@host_vendor@,$host_vendor,;t t
4561s,@host_os@,$host_os,;t t
4562s,@target@,$target,;t t
4563s,@target_cpu@,$target_cpu,;t t
4564s,@target_vendor@,$target_vendor,;t t
4565s,@target_os@,$target_os,;t t
4566s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4567s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4568s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4569s,@PACKAGE@,$PACKAGE,;t t
4570s,@VERSION@,$VERSION,;t t
4571s,@ACLOCAL@,$ACLOCAL,;t t
4572s,@AUTOCONF@,$AUTOCONF,;t t
4573s,@AUTOMAKE@,$AUTOMAKE,;t t
4574s,@AUTOHEADER@,$AUTOHEADER,;t t
4575s,@MAKEINFO@,$MAKEINFO,;t t
4576s,@AMTAR@,$AMTAR,;t t
4577s,@install_sh@,$install_sh,;t t
4578s,@STRIP@,$STRIP,;t t
4579s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4580s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4581s,@AWK@,$AWK,;t t
4582s,@SET_MAKE@,$SET_MAKE,;t t
4583s,@CC@,$CC,;t t
4584s,@CFLAGS@,$CFLAGS,;t t
4585s,@LDFLAGS@,$LDFLAGS,;t t
4586s,@CPPFLAGS@,$CPPFLAGS,;t t
4587s,@ac_ct_CC@,$ac_ct_CC,;t t
4588s,@EXEEXT@,$EXEEXT,;t t
4589s,@OBJEXT@,$OBJEXT,;t t
4590s,@DEPDIR@,$DEPDIR,;t t
4591s,@am__include@,$am__include,;t t
4592s,@am__quote@,$am__quote,;t t
4593s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4594s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4595s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4596s,@CCDEPMODE@,$CCDEPMODE,;t t
4597s,@CPP@,$CPP,;t t
4598s,@LEX@,$LEX,;t t
4599s,@LEXLIB@,$LEXLIB,;t t
4600s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4601s,@LN_S@,$LN_S,;t t
4602s,@BISON@,$BISON,;t t
4603s,@GREP@,$GREP,;t t
4604s,@DIFF@,$DIFF,;t t
4605s,@CAT@,$CAT,;t t
4606s,@RM@,$RM,;t t
4607s,@MV@,$MV,;t t
4608s,@CP@,$CP,;t t
4609s,@SED@,$SED,;t t
4610s,@LCLOBJ@,$LCLOBJ,;t t
36ba812d 4611s,@LIBOBJS@,$LIBOBJS,;t t
4612s,@LTLIBOBJS@,$LTLIBOBJS,;t t
fbb86200 4613CEOF
4614
4615_ACEOF
4616
4617 cat >>$CONFIG_STATUS <<\_ACEOF
4618 # Split the substitutions into bite-sized pieces for seds with
4619 # small command number limits, like on Digital OSF/1 and HP-UX.
4620 ac_max_sed_lines=48
4621 ac_sed_frag=1 # Number of current file.
4622 ac_beg=1 # First line for current file.
4623 ac_end=$ac_max_sed_lines # Line after last line for current file.
4624 ac_more_lines=:
4625 ac_sed_cmds=
4626 while $ac_more_lines; do
4627 if test $ac_beg -gt 1; then
4628 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4629 else
4630 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4631 fi
4632 if test ! -s $tmp/subs.frag; then
4633 ac_more_lines=false
4634 else
4635 # The purpose of the label and of the branching condition is to
4636 # speed up the sed processing (if there are no `@' at all, there
4637 # is no need to browse any of the substitutions).
4638 # These are the two extra sed commands mentioned above.
4639 (echo ':t
4640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4641 if test -z "$ac_sed_cmds"; then
4642 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4643 else
4644 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4645 fi
4646 ac_sed_frag=`expr $ac_sed_frag + 1`
4647 ac_beg=$ac_end
4648 ac_end=`expr $ac_end + $ac_max_sed_lines`
4649 fi
4650 done
4651 if test -z "$ac_sed_cmds"; then
4652 ac_sed_cmds=cat
508533c5 4653 fi
fbb86200 4654fi # test -n "$CONFIG_FILES"
508533c5 4655
fbb86200 4656_ACEOF
4657cat >>$CONFIG_STATUS <<\_ACEOF
4658for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4660 case $ac_file in
4661 - | *:- | *:-:* ) # input from stdin
4662 cat >$tmp/stdin
4663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4667 * ) ac_file_in=$ac_file.in ;;
4668 esac
4669
4670 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4673 X"$ac_file" : 'X\(//\)[^/]' \| \
4674 X"$ac_file" : 'X\(//\)$' \| \
4675 X"$ac_file" : 'X\(/\)' \| \
4676 . : '\(.\)' 2>/dev/null ||
4677echo X"$ac_file" |
4678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4680 /^X\(\/\/\)$/{ s//\1/; q; }
4681 /^X\(\/\).*/{ s//\1/; q; }
4682 s/.*/./; q'`
36ba812d 4683 { if $as_mkdir_p; then
4684 mkdir -p "$ac_dir"
4685 else
4686 as_dir="$ac_dir"
4687 as_dirs=
4688 while test ! -d "$as_dir"; do
4689 as_dirs="$as_dir $as_dirs"
4690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4692 X"$as_dir" : 'X\(//\)[^/]' \| \
4693 X"$as_dir" : 'X\(//\)$' \| \
4694 X"$as_dir" : 'X\(/\)' \| \
4695 . : '\(.\)' 2>/dev/null ||
4696echo X"$as_dir" |
4697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4699 /^X\(\/\/\)$/{ s//\1/; q; }
4700 /^X\(\/\).*/{ s//\1/; q; }
4701 s/.*/./; q'`
4702 done
4703 test ! -n "$as_dirs" || mkdir $as_dirs
4704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4705echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4706 { (exit 1); exit 1; }; }; }
fbb86200 4707
4708 ac_builddir=.
508533c5 4709
fbb86200 4710if test "$ac_dir" != .; then
4711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4712 # A "../" for each directory in $ac_dir_suffix.
4713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4714else
4715 ac_dir_suffix= ac_top_builddir=
508533c5 4716fi
fbb86200 4717
4718case $srcdir in
4719 .) # No --srcdir option. We are building in place.
4720 ac_srcdir=.
4721 if test -z "$ac_top_builddir"; then
4722 ac_top_srcdir=.
4723 else
4724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4725 fi ;;
4726 [\\/]* | ?:[\\/]* ) # Absolute path.
4727 ac_srcdir=$srcdir$ac_dir_suffix;
4728 ac_top_srcdir=$srcdir ;;
4729 *) # Relative path.
4730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4732esac
4733# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4734# absolute.
4735ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36ba812d 4736ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
fbb86200 4737ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4738ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4739
4740
4741 case $INSTALL in
4742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4743 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4744 esac
4745
4746 if test x"$ac_file" != x-; then
4747 { echo "$as_me:$LINENO: creating $ac_file" >&5
4748echo "$as_me: creating $ac_file" >&6;}
4749 rm -f "$ac_file"
4750 fi
4751 # Let's still pretend it is `configure' which instantiates (i.e., don't
4752 # use $as_me), people would be surprised to read:
4753 # /* config.h. Generated by config.status. */
4754 if test x"$ac_file" = x-; then
4755 configure_input=
508533c5 4756 else
fbb86200 4757 configure_input="$ac_file. "
4758 fi
4759 configure_input=$configure_input"Generated from `echo $ac_file_in |
4760 sed 's,.*/,,'` by configure."
4761
4762 # First look for the input files in the build tree, otherwise in the
4763 # src tree.
4764 ac_file_inputs=`IFS=:
4765 for f in $ac_file_in; do
4766 case $f in
4767 -) echo $tmp/stdin ;;
4768 [\\/$]*)
4769 # Absolute (can't be DOS-style, as IFS=:)
4770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4771echo "$as_me: error: cannot find input file: $f" >&2;}
4772 { (exit 1); exit 1; }; }
4773 echo $f;;
4774 *) # Relative
4775 if test -f "$f"; then
4776 # Build tree
4777 echo $f
4778 elif test -f "$srcdir/$f"; then
4779 # Source tree
4780 echo $srcdir/$f
4781 else
4782 # /dev/null tree
4783 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4784echo "$as_me: error: cannot find input file: $f" >&2;}
4785 { (exit 1); exit 1; }; }
4786 fi;;
4787 esac
4788 done` || { (exit 1); exit 1; }
4789_ACEOF
4790cat >>$CONFIG_STATUS <<_ACEOF
4791 sed "$ac_vpsub
4792$extrasub
4793_ACEOF
4794cat >>$CONFIG_STATUS <<\_ACEOF
4795:t
4796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4797s,@configure_input@,$configure_input,;t t
4798s,@srcdir@,$ac_srcdir,;t t
4799s,@abs_srcdir@,$ac_abs_srcdir,;t t
4800s,@top_srcdir@,$ac_top_srcdir,;t t
4801s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4802s,@builddir@,$ac_builddir,;t t
4803s,@abs_builddir@,$ac_abs_builddir,;t t
4804s,@top_builddir@,$ac_top_builddir,;t t
4805s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4806s,@INSTALL@,$ac_INSTALL,;t t
4807" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4808 rm -f $tmp/stdin
4809 if test x"$ac_file" != x-; then
4810 mv $tmp/out $ac_file
4811 else
4812 cat $tmp/out
4813 rm -f $tmp/out
4814 fi
4815
4816done
4817_ACEOF
4818cat >>$CONFIG_STATUS <<\_ACEOF
4819
4820#
4821# CONFIG_HEADER section.
4822#
4823
4824# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4825# NAME is the cpp macro being defined and VALUE is the value it is being given.
508533c5 4826#
fbb86200 4827# ac_d sets the value in "#define NAME VALUE" lines.
4828ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4829ac_dB='[ ].*$,\1#\2'
4830ac_dC=' '
4831ac_dD=',;t'
4832# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4833ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4834ac_uB='$,\1#\2define\3'
4835ac_uC=' '
4836ac_uD=',;t'
4837
4838for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4840 case $ac_file in
4841 - | *:- | *:-:* ) # input from stdin
4842 cat >$tmp/stdin
4843 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4845 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4847 * ) ac_file_in=$ac_file.in ;;
4848 esac
4849
4850 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4851echo "$as_me: creating $ac_file" >&6;}
4852
4853 # First look for the input files in the build tree, otherwise in the
4854 # src tree.
4855 ac_file_inputs=`IFS=:
4856 for f in $ac_file_in; do
4857 case $f in
4858 -) echo $tmp/stdin ;;
4859 [\\/$]*)
4860 # Absolute (can't be DOS-style, as IFS=:)
4861 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4862echo "$as_me: error: cannot find input file: $f" >&2;}
4863 { (exit 1); exit 1; }; }
4864 echo $f;;
4865 *) # Relative
4866 if test -f "$f"; then
4867 # Build tree
4868 echo $f
4869 elif test -f "$srcdir/$f"; then
4870 # Source tree
4871 echo $srcdir/$f
4872 else
4873 # /dev/null tree
4874 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4875echo "$as_me: error: cannot find input file: $f" >&2;}
4876 { (exit 1); exit 1; }; }
4877 fi;;
4878 esac
4879 done` || { (exit 1); exit 1; }
4880 # Remove the trailing spaces.
4881 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4882
4883_ACEOF
4884
4885# Transform confdefs.h into two sed scripts, `conftest.defines' and
4886# `conftest.undefs', that substitutes the proper values into
4887# config.h.in to produce config.h. The first handles `#define'
4888# templates, and the second `#undef' templates.
4889# And first: Protect against being on the right side of a sed subst in
4890# config.status. Protect against being in an unquoted here document
4891# in config.status.
4892rm -f conftest.defines conftest.undefs
4893# Using a here document instead of a string reduces the quoting nightmare.
4894# Putting comments in sed scripts is not portable.
4895#
4896# `end' is used to avoid that the second main sed command (meant for
4897# 0-ary CPP macros) applies to n-ary macro definitions.
4898# See the Autoconf documentation for `clear'.
4899cat >confdef2sed.sed <<\_ACEOF
4900s/[\\&,]/\\&/g
4901s,[\\$`],\\&,g
4902t clear
4903: clear
4904s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4905t end
4906s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4907: end
4908_ACEOF
4909# If some macros were called several times there might be several times
4910# the same #defines, which is useless. Nevertheless, we may not want to
4911# sort them, since we want the *last* AC-DEFINE to be honored.
4912uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4913sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4914rm -f confdef2sed.sed
4915
4916# This sed command replaces #undef with comments. This is necessary, for
4917# example, in the case of _POSIX_SOURCE, which is predefined and required
4918# on some systems where configure will not decide to define it.
4919cat >>conftest.undefs <<\_ACEOF
4920s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4921_ACEOF
508533c5 4922
fbb86200 4923# Break up conftest.defines because some shells have a limit on the size
4924# of here documents, and old seds have small limits too (100 cmds).
4925echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36ba812d 4926echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
fbb86200 4927echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4928echo ' :' >>$CONFIG_STATUS
4929rm -f conftest.tail
4930while grep . conftest.defines >/dev/null
508533c5 4931do
fbb86200 4932 # Write a limited-size here document to $tmp/defines.sed.
4933 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4934 # Speed up: don't consider the non `#define' lines.
4935 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4936 # Work around the forget-to-reset-the-flag bug.
4937 echo 't clr' >>$CONFIG_STATUS
4938 echo ': clr' >>$CONFIG_STATUS
4939 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4940 echo 'CEOF
4941 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4942 rm -f $tmp/in
4943 mv $tmp/out $tmp/in
4944' >>$CONFIG_STATUS
4945 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4946 rm -f conftest.defines
4947 mv conftest.tail conftest.defines
4948done
4949rm -f conftest.defines
36ba812d 4950echo ' fi # grep' >>$CONFIG_STATUS
fbb86200 4951echo >>$CONFIG_STATUS
4952
4953# Break up conftest.undefs because some shells have a limit on the size
4954# of here documents, and old seds have small limits too (100 cmds).
4955echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4956rm -f conftest.tail
4957while grep . conftest.undefs >/dev/null
4958do
4959 # Write a limited-size here document to $tmp/undefs.sed.
4960 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4961 # Speed up: don't consider the non `#undef'
4962 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4963 # Work around the forget-to-reset-the-flag bug.
4964 echo 't clr' >>$CONFIG_STATUS
4965 echo ': clr' >>$CONFIG_STATUS
4966 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4967 echo 'CEOF
4968 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4969 rm -f $tmp/in
4970 mv $tmp/out $tmp/in
4971' >>$CONFIG_STATUS
4972 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4973 rm -f conftest.undefs
4974 mv conftest.tail conftest.undefs
4975done
4976rm -f conftest.undefs
4977
4978cat >>$CONFIG_STATUS <<\_ACEOF
4979 # Let's still pretend it is `configure' which instantiates (i.e., don't
4980 # use $as_me), people would be surprised to read:
4981 # /* config.h. Generated by config.status. */
4982 if test x"$ac_file" = x-; then
4983 echo "/* Generated by configure. */" >$tmp/config.h
4984 else
4985 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4986 fi
4987 cat $tmp/in >>$tmp/config.h
4988 rm -f $tmp/in
4989 if test x"$ac_file" != x-; then
36ba812d 4990 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
fbb86200 4991 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4992echo "$as_me: $ac_file is unchanged" >&6;}
4993 else
4994 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4995$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4996 X"$ac_file" : 'X\(//\)[^/]' \| \
4997 X"$ac_file" : 'X\(//\)$' \| \
4998 X"$ac_file" : 'X\(/\)' \| \
4999 . : '\(.\)' 2>/dev/null ||
5000echo X"$ac_file" |
5001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5003 /^X\(\/\/\)$/{ s//\1/; q; }
5004 /^X\(\/\).*/{ s//\1/; q; }
5005 s/.*/./; q'`
36ba812d 5006 { if $as_mkdir_p; then
5007 mkdir -p "$ac_dir"
5008 else
5009 as_dir="$ac_dir"
5010 as_dirs=
5011 while test ! -d "$as_dir"; do
5012 as_dirs="$as_dir $as_dirs"
5013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5014$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5015 X"$as_dir" : 'X\(//\)[^/]' \| \
5016 X"$as_dir" : 'X\(//\)$' \| \
5017 X"$as_dir" : 'X\(/\)' \| \
5018 . : '\(.\)' 2>/dev/null ||
5019echo X"$as_dir" |
5020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5022 /^X\(\/\/\)$/{ s//\1/; q; }
5023 /^X\(\/\).*/{ s//\1/; q; }
5024 s/.*/./; q'`
5025 done
5026 test ! -n "$as_dirs" || mkdir $as_dirs
5027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5028echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5029 { (exit 1); exit 1; }; }; }
fbb86200 5030
5031 rm -f $ac_file
5032 mv $tmp/config.h $ac_file
5033 fi
5034 else
5035 cat $tmp/config.h
5036 rm -f $tmp/config.h
5037 fi
5038 # Run the commands associated with the file.
5039 case $ac_file in
5040 config.h ) # update the timestamp
5041echo 'timestamp for config.h:config.hin' >"./stamp-h1"
5042 ;;
5043 esac
5044done
5045_ACEOF
5046cat >>$CONFIG_STATUS <<\_ACEOF
5047
5048#
5049# CONFIG_COMMANDS section.
5050#
5051for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5052 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5053 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5054 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5055$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5056 X"$ac_dest" : 'X\(//\)[^/]' \| \
5057 X"$ac_dest" : 'X\(//\)$' \| \
5058 X"$ac_dest" : 'X\(/\)' \| \
5059 . : '\(.\)' 2>/dev/null ||
5060echo X"$ac_dest" |
5061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5063 /^X\(\/\/\)$/{ s//\1/; q; }
5064 /^X\(\/\).*/{ s//\1/; q; }
5065 s/.*/./; q'`
5066 ac_builddir=.
5067
5068if test "$ac_dir" != .; then
5069 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5070 # A "../" for each directory in $ac_dir_suffix.
5071 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5072else
5073 ac_dir_suffix= ac_top_builddir=
5074fi
5075
5076case $srcdir in
5077 .) # No --srcdir option. We are building in place.
5078 ac_srcdir=.
5079 if test -z "$ac_top_builddir"; then
5080 ac_top_srcdir=.
5081 else
5082 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5083 fi ;;
5084 [\\/]* | ?:[\\/]* ) # Absolute path.
5085 ac_srcdir=$srcdir$ac_dir_suffix;
5086 ac_top_srcdir=$srcdir ;;
5087 *) # Relative path.
5088 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5089 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5090esac
5091# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5092# absolute.
5093ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36ba812d 5094ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
fbb86200 5095ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5096ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5097
5098
5099 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5100echo "$as_me: executing $ac_dest commands" >&6;}
5101 case $ac_dest in
5102 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5103 # Strip MF so we end up with the name of the file.
5104 mf=`echo "$mf" | sed -e 's/:.*$//'`
5105 # Check whether this is an Automake generated Makefile or not.
5106 # We used to match only the files named `Makefile.in', but
5107 # some people rename them; so instead we look at the file content.
5108 # Grep'ing the first line is not enough: some people post-process
5109 # each Makefile.in and add a new line on top of each file to say so.
5110 # So let's grep whole file.
5111 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5112 dirpart=`(dirname "$mf") 2>/dev/null ||
5113$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5114 X"$mf" : 'X\(//\)[^/]' \| \
5115 X"$mf" : 'X\(//\)$' \| \
5116 X"$mf" : 'X\(/\)' \| \
5117 . : '\(.\)' 2>/dev/null ||
5118echo X"$mf" |
5119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5121 /^X\(\/\/\)$/{ s//\1/; q; }
5122 /^X\(\/\).*/{ s//\1/; q; }
5123 s/.*/./; q'`
5124 else
5125 continue
5126 fi
5127 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5128 # Extract the definition of DEP_FILES from the Makefile without
5129 # running `make'.
5130 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5131 test -z "$DEPDIR" && continue
5132 # When using ansi2knr, U may be empty or an underscore; expand it
5133 U=`sed -n -e '/^U = / s///p' < "$mf"`
5134 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5135 # We invoke sed twice because it is the simplest approach to
5136 # changing $(DEPDIR) to its actual value in the expansion.
5137 for file in `sed -n -e '
5138 /^DEP_FILES = .*\\\\$/ {
5139 s/^DEP_FILES = //
5140 :loop
5141 s/\\\\$//
5142 p
5143 n
5144 /\\\\$/ b loop
5145 p
5146 }
5147 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5148 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5149 # Make sure the directory exists.
5150 test -f "$dirpart/$file" && continue
5151 fdir=`(dirname "$file") 2>/dev/null ||
5152$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5153 X"$file" : 'X\(//\)[^/]' \| \
5154 X"$file" : 'X\(//\)$' \| \
5155 X"$file" : 'X\(/\)' \| \
5156 . : '\(.\)' 2>/dev/null ||
5157echo X"$file" |
5158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5160 /^X\(\/\/\)$/{ s//\1/; q; }
5161 /^X\(\/\).*/{ s//\1/; q; }
5162 s/.*/./; q'`
36ba812d 5163 { if $as_mkdir_p; then
5164 mkdir -p $dirpart/$fdir
5165 else
5166 as_dir=$dirpart/$fdir
5167 as_dirs=
5168 while test ! -d "$as_dir"; do
5169 as_dirs="$as_dir $as_dirs"
5170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5172 X"$as_dir" : 'X\(//\)[^/]' \| \
5173 X"$as_dir" : 'X\(//\)$' \| \
5174 X"$as_dir" : 'X\(/\)' \| \
5175 . : '\(.\)' 2>/dev/null ||
5176echo X"$as_dir" |
5177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5179 /^X\(\/\/\)$/{ s//\1/; q; }
5180 /^X\(\/\).*/{ s//\1/; q; }
5181 s/.*/./; q'`
5182 done
5183 test ! -n "$as_dirs" || mkdir $as_dirs
5184 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5185echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5186 { (exit 1); exit 1; }; }; }
fbb86200 5187
5188 # echo "creating $dirpart/$file"
5189 echo '# dummy' > "$dirpart/$file"
5190 done
5191done
5192 ;;
508533c5 5193 esac
5194done
fbb86200 5195_ACEOF
5196
5197cat >>$CONFIG_STATUS <<\_ACEOF
5198
5199{ (exit 0); exit 0; }
5200_ACEOF
5201chmod +x $CONFIG_STATUS
5202ac_clean_files=$ac_clean_files_save
5203
5204
5205# configure is writing to config.log, and then calls config.status.
5206# config.status does its own redirection, appending to config.log.
5207# Unfortunately, on DOS this fails, as config.log is still kept open
5208# by configure, so config.status won't be able to write to it; its
5209# output is simply discarded. So we exec the FD to /dev/null,
5210# effectively closing config.log, so it can be properly (re)opened and
5211# appended to by config.status. When coming back to configure, we
5212# need to make the FD available again.
5213if test "$no_create" != yes; then
5214 ac_cs_success=:
36ba812d 5215 ac_config_status_args=
5216 test "$silent" = yes &&
5217 ac_config_status_args="$ac_config_status_args --quiet"
fbb86200 5218 exec 5>/dev/null
36ba812d 5219 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
fbb86200 5220 exec 5>>config.log
5221 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5222 # would make configure fail if this is the last instruction.
5223 $ac_cs_success || { (exit 1); exit 1; }
5224fi
5225
5226
5227
5228
5229
5230
5231
5232
508533c5 5233
508533c5 5234
This page took 0.8059 seconds and 5 git commands to generate.