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 # 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 # Maximum number of lines to put in a shell here document.
59 # If the previous option needs an argument, assign it.
60 if test -n "$ac_prev"; then
61 eval "$ac_prev=\$ac_option"
67 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 # Accept the important Cygnus configure options, so we can diagnose typos.
75 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
77 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
78 bindir
="$ac_optarg" ;;
80 -build |
--build |
--buil |
--bui |
--bu)
82 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
85 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
86 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
88 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
89 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
90 cache_file
="$ac_optarg" ;;
92 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
94 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
96 datadir
="$ac_optarg" ;;
98 -disable-* |
--disable-*)
99 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
100 # Reject names that are not valid shell variable names.
101 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
102 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
105 eval "enable_${ac_feature}=no" ;;
107 -enable-* |
--enable-*)
108 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
109 # Reject names that are not valid shell variable names.
110 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}='$ac_optarg'" ;;
120 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
121 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
122 |
--exec |
--exe |
--ex)
123 ac_prev
=exec_prefix
;;
124 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
125 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
126 |
--exec=* |
--exe=* |
--ex=*)
127 exec_prefix
="$ac_optarg" ;;
129 -gas |
--gas |
--ga |
--g)
130 # Obsolete; use --with-gas.
133 -help |
--help |
--hel |
--he)
134 # Omit some internal or obsolete options to make the list less imposing.
135 # This message is too long to be a string in the A/UX 3.1 sh.
137 Usage: configure [options] [host]
138 Options: [defaults in brackets after descriptions]
140 --cache-file=FILE cache test results in FILE
141 --help print this message
142 --no-create do not create output files
143 --quiet, --silent do not print \`checking...' messages
144 --version print the version of autoconf that created configure
145 Directory and file names:
146 --prefix=PREFIX install architecture-independent files in PREFIX
148 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 --bindir=DIR user executables in DIR [EPREFIX/bin]
151 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
152 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
153 --datadir=DIR read-only architecture-independent data in DIR
155 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
156 --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
159 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
160 --includedir=DIR C header files in DIR [PREFIX/include]
161 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
162 --infodir=DIR info documentation in DIR [PREFIX/info]
163 --mandir=DIR man documentation in DIR [PREFIX/man]
164 --srcdir=DIR find the sources in DIR [configure dir or ..]
165 --program-prefix=PREFIX prepend PREFIX to installed program names
166 --program-suffix=SUFFIX append SUFFIX to installed program names
167 --program-transform-name=PROGRAM
168 run sed PROGRAM on installed program names
172 --build=BUILD configure for building on BUILD [BUILD=HOST]
173 --host=HOST configure for HOST [guessed]
174 --target=TARGET configure for TARGET [TARGET=HOST]
175 Features and packages:
176 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
177 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
178 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
179 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
180 --x-includes=DIR X include files are in DIR
181 --x-libraries=DIR X library files are in DIR
183 if test -n "$ac_help"; then
184 echo "--enable and --with options recognized:$ac_help"
188 -host |
--host |
--hos |
--ho)
190 -host=* |
--host=* |
--hos=* |
--ho=*)
193 -includedir |
--includedir |
--includedi |
--included |
--include \
194 |
--includ |
--inclu |
--incl |
--inc)
195 ac_prev
=includedir
;;
196 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
197 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
198 includedir
="$ac_optarg" ;;
200 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
202 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
203 infodir
="$ac_optarg" ;;
205 -libdir |
--libdir |
--libdi |
--libd)
207 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
208 libdir
="$ac_optarg" ;;
210 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
211 |
--libexe |
--libex |
--libe)
212 ac_prev
=libexecdir
;;
213 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
214 |
--libexe=* |
--libex=* |
--libe=*)
215 libexecdir
="$ac_optarg" ;;
217 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
218 |
--localstate |
--localstat |
--localsta |
--localst \
219 |
--locals |
--local |
--loca |
--loc |
--lo)
220 ac_prev
=localstatedir
;;
221 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
222 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
223 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
224 localstatedir
="$ac_optarg" ;;
226 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
228 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
229 mandir
="$ac_optarg" ;;
232 # Obsolete; use --without-fp.
235 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
239 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
240 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
243 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
244 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
245 |
--oldin |
--oldi |
--old |
--ol |
--o)
246 ac_prev
=oldincludedir
;;
247 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
248 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
249 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
250 oldincludedir
="$ac_optarg" ;;
252 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
254 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
255 prefix
="$ac_optarg" ;;
257 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
258 |
--program-pre |
--program-pr |
--program-p)
259 ac_prev
=program_prefix
;;
260 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
261 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
262 program_prefix
="$ac_optarg" ;;
264 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
265 |
--program-suf |
--program-su |
--program-s)
266 ac_prev
=program_suffix
;;
267 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
268 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
269 program_suffix
="$ac_optarg" ;;
271 -program-transform-name |
--program-transform-name \
272 |
--program-transform-nam |
--program-transform-na \
273 |
--program-transform-n |
--program-transform- \
274 |
--program-transform |
--program-transfor \
275 |
--program-transfo |
--program-transf \
276 |
--program-trans |
--program-tran \
277 |
--progr-tra |
--program-tr |
--program-t)
278 ac_prev
=program_transform_name
;;
279 -program-transform-name=* |
--program-transform-name=* \
280 |
--program-transform-nam=* |
--program-transform-na=* \
281 |
--program-transform-n=* |
--program-transform-=* \
282 |
--program-transform=* |
--program-transfor=* \
283 |
--program-transfo=* |
--program-transf=* \
284 |
--program-trans=* |
--program-tran=* \
285 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
286 program_transform_name
="$ac_optarg" ;;
288 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
289 |
-silent |
--silent |
--silen |
--sile |
--sil)
292 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
294 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
296 sbindir
="$ac_optarg" ;;
298 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
299 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
300 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
302 ac_prev
=sharedstatedir
;;
303 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
304 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
305 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
307 sharedstatedir
="$ac_optarg" ;;
309 -site |
--site |
--sit)
311 -site=* |
--site=* |
--sit=*)
314 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
316 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
317 srcdir
="$ac_optarg" ;;
319 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
320 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
321 ac_prev
=sysconfdir
;;
322 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
323 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
324 sysconfdir
="$ac_optarg" ;;
326 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
328 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
329 target
="$ac_optarg" ;;
331 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
334 -version |
--version |
--versio |
--versi |
--vers)
335 echo "configure generated by autoconf version 2.12"
339 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
340 # Reject names that are not valid shell variable names.
341 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
342 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 ac_package
=`echo $ac_package| sed 's/-/_/g'`
349 eval "with_${ac_package}='$ac_optarg'" ;;
351 -without-* |
--without-*)
352 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
358 eval "with_${ac_package}=no" ;;
361 # Obsolete; use --with-x.
364 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
365 |
--x-incl |
--x-inc |
--x-in |
--x-i)
366 ac_prev
=x_includes
;;
367 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
368 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
369 x_includes
="$ac_optarg" ;;
371 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
372 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
373 ac_prev
=x_libraries
;;
374 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
375 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
376 x_libraries
="$ac_optarg" ;;
378 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
383 echo "configure: warning: $ac_option: invalid host type" 1>&2
385 if test "x$nonopt" != xNONE
; then
386 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394 if test -n "$ac_prev"; then
395 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400 # File descriptor usage:
403 # 2 errors and warnings
404 # 3 some systems may open it to /dev/tty
405 # 4 used on the Kubota Titan
406 # 6 checking for... messages and results
407 # 5 compiler messages saved in config.log
408 if test "$silent" = yes; then
416 This file contains any messages produced by compilers while
417 running configure, to aid debugging if configure makes a mistake.
420 # Strip out --no-create and --no-recursion so they do not pile up.
421 # Also quote any args containing shell metacharacters.
426 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
427 |
--no-cr |
--no-c) ;;
428 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
429 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
430 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
431 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
432 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
437 # Only set these to C if already set. These must not be set unconditionally
438 # because not all systems understand e.g. LANG=C (notably SCO).
439 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
440 # Non-C LC_CTYPE values break the ctype check.
441 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
442 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
443 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
444 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
446 # confdefs.h avoids OS command line length limits that DEFS can exceed.
447 rm -rf conftest
* confdefs.h
448 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 # A filename unique to this package, relative to the directory that
452 # configure is in, which we can look for to find out if srcdir is correct.
453 ac_unique_file
=texinfo.texi
455 # Find the source files, if location was not specified.
456 if test -z "$srcdir"; then
457 ac_srcdir_defaulted
=yes
458 # Try the directory containing this script, then its parent.
460 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
461 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
463 if test ! -r $srcdir/$ac_unique_file; then
467 ac_srcdir_defaulted
=no
469 if test ! -r $srcdir/$ac_unique_file; then
470 if test "$ac_srcdir_defaulted" = yes; then
471 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478 # Prefer explicitly selected file to automatically selected ones.
479 if test -z "$CONFIG_SITE"; then
480 if test "x$prefix" != xNONE
; then
481 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
483 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 for ac_site_file
in $CONFIG_SITE; do
487 if test -r "$ac_site_file"; then
488 echo "loading site script $ac_site_file"
493 if test -r "$cache_file"; then
494 echo "loading cache $cache_file"
497 echo "creating cache $cache_file"
502 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
503 ac_cpp
='$CPP $CPPFLAGS'
504 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
505 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
506 cross_compiling
=$ac_cv_prog_cc_cross
508 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
517 ac_n
= ac_c
='\c' ac_t
=
523 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
524 if test -f $ac_dir/install-sh
; then
526 ac_install_sh
="$ac_aux_dir/install-sh -c"
528 elif test -f $ac_dir/install.sh
; then
530 ac_install_sh
="$ac_aux_dir/install.sh -c"
534 if test -z "$ac_aux_dir"; then
535 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
537 ac_config_guess
=$ac_aux_dir/config.guess
538 ac_config_sub
=$ac_aux_dir/config.sub
539 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
541 # Find a good install program. We prefer a C program (faster),
542 # so one script is as good as another. But avoid the broken or
543 # incompatible versions:
544 # SysV /etc/install, /usr/sbin/install
545 # SunOS /usr/etc/install
548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
550 # ./install, which can be erroneously created by make from ./install.sh.
551 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
552 echo "configure:553: checking for a BSD compatible install" >&5
553 if test -z "$INSTALL"; then
554 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
558 for ac_dir
in $PATH; do
559 # Account for people who put trailing slashes in PATH elements.
561 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
563 # OSF1 and SCO ODT 3.0 have their own names for install.
564 for ac_prog
in ginstall installbsd scoinst
install; do
565 if test -f $ac_dir/$ac_prog; then
566 if test $ac_prog = install &&
567 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
568 # AIX install. It has an incompatible calling convention.
569 # OSF/1 installbsd also uses dspmsg, but is usable.
572 ac_cv_path_install
="$ac_dir/$ac_prog -c"
583 if test "${ac_cv_path_install+set}" = set; then
584 INSTALL
="$ac_cv_path_install"
586 # As a last resort, use the slow shell script. We don't cache a
587 # path for INSTALL within a source directory, because that will
588 # break other packages using the cache if that directory is
589 # removed, or if the path is relative.
590 INSTALL
="$ac_install_sh"
593 echo "$ac_t""$INSTALL" 1>&6
595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
596 # It thinks the first close brace ends the variable substitution.
597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
599 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
601 # Extract the first word of "ranlib", so it can be a program name with args.
602 set dummy ranlib
; ac_word
=$2
603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
604 echo "configure:605: checking for $ac_word" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
608 if test -n "$RANLIB"; then
609 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
612 for ac_dir
in $PATH; do
613 test -z "$ac_dir" && ac_dir
=.
614 if test -f $ac_dir/$ac_word; then
615 ac_cv_prog_RANLIB
="ranlib"
620 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
623 RANLIB
="$ac_cv_prog_RANLIB"
624 if test -n "$RANLIB"; then
625 echo "$ac_t""$RANLIB" 1>&6
627 echo "$ac_t""no" 1>&6
631 # Extract the first word of "gcc", so it can be a program name with args.
632 set dummy gcc
; ac_word
=$2
633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
634 echo "configure:635: checking for $ac_word" >&5
635 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 if test -n "$CC"; then
639 ac_cv_prog_CC
="$CC" # Let the user override the test.
641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
642 for ac_dir
in $PATH; do
643 test -z "$ac_dir" && ac_dir
=.
644 if test -f $ac_dir/$ac_word; then
653 if test -n "$CC"; then
654 echo "$ac_t""$CC" 1>&6
656 echo "$ac_t""no" 1>&6
659 if test -z "$CC"; then
660 # Extract the first word of "cc", so it can be a program name with args.
661 set dummy cc
; ac_word
=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
667 if test -n "$CC"; then
668 ac_cv_prog_CC
="$CC" # Let the user override the test.
670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
672 for ac_dir
in $PATH; do
673 test -z "$ac_dir" && ac_dir
=.
674 if test -f $ac_dir/$ac_word; then
675 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
684 if test $ac_prog_rejected = yes; then
685 # We found a bogon in the path, so make sure we never use it.
686 set dummy
$ac_cv_prog_CC
688 if test $# -gt 0; then
689 # We chose a different compiler from the bogus one.
690 # However, it has the same basename, so the bogon will be chosen
691 # first if we set CC to just the basename; use the full file name.
693 set dummy
"$ac_dir/$ac_word" "$@"
701 if test -n "$CC"; then
702 echo "$ac_t""$CC" 1>&6
704 echo "$ac_t""no" 1>&6
707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
711 echo "configure:712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
714 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715 ac_cpp
='$CPP $CPPFLAGS'
716 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718 cross_compiling
=$ac_cv_prog_cc_cross
720 cat > conftest.
$ac_ext <<EOF
721 #line 722 "configure"
722 #include "confdefs.h"
725 if { (eval echo configure
:726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
726 ac_cv_prog_cc_works
=yes
727 # If we can't run a trivial program, we are probably using a cross compiler.
728 if (.
/conftest
; exit) 2>/dev
/null
; then
729 ac_cv_prog_cc_cross
=no
731 ac_cv_prog_cc_cross
=yes
734 echo "configure: failed program was:" >&5
735 cat conftest.
$ac_ext >&5
736 ac_cv_prog_cc_works
=no
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no
; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling
=$ac_cv_prog_cc_cross
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftest.c
<<EOF
759 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768 if test $ac_cv_prog_gcc = yes; then
770 ac_test_CFLAGS
="${CFLAGS+set}"
771 ac_save_CFLAGS
="$CFLAGS"
773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
774 echo "configure:775: checking whether ${CC-cc} accepts -g" >&5
775 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
778 echo 'void f(){}' > conftest.c
779 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
788 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
789 if test "$ac_test_CFLAGS" = set; then
790 CFLAGS
="$ac_save_CFLAGS"
791 elif test $ac_cv_prog_cc_g = yes; then
798 test "${CFLAGS+set}" = set || CFLAGS
="-g"
801 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
802 echo "configure:803: checking for POSIXized ISC" >&5
803 if test -d /etc
/conf
/kconfig.d
&&
804 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
806 echo "$ac_t""yes" 1>&6
807 ISC
=yes # If later tests want to check for ISC.
808 cat >> confdefs.h
<<\EOF
809 #define _POSIX_SOURCE 1
812 if test "$GCC" = yes; then
818 echo "$ac_t""no" 1>&6
822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
823 echo "configure:824: checking how to run the C preprocessor" >&5
824 # On Suns, sometimes $CPP names a directory.
825 if test -n "$CPP" && test -d "$CPP"; then
828 if test -z "$CPP"; then
829 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 # This must be in double quotes, not single quotes, because CPP may get
833 # substituted into the Makefile and "${CC-cc}" will confuse make.
835 # On the NeXT, cc -E runs the code through the compiler's parser,
836 # not just through cpp.
837 cat > conftest.
$ac_ext <<EOF
838 #line 839 "configure"
839 #include "confdefs.h"
843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 { (eval echo configure
:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 ac_err
=`grep -v '^ *+' conftest.out`
846 if test -z "$ac_err"; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
853 CPP
="${CC-cc} -E -traditional-cpp"
854 cat > conftest.
$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
860 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 { (eval echo configure
:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 ac_err
=`grep -v '^ *+' conftest.out`
863 if test -z "$ac_err"; then
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
875 ac_cv_prog_CPP
="$CPP"
877 CPP
="$ac_cv_prog_CPP"
879 ac_cv_prog_CPP
="$CPP"
881 echo "$ac_t""$CPP" 1>&6
883 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
884 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
885 echo "configure:886: checking for minix/config.h" >&5
886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 cat > conftest.
$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
892 #include <minix/config.h>
894 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
895 { (eval echo configure
:896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
896 ac_err
=`grep -v '^ *+' conftest.out`
897 if test -z "$ac_err"; then
899 eval "ac_cv_header_$ac_safe=yes"
902 echo "configure: failed program was:" >&5
903 cat conftest.
$ac_ext >&5
905 eval "ac_cv_header_$ac_safe=no"
909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
910 echo "$ac_t""yes" 1>&6
913 echo "$ac_t""no" 1>&6
917 if test "$MINIX" = yes; then
918 cat >> confdefs.h
<<\EOF
919 #define _POSIX_SOURCE 1
922 cat >> confdefs.h
<<\EOF
923 #define _POSIX_1_SOURCE 2
926 cat >> confdefs.h
<<\EOF
933 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
934 echo "configure:935: checking for Cygwin32 environment" >&5
935 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
943 int main () { return __CYGWIN32__; }
946 if { (eval echo configure
:947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
950 echo "configure: failed program was:" >&5
951 cat conftest.
$ac_ext >&5
959 echo "$ac_t""$am_cv_cygwin32" 1>&6
961 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
962 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
963 echo "configure:964: checking for executable suffix" >&5
964 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test "$CYGWIN32" = yes; then
970 cat > am_c_test.c
<< 'EOF'
972 /* Nothing needed here
*/
975 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
976 am_cv_exeext
=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
980 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
983 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
984 echo "$ac_t""${am_cv_exeext}" 1>&6
987 # Needed on sysV68 for sigblock, sigsetmask.
988 echo $ac_n "checking for sigblock in -lbsd""... $ac_c" 1>&6
989 echo "configure:990: checking for sigblock in -lbsd" >&5
990 ac_lib_var
=`echo bsd'_'sigblock | sed 'y%./+-%__p_%'`
991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
996 cat > conftest.
$ac_ext <<EOF
997 #line 998 "configure"
998 #include "confdefs.h"
999 /* Override any gcc2 internal prototype to avoid an error. */
1000 /* We use char because int might match the return type of a gcc2
1001 builtin and then its argument prototype would still apply. */
1008 if { (eval echo configure
:1009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1010 eval "ac_cv_lib_$ac_lib_var=yes"
1012 echo "configure: failed program was:" >&5
1013 cat conftest.
$ac_ext >&5
1015 eval "ac_cv_lib_$ac_lib_var=no"
1018 LIBS
="$ac_save_LIBS"
1021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1022 echo "$ac_t""yes" 1>&6
1023 ac_tr_lib
=HAVE_LIB
`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1024 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1025 cat >> confdefs.h
<<EOF
1026 #define $ac_tr_lib 1
1032 echo "$ac_t""no" 1>&6
1037 for termlib
in curses ncurses termcap terminfo termlib
; do
1038 echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1039 echo "configure:1040: checking for tputs in -l${termlib}" >&5
1040 ac_lib_var
=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
1041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 ac_save_LIBS
="$LIBS"
1045 LIBS
="-l${termlib} $LIBS"
1046 cat > conftest.
$ac_ext <<EOF
1047 #line 1048 "configure"
1048 #include "confdefs.h"
1049 /* Override any gcc2 internal prototype to avoid an error. */
1050 /* We use char because int might match the return type of a gcc2
1051 builtin and then its argument prototype would still apply. */
1058 if { (eval echo configure
:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1060 eval "ac_cv_lib_$ac_lib_var=yes"
1062 echo "configure: failed program was:" >&5
1063 cat conftest.
$ac_ext >&5
1065 eval "ac_cv_lib_$ac_lib_var=no"
1068 LIBS
="$ac_save_LIBS"
1071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1072 echo "$ac_t""yes" 1>&6
1073 TERMLIBS
="${TERMLIBS} -l${termlib}"; break
1075 echo "$ac_t""no" 1>&6
1081 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1082 echo "configure:1083: checking for ANSI C header files" >&5
1083 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.
$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1094 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1095 { (eval echo configure
:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1096 ac_err
=`grep -v '^ *+' conftest.out`
1097 if test -z "$ac_err"; then
1099 ac_cv_header_stdc
=yes
1102 echo "configure: failed program was:" >&5
1103 cat conftest.
$ac_ext >&5
1105 ac_cv_header_stdc
=no
1109 if test $ac_cv_header_stdc = yes; then
1110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1111 cat > conftest.
$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1117 egrep "memchr" >/dev
/null
2>&1; then
1121 ac_cv_header_stdc
=no
1127 if test $ac_cv_header_stdc = yes; then
1128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1129 cat > conftest.
$ac_ext <<EOF
1130 #line 1131 "configure"
1131 #include "confdefs.h"
1134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1135 egrep "free" >/dev
/null
2>&1; then
1139 ac_cv_header_stdc
=no
1145 if test $ac_cv_header_stdc = yes; then
1146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1147 if test "$cross_compiling" = yes; then
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1154 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1155 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1157 int main () { int i; for (i = 0; i < 256; i++)
1158 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1162 if { (eval echo configure
:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1166 echo "configure: failed program was:" >&5
1167 cat conftest.
$ac_ext >&5
1169 ac_cv_header_stdc
=no
1177 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1178 if test $ac_cv_header_stdc = yes; then
1179 cat >> confdefs.h
<<\EOF
1180 #define STDC_HEADERS 1
1185 for ac_hdr
in unistd.h termios.h termio.h
strings.h string.h varargs.h \
1186 sys
/time.h sys
/fcntl.h sys
/ttold.h sys
/ptem.h sys
/file.h
1188 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_hdr" >&5
1191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftest.
$ac_ext <<EOF
1195 #line 1196 "configure"
1196 #include "confdefs.h"
1199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1200 { (eval echo configure
:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1201 ac_err
=`grep -v '^ *+' conftest.out`
1202 if test -z "$ac_err"; then
1204 eval "ac_cv_header_$ac_safe=yes"
1207 echo "configure: failed program was:" >&5
1208 cat conftest.
$ac_ext >&5
1210 eval "ac_cv_header_$ac_safe=no"
1214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1215 echo "$ac_t""yes" 1>&6
1216 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1217 cat >> confdefs.h
<<EOF
1218 #define $ac_tr_hdr 1
1222 echo "$ac_t""no" 1>&6
1227 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1228 echo "configure:1229: checking for off_t" >&5
1229 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftest.
$ac_ext <<EOF
1233 #line 1234 "configure"
1234 #include "confdefs.h"
1235 #include <sys/types.h>
1241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1242 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1244 ac_cv_type_off_t
=yes
1252 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1253 if test $ac_cv_type_off_t = no
; then
1254 cat >> confdefs.h
<<\EOF
1260 echo $ac_n "checking for working const""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working const" >&5
1262 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 cat > conftest.
$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1271 /* Ultrix mips cc rejects this. */
1272 typedef int charset[2]; const charset x;
1273 /* SunOS 4.1.1 cc rejects this. */
1274 char const *const *ccp;
1276 /* NEC SVR4.0.2 mips cc rejects this. */
1277 struct point {int x, y;};
1278 static struct point const zero = {0,0};
1279 /* AIX XL C 1.02.0.0 rejects this.
1280 It does not let you subtract one const X* pointer from another in an arm
1281 of an if-expression whose if-part is not a constant expression */
1282 const char *g = "string";
1283 ccp = &g + (g ? g-g : 0);
1284 /* HPUX 7.0 cc rejects these. */
1287 ccp = (char const *const *) p;
1288 { /* SCO 3.2v4 cc rejects this. */
1290 char const *s = 0 ? (char *) 0 : (char const *) 0;
1294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1296 const int *foo = &x[0];
1299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1300 typedef const int *iptr;
1304 { /* AIX XL C 1.02.0.0 rejects this saying
1305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1306 struct s { int j; const int *ap[3]; };
1307 struct s *b; b->j = 5;
1309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1315 if { (eval echo configure
:1316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1319 echo "configure: failed program was:" >&5
1320 cat conftest.
$ac_ext >&5
1327 echo "$ac_t""$ac_cv_c_const" 1>&6
1328 if test $ac_cv_c_const = no
; then
1329 cat >> confdefs.h
<<\EOF
1335 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether struct tm is in sys/time.h or time.h" >&5
1337 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 #include <sys/types.h>
1346 struct tm *tp; tp->tm_sec;
1349 if { (eval echo configure
:1350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1351 ac_cv_struct_tm
=time.h
1353 echo "configure: failed program was:" >&5
1354 cat conftest.
$ac_ext >&5
1356 ac_cv_struct_tm
=sys
/time.h
1361 echo "$ac_t""$ac_cv_struct_tm" 1>&6
1362 if test $ac_cv_struct_tm = sys
/time.h
; then
1363 cat >> confdefs.h
<<\EOF
1364 #define TM_IN_SYS_TIME 1
1370 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1371 # for constant arguments. Useless!
1372 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1373 echo "configure:1374: checking for working alloca.h" >&5
1374 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.
$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1382 char *p = alloca(2 * sizeof(int));
1385 if { (eval echo configure
:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1387 ac_cv_header_alloca_h
=yes
1389 echo "configure: failed program was:" >&5
1390 cat conftest.
$ac_ext >&5
1392 ac_cv_header_alloca_h
=no
1397 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1398 if test $ac_cv_header_alloca_h = yes; then
1399 cat >> confdefs.h
<<\EOF
1400 #define HAVE_ALLOCA_H 1
1405 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1406 echo "configure:1407: checking for alloca" >&5
1407 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 cat > conftest.
$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1415 # define alloca __builtin_alloca
1418 # include <alloca.h>
1423 # ifndef alloca /* predefined by HP cc +Olibcalls */
1431 char *p = (char *) alloca(1);
1434 if { (eval echo configure
:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1436 ac_cv_func_alloca_works
=yes
1438 echo "configure: failed program was:" >&5
1439 cat conftest.
$ac_ext >&5
1441 ac_cv_func_alloca_works
=no
1446 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1447 if test $ac_cv_func_alloca_works = yes; then
1448 cat >> confdefs.h
<<\EOF
1449 #define HAVE_ALLOCA 1
1454 if test $ac_cv_func_alloca_works = no
; then
1455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1456 # that cause trouble. Some versions do not even contain alloca or
1457 # contain a buggy version. If you still want to use their alloca,
1458 # use ar to extract alloca.o from them instead of compiling alloca.c.
1460 cat >> confdefs.h
<<\EOF
1465 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1466 echo "configure:1467: checking whether alloca needs Cray hooks" >&5
1467 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 cat > conftest.
$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 #if defined(CRAY) && ! defined(CRAY2)
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "webecray" >/dev
/null
2>&1; then
1492 echo "$ac_t""$ac_cv_os_cray" 1>&6
1493 if test $ac_cv_os_cray = yes; then
1494 for ac_func
in _getb67 GETB67 getb67
; do
1495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_func" >&5
1497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 cat > conftest.
$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1503 /* System header to define __stub macros and hopefully few prototypes,
1504 which can conflict with char $ac_func(); below. */
1506 /* Override any gcc2 internal prototype to avoid an error. */
1507 /* We use char because int might match the return type of a gcc2
1508 builtin and then its argument prototype would still apply. */
1513 /* The GNU C library defines this for functions which it implements
1514 to always fail with ENOSYS. Some functions are actually named
1515 something starting with __ and the normal name is an alias. */
1516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1524 if { (eval echo configure
:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1526 eval "ac_cv_func_$ac_func=yes"
1528 echo "configure: failed program was:" >&5
1529 cat conftest.
$ac_ext >&5
1531 eval "ac_cv_func_$ac_func=no"
1536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1537 echo "$ac_t""yes" 1>&6
1538 cat >> confdefs.h
<<EOF
1539 #define CRAY_STACKSEG_END $ac_func
1544 echo "$ac_t""no" 1>&6
1550 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1551 echo "configure:1552: checking stack direction for C alloca" >&5
1552 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1555 if test "$cross_compiling" = yes; then
1556 ac_cv_c_stack_direction
=0
1558 cat > conftest.
$ac_ext <<EOF
1559 #line 1560 "configure"
1560 #include "confdefs.h"
1561 find_stack_direction ()
1563 static char *addr = 0;
1568 return find_stack_direction ();
1571 return (&dummy > addr) ? 1 : -1;
1575 exit (find_stack_direction() < 0);
1578 if { (eval echo configure
:1579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1580 ac_cv_c_stack_direction
=1
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 ac_cv_c_stack_direction
=-1
1592 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1593 cat >> confdefs.h
<<EOF
1594 #define STACK_DIRECTION $ac_cv_c_stack_direction
1599 if test "$ac_cv_c_cross" = no
; then
1600 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1601 echo "configure:1602: checking whether setvbuf arguments are reversed" >&5
1602 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test "$cross_compiling" = yes; then
1606 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1612 /* If setvbuf has the reversed format, exit 0. */
1614 /* This call has the arguments reversed.
1615 A reversed system may check and see that the address of main
1616 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
1617 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1620 exit(0); /* Non-reversed systems segv here. */
1623 if { (eval echo configure
:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
1625 ac_cv_func_setvbuf_reversed
=yes
1627 echo "configure: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1630 ac_cv_func_setvbuf_reversed
=no
1635 rm -f core core.
* *.core
1638 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1639 if test $ac_cv_func_setvbuf_reversed = yes; then
1640 cat >> confdefs.h
<<\EOF
1641 #define SETVBUF_REVERSED 1
1647 for ac_func
in setvbuf getcwd memset bzero strchr strcasecmp \
1648 vfprintf vsprintf strerror sigprocmask sigsetmask
1650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_func" >&5
1652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* System header to define __stub macros and hopefully few prototypes,
1659 which can conflict with char $ac_func(); below. */
1661 /* Override any gcc2 internal prototype to avoid an error. */
1662 /* We use char because int might match the return type of a gcc2
1663 builtin and then its argument prototype would still apply. */
1668 /* The GNU C library defines this for functions which it implements
1669 to always fail with ENOSYS. Some functions are actually named
1670 something starting with __ and the normal name is an alias. */
1671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1679 if { (eval echo configure
:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1681 eval "ac_cv_func_$ac_func=yes"
1683 echo "configure: failed program was:" >&5
1684 cat conftest.
$ac_ext >&5
1686 eval "ac_cv_func_$ac_func=no"
1691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1694 cat >> confdefs.h
<<EOF
1695 #define $ac_tr_func 1
1699 echo "$ac_t""no" 1>&6
1703 for ac_func
in memcpy memmove strdup
1705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_func" >&5
1707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 cat > conftest.
$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $ac_func(); below. */
1716 /* Override any gcc2 internal prototype to avoid an error. */
1717 /* We use char because int might match the return type of a gcc2
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1734 if { (eval echo configure
:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1736 eval "ac_cv_func_$ac_func=yes"
1738 echo "configure: failed program was:" >&5
1739 cat conftest.
$ac_ext >&5
1741 eval "ac_cv_func_$ac_func=no"
1746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1747 echo "$ac_t""yes" 1>&6
1748 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1749 cat >> confdefs.h
<<EOF
1750 #define $ac_tr_func 1
1754 echo "$ac_t""no" 1>&6
1755 LIBOBJS
="$LIBOBJS ${ac_func}.o"
1762 cat > confcache
<<\EOF
1763 # This file is a shell script that caches the results of configure
1764 # tests run on this system so they can be shared between configure
1765 # scripts and configure runs. It is not useful on other systems.
1766 # If it contains results you don't want to keep, you may remove or edit it.
1768 # By default, configure uses ./config.cache as the cache file,
1769 # creating it if it does not exist already. You can give configure
1770 # the --cache-file=FILE option to use a different cache file; that is
1771 # what configure does when it calls configure scripts in
1772 # subdirectories, so they share the cache.
1773 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1774 # config.status only pays attention to the cache file if you give it the
1775 # --recheck option to rerun configure.
1778 # The following way of writing the cache mishandles newlines in values,
1779 # but we know of no workaround that is simple, portable, and efficient.
1780 # So, don't put newlines in cache variables' values.
1781 # Ultrix sh set writes to stderr and can't be redirected directly,
1782 # and sets the high bit in the cache file unless we assign to the vars.
1784 case `(ac_space=' '; set) 2>&1` in
1786 # `set' does not quote correctly, so add quotes (double-quote substitution
1787 # turns \\\\ into \\, and sed turns \\ into \).
1789 -e "s/'/'\\\\''/g" \
1790 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1793 # `set' quotes correctly as required by POSIX, so do not add quotes.
1794 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1797 if cmp -s $cache_file confcache
; then
1800 if test -w $cache_file; then
1801 echo "updating cache $cache_file"
1802 cat confcache
> $cache_file
1804 echo "not updating unwritable cache $cache_file"
1809 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1811 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
1812 # Let make expand exec_prefix.
1813 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
1815 # Any assignment to VPATH causes Sun make to only execute
1816 # the first set of double-colon rules, so remove it if not needed.
1817 # If there is a colon in the path, we need to keep it.
1818 if test "x$srcdir" = x.
; then
1819 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
1822 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1824 # Transform confdefs.h into DEFS.
1825 # Protect against shell expansion while executing Makefile rules.
1826 # Protect against Makefile macro expansion.
1827 cat > conftest.defs
<<\EOF
1828 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1829 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1834 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
1838 # Without the "./", some shells look in PATH for config.status.
1839 : ${CONFIG_STATUS=./config.status}
1841 echo creating $CONFIG_STATUS
1842 rm -f $CONFIG_STATUS
1843 cat > $CONFIG_STATUS <<EOF
1845 # Generated automatically by configure.
1846 # Run this file to recreate the current configuration.
1847 # This directory was configured as follows,
1848 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
1850 # $0 $ac_configure_args
1852 # Compiler output produced by configure, useful for debugging
1853 # configure, is in ./config.log if it exists.
1855 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1858 case "\$ac_option" in
1859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1860 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1861 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1862 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1863 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1865 -help | --help | --hel | --he | --h)
1866 echo "\$ac_cs_usage"; exit 0 ;;
1867 *) echo "\$ac_cs_usage"; exit 1 ;;
1871 ac_given_srcdir=$srcdir
1872 ac_given_INSTALL="$INSTALL"
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
1883 s%@CFLAGS@%$CFLAGS%g
1884 s%@CPPFLAGS@%$CPPFLAGS%g
1885 s%@CXXFLAGS@%$CXXFLAGS%g
1887 s%@LDFLAGS@%$LDFLAGS%g
1889 s%@exec_prefix@%$exec_prefix%g
1890 s%@prefix@%$prefix%g
1891 s%@program_transform_name@%$program_transform_name%g
1892 s%@bindir@%$bindir%g
1893 s%@sbindir@%$sbindir%g
1894 s%@libexecdir@%$libexecdir%g
1895 s%@datadir@%$datadir%g
1896 s%@sysconfdir@%$sysconfdir%g
1897 s%@sharedstatedir@%$sharedstatedir%g
1898 s%@localstatedir@%$localstatedir%g
1899 s%@libdir@%$libdir%g
1900 s%@includedir@%$includedir%g
1901 s%@oldincludedir@%$oldincludedir%g
1902 s%@infodir@%$infodir%g
1903 s%@mandir@%$mandir%g
1904 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1905 s%@INSTALL_DATA@%$INSTALL_DATA%g
1906 s%@RANLIB@%$RANLIB%g
1909 s%@EXEEXT@%$EXEEXT%g
1910 s%@TERMLIBS@%$TERMLIBS%g
1911 s%@ALLOCA@%$ALLOCA%g
1912 s%@LIBOBJS@%$LIBOBJS%g
1917 cat >> $CONFIG_STATUS <<\EOF
1919 # Split the substitutions into bite-sized pieces for seds with
1920 # small command number limits, like on Digital OSF/1 and HP-UX.
1921 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1922 ac_file=1 # Number of current file.
1923 ac_beg=1 # First line for current file.
1924 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1927 while $ac_more_lines; do
1928 if test $ac_beg -gt 1; then
1929 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1931 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1933 if test ! -s conftest.s$ac_file; then
1935 rm -f conftest.s$ac_file
1937 if test -z "$ac_sed_cmds"; then
1938 ac_sed_cmds="sed -f conftest.s$ac_file"
1940 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1942 ac_file=`expr $ac_file + 1`
1944 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1947 if test -z "$ac_sed_cmds"; then
1952 cat >> $CONFIG_STATUS <<EOF
1954 CONFIG_FILES=\${CONFIG_FILES-"Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile "}
1956 cat >> $CONFIG_STATUS <<\EOF
1957 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1960 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
1961 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
1962 *) ac_file_in="${ac_file}.in" ;;
1965 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1967 # Remove last slash and all that follows it. Not all systems have dirname.
1968 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
1969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1970 # The file is in a subdirectory.
1971 test ! -d "$ac_dir" && mkdir "$ac_dir"
1972 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
1973 # A "../" for each directory in $ac_dir_suffix.
1974 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
1976 ac_dir_suffix= ac_dots=
1979 case "$ac_given_srcdir" in
1981 if test -z "$ac_dots"; then top_srcdir=.
1982 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
1983 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1984 ?:*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1986 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1987 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1990 case "$ac_given_INSTALL" in
1991 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1992 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1995 echo creating "$ac_file"
1997 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
1999 *Makefile*) ac_comsub="1i\\
2000 # $configure_input" ;;
2004 ac_file_inputs=`echo $ac_file_in|
sed -e "s%:% $ac_given_srcdir/%" -e "s%^%$ac_given_srcdir/%g"`
2006 s%@configure_input@%$configure_input%g
2007 s%@srcdir@%$srcdir%g
2008 s%@top_srcdir@%$top_srcdir%g
2009 s%@INSTALL@%$INSTALL%g
2010 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2015 cat >> $CONFIG_STATUS <<EOF
2018 cat >> $CONFIG_STATUS <<\EOF
2022 chmod +x $CONFIG_STATUS
2023 rm -fr confdefs* $ac_clean_files
2024 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1