3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-tcl=DIR use Tcl 8.X binaries from DIR"
17 --enable-shared build libck as a shared library"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
103 -disable-* | --disable-*)
104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105 # Reject names that are not valid shell variable names.
106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
112 -enable-* | --enable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127 | --exec | --exe | --ex)
128 ac_prev=exec_prefix ;;
129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131 | --exec=* | --exe=* | --ex=*)
132 exec_prefix="$ac_optarg" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
138 -help | --help | --hel | --he)
139 # Omit some internal or obsolete options to make the list less imposing.
140 # This message is too long to be a string in the A/UX 3.1 sh.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
145 --cache-file=FILE cache test results in FILE
146 --help print this message
147 --no-create do not create output files
148 --quiet, --silent do not print \`checking...' messages
149 --version print the version of autoconf that created configure
150 Directory and file names:
151 --prefix=PREFIX install architecture-independent files in PREFIX
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
155 --bindir=DIR user executables in DIR [EPREFIX/bin]
156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
158 --datadir=DIR read-only architecture-independent data in DIR
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
164 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
165 --includedir=DIR C header files in DIR [PREFIX/include]
166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
167 --infodir=DIR info documentation in DIR [PREFIX/info]
168 --mandir=DIR man documentation in DIR [PREFIX/man]
169 --srcdir=DIR find the sources in DIR [configure dir or ..]
170 --program-prefix=PREFIX prepend PREFIX to installed program names
171 --program-suffix=SUFFIX append SUFFIX to installed program names
172 --program-transform-name=PROGRAM
173 run sed PROGRAM on installed program names
177 --build=BUILD configure for building on BUILD [BUILD=HOST]
178 --host=HOST configure for HOST [guessed]
179 --target=TARGET configure for TARGET [TARGET=HOST]
180 Features and packages:
181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
185 --x-includes=DIR X include files are in DIR
186 --x-libraries=DIR X library files are in DIR
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
198 -includedir | --includedir | --includedi | --included | --include \
199 | --includ | --inclu | --incl | --inc)
200 ac_prev=includedir ;;
201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202 | --includ=* | --inclu=* | --incl=* | --inc=*)
203 includedir="$ac_optarg" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216 | --libexe | --libex | --libe)
217 ac_prev=libexecdir ;;
218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219 | --libexe=* | --libex=* | --libe=*)
220 libexecdir="$ac_optarg" ;;
222 -localstatedir | --localstatedir | --localstatedi | --localstated \
223 | --localstate | --localstat | --localsta | --localst \
224 | --locals | --local | --loca | --loc | --lo)
225 ac_prev=localstatedir ;;
226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229 localstatedir="$ac_optarg" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250 | --oldin | --oldi | --old | --ol | --o)
251 ac_prev=oldincludedir ;;
252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255 oldincludedir="$ac_optarg" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
263 | --program-pre | --program-pr | --program-p)
264 ac_prev=program_prefix ;;
265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267 program_prefix="$ac_optarg" ;;
269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
270 | --program-suf | --program-su | --program-s)
271 ac_prev=program_suffix ;;
272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274 program_suffix="$ac_optarg" ;;
276 -program-transform-name | --program-transform-name \
277 | --program-transform-nam | --program-transform-na \
278 | --program-transform-n | --program-transform- \
279 | --program-transform | --program-transfor \
280 | --program-transfo | --program-transf \
281 | --program-trans | --program-tran \
282 | --progr-tra | --program-tr | --program-t)
283 ac_prev=program_transform_name ;;
284 -program-transform-name=* | --program-transform-name=* \
285 | --program-transform-nam=* | --program-transform-na=* \
286 | --program-transform-n=* | --program-transform-=* \
287 | --program-transform=* | --program-transfor=* \
288 | --program-transfo=* | --program-transf=* \
289 | --program-trans=* | --program-tran=* \
290 | --progr-tra=* | --program-tr=* | --program-t=*)
291 program_transform_name="$ac_optarg" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325 | --syscon | --sysco | --sysc | --sys | --sy)
326 ac_prev=sysconfdir ;;
327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329 sysconfdir="$ac_optarg" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345 # Reject names that are not valid shell variable names.
346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
356 -without-* | --without-*)
357 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370 | --x-incl | --x-inc | --x-in | --x-i)
371 ac_prev=x_includes ;;
372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374 x_includes="$ac_optarg" ;;
376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378 ac_prev=x_libraries ;;
379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381 x_libraries="$ac_optarg" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388 echo "configure: warning: $ac_option: invalid host type" 1>&2
390 if test "x$nonopt" != xNONE; then
391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432 | --no-cr | --no-c) ;;
433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442 # Only set these to C if already set. These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462 ac_srcdir_defaulted=yes
463 # Try the directory containing this script, then its parent.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
474 if test ! -r $srcdir/$ac_unique_file; then
475 if test "$ac_srcdir_defaulted" = yes; then
476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485 if test "x$prefix" != xNONE; then
486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491 for ac_site_file in $CONFIG_SITE; do
492 if test -r "$ac_site_file"; then
493 echo "loading site script $ac_site_file"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
531 if test -f $ac_dir/install-sh; then
533 ac_install_sh="$ac_aux_dir/install-sh -c"
535 elif test -f $ac_dir/install.sh; then
537 ac_install_sh="$ac_aux_dir/install.sh -c"
541 if test -z "$ac_aux_dir"; then
542 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
544 ac_config_guess=$ac_aux_dir/config.guess
545 ac_config_sub=$ac_aux_dir/config.sub
546 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
548 # Find a good install program. We prefer a C program (faster),
549 # so one script is as good as another. But avoid the broken or
550 # incompatible versions:
551 # SysV /etc/install, /usr/sbin/install
552 # SunOS /usr/etc/install
555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
558 # ./install, which can be erroneously created by make from ./install.sh.
559 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
560 echo "configure:561: checking for a BSD compatible install" >&5
561 if test -z "$INSTALL"; then
562 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
563 echo $ac_n "(cached) $ac_c" 1>&6
565 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
566 for ac_dir in $PATH; do
567 # Account for people who put trailing slashes in PATH elements.
569 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
571 # OSF1 and SCO ODT 3.0 have their own names for install.
572 # Don't use installbsd from OSF since it installs stuff as root
574 for ac_prog in ginstall scoinst install; do
575 if test -f $ac_dir/$ac_prog; then
576 if test $ac_prog = install &&
577 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
578 # AIX install. It has an incompatible calling convention.
581 ac_cv_path_install="$ac_dir/$ac_prog -c"
592 if test "${ac_cv_path_install+set}" = set; then
593 INSTALL="$ac_cv_path_install"
595 # As a last resort, use the slow shell script. We don't cache a
596 # path for INSTALL within a source directory, because that will
597 # break other packages using the cache if that directory is
598 # removed, or if the path is relative.
599 INSTALL="$ac_install_sh"
602 echo "$ac_t""$INSTALL" 1>&6
604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
605 # It thinks the first close brace ends the variable substitution.
606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
612 # Extract the first word of "ranlib", so it can be a program name with args.
613 set dummy ranlib; ac_word=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:616: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 if test -n "$RANLIB"; then
620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
624 for ac_dir in $ac_dummy; do
625 test -z "$ac_dir" && ac_dir=.
626 if test -f $ac_dir/$ac_word; then
627 ac_cv_prog_RANLIB="ranlib"
632 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
635 RANLIB="$ac_cv_prog_RANLIB"
636 if test -n "$RANLIB"; then
637 echo "$ac_t""$RANLIB" 1>&6
639 echo "$ac_t""no" 1>&6
643 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
644 echo "configure:645: checking how to run the C preprocessor" >&5
645 # On Suns, sometimes $CPP names a directory.
646 if test -n "$CPP" && test -d "$CPP"; then
649 if test -z "$CPP"; then
650 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 # This must be in double quotes, not single quotes, because CPP may get
654 # substituted into the Makefile and "${CC-cc}" will confuse make.
656 # On the NeXT, cc -E runs the code through the compiler's parser,
657 # not just through cpp.
658 cat > conftest.$ac_ext <<EOF
659 #line 660 "configure"
660 #include "confdefs.h"
664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
665 { (eval echo configure:666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
667 if test -z "$ac_err"; then
671 echo "configure: failed program was:" >&5
672 cat conftest.$ac_ext >&5
674 CPP="${CC-cc} -E -traditional-cpp"
675 cat > conftest.$ac_ext <<EOF
676 #line 677 "configure"
677 #include "confdefs.h"
681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
682 { (eval echo configure:683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
684 if test -z "$ac_err"; then
688 echo "configure: failed program was:" >&5
689 cat conftest.$ac_ext >&5
691 CPP="${CC-cc} -nologo -E"
692 cat > conftest.$ac_ext <<EOF
693 #line 694 "configure"
694 #include "confdefs.h"
698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
699 { (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
701 if test -z "$ac_err"; then
705 echo "configure: failed program was:" >&5
706 cat conftest.$ac_ext >&5
715 ac_cv_prog_CPP="$CPP"
717 CPP="$ac_cv_prog_CPP"
719 ac_cv_prog_CPP="$CPP"
721 echo "$ac_t""$CPP" 1>&6
723 for ac_hdr in unistd.h limits.h
725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_hdr" >&5
728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 cat > conftest.$ac_ext <<EOF
732 #line 733 "configure"
733 #include "confdefs.h"
736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
737 { (eval echo configure:738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
739 if test -z "$ac_err"; then
741 eval "ac_cv_header_$ac_safe=yes"
744 echo "configure: failed program was:" >&5
745 cat conftest.$ac_ext >&5
747 eval "ac_cv_header_$ac_safe=no"
751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
752 echo "$ac_t""yes" 1>&6
753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
754 cat >> confdefs.h <<EOF
759 echo "$ac_t""no" 1>&6
764 #--------------------------------------------------------------------
765 # Supply a substitute for stdlib.h if it doesn't define strtol,
766 # strtoul, or strtod (which it doesn't in some versions of SunOS).
767 #--------------------------------------------------------------------
769 echo $ac_n "checking stdlib.h""... $ac_c" 1>&6
770 echo "configure:771: checking stdlib.h" >&5
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
777 egrep "strtol" >/dev/null 2>&1; then
786 cat > conftest.$ac_ext <<EOF
787 #line 788 "configure"
788 #include "confdefs.h"
791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
792 egrep "strtoul" >/dev/null 2>&1; then
800 cat > conftest.$ac_ext <<EOF
801 #line 802 "configure"
802 #include "confdefs.h"
805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
806 egrep "strtod" >/dev/null 2>&1; then
814 if test $tk_ok = no; then
815 cat >> confdefs.h <<\EOF
816 #define NO_STDLIB_H 1
820 echo "$ac_t""$tk_ok" 1>&6
822 #--------------------------------------------------------------------
823 # Check for various typedefs and provide substitutes if
825 #--------------------------------------------------------------------
827 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
828 echo "configure:829: checking for ANSI C header files" >&5
829 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftest.$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
841 { (eval echo configure:842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
843 if test -z "$ac_err"; then
845 ac_cv_header_stdc=yes
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
855 if test $ac_cv_header_stdc = yes; then
856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
857 cat > conftest.$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
863 egrep "memchr" >/dev/null 2>&1; then
873 if test $ac_cv_header_stdc = yes; then
874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
875 cat > conftest.$ac_ext <<EOF
876 #line 877 "configure"
877 #include "confdefs.h"
880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
881 egrep "free" >/dev/null 2>&1; then
891 if test $ac_cv_header_stdc = yes; then
892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
893 if test "$cross_compiling" = yes; then
896 cat > conftest.$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
900 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
901 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
903 int main () { int i; for (i = 0; i < 256; i++)
904 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
923 echo "$ac_t""$ac_cv_header_stdc" 1>&6
924 if test $ac_cv_header_stdc = yes; then
925 cat >> confdefs.h <<\EOF
926 #define STDC_HEADERS 1
931 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
932 echo "configure:933: checking for mode_t" >&5
933 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 cat > conftest.$ac_ext <<EOF
937 #line 938 "configure"
938 #include "confdefs.h"
939 #include <sys/types.h>
945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
946 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
948 ac_cv_type_mode_t=yes
956 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
957 if test $ac_cv_type_mode_t = no; then
958 cat >> confdefs.h <<\EOF
964 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
965 echo "configure:966: checking for pid_t" >&5
966 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.$ac_ext <<EOF
970 #line 971 "configure"
971 #include "confdefs.h"
972 #include <sys/types.h>
978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
989 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
990 if test $ac_cv_type_pid_t = no; then
991 cat >> confdefs.h <<\EOF
997 echo $ac_n "checking for size_t""... $ac_c" 1>&6
998 echo "configure:999: checking for size_t" >&5
999 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 cat > conftest.$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1005 #include <sys/types.h>
1011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1012 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1014 ac_cv_type_size_t=yes
1017 ac_cv_type_size_t=no
1022 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1023 if test $ac_cv_type_size_t = no; then
1024 cat >> confdefs.h <<\EOF
1025 #define size_t unsigned
1030 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1031 echo "configure:1032: checking for uid_t in sys/types.h" >&5
1032 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1038 #include <sys/types.h>
1040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1041 egrep "uid_t" >/dev/null 2>&1; then
1043 ac_cv_type_uid_t=yes
1052 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1053 if test $ac_cv_type_uid_t = no; then
1054 cat >> confdefs.h <<\EOF
1058 cat >> confdefs.h <<\EOF
1065 #------------------------------------------------------------------------------
1066 # What type do signals return? Do we have sigaction ?
1067 #------------------------------------------------------------------------------
1069 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1070 echo "configure:1071: checking return type of signal handlers" >&5
1071 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1077 #include <sys/types.h>
1083 extern "C" void (*signal (int, void (*)(int)))(int);
1085 void (*signal ()) ();
1092 if { (eval echo configure:1093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094 ac_cv_type_signal=void
1096 echo "configure: failed program was:" >&5
1097 cat conftest.$ac_ext >&5
1099 ac_cv_type_signal=int
1104 echo "$ac_t""$ac_cv_type_signal" 1>&6
1105 cat >> confdefs.h <<EOF
1106 #define RETSIGTYPE $ac_cv_type_signal
1110 for ac_func in sigaction
1112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1113 echo "configure:1114: checking for $ac_func" >&5
1114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.$ac_ext <<EOF
1118 #line 1119 "configure"
1119 #include "confdefs.h"
1120 /* System header to define __stub macros and hopefully few prototypes,
1121 which can conflict with char $ac_func(); below. */
1123 /* Override any gcc2 internal prototype to avoid an error. */
1124 /* We use char because int might match the return type of a gcc2
1125 builtin and then its argument prototype would still apply. */
1130 /* The GNU C library defines this for functions which it implements
1131 to always fail with ENOSYS. Some functions are actually named
1132 something starting with __ and the normal name is an alias. */
1133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1141 if { (eval echo configure:1142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1143 eval "ac_cv_func_$ac_func=yes"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1148 eval "ac_cv_func_$ac_func=no"
1153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1154 echo "$ac_t""yes" 1>&6
1155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1156 cat >> confdefs.h <<EOF
1157 #define $ac_tr_func 1
1161 echo "$ac_t""no" 1>&6
1166 #--------------------------------------------------------------------
1167 # See if there was a command-line option for where Tcl is; if
1168 # not, assume that its top-level directory is a sibling of ours.
1169 #--------------------------------------------------------------------
1171 # Check whether --with-tcl or --without-tcl was given.
1172 if test "${with_tcl+set}" = set; then
1174 TCL_BIN_DIR=$withval
1176 TCL_BIN_DIR=`cd ../tcl8.0/unix ; pwd`
1179 if test ! -d $TCL_BIN_DIR ; then
1180 { echo "configure: error: Tcl directory $TCL_BIN_DIR doesn't exist" 1>&2; exit 1; }
1183 #--------------------------------------------------------------------
1184 # Read in configuration information generated by Tcl for shared
1185 # libraries, and arrange for it to be substituted into our
1187 #--------------------------------------------------------------------
1189 if test -r $TCL_BIN_DIR/tclConfig.sh ; then
1190 file=$TCL_BIN_DIR/tclConfig.sh
1191 if test -d $TCL_BIN_DIR/../generic ; then
1192 TCL_DIR=`cd $TCL_BIN_DIR/../generic ; pwd`
1193 elif test -d $TCL_BIN_DIR/../include ; then
1194 TCL_DIR=`cd $TCL_BIN_DIR/../include ; pwd`
1196 TCL_DIR=$TCL_BIN_DIR
1200 SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1201 SHLIB_LD=$TCL_SHLIB_LD
1202 SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1203 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1204 SHLIB_VERSION=$TCL_SHLIB_VERSION
1205 DL_LIBS=$TCL_DL_LIBS
1206 LD_FLAGS=$TCL_LD_FLAGS
1207 LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
1209 TCL_DIR=$TCL_BIN_DIR
1210 TCL_LIB_FILE=libtcl.a
1211 TCL_LIB_VERSIONS_OK=no
1212 TCL_BUILD_LIB_SPEC="-L$TCL_BIN_DIR -ltcl"
1213 TCL_INCLUDE_SPEC="-I$TCL_DIR"
1216 echo $ac_n "checking Ck version""... $ac_c" 1>&6
1217 echo "configure:1218: checking Ck version" >&5
1218 if test "${TCL_VERSION}" = "7.4"; then
1223 elif test "${TCL_VERSION}" = "7.5"; then
1228 elif test "${TCL_VERSION}" = "7.6"; then
1234 # Assume Tcl8.0 or higher
1235 VERSION=$TCL_VERSION
1237 CK_MAJOR_VERSION=$TCL_MAJOR_VERSION
1238 CK_MINOR_VERSION=$TCL_MINOR_VERSION
1240 echo "$ac_t""${CK_VERSION}" 1>&6
1242 #--------------------------------------------------------------------
1243 # Include sys/select.h if it exists and if it supplies things
1244 # that appear to be useful and aren't already in sys/types.h.
1245 # This appears to be true only on the RS/6000 under AIX. Some
1246 # systems like OSF/1 have a sys/select.h that's of no use, and
1247 # other systems like SCO UNIX have a sys/select.h that's
1248 # pernicious. If "fd_set" isn't defined anywhere then set a
1250 #--------------------------------------------------------------------
1252 echo $ac_n "checking fd_set and sys/select""... $ac_c" 1>&6
1253 echo "configure:1254: checking fd_set and sys/select" >&5
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1257 #include <sys/types.h>
1259 fd_set readMask, writeMask;
1262 if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1272 if test $tk_ok = no; then
1273 cat > conftest.$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1276 #include <sys/select.h>
1278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1279 egrep "fd_mask" >/dev/null 2>&1; then
1285 if test $tk_ok = yes; then
1286 cat >> confdefs.h <<\EOF
1287 #define HAVE_SYS_SELECT_H 1
1292 echo "$ac_t""$tk_ok" 1>&6
1293 if test $tk_ok = no; then
1294 cat >> confdefs.h <<\EOF
1300 #---------------------------------------------------------------------
1301 # Locate the curses header files and the curses library archive.
1304 # /usr/include and /usr/lib
1307 # /usr/local/ncurses
1308 #---------------------------------------------------------------------
1310 echo checking for curses/ncurses header files
1313 dirs="../ncurses/include /usr/include /usr/include/ncurses /opt/ncurses/include /usr/local/include /usr/local/include/ncurses"
1315 if test -r $i/ncurses.h; then
1316 echo $ac_n "checking ncurses headers""... $ac_c" 1>&6
1317 echo "configure:1318: checking ncurses headers" >&5
1318 tk_oldCFlags=$CFLAGS
1319 CFLAGS="$CFLAGS -I$i"
1320 cat > conftest.$ac_ext <<EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1323 #include <ncurses.h>
1325 int c; initscr(); c = ACS_ULCORNER; curs_set(1);
1328 if { (eval echo configure:1329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1330 echo "$ac_t""yes" 1>&6
1331 CURSESINCLUDES="-I$i"
1333 echo "configure: failed program was:" >&5
1334 cat conftest.$ac_ext >&5
1336 echo "$ac_t""no" 1>&6
1339 CFLAGS=$tk_oldCFlags
1340 if test "$CURSESINCLUDES" != nope; then
1345 if test -r $i/curses.h; then
1346 echo $ac_n "checking curses headers""... $ac_c" 1>&6
1347 echo "configure:1348: checking curses headers" >&5
1348 tk_oldCFlags=$CFLAGS
1349 CFLAGS="$CFLAGS -I$i"
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1355 int c; initscr(); c = ACS_ULCORNER; curs_set(1);
1358 if { (eval echo configure:1359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 echo "$ac_t""yes" 1>&6
1361 CURSESINCLUDES="-I$i"
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 echo "$ac_t""no" 1>&6
1369 CFLAGS=$tk_oldCFlags
1370 if test "$CURSESINCLUDES" != nope; then
1375 if test "$CURSESINCLUDES" = nope; then
1376 echo "Warning: couldn't find any curses header file."
1377 CURSESINCLUDES="# no header file found"
1379 if test $USE_NCURSES = 1 ; then
1380 echo "using ncurses.h from $CURSESINCLUDES"
1382 echo "using curses.h from $CURSESINCLUDES"
1386 echo checking for curses/ncurses library files
1388 dirs="../ncurses/lib /usr/lib /usr/lib/ncurses /opt/ncurses/lib /usr/local/lib /usr/local/ncurses/lib"
1390 if test $USE_NCURSES = 0 ; then
1391 if test -r $i/libcurses.a || test -r $i/libcurses$SHLIB_SUFFIX ; then
1392 echo $ac_n "checking curses library""... $ac_c" 1>&6
1393 echo "configure:1394: checking curses library" >&5
1394 tk_oldCFlags=$CFLAGS
1395 CFLAGS="$CFLAGS $CURSESINCLUDES"
1396 if test "$i" = "/usr/lib" ; then
1397 LIBSW="-lcurses -ltermcap"
1399 LIBSW="-L$i -lcurses -ltermcap"
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1408 int c; initscr(); c = ACS_ULCORNER; curs_set(1);
1411 if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1413 echo "$ac_t""yes" 1>&6
1414 CURSESLIBSW="$LIBSW"
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1419 echo "$ac_t""no" 1>&6
1422 CFLAGS=$tk_oldCFlags
1424 if test "$CURSESLIBSW" != nope; then
1429 if test -r $i/libncurses.a || test -r $i/libncurses$SHLIB_SUFFIX ; then
1430 echo $ac_n "checking ncurses library""... $ac_c" 1>&6
1431 echo "configure:1432: checking ncurses library" >&5
1432 tk_oldCFlags=$CFLAGS
1433 CFLAGS="$CFLAGS $CURSESINCLUDES"
1434 if test "$i" = "/usr/lib" ; then
1437 LIBSW="-L$i -lncurses"
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #include <ncurses.h>
1446 int c; initscr(); c = ACS_ULCORNER; curs_set(1);
1449 if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1451 echo "$ac_t""yes" 1>&6
1452 CURSESLIBSW="$LIBSW"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1457 echo "$ac_t""no" 1>&6
1460 CFLAGS=$tk_oldCFlags
1462 if test "$CURSESLIBSW" != nope; then
1469 if test "$CURSESLIBSW" = nope ; then
1470 echo "Warning: couldn't find the curses library archive. Using -lcurses."
1471 CURSESLIBSW="-lcurses -ltermcap"
1473 echo "using curses library: $CURSESLIBSW"
1474 echo $ac_n "checking curses scr_dump function""... $ac_c" 1>&6
1475 echo "configure:1476: checking curses scr_dump function" >&5
1476 tk_oldCFlags=$CFLAGS
1477 CFLAGS="$CFLAGS $CURSESINCLUDES"
1480 if test $USE_NCURSES = 1 ; then
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 #include <ncurses.h>
1486 int c; initscr(); scr_dump("xx");
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1491 echo "$ac_t""yes" 1>&6
1492 cat >> confdefs.h <<\EOF
1493 #define HAVE_SCR_DUMP 1
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 echo "$ac_t""no" 1>&6
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1509 int c; initscr(); scr_dump("xx");
1512 if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1514 echo "$ac_t""yes" 1>&6
1515 cat >> confdefs.h <<\EOF
1516 #define HAVE_SCR_DUMP 1
1520 echo "configure: failed program was:" >&5
1521 cat conftest.$ac_ext >&5
1523 echo "$ac_t""no" 1>&6
1527 CFLAGS=$tk_oldCFlags
1531 if test $USE_NCURSES = 1 ; then
1532 USE_NCURSES="-DUSE_NCURSES"
1537 #---------------------------------------------------------------------
1538 # Check for GPM (General Purpose Mouse)
1539 #---------------------------------------------------------------------
1541 echo $ac_n "checking GPM library""... $ac_c" 1>&6
1542 echo "configure:1543: checking GPM library" >&5
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1550 Gpm_Connect conn; Gpm_Open(&conn, 0);
1553 if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 echo "$ac_t""yes" 1>&6
1556 cat >> confdefs.h <<\EOF
1560 CURSESLIBSW="$CURSESLIBSW -lgpm"
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1565 echo "$ac_t""no" 1>&6
1570 #--------------------------------------------------------------------
1571 # Check for the existence of various libraries. The order here
1572 # is important, so that then end up in the right order in the
1573 # command line generated by make. The -lsocket and -lnsl libraries
1574 # require a couple of special tricks:
1575 # 1. Use "connect" and "accept" to check for -lsocket, and
1576 # "gethostbyname" to check for -lnsl.
1577 # 2. Use each function name only once: can't redo a check because
1578 # autoconf caches the results of the last check and won't redo it.
1579 # 3. Use -lnsl and -lsocket only if they supply procedures that
1580 # aren't already present in the normal libraries. This is because
1581 # IRIX 5.2 has libraries, but they aren't needed and they're
1582 # bogus: they goof up name resolution if used.
1583 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
1584 # To get around this problem, check for both libraries together
1585 # if -lsocket doesn't work by itself.
1586 #--------------------------------------------------------------------
1588 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1589 echo "configure:1590: checking for main in -lXbsd" >&5
1590 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 ac_save_LIBS="$LIBS"
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606 eval "ac_cv_lib_$ac_lib_var=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_lib_$ac_lib_var=no"
1614 LIBS="$ac_save_LIBS"
1617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1621 echo "$ac_t""no" 1>&6
1626 echo $ac_n "checking for connect""... $ac_c" 1>&6
1627 echo "configure:1628: checking for connect" >&5
1628 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 /* System header to define __stub macros and hopefully few prototypes,
1635 which can conflict with char connect(); below. */
1637 /* Override any gcc2 internal prototype to avoid an error. */
1638 /* We use char because int might match the return type of a gcc2
1639 builtin and then its argument prototype would still apply. */
1644 /* The GNU C library defines this for functions which it implements
1645 to always fail with ENOSYS. Some functions are actually named
1646 something starting with __ and the normal name is an alias. */
1647 #if defined (__stub_connect) || defined (__stub___connect)
1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1657 eval "ac_cv_func_connect=yes"
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1662 eval "ac_cv_func_connect=no"
1667 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1668 echo "$ac_t""yes" 1>&6
1671 echo "$ac_t""no" 1>&6
1675 if test "$tk_checkSocket" = 1; then
1676 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1677 echo "configure:1678: checking for main in -lsocket" >&5
1678 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 ac_save_LIBS="$LIBS"
1683 LIBS="-lsocket $LIBS"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1692 if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1694 eval "ac_cv_lib_$ac_lib_var=yes"
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 eval "ac_cv_lib_$ac_lib_var=no"
1702 LIBS="$ac_save_LIBS"
1705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1706 echo "$ac_t""yes" 1>&6
1707 LIBS="$LIBS -lsocket"
1709 echo "$ac_t""no" 1>&6
1714 if test "$tk_checkBoth" = 1; then
1716 LIBS="$LIBS -lsocket -lnsl"
1717 echo $ac_n "checking for accept""... $ac_c" 1>&6
1718 echo "configure:1719: checking for accept" >&5
1719 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char accept(); below. */
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1735 /* The GNU C library defines this for functions which it implements
1736 to always fail with ENOSYS. Some functions are actually named
1737 something starting with __ and the normal name is an alias. */
1738 #if defined (__stub_accept) || defined (__stub___accept)
1746 if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1748 eval "ac_cv_func_accept=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.$ac_ext >&5
1753 eval "ac_cv_func_accept=no"
1758 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1762 echo "$ac_t""no" 1>&6
1767 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1768 echo "configure:1769: checking for gethostbyname" >&5
1769 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char gethostbyname(); below. */
1778 /* Override any gcc2 internal prototype to avoid an error. */
1779 /* We use char because int might match the return type of a gcc2
1780 builtin and then its argument prototype would still apply. */
1781 char gethostbyname();
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1796 if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798 eval "ac_cv_func_gethostbyname=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_func_gethostbyname=no"
1808 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1809 echo "$ac_t""yes" 1>&6
1812 echo "$ac_t""no" 1>&6
1813 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1814 echo "configure:1815: checking for main in -lnsl" >&5
1815 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 ac_save_LIBS="$LIBS"
1821 cat > conftest.$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 eval "ac_cv_lib_$ac_lib_var=yes"
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 eval "ac_cv_lib_$ac_lib_var=no"
1839 LIBS="$ac_save_LIBS"
1842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1846 echo "$ac_t""no" 1>&6
1852 #--------------------------------------------------------------------
1853 # On Interactive the str(n)casecmp is burried in libinet.a
1854 #--------------------------------------------------------------------
1856 echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6
1857 echo "configure:1858: checking for strncasecmp" >&5
1858 if eval "test \"`echo '$''{'ac_cv_func_strncasecmp'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char strncasecmp(); below. */
1867 /* Override any gcc2 internal prototype to avoid an error. */
1868 /* We use char because int might match the return type of a gcc2
1869 builtin and then its argument prototype would still apply. */
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
1885 if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1887 eval "ac_cv_func_strncasecmp=yes"
1889 echo "configure: failed program was:" >&5
1890 cat conftest.$ac_ext >&5
1892 eval "ac_cv_func_strncasecmp=no"
1897 if eval "test \"`echo '$ac_cv_func_'strncasecmp`\" = yes"; then
1898 echo "$ac_t""yes" 1>&6
1901 echo "$ac_t""no" 1>&6
1902 echo $ac_n "checking for main in -linet""... $ac_c" 1>&6
1903 echo "configure:1904: checking for main in -linet" >&5
1904 ac_lib_var=`echo inet'_'main | sed 'y%./+-%__p_%'`
1905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 ac_save_LIBS="$LIBS"
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1920 eval "ac_cv_lib_$ac_lib_var=yes"
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 eval "ac_cv_lib_$ac_lib_var=no"
1928 LIBS="$ac_save_LIBS"
1931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1935 echo "$ac_t""no" 1>&6
1941 #--------------------------------------------------------------------
1942 # Figure out how to find out whether a FILE structure contains
1943 # buffered readable data. Some known names for the count field:
1944 # _cnt: Most UNIX systems
1948 # Or, in GNU libc there are two fields, _gptr and _egptr, which
1949 # have to be compared.
1950 #--------------------------------------------------------------------
1952 echo $ac_n "checking count field in FILE structures""... $ac_c" 1>&6
1953 echo "configure:1954: checking count field in FILE structures" >&5
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1959 FILE *f = stdin; f->_cnt = 0;
1962 if { (eval echo configure:1963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1966 echo "configure: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1970 if test "$fcnt" = ""; then
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1976 FILE *f = stdin; f->__cnt = 0;
1979 if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1983 echo "configure: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1988 if test "$fcnt" = ""; then
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1994 FILE *f = stdin; f->_r = 0;
1997 if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2006 if test "$fcnt" = ""; then
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2012 FILE *f = stdin; f->readCount = 0;
2015 if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2024 if test "$fcnt" != ""; then
2025 cat >> confdefs.h <<EOF
2026 #define TK_FILE_COUNT $fcnt
2030 if test "$fcnt" = ""; then
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2036 FILE *f = stdin; f->_gptr = f->_egptr;
2039 if { (eval echo configure:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2049 if test $tk_ok = yes; then
2050 cat >> confdefs.h <<\EOF
2051 #define TK_FILE_GPTR 1
2057 if test "$fcnt" = ""; then
2058 cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2063 FILE *f = stdin; f->_IO_read_ptr = f->_IO_read_end;
2066 if { (eval echo configure:2067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2070 echo "configure: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2076 if test $tk_ok = yes; then
2077 cat >> confdefs.h <<\EOF
2078 #define TK_FILE_READ_PTR 1
2081 fcnt="_IO_read_ptr/_IO_read_end"
2084 if test "$fcnt" = ""; then
2085 echo "$ac_t""not found; must supply TkReadDataPending procedure" 1>&6
2087 echo "$ac_t"""$fcnt"" 1>&6
2090 #--------------------------------------------------------------------
2091 # On a few very rare systems, all of the libm.a stuff is
2092 # already in libc.a. Set compiler flags accordingly.
2093 # Also, Linux requires the "ieee" library for math to
2094 # work right (and it must appear before "-lm").
2095 #--------------------------------------------------------------------
2098 echo $ac_n "checking for sin""... $ac_c" 1>&6
2099 echo "configure:2100: checking for sin" >&5
2100 if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2103 cat > conftest.$ac_ext <<EOF
2104 #line 2105 "configure"
2105 #include "confdefs.h"
2106 /* System header to define __stub macros and hopefully few prototypes,
2107 which can conflict with char sin(); below. */
2109 /* Override any gcc2 internal prototype to avoid an error. */
2110 /* We use char because int might match the return type of a gcc2
2111 builtin and then its argument prototype would still apply. */
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined (__stub_sin) || defined (__stub___sin)
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2129 eval "ac_cv_func_sin=yes"
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2134 eval "ac_cv_func_sin=no"
2139 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2143 echo "$ac_t""no" 1>&6
2147 echo $ac_n "checking for main in -lieee""... $ac_c" 1>&6
2148 echo "configure:2149: checking for main in -lieee" >&5
2149 ac_lib_var=`echo ieee'_'main | sed 'y%./+-%__p_%'`
2150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 ac_save_LIBS="$LIBS"
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2165 eval "ac_cv_lib_$ac_lib_var=yes"
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 eval "ac_cv_lib_$ac_lib_var=no"
2173 LIBS="$ac_save_LIBS"
2176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2177 echo "$ac_t""yes" 1>&6
2178 MATH_LIBS="-lieee $MATH_LIBS"
2180 echo "$ac_t""no" 1>&6
2184 #--------------------------------------------------------------------
2185 # If this system doesn't have a memmove procedure, use memcpy
2187 #--------------------------------------------------------------------
2189 echo $ac_n "checking for memmove""... $ac_c" 1>&6
2190 echo "configure:2191: checking for memmove" >&5
2191 if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 /* System header to define __stub macros and hopefully few prototypes,
2198 which can conflict with char memmove(); below. */
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2207 /* The GNU C library defines this for functions which it implements
2208 to always fail with ENOSYS. Some functions are actually named
2209 something starting with __ and the normal name is an alias. */
2210 #if defined (__stub_memmove) || defined (__stub___memmove)
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2220 eval "ac_cv_func_memmove=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2225 eval "ac_cv_func_memmove=no"
2230 if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2234 echo "$ac_t""no" 1>&6
2235 cat >> confdefs.h <<\EOF
2236 #define memmove memcpy
2242 #--------------------------------------------------------------------
2243 # SGI systems don't use the BSD form of the gettimeofday function,
2244 # but they have a BSDgettimeofday function that can be used instead.
2246 # Also, check for the existence of a gettimeofday declaration,
2247 # to tkPort.h can declare it if it isn't already declared.
2248 #--------------------------------------------------------------------
2250 echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
2251 echo "configure:2252: checking for BSDgettimeofday" >&5
2252 if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char BSDgettimeofday(); below. */
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2264 char BSDgettimeofday();
2268 /* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271 #if defined (__stub_BSDgettimeofday) || defined (__stub___BSDgettimeofday)
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2281 eval "ac_cv_func_BSDgettimeofday=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 eval "ac_cv_func_BSDgettimeofday=no"
2291 if eval "test \"`echo '$ac_cv_func_'BSDgettimeofday`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 cat >> confdefs.h <<\EOF
2294 #define HAVE_BSDGETTIMEOFDAY 1
2298 echo "$ac_t""no" 1>&6
2301 echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2302 echo "configure:2303: checking for gettimeofday declaration" >&5
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/time.h>
2308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2309 egrep "gettimeofday" >/dev/null 2>&1; then
2311 echo "$ac_t""present" 1>&6
2315 echo "$ac_t""missing" 1>&6
2316 cat >> confdefs.h <<\EOF
2317 #define GETTOD_NOT_DECLARED 1
2325 #--------------------------------------------------------------------
2326 # Under Solaris 2.4, strtod returns the wrong value for the
2327 # terminating character under some conditions. Check for this
2328 # and if the problem exists use a substitute procedure
2329 # "fixstrtod" (provided by Tcl) that corrects the error.
2330 #--------------------------------------------------------------------
2332 echo $ac_n "checking for strtod""... $ac_c" 1>&6
2333 echo "configure:2334: checking for strtod" >&5
2334 if eval "test \"`echo '$''{'ac_cv_func_strtod'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* System header to define __stub macros and hopefully few prototypes,
2341 which can conflict with char strtod(); below. */
2343 /* Override any gcc2 internal prototype to avoid an error. */
2344 /* We use char because int might match the return type of a gcc2
2345 builtin and then its argument prototype would still apply. */
2350 /* The GNU C library defines this for functions which it implements
2351 to always fail with ENOSYS. Some functions are actually named
2352 something starting with __ and the normal name is an alias. */
2353 #if defined (__stub_strtod) || defined (__stub___strtod)
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2363 eval "ac_cv_func_strtod=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2368 eval "ac_cv_func_strtod=no"
2373 if eval "test \"`echo '$ac_cv_func_'strtod`\" = yes"; then
2374 echo "$ac_t""yes" 1>&6
2377 echo "$ac_t""no" 1>&6
2381 if test "$tk_strtod" = 1; then
2382 echo $ac_n "checking for Solaris 2.4 strtod bug""... $ac_c" 1>&6
2383 echo "configure:2384: checking for Solaris 2.4 strtod bug" >&5
2384 if test "$cross_compiling" = yes; then
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2391 extern double strtod();
2394 char *string = "NaN";
2396 strtod(string, &term);
2397 if ((term != string) && (term[-1] == 0)) {
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2415 if test "$tk_ok" = 1; then
2416 echo "$ac_t""ok" 1>&6
2418 echo "$ac_t""buggy" 1>&6
2419 cat >> confdefs.h <<\EOF
2420 #define strtod fixstrtod
2426 #--------------------------------------------------------------------
2427 # The statements below define a collection of symbols related to
2428 # building libck as a shared library instead of a static library.
2429 #--------------------------------------------------------------------
2431 # Check whether --enable-shared or --disable-shared was given.
2432 if test "${enable_shared+set}" = set; then
2433 enableval="$enable_shared"
2439 if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
2440 CK_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
2441 eval "CK_LIB_FILE=libck${TCL_SHARED_LIB_SUFFIX}"
2442 MAKE_LIB="\${SHLIB_LD} -o ${CK_LIB_FILE} \${OBJS} ${SHLIB_LD_LIBS}"
2446 eval "CK_LIB_FILE=libck${TCL_UNSHARED_LIB_SUFFIX}"
2447 # Fixup if suffix missing
2448 if test "$CK_LIB_FILE" = "libck" ; then
2451 MAKE_LIB="ar cr ${CK_LIB_FILE} \${OBJS}"
2454 # Note: in the following variable, it's important to use the absolute
2455 # path name of the Tcl directory rather than "..": this is because
2456 # AIX remembers this path and will attempt to use it at run-time to look
2457 # up the Tcl library.
2459 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
2460 CK_BUILD_LIB_SPEC="-L`pwd` -lck${VERSION}"
2461 CK_LIB_SPEC="-L${exec_prefix}/lib -lck${VERSION}"
2463 CK_BUILD_LIB_SPEC="-L`pwd` -lck`echo ${VERSION} | tr -d .`"
2464 CK_LIB_SPEC="-L${exec_prefix}/lib -lck`echo ${VERSION} | tr -d .`"
2497 cat > confcache <<\EOF
2498 # This file is a shell script that caches the results of configure
2499 # tests run on this system so they can be shared between configure
2500 # scripts and configure runs. It is not useful on other systems.
2501 # If it contains results you don't want to keep, you may remove or edit it.
2503 # By default, configure uses ./config.cache as the cache file,
2504 # creating it if it does not exist already. You can give configure
2505 # the --cache-file=FILE option to use a different cache file; that is
2506 # what configure does when it calls configure scripts in
2507 # subdirectories, so they share the cache.
2508 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2509 # config.status only pays attention to the cache file if you give it the
2510 # --recheck option to rerun configure.
2513 # The following way of writing the cache mishandles newlines in values,
2514 # but we know of no workaround that is simple, portable, and efficient.
2515 # So, don't put newlines in cache variables' values.
2516 # Ultrix sh set writes to stderr and can't be redirected directly,
2517 # and sets the high bit in the cache file unless we assign to the vars.
2519 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2521 # `set' does not quote correctly, so add quotes (double-quote substitution
2522 # turns \\\\ into \\, and sed turns \\ into \).
2524 -e "s/'/'\\\\''/g" \
2525 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2528 # `set' quotes correctly as required by POSIX, so do not add quotes.
2529 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2532 if cmp -s $cache_file confcache; then
2535 if test -w $cache_file; then
2536 echo "updating cache $cache_file"
2537 cat confcache > $cache_file
2539 echo "not updating unwritable cache $cache_file"
2544 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2547 # Let make expand exec_prefix.
2548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2550 # Any assignment to VPATH causes Sun make to only execute
2551 # the first set of double-colon rules, so remove it if not needed.
2552 # If there is a colon in the path, we need to keep it.
2553 if test "x$srcdir" = x.; then
2554 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2557 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2559 # Transform confdefs.h into DEFS.
2560 # Protect against shell expansion while executing Makefile rules.
2561 # Protect against Makefile macro expansion.
2562 cat > conftest.defs <<\EOF
2563 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2564 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2569 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2573 # Without the "./", some shells look in PATH for config.status.
2574 : ${CONFIG_STATUS=./config.status}
2576 echo creating $CONFIG_STATUS
2577 rm -f $CONFIG_STATUS
2578 cat > $CONFIG_STATUS <<EOF
2580 # Generated automatically by configure.
2581 # Run this file to recreate the current configuration.
2582 # This directory was configured as follows,
2583 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2585 # $0 $ac_configure_args
2587 # Compiler output produced by configure, useful for debugging
2588 # configure, is in ./config.log if it exists.
2590 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2593 case "\$ac_option" in
2594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2595 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2596 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2597 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2598 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2600 -help | --help | --hel | --he | --h)
2601 echo "\$ac_cs_usage"; exit 0 ;;
2602 *) echo "\$ac_cs_usage"; exit 1 ;;
2606 ac_given_srcdir=$srcdir
2607 ac_given_INSTALL="$INSTALL"
2609 trap 'rm -fr `echo "Makefile ckConfig.sh pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2611 cat >> $CONFIG_STATUS <<EOF
2613 # Protect against being on the right side of a sed subst in config.status.
2614 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2615 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2619 s%@CFLAGS@%$CFLAGS%g
2620 s%@CPPFLAGS@%$CPPFLAGS%g
2621 s%@CXXFLAGS@%$CXXFLAGS%g
2622 s%@FFLAGS@%$FFLAGS%g
2624 s%@LDFLAGS@%$LDFLAGS%g
2626 s%@exec_prefix@%$exec_prefix%g
2627 s%@prefix@%$prefix%g
2628 s%@program_transform_name@%$program_transform_name%g
2629 s%@bindir@%$bindir%g
2630 s%@sbindir@%$sbindir%g
2631 s%@libexecdir@%$libexecdir%g
2632 s%@datadir@%$datadir%g
2633 s%@sysconfdir@%$sysconfdir%g
2634 s%@sharedstatedir@%$sharedstatedir%g
2635 s%@localstatedir@%$localstatedir%g
2636 s%@libdir@%$libdir%g
2637 s%@includedir@%$includedir%g
2638 s%@oldincludedir@%$oldincludedir%g
2639 s%@infodir@%$infodir%g
2640 s%@mandir@%$mandir%g
2641 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2642 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2643 s%@INSTALL_DATA@%$INSTALL_DATA%g
2644 s%@RANLIB@%$RANLIB%g
2647 s%@DL_LIBS@%$DL_LIBS%g
2648 s%@LD_FLAGS@%$LD_FLAGS%g
2649 s%@MATH_LIBS@%$MATH_LIBS%g
2650 s%@MAKE_LIB@%$MAKE_LIB%g
2651 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
2652 s%@SHLIB_LD@%$SHLIB_LD%g
2653 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
2654 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
2655 s%@SHLIB_VERSION@%$SHLIB_VERSION%g
2656 s%@TCL_DIR@%$TCL_DIR%g
2657 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
2658 s%@TCL_LIB@%$TCL_LIB%g
2659 s%@TCL_INCLUDE_SPEC@%$TCL_INCLUDE_SPEC%g
2660 s%@TCL_VERSION@%$TCL_VERSION%g
2661 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
2662 s%@CK_LD_SEARCH_FLAGS@%$CK_LD_SEARCH_FLAGS%g
2663 s%@CK_LIB_FILE@%$CK_LIB_FILE%g
2664 s%@CK_LIB_SPEC@%$CK_LIB_SPEC%g
2665 s%@CK_MAJOR_VERSION@%$CK_MAJOR_VERSION%g
2666 s%@CK_MINOR_VERSION@%$CK_MINOR_VERSION%g
2667 s%@CK_SHLIB_CFLAGS@%$CK_SHLIB_CFLAGS%g
2668 s%@CK_VERSION@%$CK_VERSION%g
2669 s%@CK_BUILD_LIB_SPEC@%$CK_BUILD_LIB_SPEC%g
2670 s%@USE_NCURSES@%$USE_NCURSES%g
2671 s%@CURSESINCLUDES@%$CURSESINCLUDES%g
2672 s%@CURSESLIBSW@%$CURSESLIBSW%g
2677 cat >> $CONFIG_STATUS <<\EOF
2679 # Split the substitutions into bite-sized pieces for seds with
2680 # small command number limits, like on Digital OSF/1 and HP-UX.
2681 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2682 ac_file=1 # Number of current file.
2683 ac_beg=1 # First line for current file.
2684 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2687 while $ac_more_lines; do
2688 if test $ac_beg -gt 1; then
2689 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2691 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2693 if test ! -s conftest.s$ac_file; then
2695 rm -f conftest.s$ac_file
2697 if test -z "$ac_sed_cmds"; then
2698 ac_sed_cmds="sed -f conftest.s$ac_file"
2700 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2702 ac_file=`expr $ac_file + 1`
2704 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2707 if test -z "$ac_sed_cmds"; then
2712 cat >> $CONFIG_STATUS <<EOF
2714 CONFIG_FILES=\${CONFIG_FILES-"Makefile ckConfig.sh pkgIndex.tcl"}
2716 cat >> $CONFIG_STATUS <<\EOF
2717 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2720 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2721 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2722 *) ac_file_in="${ac_file}.in" ;;
2725 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2727 # Remove last slash and all that follows it. Not all systems have dirname.
2728 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2729 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2730 # The file is in a subdirectory.
2731 test ! -d "$ac_dir" && mkdir "$ac_dir"
2732 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2733 # A "../" for each directory in $ac_dir_suffix.
2734 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2736 ac_dir_suffix= ac_dots=
2739 case "$ac_given_srcdir" in
2741 if test -z "$ac_dots"; then top_srcdir=.
2742 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2743 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2745 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2746 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2749 case "$ac_given_INSTALL" in
2750 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2751 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2754 echo creating "$ac_file"
2756 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2758 *Makefile*) ac_comsub="1i\\
2759 # $configure_input" ;;
2763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2765 s%@configure_input@%$configure_input%g
2766 s%@srcdir@%$srcdir%g
2767 s%@top_srcdir@%$top_srcdir%g
2768 s%@INSTALL@%$INSTALL%g
2769 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2774 cat >> $CONFIG_STATUS <<EOF
2777 cat >> $CONFIG_STATUS <<\EOF
2781 chmod +x $CONFIG_STATUS
2782 rm -fr confdefs* $ac_clean_files
2783 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1