3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
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 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
184 if test -n "$ac_help"; then
185 echo "--enable and --with options recognized:$ac_help"
189 -host | --host | --hos | --ho)
191 -host=* | --host=* | --hos=* | --ho=*)
194 -includedir | --includedir | --includedi | --included | --include \
195 | --includ | --inclu | --incl | --inc)
196 ac_prev=includedir ;;
197 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 | --includ=* | --inclu=* | --incl=* | --inc=*)
199 includedir="$ac_optarg" ;;
201 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 infodir="$ac_optarg" ;;
206 -libdir | --libdir | --libdi | --libd)
208 -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 libdir="$ac_optarg" ;;
211 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 | --libexe | --libex | --libe)
213 ac_prev=libexecdir ;;
214 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 | --libexe=* | --libex=* | --libe=*)
216 libexecdir="$ac_optarg" ;;
218 -localstatedir | --localstatedir | --localstatedi | --localstated \
219 | --localstate | --localstat | --localsta | --localst \
220 | --locals | --local | --loca | --loc | --lo)
221 ac_prev=localstatedir ;;
222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 localstatedir="$ac_optarg" ;;
227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 mandir="$ac_optarg" ;;
233 # Obsolete; use --without-fp.
236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 | --oldin | --oldi | --old | --ol | --o)
247 ac_prev=oldincludedir ;;
248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 oldincludedir="$ac_optarg" ;;
253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 prefix="$ac_optarg" ;;
258 -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 | --program-pre | --program-pr | --program-p)
260 ac_prev=program_prefix ;;
261 -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 program_prefix="$ac_optarg" ;;
265 -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 | --program-suf | --program-su | --program-s)
267 ac_prev=program_suffix ;;
268 -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 program_suffix="$ac_optarg" ;;
272 -program-transform-name | --program-transform-name \
273 | --program-transform-nam | --program-transform-na \
274 | --program-transform-n | --program-transform- \
275 | --program-transform | --program-transfor \
276 | --program-transfo | --program-transf \
277 | --program-trans | --program-tran \
278 | --progr-tra | --program-tr | --program-t)
279 ac_prev=program_transform_name ;;
280 -program-transform-name=* | --program-transform-name=* \
281 | --program-transform-nam=* | --program-transform-na=* \
282 | --program-transform-n=* | --program-transform-=* \
283 | --program-transform=* | --program-transfor=* \
284 | --program-transfo=* | --program-transf=* \
285 | --program-trans=* | --program-tran=* \
286 | --progr-tra=* | --program-tr=* | --program-t=*)
287 program_transform_name="$ac_optarg" ;;
289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 | -silent | --silent | --silen | --sile | --sil)
293 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 sbindir="$ac_optarg" ;;
299 -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 | --sharedst | --shareds | --shared | --share | --shar \
303 ac_prev=sharedstatedir ;;
304 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 sharedstatedir="$ac_optarg" ;;
310 -site | --site | --sit)
312 -site=* | --site=* | --sit=*)
315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 srcdir="$ac_optarg" ;;
320 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 | --syscon | --sysco | --sysc | --sys | --sy)
322 ac_prev=sysconfdir ;;
323 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 sysconfdir="$ac_optarg" ;;
327 -target | --target | --targe | --targ | --tar | --ta | --t)
329 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 target="$ac_optarg" ;;
332 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 -version | --version | --versio | --versi | --vers)
336 echo "configure generated by autoconf version 2.12.1"
340 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 # Reject names that are not valid shell variable names.
342 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 ac_package=`echo $ac_package| sed 's/-/_/g'`
350 eval "with_${ac_package}='$ac_optarg'" ;;
352 -without-* | --without-*)
353 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}=no" ;;
362 # Obsolete; use --with-x.
365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 | --x-incl | --x-inc | --x-in | --x-i)
367 ac_prev=x_includes ;;
368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 x_includes="$ac_optarg" ;;
372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 ac_prev=x_libraries ;;
375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 x_libraries="$ac_optarg" ;;
379 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 if test "x$nonopt" != xNONE; then
387 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 if test -n "$ac_prev"; then
396 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401 # File descriptor usage:
404 # 2 errors and warnings
405 # 3 some systems may open it to /dev/tty
406 # 4 used on the Kubota Titan
407 # 6 checking for... messages and results
408 # 5 compiler messages saved in config.log
409 if test "$silent" = yes; then
417 This file contains any messages produced by compilers while
418 running configure, to aid debugging if configure makes a mistake.
421 # Strip out --no-create and --no-recursion so they do not pile up.
422 # Also quote any args containing shell metacharacters.
427 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 | --no-cr | --no-c) ;;
429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438 # Only set these to C if already set. These must not be set unconditionally
439 # because not all systems understand e.g. LANG=C (notably SCO).
440 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 # Non-C LC_CTYPE values break the ctype check.
442 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
454 ac_unique_file=texinfo.texi
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE; then
482 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp='$CPP $CPPFLAGS'
505 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 cross_compiling=$ac_cv_prog_cc_cross
509 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
510 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
511 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518 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 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'
602 # Extract the first word of "ranlib", so it can be a program name with args.
603 set dummy ranlib; ac_word=$2
604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
605 echo "configure:606: checking for $ac_word" >&5
606 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
607 echo $ac_n "(cached) $ac_c" 1>&6
609 if test -n "$RANLIB"; then
610 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
613 for ac_dir in $PATH; do
614 test -z "$ac_dir" && ac_dir=.
615 if test -f $ac_dir/$ac_word; then
616 ac_cv_prog_RANLIB="ranlib"
621 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
624 RANLIB="$ac_cv_prog_RANLIB"
625 if test -n "$RANLIB"; then
626 echo "$ac_t""$RANLIB" 1>&6
628 echo "$ac_t""no" 1>&6
632 # Extract the first word of "gcc", so it can be a program name with args.
633 set dummy gcc; ac_word=$2
634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
635 echo "configure:636: checking for $ac_word" >&5
636 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 if test -n "$CC"; then
640 ac_cv_prog_CC="$CC" # Let the user override the test.
642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
643 for ac_dir in $PATH; do
644 test -z "$ac_dir" && ac_dir=.
645 if test -f $ac_dir/$ac_word; then
654 if test -n "$CC"; then
655 echo "$ac_t""$CC" 1>&6
657 echo "$ac_t""no" 1>&6
660 if test -z "$CC"; then
661 # Extract the first word of "cc", so it can be a program name with args.
662 set dummy cc; ac_word=$2
663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
664 echo "configure:665: checking for $ac_word" >&5
665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
666 echo $ac_n "(cached) $ac_c" 1>&6
668 if test -n "$CC"; then
669 ac_cv_prog_CC="$CC" # Let the user override the test.
671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
673 for ac_dir in $PATH; do
674 test -z "$ac_dir" && ac_dir=.
675 if test -f $ac_dir/$ac_word; then
676 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
685 if test $ac_prog_rejected = yes; then
686 # We found a bogon in the path, so make sure we never use it.
687 set dummy $ac_cv_prog_CC
689 if test $# -gt 0; then
690 # We chose a different compiler from the bogus one.
691 # However, it has the same basename, so the bogon will be chosen
692 # first if we set CC to just the basename; use the full file name.
694 set dummy "$ac_dir/$ac_word" "$@"
702 if test -n "$CC"; then
703 echo "$ac_t""$CC" 1>&6
705 echo "$ac_t""no" 1>&6
708 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
711 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
712 echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
716 ac_cpp='$CPP $CPPFLAGS'
717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
718 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
719 cross_compiling=$ac_cv_prog_cc_cross
721 cat > conftest.$ac_ext <<EOF
722 #line 723 "configure"
723 #include "confdefs.h"
726 if { (eval echo configure:727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
727 ac_cv_prog_cc_works=yes
728 # If we can't run a trivial program, we are probably using a cross compiler.
729 if (./conftest; exit) 2>/dev/null; then
730 ac_cv_prog_cc_cross=no
732 ac_cv_prog_cc_cross=yes
735 echo "configure: failed program was:" >&5
736 cat conftest.$ac_ext >&5
737 ac_cv_prog_cc_works=no
741 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
742 if test $ac_cv_prog_cc_works = no; then
743 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
745 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
746 echo "configure:747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
747 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
748 cross_compiling=$ac_cv_prog_cc_cross
750 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
751 echo "configure:752: checking whether we are using GNU C" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 cat > conftest.c <<EOF
760 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
767 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
769 if test $ac_cv_prog_gcc = yes; then
771 ac_test_CFLAGS="${CFLAGS+set}"
772 ac_save_CFLAGS="$CFLAGS"
774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${CC-cc} accepts -g" >&5
776 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 echo 'void f(){}' > conftest.c
780 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
790 if test "$ac_test_CFLAGS" = set; then
791 CFLAGS="$ac_save_CFLAGS"
792 elif test $ac_cv_prog_cc_g = yes; then
799 test "${CFLAGS+set}" = set || CFLAGS="-g"
802 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
803 echo "configure:804: checking for POSIXized ISC" >&5
804 if test -d /etc/conf/kconfig.d &&
805 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
807 echo "$ac_t""yes" 1>&6
808 ISC=yes # If later tests want to check for ISC.
809 cat >> confdefs.h <<\EOF
810 #define _POSIX_SOURCE 1
813 if test "$GCC" = yes; then
819 echo "$ac_t""no" 1>&6
823 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
824 echo "configure:825: checking how to run the C preprocessor" >&5
825 # On Suns, sometimes $CPP names a directory.
826 if test -n "$CPP" && test -d "$CPP"; then
829 if test -z "$CPP"; then
830 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 # This must be in double quotes, not single quotes, because CPP may get
834 # substituted into the Makefile and "${CC-cc}" will confuse make.
836 # On the NeXT, cc -E runs the code through the compiler's parser,
837 # not just through cpp.
838 cat > conftest.$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
845 { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
846 ac_err=`grep -v '^ *+' conftest.out`
847 if test -z "$ac_err"; then
851 echo "configure: failed program was:" >&5
852 cat conftest.$ac_ext >&5
854 CPP="${CC-cc} -E -traditional-cpp"
855 cat > conftest.$ac_ext <<EOF
856 #line 857 "configure"
857 #include "confdefs.h"
861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
862 { (eval echo configure:863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
863 ac_err=`grep -v '^ *+' conftest.out`
864 if test -z "$ac_err"; then
868 echo "configure: failed program was:" >&5
869 cat conftest.$ac_ext >&5
876 ac_cv_prog_CPP="$CPP"
878 CPP="$ac_cv_prog_CPP"
880 ac_cv_prog_CPP="$CPP"
882 echo "$ac_t""$CPP" 1>&6
884 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
885 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
886 echo "configure:887: checking for minix/config.h" >&5
887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 cat > conftest.$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
893 #include <minix/config.h>
895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
896 { (eval echo configure:897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
897 ac_err=`grep -v '^ *+' conftest.out`
898 if test -z "$ac_err"; then
900 eval "ac_cv_header_$ac_safe=yes"
903 echo "configure: failed program was:" >&5
904 cat conftest.$ac_ext >&5
906 eval "ac_cv_header_$ac_safe=no"
910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
911 echo "$ac_t""yes" 1>&6
914 echo "$ac_t""no" 1>&6
918 if test "$MINIX" = yes; then
919 cat >> confdefs.h <<\EOF
920 #define _POSIX_SOURCE 1
923 cat >> confdefs.h <<\EOF
924 #define _POSIX_1_SOURCE 2
927 cat >> confdefs.h <<\EOF
934 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
935 echo "configure:936: checking for Cygwin32 environment" >&5
936 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 cat > conftest.$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
944 int main () { return __CYGWIN32__; }
947 if { (eval echo configure:948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
960 echo "$ac_t""$am_cv_cygwin32" 1>&6
962 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
963 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
964 echo "configure:965: checking for executable suffix" >&5
965 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 if test "$CYGWIN32" = yes; then
971 cat > am_c_test.c << 'EOF'
973 /* Nothing needed here */
976 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
977 am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
981 test x"${am_cv_exeext}" = x && am_cv_exeext=no
984 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
985 echo "$ac_t""${am_cv_exeext}" 1>&6
988 # Needed on sysV68 for sigblock, sigsetmask.
989 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
990 echo "configure:991: checking for sigblock in -lbsd" >&5
991 ac_lib_var=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
997 cat > conftest.$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1000 /* Override any gcc2 internal prototype to avoid an error. */
1001 /* We use char because int might match the return type of a gcc2
1002 builtin and then its argument prototype would still apply. */
1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1011 eval "ac_cv_lib_$ac_lib_var=yes"
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1016 eval "ac_cv_lib_$ac_lib_var=no"
1019 LIBS="$ac_save_LIBS"
1022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1023 echo "$ac_t""yes" 1>&6
1024 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1026 cat >> confdefs.h <<EOF
1027 #define $ac_tr_lib 1
1033 echo "$ac_t""no" 1>&6
1038 for termlib in curses ncurses termcap terminfo termlib ; do
1039 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1040 echo "configure:1041: checking for tputs in -l${termlib}" >&5
1041 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 ac_save_LIBS="$LIBS"
1046 LIBS="-l${termlib} $LIBS"
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 /* Override any gcc2 internal prototype to avoid an error. */
1051 /* We use char because int might match the return type of a gcc2
1052 builtin and then its argument prototype would still apply. */
1059 if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1061 eval "ac_cv_lib_$ac_lib_var=yes"
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1066 eval "ac_cv_lib_$ac_lib_var=no"
1069 LIBS="$ac_save_LIBS"
1072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 TERMLIBS="${TERMLIBS} -l${termlib}"; break
1076 echo "$ac_t""no" 1>&6
1082 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1083 echo "configure:1084: checking for ANSI C header files" >&5
1084 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 cat > conftest.$ac_ext <<EOF
1088 #line 1089 "configure"
1089 #include "confdefs.h"
1095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1096 { (eval echo configure:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1097 ac_err=`grep -v '^ *+' conftest.out`
1098 if test -z "$ac_err"; then
1100 ac_cv_header_stdc=yes
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1106 ac_cv_header_stdc=no
1110 if test $ac_cv_header_stdc = yes; then
1111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1118 egrep "memchr" >/dev/null 2>&1; then
1122 ac_cv_header_stdc=no
1128 if test $ac_cv_header_stdc = yes; then
1129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1130 cat > conftest.$ac_ext <<EOF
1131 #line 1132 "configure"
1132 #include "confdefs.h"
1135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1136 egrep "free" >/dev/null 2>&1; then
1140 ac_cv_header_stdc=no
1146 if test $ac_cv_header_stdc = yes; then
1147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1148 if test "$cross_compiling" = yes; then
1151 cat > conftest.$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1155 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1156 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1158 int main () { int i; for (i = 0; i < 256; i++)
1159 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1163 if { (eval echo configure:1164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1167 echo "configure: failed program was:" >&5
1168 cat conftest.$ac_ext >&5
1170 ac_cv_header_stdc=no
1178 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1179 if test $ac_cv_header_stdc = yes; then
1180 cat >> confdefs.h <<\EOF
1181 #define STDC_HEADERS 1
1186 for ac_hdr in unistd.h termios.h termio.h strings.h string.h varargs.h \
1187 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h
1189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_hdr" >&5
1192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201 { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202 ac_err=`grep -v '^ *+' conftest.out`
1203 if test -z "$ac_err"; then
1205 eval "ac_cv_header_$ac_safe=yes"
1208 echo "configure: failed program was:" >&5
1209 cat conftest.$ac_ext >&5
1211 eval "ac_cv_header_$ac_safe=no"
1215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1218 cat >> confdefs.h <<EOF
1219 #define $ac_tr_hdr 1
1223 echo "$ac_t""no" 1>&6
1228 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1229 echo "configure:1230: checking for off_t" >&5
1230 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1236 #include <sys/types.h>
1242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1243 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1245 ac_cv_type_off_t=yes
1253 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1254 if test $ac_cv_type_off_t = no; then
1255 cat >> confdefs.h <<\EOF
1261 echo $ac_n "checking for working const""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working const" >&5
1263 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1272 /* Ultrix mips cc rejects this. */
1273 typedef int charset[2]; const charset x;
1274 /* SunOS 4.1.1 cc rejects this. */
1275 char const *const *ccp;
1277 /* NEC SVR4.0.2 mips cc rejects this. */
1278 struct point {int x, y;};
1279 static struct point const zero = {0,0};
1280 /* AIX XL C 1.02.0.0 rejects this.
1281 It does not let you subtract one const X* pointer from another in an arm
1282 of an if-expression whose if-part is not a constant expression */
1283 const char *g = "string";
1284 ccp = &g + (g ? g-g : 0);
1285 /* HPUX 7.0 cc rejects these. */
1288 ccp = (char const *const *) p;
1289 { /* SCO 3.2v4 cc rejects this. */
1291 char const *s = 0 ? (char *) 0 : (char const *) 0;
1295 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1297 const int *foo = &x[0];
1300 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1301 typedef const int *iptr;
1305 { /* AIX XL C 1.02.0.0 rejects this saying
1306 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1307 struct s { int j; const int *ap[3]; };
1308 struct s *b; b->j = 5;
1310 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1316 if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1320 echo "configure: failed program was:" >&5
1321 cat conftest.$ac_ext >&5
1328 echo "$ac_t""$ac_cv_c_const" 1>&6
1329 if test $ac_cv_c_const = no; then
1330 cat >> confdefs.h <<\EOF
1336 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1337 echo "configure:1338: checking whether struct tm is in sys/time.h or time.h" >&5
1338 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 #include <sys/types.h>
1347 struct tm *tp; tp->tm_sec;
1350 if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1352 ac_cv_struct_tm=time.h
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1357 ac_cv_struct_tm=sys/time.h
1362 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1363 if test $ac_cv_struct_tm = sys/time.h; then
1364 cat >> confdefs.h <<\EOF
1365 #define TM_IN_SYS_TIME 1
1371 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1372 # for constant arguments. Useless!
1373 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1374 echo "configure:1375: checking for working alloca.h" >&5
1375 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1383 char *p = alloca(2 * sizeof(int));
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1388 ac_cv_header_alloca_h=yes
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 ac_cv_header_alloca_h=no
1398 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1399 if test $ac_cv_header_alloca_h = yes; then
1400 cat >> confdefs.h <<\EOF
1401 #define HAVE_ALLOCA_H 1
1406 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1407 echo "configure:1408: checking for alloca" >&5
1408 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1416 # define alloca __builtin_alloca
1419 # include <alloca.h>
1424 # ifndef alloca /* predefined by HP cc +Olibcalls */
1432 char *p = (char *) alloca(1);
1435 if { (eval echo configure:1436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1437 ac_cv_func_alloca_works=yes
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1442 ac_cv_func_alloca_works=no
1447 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1448 if test $ac_cv_func_alloca_works = yes; then
1449 cat >> confdefs.h <<\EOF
1450 #define HAVE_ALLOCA 1
1455 if test $ac_cv_func_alloca_works = no; then
1456 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1457 # that cause trouble. Some versions do not even contain alloca or
1458 # contain a buggy version. If you still want to use their alloca,
1459 # use ar to extract alloca.o from them instead of compiling alloca.c.
1461 cat >> confdefs.h <<\EOF
1466 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether alloca needs Cray hooks" >&5
1468 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 #if defined(CRAY) && ! defined(CRAY2)
1481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1482 egrep "webecray" >/dev/null 2>&1; then
1493 echo "$ac_t""$ac_cv_os_cray" 1>&6
1494 if test $ac_cv_os_cray = yes; then
1495 for ac_func in _getb67 GETB67 getb67; do
1496 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_func" >&5
1498 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1504 /* System header to define __stub macros and hopefully few prototypes,
1505 which can conflict with char $ac_func(); below. */
1507 /* Override any gcc2 internal prototype to avoid an error. */
1508 /* We use char because int might match the return type of a gcc2
1509 builtin and then its argument prototype would still apply. */
1514 /* The GNU C library defines this for functions which it implements
1515 to always fail with ENOSYS. Some functions are actually named
1516 something starting with __ and the normal name is an alias. */
1517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1525 if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1527 eval "ac_cv_func_$ac_func=yes"
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 eval "ac_cv_func_$ac_func=no"
1537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1538 echo "$ac_t""yes" 1>&6
1539 cat >> confdefs.h <<EOF
1540 #define CRAY_STACKSEG_END $ac_func
1545 echo "$ac_t""no" 1>&6
1551 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1552 echo "configure:1553: checking stack direction for C alloca" >&5
1553 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1556 if test "$cross_compiling" = yes; then
1557 ac_cv_c_stack_direction=0
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 find_stack_direction ()
1564 static char *addr = 0;
1569 return find_stack_direction ();
1572 return (&dummy > addr) ? 1 : -1;
1576 exit (find_stack_direction() < 0);
1579 if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1581 ac_cv_c_stack_direction=1
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1586 ac_cv_c_stack_direction=-1
1593 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1594 cat >> confdefs.h <<EOF
1595 #define STACK_DIRECTION $ac_cv_c_stack_direction
1600 if test "$ac_cv_c_cross" = no; then
1601 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1602 echo "configure:1603: checking whether setvbuf arguments are reversed" >&5
1603 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 if test "$cross_compiling" = yes; then
1607 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1613 /* If setvbuf has the reversed format, exit 0. */
1615 /* This call has the arguments reversed.
1616 A reversed system may check and see that the address of main
1617 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1618 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1621 exit(0); /* Non-reversed systems segv here. */
1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1626 ac_cv_func_setvbuf_reversed=yes
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1631 ac_cv_func_setvbuf_reversed=no
1636 rm -f core core.* *.core
1639 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1640 if test $ac_cv_func_setvbuf_reversed = yes; then
1641 cat >> confdefs.h <<\EOF
1642 #define SETVBUF_REVERSED 1
1648 for ac_func in setvbuf getcwd memset bzero strchr strcasecmp \
1649 vfprintf vsprintf strerror sigprocmask sigsetmask
1651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_func" >&5
1653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 cat > conftest.$ac_ext <<EOF
1657 #line 1658 "configure"
1658 #include "confdefs.h"
1659 /* System header to define __stub macros and hopefully few prototypes,
1660 which can conflict with char $ac_func(); below. */
1662 /* Override any gcc2 internal prototype to avoid an error. */
1663 /* We use char because int might match the return type of a gcc2
1664 builtin and then its argument prototype would still apply. */
1669 /* The GNU C library defines this for functions which it implements
1670 to always fail with ENOSYS. Some functions are actually named
1671 something starting with __ and the normal name is an alias. */
1672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1680 if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1682 eval "ac_cv_func_$ac_func=yes"
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 eval "ac_cv_func_$ac_func=no"
1692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1693 echo "$ac_t""yes" 1>&6
1694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1695 cat >> confdefs.h <<EOF
1696 #define $ac_tr_func 1
1700 echo "$ac_t""no" 1>&6
1704 for ac_func in memcpy memmove strdup
1706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_func" >&5
1708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 /* System header to define __stub macros and hopefully few prototypes,
1715 which can conflict with char $ac_func(); below. */
1717 /* Override any gcc2 internal prototype to avoid an error. */
1718 /* We use char because int might match the return type of a gcc2
1719 builtin and then its argument prototype would still apply. */
1724 /* The GNU C library defines this for functions which it implements
1725 to always fail with ENOSYS. Some functions are actually named
1726 something starting with __ and the normal name is an alias. */
1727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1737 eval "ac_cv_func_$ac_func=yes"
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1742 eval "ac_cv_func_$ac_func=no"
1747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1750 cat >> confdefs.h <<EOF
1751 #define $ac_tr_func 1
1755 echo "$ac_t""no" 1>&6
1756 LIBOBJS="$LIBOBJS ${ac_func}.o"
1763 cat > confcache <<\EOF
1764 # This file is a shell script that caches the results of configure
1765 # tests run on this system so they can be shared between configure
1766 # scripts and configure runs. It is not useful on other systems.
1767 # If it contains results you don't want to keep, you may remove or edit it.
1769 # By default, configure uses ./config.cache as the cache file,
1770 # creating it if it does not exist already. You can give configure
1771 # the --cache-file=FILE option to use a different cache file; that is
1772 # what configure does when it calls configure scripts in
1773 # subdirectories, so they share the cache.
1774 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1775 # config.status only pays attention to the cache file if you give it the
1776 # --recheck option to rerun configure.
1779 # The following way of writing the cache mishandles newlines in values,
1780 # but we know of no workaround that is simple, portable, and efficient.
1781 # So, don't put newlines in cache variables' values.
1782 # Ultrix sh set writes to stderr and can't be redirected directly,
1783 # and sets the high bit in the cache file unless we assign to the vars.
1785 case `(ac_space=' '; set) 2>&1` in
1787 # `set' does not quote correctly, so add quotes (double-quote substitution
1788 # turns \\\\ into \\, and sed turns \\ into \).
1790 -e "s/'/'\\\\''/g" \
1791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1794 # `set' quotes correctly as required by POSIX, so do not add quotes.
1795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1798 if cmp -s $cache_file confcache; then
1801 if test -w $cache_file; then
1802 echo "updating cache $cache_file"
1803 cat confcache > $cache_file
1805 echo "not updating unwritable cache $cache_file"
1810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1813 # Let make expand exec_prefix.
1814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1816 # Any assignment to VPATH causes Sun make to only execute
1817 # the first set of double-colon rules, so remove it if not needed.
1818 # If there is a colon in the path, we need to keep it.
1819 if test "x$srcdir" = x.; then
1820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1825 # Transform confdefs.h into DEFS.
1826 # Protect against shell expansion while executing Makefile rules.
1827 # Protect against Makefile macro expansion.
1828 cat > conftest.defs <<\EOF
1829 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1830 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1835 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1839 # Without the "./", some shells look in PATH for config.status.
1840 : ${CONFIG_STATUS=./config.status}
1842 echo creating $CONFIG_STATUS
1843 rm -f $CONFIG_STATUS
1844 cat > $CONFIG_STATUS <<EOF
1846 # Generated automatically by configure.
1847 # Run this file to recreate the current configuration.
1848 # This directory was configured as follows,
1849 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1851 # $0 $ac_configure_args
1853 # Compiler output produced by configure, useful for debugging
1854 # configure, is in ./config.log if it exists.
1856 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1859 case "\$ac_option" in
1860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1861 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1862 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1863 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1864 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
1866 -help | --help | --hel | --he | --h)
1867 echo "\$ac_cs_usage"; exit 0 ;;
1868 *) echo "\$ac_cs_usage"; exit 1 ;;
1872 ac_given_srcdir=$srcdir
1874 trap 'rm -fr `echo "Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1876 cat >> $CONFIG_STATUS <<EOF
1878 # Protect against being on the right side of a sed subst in config.status.
1879 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1880 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1884 s%@CFLAGS@%$CFLAGS%g
1885 s%@CPPFLAGS@%$CPPFLAGS%g
1886 s%@CXXFLAGS@%$CXXFLAGS%g
1888 s%@LDFLAGS@%$LDFLAGS%g
1890 s%@exec_prefix@%$exec_prefix%g
1891 s%@prefix@%$prefix%g
1892 s%@program_transform_name@%$program_transform_name%g
1893 s%@bindir@%$bindir%g
1894 s%@sbindir@%$sbindir%g
1895 s%@libexecdir@%$libexecdir%g
1896 s%@datadir@%$datadir%g
1897 s%@sysconfdir@%$sysconfdir%g
1898 s%@sharedstatedir@%$sharedstatedir%g
1899 s%@localstatedir@%$localstatedir%g
1900 s%@libdir@%$libdir%g
1901 s%@includedir@%$includedir%g
1902 s%@oldincludedir@%$oldincludedir%g
1903 s%@infodir@%$infodir%g
1904 s%@mandir@%$mandir%g
1905 s%@INSTALL@%$INSTALL%g
1906 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1907 s%@INSTALL_DATA@%$INSTALL_DATA%g
1908 s%@RANLIB@%$RANLIB%g
1911 s%@EXEEXT@%$EXEEXT%g
1912 s%@TERMLIBS@%$TERMLIBS%g
1913 s%@ALLOCA@%$ALLOCA%g
1914 s%@LIBOBJS@%$LIBOBJS%g
1919 cat >> $CONFIG_STATUS <<\EOF
1921 # Split the substitutions into bite-sized pieces for seds with
1922 # small command number limits, like on Digital OSF/1 and HP-UX.
1923 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1924 ac_file=1 # Number of current file.
1925 ac_beg=1 # First line for current file.
1926 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1929 while $ac_more_lines; do
1930 if test $ac_beg -gt 1; then
1931 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1933 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1935 if test ! -s conftest.s$ac_file; then
1937 rm -f conftest.s$ac_file
1939 if test -z "$ac_sed_cmds"; then
1940 ac_sed_cmds="sed -f conftest.s$ac_file"
1942 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1944 ac_file=`expr $ac_file + 1`
1946 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1949 if test -z "$ac_sed_cmds"; then
1954 cat >> $CONFIG_STATUS <<EOF
1956 CONFIG_FILES=\${CONFIG_FILES-"Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile"}
1958 cat >> $CONFIG_STATUS <<\EOF
1959 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1960 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1962 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1963 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1964 *) ac_file_in="${ac_file}.in" ;;
1967 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1969 # Remove last slash and all that follows it. Not all systems have dirname.
1970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1972 # The file is in a subdirectory.
1973 test ! -d "$ac_dir" && mkdir "$ac_dir"
1974 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1975 # A "../" for each directory in $ac_dir_suffix.
1976 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1978 ac_dir_suffix= ac_dots=
1981 case "$ac_given_srcdir" in
1983 if test -z "$ac_dots"; then top_srcdir=.
1984 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1985 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1987 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1988 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1992 echo creating "$ac_file"
1994 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1996 *Makefile*) ac_comsub="1i\\
1997 # $configure_input" ;;
2001 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2003 s%@configure_input@%$configure_input%g
2004 s%@srcdir@%$srcdir%g
2005 s%@top_srcdir@%$top_srcdir%g
2006 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2011 cat >> $CONFIG_STATUS <<EOF
2014 cat >> $CONFIG_STATUS <<\EOF
2018 chmod +x $CONFIG_STATUS
2019 rm -fr confdefs* $ac_clean_files
2020 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1