3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-readline support fancy command input editing"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
21 cache_file=./config.cache
30 program_transform_name=s,x,x,
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
54 # Maximum number of lines to put in a shell here document.
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 # Accept the important Cygnus configure options, so we can diagnose typos.
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
82 -build | --build | --buil | --bui | --bu)
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 datadir="$ac_optarg" ;;
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
190 -host | --host | --hos | --ho)
192 -host=* | --host=* | --hos=* | --ho=*)
195 -includedir | --includedir | --includedi | --included | --include \
196 | --includ | --inclu | --incl | --inc)
197 ac_prev=includedir ;;
198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199 | --includ=* | --inclu=* | --incl=* | --inc=*)
200 includedir="$ac_optarg" ;;
202 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205 infodir="$ac_optarg" ;;
207 -libdir | --libdir | --libdi | --libd)
209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
210 libdir="$ac_optarg" ;;
212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213 | --libexe | --libex | --libe)
214 ac_prev=libexecdir ;;
215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216 | --libexe=* | --libex=* | --libe=*)
217 libexecdir="$ac_optarg" ;;
219 -localstatedir | --localstatedir | --localstatedi | --localstated \
220 | --localstate | --localstat | --localsta | --localst \
221 | --locals | --local | --loca | --loc | --lo)
222 ac_prev=localstatedir ;;
223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226 localstatedir="$ac_optarg" ;;
228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231 mandir="$ac_optarg" ;;
234 # Obsolete; use --without-fp.
237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247 | --oldin | --oldi | --old | --ol | --o)
248 ac_prev=oldincludedir ;;
249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252 oldincludedir="$ac_optarg" ;;
254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257 prefix="$ac_optarg" ;;
259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
260 | --program-pre | --program-pr | --program-p)
261 ac_prev=program_prefix ;;
262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264 program_prefix="$ac_optarg" ;;
266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
267 | --program-suf | --program-su | --program-s)
268 ac_prev=program_suffix ;;
269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271 program_suffix="$ac_optarg" ;;
273 -program-transform-name | --program-transform-name \
274 | --program-transform-nam | --program-transform-na \
275 | --program-transform-n | --program-transform- \
276 | --program-transform | --program-transfor \
277 | --program-transfo | --program-transf \
278 | --program-trans | --program-tran \
279 | --progr-tra | --program-tr | --program-t)
280 ac_prev=program_transform_name ;;
281 -program-transform-name=* | --program-transform-name=* \
282 | --program-transform-nam=* | --program-transform-na=* \
283 | --program-transform-n=* | --program-transform-=* \
284 | --program-transform=* | --program-transfor=* \
285 | --program-transfo=* | --program-transf=* \
286 | --program-trans=* | --program-tran=* \
287 | --progr-tra=* | --program-tr=* | --program-t=*)
288 program_transform_name="$ac_optarg" ;;
290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291 | -silent | --silent | --silen | --sile | --sil)
294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 sbindir="$ac_optarg" ;;
300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302 | --sharedst | --shareds | --shared | --share | --shar \
304 ac_prev=sharedstatedir ;;
305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 sharedstatedir="$ac_optarg" ;;
311 -site | --site | --sit)
313 -site=* | --site=* | --sit=*)
316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 srcdir="$ac_optarg" ;;
321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322 | --syscon | --sysco | --sysc | --sys | --sy)
323 ac_prev=sysconfdir ;;
324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326 sysconfdir="$ac_optarg" ;;
328 -target | --target | --targe | --targ | --tar | --ta | --t)
330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331 target="$ac_optarg" ;;
333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
336 -version | --version | --versio | --versi | --vers)
337 echo "configure generated by autoconf version 2.12"
341 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package=`echo $ac_package| sed 's/-/_/g'`
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* | --without-*)
354 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
363 # Obsolete; use --with-x.
366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367 | --x-incl | --x-inc | --x-in | --x-i)
368 ac_prev=x_includes ;;
369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371 x_includes="$ac_optarg" ;;
373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375 ac_prev=x_libraries ;;
376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378 x_libraries="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429 | --no-cr | --no-c) ;;
430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
439 # Only set these to C if already set. These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file=doc/bc.1
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459 ac_srcdir_defaulted=yes
460 # Try the directory containing this script, then its parent.
462 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 if test ! -r $srcdir/$ac_unique_file; then
469 ac_srcdir_defaulted=no
471 if test ! -r $srcdir/$ac_unique_file; then
472 if test "$ac_srcdir_defaulted" = yes; then
473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482 if test "x$prefix" != xNONE; then
483 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
488 for ac_site_file in $CONFIG_SITE; do
489 if test -r "$ac_site_file"; then
490 echo "loading site script $ac_site_file"
495 if test -r "$cache_file"; then
496 echo "loading cache $cache_file"
499 echo "creating cache $cache_file"
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp='$CPP $CPPFLAGS'
506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling=$ac_cv_prog_cc_cross
510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='\c' ac_t=
524 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
525 if test -f $ac_dir/install-sh; then
527 ac_install_sh="$ac_aux_dir/install-sh -c"
529 elif test -f $ac_dir/install.sh; then
531 ac_install_sh="$ac_aux_dir/install.sh -c"
535 if test -z "$ac_aux_dir"; then
536 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538 ac_config_guess=$ac_aux_dir/config.guess
539 ac_config_sub=$ac_aux_dir/config.sub
540 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
542 # Find a good install program. We prefer a C program (faster),
543 # so one script is as good as another. But avoid the broken or
544 # incompatible versions:
545 # SysV /etc/install, /usr/sbin/install
546 # SunOS /usr/etc/install
549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
551 # ./install, which can be erroneously created by make from ./install.sh.
552 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
553 echo "configure:554: checking for a BSD compatible install" >&5
554 if test -z "$INSTALL"; then
555 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
558 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
559 for ac_dir in $PATH; do
560 # Account for people who put trailing slashes in PATH elements.
562 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
564 # OSF1 and SCO ODT 3.0 have their own names for install.
565 for ac_prog in ginstall installbsd scoinst install; do
566 if test -f $ac_dir/$ac_prog; then
567 if test $ac_prog = install &&
568 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
569 # AIX install. It has an incompatible calling convention.
570 # OSF/1 installbsd also uses dspmsg, but is usable.
573 ac_cv_path_install="$ac_dir/$ac_prog -c"
584 if test "${ac_cv_path_install+set}" = set; then
585 INSTALL="$ac_cv_path_install"
587 # As a last resort, use the slow shell script. We don't cache a
588 # path for INSTALL within a source directory, because that will
589 # break other packages using the cache if that directory is
590 # removed, or if the path is relative.
591 INSTALL="$ac_install_sh"
594 echo "$ac_t""$INSTALL" 1>&6
596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
597 # It thinks the first close brace ends the variable substitution.
598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
605 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
606 echo "configure:607: checking whether build environment is sane" >&5
609 echo timestamp > conftestfile
610 # Do `set' in a subshell so we don't clobber the current shell's
611 # arguments. Must try -L first in case configure is actually a
612 # symlink; some systems play weird games with the mod time of symlinks
613 # (eg FreeBSD returns the mod time of the symlink's containing
616 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
617 if test "$*" = "X"; then
619 set X `ls -t $srcdir/configure conftestfile`
621 if test "$*" != "X $srcdir/configure conftestfile" \
622 && test "$*" != "X conftestfile $srcdir/configure"; then
624 # If neither matched, then we have a broken ls. This can happen
625 # if, for instance, CONFIG_SHELL is bash and it inherits a
626 # broken ls alias from the environment. This has actually
627 # happened. Such a system could not be considered "sane".
628 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
629 alias in your environment" 1>&2; exit 1; }
632 test "$2" = conftestfile
638 { echo "configure: error: newly created file is older than distributed files!
639 Check your system clock" 1>&2; exit 1; }
642 echo "$ac_t""yes" 1>&6
643 if test "$program_transform_name" = s,x,x,; then
644 program_transform_name=
646 # Double any \ or $. echo might interpret backslashes.
647 cat <<\EOF_SED > conftestsed
648 s,\\,\\\\,g; s,\$,$$,g
650 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
653 test "$program_prefix" != NONE &&
654 program_transform_name="s,^,${program_prefix},; $program_transform_name"
655 # Use a double $ so make ignores it.
656 test "$program_suffix" != NONE &&
657 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
659 # sed with no file args requires a program.
660 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
662 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
663 echo "configure:664: checking whether ${MAKE-make} sets \${MAKE}" >&5
664 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
665 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 cat > conftestmake <<\EOF
670 @echo 'ac_maketemp="${MAKE}"'
672 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
673 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
674 if test -n "$ac_maketemp"; then
675 eval ac_cv_prog_make_${ac_make}_set=yes
677 eval ac_cv_prog_make_${ac_make}_set=no
681 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
682 echo "$ac_t""yes" 1>&6
685 echo "$ac_t""no" 1>&6
686 SET_MAKE="MAKE=${MAKE-make}"
694 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
695 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
697 cat >> confdefs.h <<EOF
698 #define PACKAGE "$PACKAGE"
701 cat >> confdefs.h <<EOF
702 #define VERSION "$VERSION"
707 missing_dir=`cd $ac_aux_dir && pwd`
708 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
709 echo "configure:710: checking for working aclocal" >&5
710 # Run test in a subshell; some versions of sh will print an error if
711 # an executable is not found, even if stderr is redirected.
712 # Redirect stdin to placate older versions of autoconf. Sigh.
713 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
715 echo "$ac_t""found" 1>&6
717 ACLOCAL="$missing_dir/missing aclocal"
718 echo "$ac_t""missing" 1>&6
721 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
722 echo "configure:723: checking for working autoconf" >&5
723 # Run test in a subshell; some versions of sh will print an error if
724 # an executable is not found, even if stderr is redirected.
725 # Redirect stdin to placate older versions of autoconf. Sigh.
726 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
728 echo "$ac_t""found" 1>&6
730 AUTOCONF="$missing_dir/missing autoconf"
731 echo "$ac_t""missing" 1>&6
734 echo $ac_n "checking for working automake""... $ac_c" 1>&6
735 echo "configure:736: checking for working automake" >&5
736 # Run test in a subshell; some versions of sh will print an error if
737 # an executable is not found, even if stderr is redirected.
738 # Redirect stdin to placate older versions of autoconf. Sigh.
739 if (automake --version) < /dev/null > /dev/null 2>&1; then
741 echo "$ac_t""found" 1>&6
743 AUTOMAKE="$missing_dir/missing automake"
744 echo "$ac_t""missing" 1>&6
747 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
748 echo "configure:749: checking for working autoheader" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
753 AUTOHEADER=autoheader
754 echo "$ac_t""found" 1>&6
756 AUTOHEADER="$missing_dir/missing autoheader"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
761 echo "configure:762: checking for working makeinfo" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
767 echo "$ac_t""found" 1>&6
769 MAKEINFO="$missing_dir/missing makeinfo"
770 echo "$ac_t""missing" 1>&6
778 # Extract the first word of "gcc", so it can be a program name with args.
779 set dummy gcc; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$CC"; then
786 ac_cv_prog_CC="$CC" # Let the user override the test.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
789 for ac_dir in $PATH; do
790 test -z "$ac_dir" && ac_dir=.
791 if test -f $ac_dir/$ac_word; then
800 if test -n "$CC"; then
801 echo "$ac_t""$CC" 1>&6
803 echo "$ac_t""no" 1>&6
806 if test -z "$CC"; then
807 # Extract the first word of "cc", so it can be a program name with args.
808 set dummy cc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
819 for ac_dir in $PATH; do
820 test -z "$ac_dir" && ac_dir=.
821 if test -f $ac_dir/$ac_word; then
822 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
831 if test $ac_prog_rejected = yes; then
832 # We found a bogon in the path, so make sure we never use it.
833 set dummy $ac_cv_prog_CC
835 if test $# -gt 0; then
836 # We chose a different compiler from the bogus one.
837 # However, it has the same basename, so the bogon will be chosen
838 # first if we set CC to just the basename; use the full file name.
840 set dummy "$ac_dir/$ac_word" "$@"
848 if test -n "$CC"; then
849 echo "$ac_t""$CC" 1>&6
851 echo "$ac_t""no" 1>&6
854 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
858 echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
862 ac_cpp='$CPP $CPPFLAGS'
863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
864 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
865 cross_compiling=$ac_cv_prog_cc_cross
867 cat > conftest.$ac_ext <<EOF
868 #line 869 "configure"
869 #include "confdefs.h"
872 if { (eval echo configure:873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
873 ac_cv_prog_cc_works=yes
874 # If we can't run a trivial program, we are probably using a cross compiler.
875 if (./conftest; exit) 2>/dev/null; then
876 ac_cv_prog_cc_cross=no
878 ac_cv_prog_cc_cross=yes
881 echo "configure: failed program was:" >&5
882 cat conftest.$ac_ext >&5
883 ac_cv_prog_cc_works=no
887 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
888 if test $ac_cv_prog_cc_works = no; then
889 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
891 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
892 echo "configure:893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
893 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
894 cross_compiling=$ac_cv_prog_cc_cross
896 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
897 echo "configure:898: checking whether we are using GNU C" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 cat > conftest.c <<EOF
906 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
913 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
915 if test $ac_cv_prog_gcc = yes; then
917 ac_test_CFLAGS="${CFLAGS+set}"
918 ac_save_CFLAGS="$CFLAGS"
920 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
921 echo "configure:922: checking whether ${CC-cc} accepts -g" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 echo 'void f(){}' > conftest.c
926 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
935 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
936 if test "$ac_test_CFLAGS" = set; then
937 CFLAGS="$ac_save_CFLAGS"
938 elif test $ac_cv_prog_cc_g = yes; then
945 test "${CFLAGS+set}" = set || CFLAGS="-g"
948 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
949 echo "configure:950: checking how to run the C preprocessor" >&5
950 # On Suns, sometimes $CPP names a directory.
951 if test -n "$CPP" && test -d "$CPP"; then
954 if test -z "$CPP"; then
955 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 # This must be in double quotes, not single quotes, because CPP may get
959 # substituted into the Makefile and "${CC-cc}" will confuse make.
961 # On the NeXT, cc -E runs the code through the compiler's parser,
962 # not just through cpp.
963 cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
970 { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
971 ac_err=`grep -v '^ *+' conftest.out`
972 if test -z "$ac_err"; then
976 echo "configure: failed program was:" >&5
977 cat conftest.$ac_ext >&5
979 CPP="${CC-cc} -E -traditional-cpp"
980 cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
987 { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
988 ac_err=`grep -v '^ *+' conftest.out`
989 if test -z "$ac_err"; then
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
1001 ac_cv_prog_CPP="$CPP"
1003 CPP="$ac_cv_prog_CPP"
1005 ac_cv_prog_CPP="$CPP"
1007 echo "$ac_t""$CPP" 1>&6
1009 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1010 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1011 echo "configure:1012: checking for minix/config.h" >&5
1012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1018 #include <minix/config.h>
1020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1021 { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1022 ac_err=`grep -v '^ *+' conftest.out`
1023 if test -z "$ac_err"; then
1025 eval "ac_cv_header_$ac_safe=yes"
1028 echo "configure: failed program was:" >&5
1029 cat conftest.$ac_ext >&5
1031 eval "ac_cv_header_$ac_safe=no"
1035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1036 echo "$ac_t""yes" 1>&6
1039 echo "$ac_t""no" 1>&6
1043 if test "$MINIX" = yes; then
1044 cat >> confdefs.h <<\EOF
1045 #define _POSIX_SOURCE 1
1048 cat >> confdefs.h <<\EOF
1049 #define _POSIX_1_SOURCE 2
1052 cat >> confdefs.h <<\EOF
1059 missing_dir=`cd $ac_aux_dir && pwd`
1060 for ac_prog in flex lex
1062 # Extract the first word of "$ac_prog", so it can be a program name with args.
1063 set dummy $ac_prog; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 if test -n "$LEX"; then
1070 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1073 for ac_dir in $PATH; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_LEX="$ac_prog"
1083 LEX="$ac_cv_prog_LEX"
1084 if test -n "$LEX"; then
1085 echo "$ac_t""$LEX" 1>&6
1087 echo "$ac_t""no" 1>&6
1090 test -n "$LEX" && break
1092 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1094 # Extract the first word of "flex", so it can be a program name with args.
1095 set dummy flex; ac_word=$2
1096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1097 echo "configure:1098: checking for $ac_word" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 if test -n "$LEX"; then
1102 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1105 for ac_dir in $PATH; do
1106 test -z "$ac_dir" && ac_dir=.
1107 if test -f $ac_dir/$ac_word; then
1108 ac_cv_prog_LEX="flex"
1113 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1116 LEX="$ac_cv_prog_LEX"
1117 if test -n "$LEX"; then
1118 echo "$ac_t""$LEX" 1>&6
1120 echo "$ac_t""no" 1>&6
1123 if test -z "$LEXLIB"
1129 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1130 echo "configure:1131: checking for yywrap in -l$ac_lib" >&5
1131 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 ac_save_LIBS="$LIBS"
1136 LIBS="-l$ac_lib $LIBS"
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1140 /* Override any gcc2 internal prototype to avoid an error. */
1141 /* We use char because int might match the return type of a gcc2
1142 builtin and then its argument prototype would still apply. */
1149 if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1151 eval "ac_cv_lib_$ac_lib_var=yes"
1153 echo "configure: failed program was:" >&5
1154 cat conftest.$ac_ext >&5
1156 eval "ac_cv_lib_$ac_lib_var=no"
1159 LIBS="$ac_save_LIBS"
1162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1163 echo "$ac_t""yes" 1>&6
1166 echo "$ac_t""no" 1>&6
1171 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1172 echo "configure:1173: checking lex output file root" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 # The minimal lex program is just a single line: %%. But some broken lexes
1177 # (Solaris, I think it was) want two %% lines, so accommodate them.
1180 if test -f lex.yy.c; then
1181 ac_cv_prog_lex_root=lex.yy
1182 elif test -f lexyy.c; then
1183 ac_cv_prog_lex_root=lexyy
1185 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1189 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1190 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1192 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether yytext is a pointer" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 # POSIX says lex can declare yytext either as a pointer or an array; the
1198 # default is implementation-dependent. Figure out which it is, since
1199 # not all implementations provide the %pointer and %array declarations.
1200 ac_cv_prog_lex_yytext_pointer=no
1201 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1202 ac_save_LIBS="$LIBS"
1203 LIBS="$LIBS $LEXLIB"
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 `cat $LEX_OUTPUT_ROOT.c`
1212 if { (eval echo configure:1213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1214 ac_cv_prog_lex_yytext_pointer=yes
1216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
1220 LIBS="$ac_save_LIBS"
1221 rm -f "${LEX_OUTPUT_ROOT}.c"
1225 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1226 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1227 cat >> confdefs.h <<\EOF
1228 #define YYTEXT_POINTER 1
1233 for ac_prog in 'bison -y' byacc
1235 # Extract the first word of "$ac_prog", so it can be a program name with args.
1236 set dummy $ac_prog; ac_word=$2
1237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1238 echo "configure:1239: checking for $ac_word" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 if test -n "$YACC"; then
1243 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1246 for ac_dir in $PATH; do
1247 test -z "$ac_dir" && ac_dir=.
1248 if test -f $ac_dir/$ac_word; then
1249 ac_cv_prog_YACC="$ac_prog"
1256 YACC="$ac_cv_prog_YACC"
1257 if test -n "$YACC"; then
1258 echo "$ac_t""$YACC" 1>&6
1260 echo "$ac_t""no" 1>&6
1263 test -n "$YACC" && break
1265 test -n "$YACC" || YACC="yacc"
1267 # Find a good install program. We prefer a C program (faster),
1268 # so one script is as good as another. But avoid the broken or
1269 # incompatible versions:
1270 # SysV /etc/install, /usr/sbin/install
1271 # SunOS /usr/etc/install
1272 # IRIX /sbin/install
1274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1276 # ./install, which can be erroneously created by make from ./install.sh.
1277 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1278 echo "configure:1279: checking for a BSD compatible install" >&5
1279 if test -z "$INSTALL"; then
1280 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1284 for ac_dir in $PATH; do
1285 # Account for people who put trailing slashes in PATH elements.
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1289 # OSF1 and SCO ODT 3.0 have their own names for install.
1290 for ac_prog in ginstall installbsd scoinst install; do
1291 if test -f $ac_dir/$ac_prog; then
1292 if test $ac_prog = install &&
1293 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1294 # AIX install. It has an incompatible calling convention.
1295 # OSF/1 installbsd also uses dspmsg, but is usable.
1298 ac_cv_path_install="$ac_dir/$ac_prog -c"
1309 if test "${ac_cv_path_install+set}" = set; then
1310 INSTALL="$ac_cv_path_install"
1312 # As a last resort, use the slow shell script. We don't cache a
1313 # path for INSTALL within a source directory, because that will
1314 # break other packages using the cache if that directory is
1315 # removed, or if the path is relative.
1316 INSTALL="$ac_install_sh"
1319 echo "$ac_t""$INSTALL" 1>&6
1321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1322 # It thinks the first close brace ends the variable substitution.
1323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1327 # Extract the first word of "ranlib", so it can be a program name with args.
1328 set dummy ranlib; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 if test -n "$RANLIB"; then
1335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1338 for ac_dir in $PATH; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_prog_RANLIB="ranlib"
1346 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1349 RANLIB="$ac_cv_prog_RANLIB"
1350 if test -n "$RANLIB"; then
1351 echo "$ac_t""$RANLIB" 1>&6
1353 echo "$ac_t""no" 1>&6
1356 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1357 echo "configure:1358: checking whether ${MAKE-make} sets \${MAKE}" >&5
1358 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1359 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftestmake <<\EOF
1364 @echo 'ac_maketemp="${MAKE}"'
1366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1367 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1368 if test -n "$ac_maketemp"; then
1369 eval ac_cv_prog_make_${ac_make}_set=yes
1371 eval ac_cv_prog_make_${ac_make}_set=no
1375 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1379 echo "$ac_t""no" 1>&6
1380 SET_MAKE="MAKE=${MAKE-make}"
1385 for ac_hdr in stdarg.h stddef.h stdlib.h string.h limits.h unistd.h lib.h
1387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1389 echo "configure:1390: checking for $ac_hdr" >&5
1390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1399 { (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1400 ac_err=`grep -v '^ *+' conftest.out`
1401 if test -z "$ac_err"; then
1403 eval "ac_cv_header_$ac_safe=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1409 eval "ac_cv_header_$ac_safe=no"
1413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1414 echo "$ac_t""yes" 1>&6
1415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1416 cat >> confdefs.h <<EOF
1417 #define $ac_tr_hdr 1
1421 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking for working const""... $ac_c" 1>&6
1426 echo "configure:1427: checking for working const" >&5
1427 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1436 /* Ultrix mips cc rejects this. */
1437 typedef int charset[2]; const charset x;
1438 /* SunOS 4.1.1 cc rejects this. */
1439 char const *const *ccp;
1441 /* NEC SVR4.0.2 mips cc rejects this. */
1442 struct point {int x, y;};
1443 static struct point const zero = {0,0};
1444 /* AIX XL C 1.02.0.0 rejects this.
1445 It does not let you subtract one const X* pointer from another in an arm
1446 of an if-expression whose if-part is not a constant expression */
1447 const char *g = "string";
1448 ccp = &g + (g ? g-g : 0);
1449 /* HPUX 7.0 cc rejects these. */
1452 ccp = (char const *const *) p;
1453 { /* SCO 3.2v4 cc rejects this. */
1455 char const *s = 0 ? (char *) 0 : (char const *) 0;
1459 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1461 const int *foo = &x[0];
1464 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1465 typedef const int *iptr;
1469 { /* AIX XL C 1.02.0.0 rejects this saying
1470 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1471 struct s { int j; const int *ap[3]; };
1472 struct s *b; b->j = 5;
1474 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1480 if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1492 echo "$ac_t""$ac_cv_c_const" 1>&6
1493 if test $ac_cv_c_const = no; then
1494 cat >> confdefs.h <<\EOF
1500 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1501 echo "configure:1502: checking for ANSI C header files" >&5
1502 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1514 { (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1515 ac_err=`grep -v '^ *+' conftest.out`
1516 if test -z "$ac_err"; then
1518 ac_cv_header_stdc=yes
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1524 ac_cv_header_stdc=no
1528 if test $ac_cv_header_stdc = yes; then
1529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1536 egrep "memchr" >/dev/null 2>&1; then
1540 ac_cv_header_stdc=no
1546 if test $ac_cv_header_stdc = yes; then
1547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1554 egrep "free" >/dev/null 2>&1; then
1558 ac_cv_header_stdc=no
1564 if test $ac_cv_header_stdc = yes; then
1565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1566 if test "$cross_compiling" = yes; then
1569 cat > conftest.$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1573 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1574 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1576 int main () { int i; for (i = 0; i < 256; i++)
1577 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1588 ac_cv_header_stdc=no
1596 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1597 if test $ac_cv_header_stdc = yes; then
1598 cat >> confdefs.h <<\EOF
1599 #define STDC_HEADERS 1
1604 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1605 echo "configure:1606: checking for size_t" >&5
1606 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1607 echo $ac_n "(cached) $ac_c" 1>&6
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <sys/types.h>
1618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1619 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1621 ac_cv_type_size_t=yes
1624 ac_cv_type_size_t=no
1629 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1630 if test $ac_cv_type_size_t = no; then
1631 cat >> confdefs.h <<\EOF
1632 #define size_t unsigned
1637 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
1638 echo "configure:1639: checking for ptrdiff_t" >&5
1639 if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <sys/types.h>
1651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1652 egrep "ptrdiff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1654 ac_cv_type_ptrdiff_t=yes
1657 ac_cv_type_ptrdiff_t=no
1662 echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
1663 if test $ac_cv_type_ptrdiff_t = no; then
1664 cat >> confdefs.h <<\EOF
1665 #define ptrdiff_t size_t
1671 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1672 echo "configure:1673: checking for vprintf" >&5
1673 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 cat > conftest.$ac_ext <<EOF
1677 #line 1678 "configure"
1678 #include "confdefs.h"
1679 /* System header to define __stub macros and hopefully few prototypes,
1680 which can conflict with char vprintf(); below. */
1682 /* Override any gcc2 internal prototype to avoid an error. */
1683 /* We use char because int might match the return type of a gcc2
1684 builtin and then its argument prototype would still apply. */
1689 /* The GNU C library defines this for functions which it implements
1690 to always fail with ENOSYS. Some functions are actually named
1691 something starting with __ and the normal name is an alias. */
1692 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1702 eval "ac_cv_func_vprintf=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 eval "ac_cv_func_vprintf=no"
1712 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1713 echo "$ac_t""yes" 1>&6
1714 cat >> confdefs.h <<\EOF
1715 #define HAVE_VPRINTF 1
1719 echo "$ac_t""no" 1>&6
1722 if test "$ac_cv_func_vprintf" != yes; then
1723 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1724 echo "configure:1725: checking for _doprnt" >&5
1725 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char _doprnt(); below. */
1734 /* Override any gcc2 internal prototype to avoid an error. */
1735 /* We use char because int might match the return type of a gcc2
1736 builtin and then its argument prototype would still apply. */
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1754 eval "ac_cv_func__doprnt=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 eval "ac_cv_func__doprnt=no"
1764 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 cat >> confdefs.h <<\EOF
1767 #define HAVE_DOPRNT 1
1771 echo "$ac_t""no" 1>&6
1776 for ac_func in isgraph setvbuf
1778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1779 echo "configure:1780: checking for $ac_func" >&5
1780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $ac_func(); below. */
1789 /* Override any gcc2 internal prototype to avoid an error. */
1790 /* We use char because int might match the return type of a gcc2
1791 builtin and then its argument prototype would still apply. */
1796 /* The GNU C library defines this for functions which it implements
1797 to always fail with ENOSYS. Some functions are actually named
1798 something starting with __ and the normal name is an alias. */
1799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1807 if { (eval echo configure:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1809 eval "ac_cv_func_$ac_func=yes"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.$ac_ext >&5
1814 eval "ac_cv_func_$ac_func=no"
1819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1822 cat >> confdefs.h <<EOF
1823 #define $ac_tr_func 1
1827 echo "$ac_t""no" 1>&6
1832 SaveCFLAGS="$CFLAGS"
1833 CFLAGS="-g -O -I. -I$srcdir"
1834 echo $ac_n "checking if long strings are accepted by the C compiler""... $ac_c" 1>&6
1835 echo "configure:1836: checking if long strings are accepted by the C compiler" >&5
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1841 #include "bc/libmath.h"
1848 if { (eval echo configure:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1850 echo "$ac_t""yes" 1>&6
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 echo "$ac_t""no" 1>&6
1856 echo "configure: warning: libmath.b will not be preloaded into the executable" 1>&2
1857 if test "${prefix}" = "NONE" ; then
1858 cat >> confdefs.h <<EOF
1859 #define BC_MATH_FILE "/usr/local/lib/libmath.b"
1863 cat >> confdefs.h <<EOF
1864 #define BC_MATH_FILE "${prefix}/lib/libmath.b"
1870 CFLAGS="$SaveCFLAGS"
1874 # Check whether --with-readline or --without-readline was given.
1875 if test "${with_readline+set}" = set; then
1876 withval="$with_readline"
1878 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
1879 echo "configure:1880: checking for tparm in -lncurses" >&5
1880 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
1881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 ac_save_LIBS="$LIBS"
1885 LIBS="-lncurses $LIBS"
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889 /* Override any gcc2 internal prototype to avoid an error. */
1890 /* We use char because int might match the return type of a gcc2
1891 builtin and then its argument prototype would still apply. */
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1900 eval "ac_cv_lib_$ac_lib_var=yes"
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 eval "ac_cv_lib_$ac_lib_var=no"
1908 LIBS="$ac_save_LIBS"
1911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1912 echo "$ac_t""yes" 1>&6
1915 echo "$ac_t""no" 1>&6
1916 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1917 echo "configure:1918: checking for tgetent in -ltermcap" >&5
1918 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 ac_save_LIBS="$LIBS"
1923 LIBS="-ltermcap $LIBS"
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1927 /* Override any gcc2 internal prototype to avoid an error. */
1928 /* We use char because int might match the return type of a gcc2
1929 builtin and then its argument prototype would still apply. */
1936 if { (eval echo configure:1937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1938 eval "ac_cv_lib_$ac_lib_var=yes"
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1943 eval "ac_cv_lib_$ac_lib_var=no"
1946 LIBS="$ac_save_LIBS"
1949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1950 echo "$ac_t""yes" 1>&6
1953 echo "$ac_t""no" 1>&6
1959 LIBS="$LIBS $TERMLIB"
1960 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1961 echo "configure:1962: checking for readline in -lreadline" >&5
1962 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 ac_save_LIBS="$LIBS"
1967 LIBS="-lreadline $LIBS"
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* Override any gcc2 internal prototype to avoid an error. */
1972 /* We use char because int might match the return type of a gcc2
1973 builtin and then its argument prototype would still apply. */
1980 if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1982 eval "ac_cv_lib_$ac_lib_var=yes"
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 eval "ac_cv_lib_$ac_lib_var=no"
1990 LIBS="$ac_save_LIBS"
1993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
1997 echo "configure:1998: checking for readline/readline.h" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 #include <readline/readline.h>
2006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err=`grep -v '^ *+' conftest.out`
2009 if test -z "$ac_err"; then
2011 eval "ac_cv_header_$ac_safe=yes"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 eval "ac_cv_header_$ac_safe=no"
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 LIBS="$saved_LIBS -lreadline $TERMLIB";bcrl=y
2025 echo "$ac_t""no" 1>&6
2029 echo "$ac_t""no" 1>&6
2033 if test "$bcrl" = "y" ; then
2034 echo Using the readline library.
2035 cat >> confdefs.h <<\EOF
2046 if test "$LEX" = "flex" ; then
2049 if test "$bcrl" = "y" ; then
2050 echo "configure: warning: readline works only with flex." 1>&2
2054 if test "$LEX" = "lex" -a `uname -s` = "SunOS" ; then
2056 echo "SunOS using lex does not have a -ll."
2059 if test "$program_transform_name" = s,x,x,; then
2060 program_transform_name=
2062 # Double any \ or $. echo might interpret backslashes.
2063 cat <<\EOF_SED > conftestsed
2064 s,\\,\\\\,g; s,\$,$$,g
2066 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2069 test "$program_prefix" != NONE &&
2070 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2071 # Use a double $ so make ignores it.
2072 test "$program_suffix" != NONE &&
2073 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2075 # sed with no file args requires a program.
2076 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2079 cat > confcache <<\EOF
2080 # This file is a shell script that caches the results of configure
2081 # tests run on this system so they can be shared between configure
2082 # scripts and configure runs. It is not useful on other systems.
2083 # If it contains results you don't want to keep, you may remove or edit it.
2085 # By default, configure uses ./config.cache as the cache file,
2086 # creating it if it does not exist already. You can give configure
2087 # the --cache-file=FILE option to use a different cache file; that is
2088 # what configure does when it calls configure scripts in
2089 # subdirectories, so they share the cache.
2090 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2091 # config.status only pays attention to the cache file if you give it the
2092 # --recheck option to rerun configure.
2095 # The following way of writing the cache mishandles newlines in values,
2096 # but we know of no workaround that is simple, portable, and efficient.
2097 # So, don't put newlines in cache variables' values.
2098 # Ultrix sh set writes to stderr and can't be redirected directly,
2099 # and sets the high bit in the cache file unless we assign to the vars.
2101 case `(ac_space=' '; set) 2>&1` in
2103 # `set' does not quote correctly, so add quotes (double-quote substitution
2104 # turns \\\\ into \\, and sed turns \\ into \).
2106 -e "s/'/'\\\\''/g" \
2107 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2110 # `set' quotes correctly as required by POSIX, so do not add quotes.
2111 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2114 if cmp -s $cache_file confcache; then
2117 if test -w $cache_file; then
2118 echo "updating cache $cache_file"
2119 cat confcache > $cache_file
2121 echo "not updating unwritable cache $cache_file"
2126 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2128 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2129 # Let make expand exec_prefix.
2130 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2132 # Any assignment to VPATH causes Sun make to only execute
2133 # the first set of double-colon rules, so remove it if not needed.
2134 # If there is a colon in the path, we need to keep it.
2135 if test "x$srcdir" = x.; then
2136 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2139 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2141 DEFS=-DHAVE_CONFIG_H
2143 # Without the "./", some shells look in PATH for config.status.
2144 : ${CONFIG_STATUS=./config.status}
2146 echo creating $CONFIG_STATUS
2147 rm -f $CONFIG_STATUS
2148 cat > $CONFIG_STATUS <<EOF
2150 # Generated automatically by configure.
2151 # Run this file to recreate the current configuration.
2152 # This directory was configured as follows,
2153 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2155 # $0 $ac_configure_args
2157 # Compiler output produced by configure, useful for debugging
2158 # configure, is in ./config.log if it exists.
2160 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2163 case "\$ac_option" in
2164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2165 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2166 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2167 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2168 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2170 -help | --help | --hel | --he | --h)
2171 echo "\$ac_cs_usage"; exit 0 ;;
2172 *) echo "\$ac_cs_usage"; exit 1 ;;
2176 ac_given_srcdir=$srcdir
2177 ac_given_INSTALL="$INSTALL"
2179 trap 'rm -fr `echo "Makefile bc/Makefile dc/Makefile doc/Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2181 cat >> $CONFIG_STATUS <<EOF
2183 # Protect against being on the right side of a sed subst in config.status.
2184 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2185 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2188 s%@CFLAGS@%$CFLAGS%g
2189 s%@CPPFLAGS@%$CPPFLAGS%g
2190 s%@CXXFLAGS@%$CXXFLAGS%g
2192 s%@LDFLAGS@%$LDFLAGS%g
2194 s%@exec_prefix@%$exec_prefix%g
2195 s%@prefix@%$prefix%g
2196 s%@program_transform_name@%$program_transform_name%g
2197 s%@bindir@%$bindir%g
2198 s%@sbindir@%$sbindir%g
2199 s%@libexecdir@%$libexecdir%g
2200 s%@datadir@%$datadir%g
2201 s%@sysconfdir@%$sysconfdir%g
2202 s%@sharedstatedir@%$sharedstatedir%g
2203 s%@localstatedir@%$localstatedir%g
2204 s%@libdir@%$libdir%g
2205 s%@includedir@%$includedir%g
2206 s%@oldincludedir@%$oldincludedir%g
2207 s%@infodir@%$infodir%g
2208 s%@mandir@%$mandir%g
2209 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2210 s%@INSTALL_DATA@%$INSTALL_DATA%g
2211 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2212 s%@PACKAGE@%$PACKAGE%g
2213 s%@VERSION@%$VERSION%g
2214 s%@ACLOCAL@%$ACLOCAL%g
2215 s%@AUTOCONF@%$AUTOCONF%g
2216 s%@AUTOMAKE@%$AUTOMAKE%g
2217 s%@AUTOHEADER@%$AUTOHEADER%g
2218 s%@MAKEINFO@%$MAKEINFO%g
2219 s%@SET_MAKE@%$SET_MAKE%g
2223 s%@LEXLIB@%$LEXLIB%g
2224 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2226 s%@RANLIB@%$RANLIB%g
2231 cat >> $CONFIG_STATUS <<\EOF
2233 # Split the substitutions into bite-sized pieces for seds with
2234 # small command number limits, like on Digital OSF/1 and HP-UX.
2235 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2236 ac_file=1 # Number of current file.
2237 ac_beg=1 # First line for current file.
2238 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2241 while $ac_more_lines; do
2242 if test $ac_beg -gt 1; then
2243 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2245 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2247 if test ! -s conftest.s$ac_file; then
2249 rm -f conftest.s$ac_file
2251 if test -z "$ac_sed_cmds"; then
2252 ac_sed_cmds="sed -f conftest.s$ac_file"
2254 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2256 ac_file=`expr $ac_file + 1`
2258 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2261 if test -z "$ac_sed_cmds"; then
2266 cat >> $CONFIG_STATUS <<EOF
2268 CONFIG_FILES=\${CONFIG_FILES-"Makefile bc/Makefile dc/Makefile doc/Makefile lib/Makefile"}
2270 cat >> $CONFIG_STATUS <<\EOF
2271 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2274 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2275 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2276 *) ac_file_in="${ac_file}.in" ;;
2279 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2281 # Remove last slash and all that follows it. Not all systems have dirname.
2282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2284 # The file is in a subdirectory.
2285 test ! -d "$ac_dir" && mkdir "$ac_dir"
2286 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2287 # A "../" for each directory in $ac_dir_suffix.
2288 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2290 ac_dir_suffix= ac_dots=
2293 case "$ac_given_srcdir" in
2295 if test -z "$ac_dots"; then top_srcdir=.
2296 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2297 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2299 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2300 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2303 case "$ac_given_INSTALL" in
2304 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2305 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2308 echo creating "$ac_file"
2310 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2312 *Makefile*) ac_comsub="1i\\
2313 # $configure_input" ;;
2317 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2319 s%@configure_input@%$configure_input%g
2320 s%@srcdir@%$srcdir%g
2321 s%@top_srcdir@%$top_srcdir%g
2322 s%@INSTALL@%$INSTALL%g
2323 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2327 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2328 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2330 # ac_d sets the value in "#define NAME VALUE" lines.
2331 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2332 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2335 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2336 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2337 ac_uB='\([ ]\)%\1#\2define\3'
2340 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2341 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2342 ac_eB='$%\1#\2define\3'
2346 if test "${CONFIG_HEADERS+set}" != set; then
2348 cat >> $CONFIG_STATUS <<EOF
2349 CONFIG_HEADERS="config.h"
2351 cat >> $CONFIG_STATUS <<\EOF
2353 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2356 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2357 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2358 *) ac_file_in="${ac_file}.in" ;;
2361 echo creating $ac_file
2363 rm -f conftest.frag conftest.in conftest.out
2364 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2365 cat $ac_file_inputs > conftest.in
2369 # Transform confdefs.h into a sed script conftest.vals that substitutes
2370 # the proper values into config.h.in to produce config.h. And first:
2371 # Protect against being on the right side of a sed subst in config.status.
2372 # Protect against being in an unquoted here document in config.status.
2374 cat > conftest.hdr <<\EOF
2377 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2381 sed -n -f conftest.hdr confdefs.h > conftest.vals
2384 # This sed command replaces #undef with comments. This is necessary, for
2385 # example, in the case of _POSIX_SOURCE, which is predefined and required
2386 # on some systems where configure will not decide to define it.
2387 cat >> conftest.vals <<\EOF
2388 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2391 # Break up conftest.vals because some shells have a limit on
2392 # the size of here documents, and old seds have small limits too.
2397 ac_lines=`grep -c . conftest.vals`
2398 # grep -c gives empty output for an empty file on some AIX systems.
2399 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2400 # Write a limited-size here document to conftest.frag.
2401 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2402 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2404 sed -f conftest.frag conftest.in > conftest.out
2406 mv conftest.out conftest.in
2408 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2410 mv conftest.tail conftest.vals
2414 cat >> $CONFIG_STATUS <<\EOF
2415 rm -f conftest.frag conftest.h
2416 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2417 cat conftest.in >> conftest.h
2419 if cmp -s $ac_file conftest.h 2>/dev/null; then
2420 echo "$ac_file is unchanged"
2423 # Remove last slash and all that follows it. Not all systems have dirname.
2424 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2425 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2426 # The file is in a subdirectory.
2427 test ! -d "$ac_dir" && mkdir "$ac_dir"
2430 mv conftest.h $ac_file
2435 cat >> $CONFIG_STATUS <<EOF
2439 cat >> $CONFIG_STATUS <<\EOF
2440 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2444 chmod +x $CONFIG_STATUS
2445 rm -fr confdefs* $ac_clean_files
2446 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1