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-tclconfig directory containing tcl configuration (tclConfig.sh)"
17 --with-tkconfig directory containing tk configuration (tkConfig.sh)"
19 --with-tclinclude directory where tcl private headers are"
21 --enable-shared build libexpect as a shared library"
23 --with-x whether or not to use X (default yes)"
25 --with-tkinclude directory where tk private headers are"
27 --disable-load disallow dynamic loading"
29 --enable-gcc allow use of gcc if available"
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
35 cache_file=./config.cache
44 program_transform_name=s,x,x,
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
65 # Initialize some other variables.
68 SHELL=${CONFIG_SHELL-/bin/sh}
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.13"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=expect.h
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='\c' ac_t=
535 for ac_dir in $srcdir/.. $srcdir/$srcdir/..; do
536 if test -f $ac_dir/install-sh; then
538 ac_install_sh="$ac_aux_dir/install-sh -c"
540 elif test -f $ac_dir/install.sh; then
542 ac_install_sh="$ac_aux_dir/install.sh -c"
546 if test -z "$ac_aux_dir"; then
547 { echo "configure: error: can not find install-sh or install.sh in $srcdir/.. $srcdir/$srcdir/.." 1>&2; exit 1; }
549 ac_config_guess=$ac_aux_dir/config.guess
550 ac_config_sub=$ac_aux_dir/config.sub
551 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
554 # note when updating version numbers here, also update pkgIndex.in (see
555 # comments in Makefile)
559 EXP_VERSION=$EXP_MAJOR_VERSION.$EXP_MINOR_VERSION
560 EXP_VERSION_NODOTS=$EXP_MAJOR_VERSION$EXP_MINOR_VERSION
561 EXP_VERSION_FULL=$EXP_VERSION.$EXP_MICRO_VERSION
563 # Tcl's handling of shared_lib_suffix requires this symbol exist
564 VERSION=$EXP_MAJOR_VERSION.$EXP_MINOR_VERSION
566 # Too many people send me configure output without identifying the version.
567 # This forced identification should reduce my pain significantly.
568 echo "configuring Expect $EXP_MAJOR_VERSION.$EXP_MINOR_VERSION.$EXP_MICRO_VERSION"
571 # Do some error checking and defaulting for the host and target type.
573 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
576 # 1. You are not allowed to specify --host, --target, and nonopt at the
578 # 2. Host defaults to nonopt.
579 # 3. If nonopt is not specified, then host defaults to the current host,
580 # as determined by config.guess.
581 # 4. Target and build default to nonopt.
582 # 5. If nonopt is not specified, then target and build default to host.
584 # The aliases save the names the user supplied, while $host etc.
585 # will get canonicalized.
586 case $host---$target---$nonopt in
587 NONE---*---* | *---NONE---* | *---*---NONE) ;;
588 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
592 # Make sure we can run config.sub.
593 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
594 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
597 echo $ac_n "checking host system type""... $ac_c" 1>&6
598 echo "configure:599: checking host system type" >&5
601 case "$host_alias" in
605 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
606 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 *) host_alias=$nonopt ;;
612 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
613 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
614 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
615 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
616 echo "$ac_t""$host" 1>&6
618 echo $ac_n "checking target system type""... $ac_c" 1>&6
619 echo "configure:620: checking target system type" >&5
622 case "$target_alias" in
625 NONE) target_alias=$host_alias ;;
626 *) target_alias=$nonopt ;;
630 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
631 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$target" 1>&6
636 echo $ac_n "checking build system type""... $ac_c" 1>&6
637 echo "configure:638: checking build system type" >&5
640 case "$build_alias" in
643 NONE) build_alias=$host_alias ;;
644 *) build_alias=$nonopt ;;
648 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
649 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$build" 1>&6
654 test "$host_alias" != "$target_alias" &&
655 test "$program_prefix$program_suffix$program_transform_name" = \
657 program_prefix=${target_alias}-
662 # /bin/sh on some systems is too deficient (in particular, Ultrix 4.3
663 # sh lacks unset and we *need* that), but all these systems come with
664 # alternatives, so take user's choice or whatever we're using here and
665 # allow it to be seen by Make.
666 echo $ac_n "checking shell to use within Make""... $ac_c" 1>&6
667 echo "configure:668: checking shell to use within Make" >&5
668 EXP_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
669 echo "$ac_t""$CONFIG_SHELL" 1>&6
671 # If `configure' is invoked (in)directly via `make', ensure that it
672 # encounters no `make' conflicts.
674 unset MFLAGS MAKEFLAGS
680 # Ok, lets find the tcl configuration
681 # First, look for one uninstalled.
682 # the alternative search directory is invoked by --with-tclconfig
685 if test x"${no_tcl}" = x ; then
686 # we reset no_tcl in case something fails here
688 # Check whether --with-tclconfig or --without-tclconfig was given.
689 if test "${with_tclconfig+set}" = set; then
690 withval="$with_tclconfig"
691 with_tclconfig=${withval}
694 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
695 echo "configure:696: checking for Tcl configuration" >&5
696 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
701 # First check to see if --with-tclconfig was specified.
702 if test x"${with_tclconfig}" != x ; then
703 if test -f "${with_tclconfig}/tclConfig.sh" ; then
704 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
706 { echo "configure: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" 1>&2; exit 1; }
710 # then check for a private Tcl installation
712 if test x"${ac_cv_c_tclconfig}" = x ; then
715 `ls -dr ../tcl[7-9].[0-9] 2>/dev/null` \
717 `ls -dr ../../tcl[7-9].[0-9] 2>/dev/null` \
719 `ls -dr ../../../tcl[7-9].[0-9] 2>/dev/null` ; do
720 if test -f "$i/unix/tclConfig.sh" ; then
721 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
724 if test -f "$i/win/tclConfig.sh" ; then
725 ac_cv_c_tclconfig=`(cd $i/win; pwd)`
731 # check in a few common install locations
732 if test x"${ac_cv_c_tclconfig}" = x ; then
733 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
734 if test -f "$i/tclConfig.sh" ; then
735 ac_cv_c_tclconfig=`(cd $i; pwd)`
740 # check in a few other private locations
742 if test x"${ac_cv_c_tclconfig}" = x ; then
745 `ls -dr ${srcdir}/../tcl[7-9].[0-9] 2>/dev/null` ; do
746 if test -f "$i/unix/tclConfig.sh" ; then
747 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
756 if test x"${ac_cv_c_tclconfig}" = x ; then
757 TCLCONFIG="# no Tcl configs found"
758 echo "configure: warning: Can't find Tcl configuration definitions" 1>&2
761 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
762 echo "$ac_t""found $TCLCONFIG" 1>&6
776 # Tcl defines TCL_SHLIB_SUFFIX but TCL_SHARED_LIB_SUFFIX then looks for it
777 # as just SHLIB_SUFFIX. How bizarre.
778 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
792 EXP_AND_TCL_LIBS=$TCL_LIBS
795 # Ok, lets find the tk configuration
796 # First, look for one uninstalled.
797 # the alternative search directory is invoked by --with-tkconfig
800 if test x"${no_tk}" = x ; then
801 # we reset no_tk in case something fails here
803 # Check whether --with-tkconfig or --without-tkconfig was given.
804 if test "${with_tkconfig+set}" = set; then
805 withval="$with_tkconfig"
806 with_tkconfig=${withval}
809 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
810 echo "configure:811: checking for Tk configuration" >&5
811 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
816 # First check to see if --with-tkconfig was specified.
817 if test x"${with_tkconfig}" != x ; then
818 if test -f "${with_tkconfig}/tkConfig.sh" ; then
819 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
821 { echo "configure: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" 1>&2; exit 1; }
825 # then check for a private Tk library
827 if test x"${ac_cv_c_tkconfig}" = x ; then
830 `ls -dr ../tk[4-9].[0-9] 2>/dev/null` \
832 `ls -dr ../../tk[4-9].[0-9] 2>/dev/null` \
834 `ls -dr ../../../tk[4-9].[0-9] 2>/dev/null` ; do
835 if test -f "$i/unix/tkConfig.sh" ; then
836 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
839 if test -f "$i/win/tkConfig.sh" ; then
840 ac_cv_c_tkconfig=`(cd $i/win; pwd)`
846 # check in a few common install locations
847 if test x"${ac_cv_c_tkconfig}" = x ; then
848 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
849 if test -f "$i/tkConfig.sh" ; then
850 ac_cv_c_tkconfig=`(cd $i; pwd)`
855 # check in a few other private locations
857 if test x"${ac_cv_c_tkconfig}" = x ; then
860 `ls -dr ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` ; do
861 if test -f "$i/unix/tkConfig.sh" ; then
862 ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
871 if test x"${ac_cv_c_tkconfig}" = x ; then
872 TKCONFIG="# no Tk configs found"
873 echo "configure: warning: Can't find Tk configuration definitions" 1>&2
876 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
877 echo "$ac_t""found $TKCONFIG" 1>&6
883 if test -f "$TKCONFIG" ; then
898 EXP_AND_TK_LIBS=$TK_LIBS
900 # CYGNUS LOCAL dj/cygwin
902 # Make sure we can run config.sub.
903 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
904 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
907 echo $ac_n "checking host system type""... $ac_c" 1>&6
908 echo "configure:909: checking host system type" >&5
911 case "$host_alias" in
915 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
916 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
918 *) host_alias=$nonopt ;;
922 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
923 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
924 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
925 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
926 echo "$ac_t""$host" 1>&6
929 # If we built a cygwin-specific tcl, use it here.
932 if test -d $srcdir/../tcl/cygwin/.
934 TCL_BUILD_LIB_SPEC="../tcl/cygwin/libtcl_cygwin.a"
935 # Use the same static lib for installed_expect
936 TCL_LIB_SPEC="../tcl/cygwin/libtcl_cygwin.a"
937 EXP_CYGWIN_ALTTCL='-DCYGWIN_ALTTCL'
940 if ${CC} -c -mno-win32 ac$$.c >/dev/null 2>&1; then
941 case "$EXP_CFLAGS" in
943 *) EXP_CFLAGS="-mno-win32 $EXP_CFLAGS" ;;
950 # An explanation is in order for the strange things going on with the
951 # various LIBS. There are three separate definitions for LIBS. The
952 # reason is that some systems require shared libraries include
953 # references to their dependent libraries, i.e., any additional
954 # libraries that must be linked to. And some systems get upset if the
955 # references are repeated on the link line. So therefore, we create
956 # one for Expect and Tk (EXP_AND_TK_LIBS), one for Expect and Tcl
957 # (EXP_AND_TCL_LIBS), and finally, one for building Expect's own
958 # shared library. Tcl's tclConfig.sh insists that any shared libs
959 # that it "helps" build must pass the libraries as LIBS (see comment
960 # near end of this configure file). I would do but since we're close
961 # to hitting config's max symbols, we take one short cut and pack the
962 # LIBS into EXP_SHLIB_LD_LIBS (which is basically what Tcl wants to do
963 # for us). The point, however, is that there's no separate LIBS or
964 # EXP_LIBS symbol passed out of configure. One additional point for
965 # confusion is that LIBS is what configure uses to do all library
966 # tests, so we have to swap definitions of LIBS peridically. When we
967 # are swapping out the one for Expect's shared library, we save it in
971 # Extract the first word of "gcc", so it can be a program name with args.
972 set dummy gcc; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$CC"; then
979 ac_cv_prog_CC="$CC" # Let the user override the test.
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
994 if test -n "$CC"; then
995 echo "$ac_t""$CC" 1>&6
997 echo "$ac_t""no" 1>&6
1000 if test -z "$CC"; then
1001 # Extract the first word of "cc", so it can be a program name with args.
1002 set dummy cc; ac_word=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC="$CC" # Let the user override the test.
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1014 for ac_dir in $ac_dummy; do
1015 test -z "$ac_dir" && ac_dir=.
1016 if test -f $ac_dir/$ac_word; then
1017 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1018 ac_prog_rejected=yes
1026 if test $ac_prog_rejected = yes; then
1027 # We found a bogon in the path, so make sure we never use it.
1028 set dummy $ac_cv_prog_CC
1030 if test $# -gt 0; then
1031 # We chose a different compiler from the bogus one.
1032 # However, it has the same basename, so the bogon will be chosen
1033 # first if we set CC to just the basename; use the full file name.
1035 set dummy "$ac_dir/$ac_word" "$@"
1043 if test -n "$CC"; then
1044 echo "$ac_t""$CC" 1>&6
1046 echo "$ac_t""no" 1>&6
1049 if test -z "$CC"; then
1050 case "`uname -s`" in
1052 # Extract the first word of "cl", so it can be a program name with args.
1053 set dummy cl; ac_word=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC="$CC" # Let the user override the test.
1062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1064 for ac_dir in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir=.
1066 if test -f $ac_dir/$ac_word; then
1075 if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1078 echo "$ac_t""no" 1>&6
1083 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1086 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1091 ac_cpp='$CPP $CPPFLAGS'
1092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1094 cross_compiling=$ac_cv_prog_cc_cross
1096 cat > conftest.$ac_ext << EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1103 if { (eval echo configure:1104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1104 ac_cv_prog_cc_works=yes
1105 # If we can't run a trivial program, we are probably using a cross compiler.
1106 if (./conftest; exit) 2>/dev/null; then
1107 ac_cv_prog_cc_cross=no
1109 ac_cv_prog_cc_cross=yes
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 ac_cv_prog_cc_works=no
1118 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1121 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1122 cross_compiling=$ac_cv_prog_cc_cross
1124 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1125 if test $ac_cv_prog_cc_works = no; then
1126 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1128 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1130 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1131 cross_compiling=$ac_cv_prog_cc_cross
1133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1134 echo "configure:1135: checking whether we are using GNU C" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 cat > conftest.c <<EOF
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1161 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ${CC-cc} accepts -g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1180 if test "$GCC" = yes; then
1186 if test "$GCC" = yes; then
1195 # If we cannot compile and link a trivial program, we can't expect anything to work
1196 echo $ac_n "checking whether the compiler ($CC) actually works""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether the compiler ($CC) actually works" >&5
1198 cat > conftest.$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1203 /* don't need anything here */
1206 if { (eval echo configure:1207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1210 echo "configure: failed program was:" >&5
1211 cat conftest.$ac_ext >&5
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1222 /* don't need anything here */
1225 if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1236 if test x"${c_compiles}" = x"no" ; then
1237 { echo "configure: error: the native compiler is broken and won't compile." 1>&2; exit 1; }
1240 if test x"${c_links}" = x"no" ; then
1241 { echo "configure: error: the native compiler is broken and won't link." 1>&2; exit 1; }
1243 echo "$ac_t""yes" 1>&6
1246 # this'll use a BSD compatible install or our included install-sh
1247 # Find a good install program. We prefer a C program (faster),
1248 # so one script is as good as another. But avoid the broken or
1249 # incompatible versions:
1250 # SysV /etc/install, /usr/sbin/install
1251 # SunOS /usr/etc/install
1252 # IRIX /sbin/install
1254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1257 # ./install, which can be erroneously created by make from ./install.sh.
1258 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1259 echo "configure:1260: checking for a BSD compatible install" >&5
1260 if test -z "$INSTALL"; then
1261 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1265 for ac_dir in $PATH; do
1266 # Account for people who put trailing slashes in PATH elements.
1268 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1270 # OSF1 and SCO ODT 3.0 have their own names for install.
1271 # Don't use installbsd from OSF since it installs stuff as root
1273 for ac_prog in ginstall scoinst install; do
1274 if test -f $ac_dir/$ac_prog; then
1275 if test $ac_prog = install &&
1276 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1277 # AIX install. It has an incompatible calling convention.
1280 ac_cv_path_install="$ac_dir/$ac_prog -c"
1291 if test "${ac_cv_path_install+set}" = set; then
1292 INSTALL="$ac_cv_path_install"
1294 # As a last resort, use the slow shell script. We don't cache a
1295 # path for INSTALL within a source directory, because that will
1296 # break other packages using the cache if that directory is
1297 # removed, or if the path is relative.
1298 INSTALL="$ac_install_sh"
1301 echo "$ac_t""$INSTALL" 1>&6
1303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1304 # It thinks the first close brace ends the variable substitution.
1305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1312 # Tcl sets TCL_RANLIB appropriately for shared library if --enable-shared
1313 # Extract the first word of "ranlib", so it can be a program name with args.
1314 set dummy ranlib; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 if test -n "$RANLIB"; then
1321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1325 for ac_dir in $ac_dummy; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 ac_cv_prog_RANLIB="ranlib"
1333 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1336 RANLIB="$ac_cv_prog_RANLIB"
1337 if test -n "$RANLIB"; then
1338 echo "$ac_t""$RANLIB" 1>&6
1340 echo "$ac_t""no" 1>&6
1343 UNSHARED_RANLIB=$RANLIB
1345 # these are the other subdirectories we need to configure
1349 # This is for LynxOS, which needs a flag to force true POSIX when
1350 # building. The flag varies depending how old the compiler is.
1351 # -X is for the old "cc" and "gcc" (based on 1.42)
1352 # -mposix is for the new gcc (at least 2.5.8)
1353 # This modifies the value of $CC to have the POSIX flag added
1354 # so it'll configure correctly
1355 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1356 echo "configure:1357: checking how to run the C preprocessor" >&5
1357 # On Suns, sometimes $CPP names a directory.
1358 if test -n "$CPP" && test -d "$CPP"; then
1361 if test -z "$CPP"; then
1362 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1363 echo $ac_n "(cached) $ac_c" 1>&6
1365 # This must be in double quotes, not single quotes, because CPP may get
1366 # substituted into the Makefile and "${CC-cc}" will confuse make.
1368 # On the NeXT, cc -E runs the code through the compiler's parser,
1369 # not just through cpp.
1370 cat > conftest.$ac_ext <<EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1377 { (eval echo configure:1378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1379 if test -z "$ac_err"; then
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1386 CPP="${CC-cc} -E -traditional-cpp"
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1394 { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1396 if test -z "$ac_err"; then
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 CPP="${CC-cc} -nologo -E"
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1411 { (eval echo configure:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1413 if test -z "$ac_err"; then
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1427 ac_cv_prog_CPP="$CPP"
1429 CPP="$ac_cv_prog_CPP"
1431 ac_cv_prog_CPP="$CPP"
1433 echo "$ac_t""$CPP" 1>&6
1436 echo $ac_n "checking if running LynxOS""... $ac_c" 1>&6
1437 echo "configure:1438: checking if running LynxOS" >&5
1438 if eval "test \"`echo '$''{'ac_cv_os_lynx'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1445 * The old Lynx "cc" only defines "Lynx", but the newer one uses "__Lynx__"
1447 #if defined(__Lynx__) || defined(Lynx)
1452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1453 egrep "yes" >/dev/null 2>&1; then
1465 if test "$ac_cv_os_lynx" = "yes" ; then
1466 echo "$ac_t""yes" 1>&6
1467 cat >> confdefs.h <<\EOF
1471 echo $ac_n "checking whether -mposix or -X is available""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether -mposix or -X is available" >&5
1473 if eval "test \"`echo '$''{'ac_cv_c_posix_flag'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1483 * This flag varies depending on how old the compiler is.
1484 * -X is for the old "cc" and "gcc" (based on 1.42).
1485 * -mposix is for the new gcc (at least 2.5.8).
1487 #if defined(__GNUC__) && __GNUC__ >= 2
1493 if { (eval echo configure:1494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1495 ac_cv_c_posix_flag=" -mposix"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 ac_cv_c_posix_flag=" -X"
1505 CC="$CC $ac_cv_c_posix_flag"
1506 echo "$ac_t""$ac_cv_c_posix_flag" 1>&6
1508 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1513 echo "configure:1514: checking for ANSI C header files" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1526 { (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1528 if test -z "$ac_err"; then
1530 ac_cv_header_stdc=yes
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 ac_cv_header_stdc=no
1540 if test $ac_cv_header_stdc = yes; then
1541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1548 egrep "memchr" >/dev/null 2>&1; then
1552 ac_cv_header_stdc=no
1558 if test $ac_cv_header_stdc = yes; then
1559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1566 egrep "free" >/dev/null 2>&1; then
1570 ac_cv_header_stdc=no
1576 if test $ac_cv_header_stdc = yes; then
1577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1578 if test "$cross_compiling" = yes; then
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1585 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1586 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1588 int main () { int i; for (i = 0; i < 256; i++)
1589 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1600 ac_cv_header_stdc=no
1608 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1609 if test $ac_cv_header_stdc = yes; then
1610 cat >> confdefs.h <<\EOF
1611 #define STDC_HEADERS 1
1616 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1617 echo "configure:1618: checking for pid_t" >&5
1618 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <sys/types.h>
1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1633 ac_cv_type_pid_t=yes
1641 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1642 if test $ac_cv_type_pid_t = no; then
1643 cat >> confdefs.h <<\EOF
1649 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1650 echo "configure:1651: checking return type of signal handlers" >&5
1651 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1663 extern "C" void (*signal (int, void (*)(int)))(int);
1665 void (*signal ()) ();
1672 if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1674 ac_cv_type_signal=void
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1679 ac_cv_type_signal=int
1684 echo "$ac_t""$ac_cv_type_signal" 1>&6
1685 cat >> confdefs.h <<EOF
1686 #define RETSIGTYPE $ac_cv_type_signal
1690 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1691 echo "configure:1692: checking whether time.h and sys/time.h may both be included" >&5
1692 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 #include <sys/types.h>
1699 #include <sys/time.h>
1705 if { (eval echo configure:1706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1707 ac_cv_header_time=yes
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1712 ac_cv_header_time=no
1717 echo "$ac_t""$ac_cv_header_time" 1>&6
1718 if test $ac_cv_header_time = yes; then
1719 cat >> confdefs.h <<\EOF
1720 #define TIME_WITH_SYS_TIME 1
1725 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1726 echo "configure:1727: checking for sys/wait.h that is POSIX.1 compatible" >&5
1727 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 #include <sys/types.h>
1734 #include <sys/wait.h>
1736 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1739 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1744 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1747 if { (eval echo configure:1748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1749 ac_cv_header_sys_wait_h=yes
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 ac_cv_header_sys_wait_h=no
1759 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1760 if test $ac_cv_header_sys_wait_h = yes; then
1761 cat >> confdefs.h <<\EOF
1762 #define HAVE_SYS_WAIT_H 1
1768 # Use -g on all systems but Linux where it upsets the dynamic X libraries.
1769 EXP_CFLAGS="$EXP_CFLAGS $EXP_CYGWIN_ALTTCL"
1771 echo $ac_n "checking if running Mach""... $ac_c" 1>&6
1772 echo "configure:1773: checking if running Mach" >&5
1775 # Both Next and pure Mach behave identically with respect
1776 # to a few things, so just lump them together as "mach"
1777 *-*-mach*) mach=1 ;;
1778 *-*-next*) mach=1 ; next=1 ;;
1781 if test $mach -eq 1 ; then
1782 echo "$ac_t""yes" 1>&6
1784 echo "$ac_t""no" 1>&6
1787 echo $ac_n "checking if running MachTen""... $ac_c" 1>&6
1788 echo "configure:1789: checking if running MachTen" >&5
1789 # yet another Mach clone
1790 if test -r /MachTen -a "$cross_compiling" != "yes" ; then
1791 echo "$ac_t""yes" 1>&6
1794 echo "$ac_t""no" 1>&6
1797 echo $ac_n "checking if on Pyramid""... $ac_c" 1>&6
1798 echo "configure:1799: checking if on Pyramid" >&5
1799 if test -r /bin/pyr -a "$cross_compiling" != "yes" ; then
1800 echo "$ac_t""yes" 1>&6
1803 echo "$ac_t""no" 1>&6
1807 echo $ac_n "checking if on Apollo""... $ac_c" 1>&6
1808 echo "configure:1809: checking if on Apollo" >&5
1809 if test -r /usr/apollo/bin -a "$cross_compiling" != "yes" ; then
1810 echo "$ac_t""yes" 1>&6
1813 echo "$ac_t""no" 1>&6
1817 echo $ac_n "checking if on Interactive""... $ac_c" 1>&6
1818 echo "configure:1819: checking if on Interactive" >&5
1819 if test "x`(uname -s) 2>/dev/null`" = xIUNIX; then
1820 echo "$ac_t""yes" 1>&6
1823 echo "$ac_t""no" 1>&6
1827 echo $ac_n "checking if stty reads stdout""... $ac_c" 1>&6
1828 echo "configure:1829: checking if stty reads stdout" >&5
1830 # On some systems stty can't be run in the background (svr4) or get it
1831 # wrong because they fail to complain (next, mach), so don't attempt
1832 # the test on some systems.
1834 stty_reads_stdout=""
1836 *-*-solaris*) stty_reads_stdout=0 ;;
1837 *-*-irix*) stty_reads_stdout=0 ;;
1838 *-*-sco3.2v[45]*) stty_reads_stdout=1 ;;
1839 i[3456]86-*-sysv4.2MP) stty_reads_stdout=0 ;;
1840 i[3456]86-*-linux*) stty_reads_stdout=0 ;;
1841 # Not sure about old convex but 5.2 definitely reads from stdout
1842 c[12]-*-*) stty_reads_stdout=1 ;;
1843 *-*-aix[34]*) stty_reads_stdout=0 ;;
1844 *-*-hpux9*) stty_reads_stdout=0 ;;
1845 *-*-hpux10*) stty_reads_stdout=0 ;;
1846 *-*-hpux11*) stty_reads_stdout=0 ;;
1847 *-*-osf[234]*) stty_reads_stdout=0 ;;
1848 *-*-ultrix4.4) stty_reads_stdout=0 ;;
1849 *-*-dgux*) stty_reads_stdout=0 ;;
1850 *-*-cygwin*) stty_reads_stdout=0 ;;
1853 if test $mach -eq 1 ; then
1856 if test $apollo -eq 1 ; then
1859 if test $pyr -eq 1 ; then
1863 # if we still don't know, test
1864 if test x"${stty_reads_stdout}" = x"" ; then
1865 /bin/stty > /dev/null 2> /dev/null
1866 if test $? -ne 0 ; then
1873 if test ${stty_reads_stdout} -eq 1 ; then
1874 echo "$ac_t""yes" 1>&6
1875 cat >> confdefs.h <<\EOF
1876 #define STTY_READS_STDOUT 1
1880 echo "$ac_t""no" 1>&6
1883 # Solaris 2.4 and later requires __EXTENSIONS__ in order to see all sorts
1884 # of traditional but nonstandard stuff in header files.
1885 echo $ac_n "checking if running Solaris""... $ac_c" 1>&6
1886 echo "configure:1887: checking if running Solaris" >&5
1889 *-*-solaris*) solaris=1;;
1892 if test $solaris -eq 1 ; then
1893 echo "$ac_t""yes" 1>&6
1894 cat >> confdefs.h <<\EOF
1899 echo "$ac_t""no" 1>&6
1903 # On a few systems, libm.a is the same as libc.a
1904 # Don't bother to test against Tcl and Tk libs, they always include -lm
1905 echo $ac_n "checking for sin""... $ac_c" 1>&6
1906 echo "configure:1907: checking for sin" >&5
1907 if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 cat > conftest.$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1913 /* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char sin(); below. */
1916 /* Override any gcc2 internal prototype to avoid an error. */
1917 /* We use char because int might match the return type of a gcc2
1918 builtin and then its argument prototype would still apply. */
1923 /* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926 #if defined (__stub_sin) || defined (__stub___sin)
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1936 eval "ac_cv_func_sin=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_func_sin=no"
1946 if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1950 echo "$ac_t""no" 1>&6
1955 # On Interactive UNIX, -Xp must be added to LIBS in order to find strftime.
1956 # This test should really be done by Tcl. So just check Tcl's definition.
1957 # If defective, add to all three LIBS. (It's not actually necessary for
1958 # EXP_LIBS since -Xp will just be ignored the way that EXP_LIBS is used in
1959 # the Makefile, but we include it for consistency.)
1960 if test $iunix -eq 1 ; then
1962 LIBS=$EXP_AND_TCL_LIBS
1963 echo $ac_n "checking for strftime""... $ac_c" 1>&6
1964 echo "configure:1965: checking for strftime" >&5
1965 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 cat > conftest.$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char strftime(); below. */
1974 /* Override any gcc2 internal prototype to avoid an error. */
1975 /* We use char because int might match the return type of a gcc2
1976 builtin and then its argument prototype would still apply. */
1981 /* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984 #if defined (__stub_strftime) || defined (__stub___strftime)
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1994 eval "ac_cv_func_strftime=yes"
1996 echo "configure: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1999 eval "ac_cv_func_strftime=no"
2004 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2005 echo "$ac_t""yes" 1>&6
2008 echo "$ac_t""no" 1>&6
2010 EXP_LIBS="${LIBS} -Xp"
2011 EXP_AND_TCL_LIBS="${LIBS} -Xp"
2012 EXP_AND_TK_LIBS="${LIBS} -Xp"
2020 # Ok, lets find the tcl source trees so we can use the headers
2024 # Ok, lets find the tcl source trees so we can use the headers
2025 # Warning: transition of version 9 to 10 will break this algorithm
2026 # because 10 sorts before 9. We also look for just tcl. We have to
2027 # be careful that we don't match stuff like tclX by accident.
2028 # the alternative search directory is involked by --with-tclinclude
2031 echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
2032 echo "configure:2033: checking for Tcl private headers" >&5
2033 # Check whether --with-tclinclude or --without-tclinclude was given.
2034 if test "${with_tclinclude+set}" = set; then
2035 withval="$with_tclinclude"
2036 with_tclinclude=${withval}
2039 if eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2043 # first check to see if --with-tclinclude was specified
2044 if test x"${with_tclinclude}" != x ; then
2045 if test -f ${with_tclinclude}/tclInt.h ; then
2046 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
2047 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
2048 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
2050 { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; }
2054 # next check if it came with Tcl configuration file
2055 if test x"${ac_cv_c_tclconfig}" != x ; then
2056 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
2057 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)`
2061 # next check in private source directory
2063 # since ls returns lowest version numbers first, reverse its output
2065 if test x"${ac_cv_c_tclh}" = x ; then
2068 `ls -dr ${srcdir}/../tcl[7-9].[0-9] 2>/dev/null` \
2069 ${srcdir}/../../tcl \
2070 `ls -dr ${srcdir}/../../tcl[7-9].[0-9] 2>/dev/null` \
2071 ${srcdir}/../../../tcl \
2072 `ls -dr ${srcdir}/../../../tcl[7-9].[0-9] 2>/dev/null ` ; do
2073 if test -f $i/generic/tclInt.h ; then
2074 ac_cv_c_tclh=`(cd $i/generic; pwd)`
2080 # finally check in a few common install locations
2082 # since ls returns lowest version numbers first, reverse its output
2084 if test x"${ac_cv_c_tclh}" = x ; then
2086 `ls -dr /usr/local/src/tcl[7-9].[0-9] 2>/dev/null` \
2087 `ls -dr /usr/local/lib/tcl[7-9].[0-9] 2>/dev/null` \
2088 /usr/local/src/tcl \
2089 /usr/local/lib/tcl \
2090 ${prefix}/include ; do
2091 if test -f $i/generic/tclInt.h ; then
2092 ac_cv_c_tclh=`(cd $i/generic; pwd)`
2098 # see if one is installed
2099 if test x"${ac_cv_c_tclh}" = x ; then
2100 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
2102 echo "configure:2103: checking for tclInt.h" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2112 { (eval echo configure:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2114 if test -z "$ac_err"; then
2116 eval "ac_cv_header_$ac_safe=yes"
2119 echo "configure: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2122 eval "ac_cv_header_$ac_safe=no"
2126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2127 echo "$ac_t""yes" 1>&6
2128 ac_cv_c_tclh=installed
2130 echo "$ac_t""no" 1>&6
2138 if test x"${ac_cv_c_tclh}" = x ; then
2139 TCLHDIR="# no Tcl private headers found"
2140 TCLHDIRDASHI="# no Tcl private headers found"
2141 { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }
2143 if test x"${ac_cv_c_tclh}" != x ; then
2145 if test x"${ac_cv_c_tclh}" = x"installed" ; then
2146 echo "$ac_t""is installed" 1>&6
2151 echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6
2152 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
2153 TCLHDIR="${ac_cv_c_tclh}"
2154 TCLHDIRDASHI="-I${ac_cv_c_tclh}"
2155 TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library
2163 if test x"$no_tcl" = x"true" ; then
2164 echo " ERROR: Can't find Tcl headers or library."
2165 echo " See README for information on how to obtain Tcl."
2166 echo " If Tcl is installed, see INSTALL on how to tell"
2167 echo " configure where Tcl is installed."
2171 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
2172 echo "configure:2173: checking for Itcl private headers. srcdir=${srcdir}" >&5
2173 if test x"${ac_cv_c_itclh}" = x ; then
2174 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do
2175 if test -f $i/itcl/generic/itcl.h ; then
2176 ac_cv_c_itclh=`(cd $i/itcl/generic; pwd)`
2181 if test x"${ac_cv_c_itclh}" = x ; then
2182 ITCLHDIR="# no Itcl private headers found"
2183 ITCLLIB="# no Itcl private headers found"
2184 echo "configure: warning: Can't find Itcl private headers" 1>&2
2187 ITCLHDIR="-I${ac_cv_c_itclh}"
2188 # should always be here
2189 ITCLLIB="../itcl/src/libitcl.a"
2196 # have to whether we're generating shared libs before configuring debugger
2197 echo $ac_n "checking if generating shared or nonshared library""... $ac_c" 1>&6
2198 echo "configure:2199: checking if generating shared or nonshared library" >&5
2199 # Check whether --enable-shared or --disable-shared was given.
2200 if test "${enable_shared+set}" = set; then
2201 enableval="$enable_shared"
2202 enable_shared=$enableval
2207 if test "$enable_shared" = "yes" && test "x${TCL_SHLIB_SUFFIX}" != "x" ; then
2208 echo "$ac_t""both shared and unshared" 1>&6
2210 echo "$ac_t""unshared" 1>&6
2213 # Now that we've found the Tcl sources, configure the debugger
2214 # this is a little tricky because it has its own configure script
2215 # which produces a Makefile and cf file. We only want the cf file,
2216 # so switch to a temporary directory and run the debugger's configure.
2217 # Then save the cf file and delete the rest.
2219 # Incidentally, the debugger can't depend on Expect's cf file, because
2220 # the debugger is designed to be independent of Expect.
2223 test -n "$verbose" && echo "configuring Tcl debugger"
2227 if test "${enable_shared}" = "yes"; then
2228 dbg_config_flags='--enable-shared'
2230 dbg_config_flags='--disable-shared'
2232 # (cd;pwd) in next several commands converts relative dirs to absolute.
2233 # This is required because the debugger src is at a different level in
2234 # the filesystem than Expect src (where we are presently), thereby
2235 # making the relative pathnames incorrect.
2236 if test "x$with_tclconfig" != "x" ; then
2237 dbg_config_flags="$dbg_config_flags --with-tclconfig=`(cd ${with_tclconfig}; pwd)`"
2239 if test "x$with_tcllibdir" != "x" ; then
2240 dbg_config_flags="$dbg_config_flags --with-tcllibdir=`(cd ${with_tcllibdir}; pwd)`"
2242 if test "x$with_tcllib" != "x" ; then
2243 dbg_config_flags="$dbg_config_flags --with-tcllib=`(cd ${with_tcllib}; pwd)`"
2245 if test "x$with_tclinclude" != "x" ; then
2246 dbg_config_flags="$dbg_config_flags --with-tclinclude=`(cd ${with_tclinclude}; pwd)`"
2248 case "$cache_file" in
2250 dbg_config_flags="$dbg_config_flags --cache-file=$cache_file"
2253 dbg_config_flags="$dbg_config_flags --cache-file=../$cache_file"
2257 cp ${srcdir}/Dbgconfigure ${srcdir}/Dbg.h ${srcdir}/Dbg_cf.h.in ${srcdir}/install-sh ${tmpdir}
2258 cp $srcdir/DbgMkfl.in ${tmpdir}/Makefile.in
2259 (cd $tmpdir; ${CONFIG_SHELL-/bin/sh} Dbgconfigure --with-tclinclude=`echo ${TCLHDIR} | sed -e 's/-I//'` $dbg_config_flags)
2260 cp ${tmpdir}/Dbg_cf.h .
2262 test -n "$verbose" && echo "configured Tcl debugger"
2264 # some people would complain if this explanation wasn't provided...
2266 echo "Begin tests for function/library dependencies. Tests may be repeated"
2267 echo "up to three times. First test is for building Expect's shared library."
2268 echo "Second set is for building with Tcl. Third is for building with Tk."
2270 ######################################################################
2271 # required by Sequent ptx2
2272 unset ac_cv_func_gethostname
2273 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
2274 echo "configure:2275: checking for gethostname" >&5
2275 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2281 /* System header to define __stub macros and hopefully few prototypes,
2282 which can conflict with char gethostname(); below. */
2284 /* Override any gcc2 internal prototype to avoid an error. */
2285 /* We use char because int might match the return type of a gcc2
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined (__stub_gethostname) || defined (__stub___gethostname)
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2304 eval "ac_cv_func_gethostname=yes"
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 eval "ac_cv_func_gethostname=no"
2314 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2318 echo "$ac_t""no" 1>&6
2322 if test $gethostname -eq 0 ; then
2323 unset ac_cv_lib_inet_gethostname
2324 echo $ac_n "checking for gethostname in -linet""... $ac_c" 1>&6
2325 echo "configure:2326: checking for gethostname in -linet" >&5
2326 ac_lib_var=`echo inet'_'gethostname | sed 'y%./+-%__p_%'`
2327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 ac_save_LIBS="$LIBS"
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 /* Override any gcc2 internal prototype to avoid an error. */
2336 /* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2344 if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2346 eval "ac_cv_lib_$ac_lib_var=yes"
2348 echo "configure: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2351 eval "ac_cv_lib_$ac_lib_var=no"
2354 LIBS="$ac_save_LIBS"
2357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2358 echo "$ac_t""yes" 1>&6
2361 echo "$ac_t""no" 1>&6
2365 # save results and retry for Tcl
2367 LIBS=$EXP_AND_TCL_LIBS
2368 unset ac_cv_func_gethostname
2369 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
2370 echo "configure:2371: checking for gethostname" >&5
2371 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 /* System header to define __stub macros and hopefully few prototypes,
2378 which can conflict with char gethostname(); below. */
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 /* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2387 /* The GNU C library defines this for functions which it implements
2388 to always fail with ENOSYS. Some functions are actually named
2389 something starting with __ and the normal name is an alias. */
2390 #if defined (__stub_gethostname) || defined (__stub___gethostname)
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 eval "ac_cv_func_gethostname=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 eval "ac_cv_func_gethostname=no"
2410 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2414 echo "$ac_t""no" 1>&6
2418 if test $gethostname -eq 0 ; then
2419 unset ac_cv_lib_inet_gethostname
2420 echo $ac_n "checking for gethostname in -linet""... $ac_c" 1>&6
2421 echo "configure:2422: checking for gethostname in -linet" >&5
2422 ac_lib_var=`echo inet'_'gethostname | sed 'y%./+-%__p_%'`
2423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 ac_save_LIBS="$LIBS"
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 /* Override any gcc2 internal prototype to avoid an error. */
2432 /* We use char because int might match the return type of a gcc2
2433 builtin and then its argument prototype would still apply. */
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2442 eval "ac_cv_lib_$ac_lib_var=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_lib_$ac_lib_var=no"
2450 LIBS="$ac_save_LIBS"
2453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2457 echo "$ac_t""no" 1>&6
2461 # save Tcl results and retry for Tk
2462 EXP_AND_TCL_LIBS=$LIBS
2463 LIBS=$EXP_AND_TK_LIBS
2464 unset ac_cv_func_gethostname
2465 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
2466 echo "configure:2467: checking for gethostname" >&5
2467 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char gethostname(); below. */
2476 /* Override any gcc2 internal prototype to avoid an error. */
2477 /* We use char because int might match the return type of a gcc2
2478 builtin and then its argument prototype would still apply. */
2483 /* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486 #if defined (__stub_gethostname) || defined (__stub___gethostname)
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2496 eval "ac_cv_func_gethostname=yes"
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 eval "ac_cv_func_gethostname=no"
2506 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2510 echo "$ac_t""no" 1>&6
2514 if test $gethostname -eq 0 ; then
2515 unset ac_cv_lib_inet_gethostname
2516 echo $ac_n "checking for gethostname in -linet""... $ac_c" 1>&6
2517 echo "configure:2518: checking for gethostname in -linet" >&5
2518 ac_lib_var=`echo inet'_'gethostname | sed 'y%./+-%__p_%'`
2519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 ac_save_LIBS="$LIBS"
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2538 eval "ac_cv_lib_$ac_lib_var=yes"
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 eval "ac_cv_lib_$ac_lib_var=no"
2546 LIBS="$ac_save_LIBS"
2549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2553 echo "$ac_t""no" 1>&6
2557 # save Tk results and reset for Expect
2558 EXP_AND_TK_LIBS=$LIBS
2561 ######################################################################
2562 # required by Fischman's ISC 4.0
2563 unset ac_cv_func_socket
2564 echo $ac_n "checking for socket""... $ac_c" 1>&6
2565 echo "configure:2566: checking for socket" >&5
2566 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2572 /* System header to define __stub macros and hopefully few prototypes,
2573 which can conflict with char socket(); below. */
2575 /* Override any gcc2 internal prototype to avoid an error. */
2576 /* We use char because int might match the return type of a gcc2
2577 builtin and then its argument prototype would still apply. */
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined (__stub_socket) || defined (__stub___socket)
2593 if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595 eval "ac_cv_func_socket=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 eval "ac_cv_func_socket=no"
2605 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2609 echo "$ac_t""no" 1>&6
2613 if test $socket -eq 0 ; then
2614 unset ac_cv_lib_inet_socket
2615 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2616 echo "configure:2617: checking for socket in -linet" >&5
2617 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 ac_save_LIBS="$LIBS"
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 /* Override any gcc2 internal prototype to avoid an error. */
2627 /* We use char because int might match the return type of a gcc2
2628 builtin and then its argument prototype would still apply. */
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2637 eval "ac_cv_lib_$ac_lib_var=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 eval "ac_cv_lib_$ac_lib_var=no"
2645 LIBS="$ac_save_LIBS"
2648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2652 echo "$ac_t""no" 1>&6
2656 # save results and retry for Tcl
2658 LIBS=$EXP_AND_TCL_LIBS
2659 unset ac_cv_func_socket
2660 echo $ac_n "checking for socket""... $ac_c" 1>&6
2661 echo "configure:2662: checking for socket" >&5
2662 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 /* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char socket(); below. */
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined (__stub_socket) || defined (__stub___socket)
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2691 eval "ac_cv_func_socket=yes"
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2696 eval "ac_cv_func_socket=no"
2701 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2705 echo "$ac_t""no" 1>&6
2709 if test $socket -eq 0 ; then
2710 unset ac_cv_lib_inet_socket
2711 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2712 echo "configure:2713: checking for socket in -linet" >&5
2713 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_save_LIBS="$LIBS"
2719 cat > conftest.$ac_ext <<EOF
2720 #line 2721 "configure"
2721 #include "confdefs.h"
2722 /* Override any gcc2 internal prototype to avoid an error. */
2723 /* We use char because int might match the return type of a gcc2
2724 builtin and then its argument prototype would still apply. */
2731 if { (eval echo configure:2732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2733 eval "ac_cv_lib_$ac_lib_var=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.$ac_ext >&5
2738 eval "ac_cv_lib_$ac_lib_var=no"
2741 LIBS="$ac_save_LIBS"
2744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2745 echo "$ac_t""yes" 1>&6
2748 echo "$ac_t""no" 1>&6
2752 # save Tcl results and retry for Tk
2753 EXP_AND_TCL_LIBS=$LIBS
2754 LIBS=$EXP_AND_TK_LIBS
2755 unset ac_cv_func_socket
2756 echo $ac_n "checking for socket""... $ac_c" 1>&6
2757 echo "configure:2758: checking for socket" >&5
2758 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* System header to define __stub macros and hopefully few prototypes,
2765 which can conflict with char socket(); below. */
2767 /* Override any gcc2 internal prototype to avoid an error. */
2768 /* We use char because int might match the return type of a gcc2
2769 builtin and then its argument prototype would still apply. */
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined (__stub_socket) || defined (__stub___socket)
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2787 eval "ac_cv_func_socket=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 eval "ac_cv_func_socket=no"
2797 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2798 echo "$ac_t""yes" 1>&6
2801 echo "$ac_t""no" 1>&6
2805 if test $socket -eq 0 ; then
2806 unset ac_cv_lib_inet_socket
2807 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2808 echo "configure:2809: checking for socket in -linet" >&5
2809 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 ac_save_LIBS="$LIBS"
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2818 /* Override any gcc2 internal prototype to avoid an error. */
2819 /* We use char because int might match the return type of a gcc2
2820 builtin and then its argument prototype would still apply. */
2827 if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2829 eval "ac_cv_lib_$ac_lib_var=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2834 eval "ac_cv_lib_$ac_lib_var=no"
2837 LIBS="$ac_save_LIBS"
2840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2844 echo "$ac_t""no" 1>&6
2848 # save Tk results and reset for Expect
2849 EXP_AND_TK_LIBS=$LIBS
2852 ######################################################################
2853 unset ac_cv_func_select
2854 echo $ac_n "checking for select""... $ac_c" 1>&6
2855 echo "configure:2856: checking for select" >&5
2856 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char select(); below. */
2865 /* Override any gcc2 internal prototype to avoid an error. */
2866 /* We use char because int might match the return type of a gcc2
2867 builtin and then its argument prototype would still apply. */
2872 /* The GNU C library defines this for functions which it implements
2873 to always fail with ENOSYS. Some functions are actually named
2874 something starting with __ and the normal name is an alias. */
2875 #if defined (__stub_select) || defined (__stub___select)
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2885 eval "ac_cv_func_select=yes"
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 eval "ac_cv_func_select=no"
2895 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2899 echo "$ac_t""no" 1>&6
2903 if test $select -eq 0 ; then
2904 unset ac_cv_lib_inet_select
2905 echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
2906 echo "configure:2907: checking for select in -linet" >&5
2907 ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
2908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 ac_save_LIBS="$LIBS"
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2925 if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2927 eval "ac_cv_lib_$ac_lib_var=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 eval "ac_cv_lib_$ac_lib_var=no"
2935 LIBS="$ac_save_LIBS"
2938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2942 echo "$ac_t""no" 1>&6
2946 # save results and retry for Tcl
2948 LIBS=$EXP_AND_TCL_LIBS
2949 unset ac_cv_func_select
2950 echo $ac_n "checking for select""... $ac_c" 1>&6
2951 echo "configure:2952: checking for select" >&5
2952 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 cat > conftest.$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2958 /* System header to define __stub macros and hopefully few prototypes,
2959 which can conflict with char select(); below. */
2961 /* Override any gcc2 internal prototype to avoid an error. */
2962 /* We use char because int might match the return type of a gcc2
2963 builtin and then its argument prototype would still apply. */
2968 /* The GNU C library defines this for functions which it implements
2969 to always fail with ENOSYS. Some functions are actually named
2970 something starting with __ and the normal name is an alias. */
2971 #if defined (__stub_select) || defined (__stub___select)
2979 if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 eval "ac_cv_func_select=yes"
2983 echo "configure: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 eval "ac_cv_func_select=no"
2991 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2995 echo "$ac_t""no" 1>&6
2999 if test $select -eq 0 ; then
3000 unset ac_cv_lib_inet_select
3001 echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
3002 echo "configure:3003: checking for select in -linet" >&5
3003 ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
3004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 ac_save_LIBS="$LIBS"
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023 eval "ac_cv_lib_$ac_lib_var=yes"
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3028 eval "ac_cv_lib_$ac_lib_var=no"
3031 LIBS="$ac_save_LIBS"
3034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3038 echo "$ac_t""no" 1>&6
3042 # save Tcl results and retry for Tk
3043 EXP_AND_TCL_LIBS=$LIBS
3044 LIBS=$EXP_AND_TK_LIBS
3045 unset ac_cv_func_select
3046 echo $ac_n "checking for select""... $ac_c" 1>&6
3047 echo "configure:3048: checking for select" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char select(); below. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_select) || defined (__stub___select)
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 eval "ac_cv_func_select=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 eval "ac_cv_func_select=no"
3087 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3091 echo "$ac_t""no" 1>&6
3095 if test $select -eq 0 ; then
3096 unset ac_cv_lib_inet_select
3097 echo $ac_n "checking for select in -linet""... $ac_c" 1>&6
3098 echo "configure:3099: checking for select in -linet" >&5
3099 ac_lib_var=`echo inet'_'select | sed 'y%./+-%__p_%'`
3100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 ac_save_LIBS="$LIBS"
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 /* Override any gcc2 internal prototype to avoid an error. */
3109 /* We use char because int might match the return type of a gcc2
3110 builtin and then its argument prototype would still apply. */
3117 if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3119 eval "ac_cv_lib_$ac_lib_var=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3124 eval "ac_cv_lib_$ac_lib_var=no"
3127 LIBS="$ac_save_LIBS"
3130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3131 echo "$ac_t""yes" 1>&6
3134 echo "$ac_t""no" 1>&6
3138 # save Tk results and reset for Expect
3139 EXP_AND_TK_LIBS=$LIBS
3142 ######################################################################
3143 unset ac_cv_func_getpseudotty
3144 echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
3145 echo "configure:3146: checking for getpseudotty" >&5
3146 if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 /* System header to define __stub macros and hopefully few prototypes,
3153 which can conflict with char getpseudotty(); below. */
3155 /* Override any gcc2 internal prototype to avoid an error. */
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3158 char getpseudotty();
3162 /* The GNU C library defines this for functions which it implements
3163 to always fail with ENOSYS. Some functions are actually named
3164 something starting with __ and the normal name is an alias. */
3165 #if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
3173 if { (eval echo configure:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3175 eval "ac_cv_func_getpseudotty=yes"
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 eval "ac_cv_func_getpseudotty=no"
3185 if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3189 echo "$ac_t""no" 1>&6
3193 if test $getpseudotty -eq 0 ; then
3194 unset ac_cv_lib_seq_getpseudotty
3195 echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
3196 echo "configure:3197: checking for getpseudotty in -lseq" >&5
3197 ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
3198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 ac_save_LIBS="$LIBS"
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 /* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3209 char getpseudotty();
3215 if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3217 eval "ac_cv_lib_$ac_lib_var=yes"
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3222 eval "ac_cv_lib_$ac_lib_var=no"
3225 LIBS="$ac_save_LIBS"
3228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3230 ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3232 cat >> confdefs.h <<EOF
3233 #define $ac_tr_lib 1
3239 echo "$ac_t""no" 1>&6
3243 # save results and retry for Tcl
3245 LIBS=$EXP_AND_TCL_LIBS
3246 unset ac_cv_func_getpseudotty
3247 echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
3248 echo "configure:3249: checking for getpseudotty" >&5
3249 if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char getpseudotty(); below. */
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3261 char getpseudotty();
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_func_getpseudotty=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_func_getpseudotty=no"
3288 if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3292 echo "$ac_t""no" 1>&6
3296 if test $getpseudotty -eq 0 ; then
3297 unset ac_cv_lib_seq_getpseudotty
3298 echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
3299 echo "configure:3300: checking for getpseudotty in -lseq" >&5
3300 ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
3301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 ac_save_LIBS="$LIBS"
3306 cat > conftest.$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 /* Override any gcc2 internal prototype to avoid an error. */
3310 /* We use char because int might match the return type of a gcc2
3311 builtin and then its argument prototype would still apply. */
3312 char getpseudotty();
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320 eval "ac_cv_lib_$ac_lib_var=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 eval "ac_cv_lib_$ac_lib_var=no"
3328 LIBS="$ac_save_LIBS"
3331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3335 cat >> confdefs.h <<EOF
3336 #define $ac_tr_lib 1
3342 echo "$ac_t""no" 1>&6
3346 # save Tcl results and retry for Tk
3347 EXP_AND_TCL_LIBS=$LIBS
3348 LIBS=$EXP_AND_TK_LIBS
3349 unset ac_cv_func_getpseudotty
3350 echo $ac_n "checking for getpseudotty""... $ac_c" 1>&6
3351 echo "configure:3352: checking for getpseudotty" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_getpseudotty'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char getpseudotty(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3364 char getpseudotty();
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_func_getpseudotty=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_getpseudotty=no"
3391 if eval "test \"`echo '$ac_cv_func_'getpseudotty`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3395 echo "$ac_t""no" 1>&6
3399 if test $getpseudotty -eq 0 ; then
3400 unset ac_cv_lib_seq_getpseudotty
3401 echo $ac_n "checking for getpseudotty in -lseq""... $ac_c" 1>&6
3402 echo "configure:3403: checking for getpseudotty in -lseq" >&5
3403 ac_lib_var=`echo seq'_'getpseudotty | sed 'y%./+-%__p_%'`
3404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 ac_save_LIBS="$LIBS"
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* Override any gcc2 internal prototype to avoid an error. */
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415 char getpseudotty();
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 eval "ac_cv_lib_$ac_lib_var=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 eval "ac_cv_lib_$ac_lib_var=no"
3431 LIBS="$ac_save_LIBS"
3434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3435 echo "$ac_t""yes" 1>&6
3436 ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3438 cat >> confdefs.h <<EOF
3439 #define $ac_tr_lib 1
3445 echo "$ac_t""no" 1>&6
3449 # save Tk results and reset for Expect
3450 EXP_AND_TK_LIBS=$LIBS
3453 ######################################################################
3454 # Check for FreeBSD/NetBSD openpty()
3455 # CYGNUS LOCAL: Don't do this on Linux. Alpha Linux Red Hat 4.2 has
3456 # openpty, but it doesn't work correctly.
3460 EXP_AND_TCL_LIBS="$EXP_AND_TCL_LIBS -luser32" ;;
3462 unset ac_cv_func_openpty
3463 echo $ac_n "checking for openpty""... $ac_c" 1>&6
3464 echo "configure:3465: checking for openpty" >&5
3465 if eval "test \"`echo '$''{'ac_cv_func_openpty'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char openpty(); below. */
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_openpty) || defined (__stub___openpty)
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 eval "ac_cv_func_openpty=yes"
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3499 eval "ac_cv_func_openpty=no"
3504 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3508 echo "$ac_t""no" 1>&6
3512 if test $openpty -eq 0 ; then
3513 unset ac_cv_lib_util_openpty
3514 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
3515 echo "configure:3516: checking for openpty in -lutil" >&5
3516 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
3517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 ac_save_LIBS="$LIBS"
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536 eval "ac_cv_lib_$ac_lib_var=yes"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3541 eval "ac_cv_lib_$ac_lib_var=no"
3544 LIBS="$ac_save_LIBS"
3547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3550 # we only need to define OPENPTY once, but since we are overriding
3551 # the default behavior, we must also handle augment LIBS too.
3552 # This needn't be done in the 2nd and 3rd tests.
3553 cat >> confdefs.h <<\EOF
3554 #define HAVE_OPENPTY 1
3560 echo "$ac_t""no" 1>&6
3564 # save results and retry for Tcl
3566 LIBS=$EXP_AND_TCL_LIBS
3567 unset ac_cv_func_openpty
3568 echo $ac_n "checking for openpty""... $ac_c" 1>&6
3569 echo "configure:3570: checking for openpty" >&5
3570 if eval "test \"`echo '$''{'ac_cv_func_openpty'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 /* System header to define __stub macros and hopefully few prototypes,
3577 which can conflict with char openpty(); below. */
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3586 /* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589 #if defined (__stub_openpty) || defined (__stub___openpty)
3597 if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599 eval "ac_cv_func_openpty=yes"
3601 echo "configure: failed program was:" >&5
3602 cat conftest.$ac_ext >&5
3604 eval "ac_cv_func_openpty=no"
3609 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3613 echo "$ac_t""no" 1>&6
3617 if test $openpty -eq 0 ; then
3618 unset ac_cv_lib_util_openpty
3619 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
3620 echo "configure:3621: checking for openpty in -lutil" >&5
3621 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS="$LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 eval "ac_cv_lib_$ac_lib_var=no"
3649 LIBS="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3655 cat >> confdefs.h <<\EOF
3656 #define HAVE_OPENPTY 1
3662 echo "$ac_t""no" 1>&6
3666 # save Tcl results and retry for Tk
3667 EXP_AND_TCL_LIBS=$LIBS
3668 LIBS=$EXP_AND_TK_LIBS
3669 unset ac_cv_func_openpty
3670 echo $ac_n "checking for openpty""... $ac_c" 1>&6
3671 echo "configure:3672: checking for openpty" >&5
3672 if eval "test \"`echo '$''{'ac_cv_func_openpty'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 cat > conftest.$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 /* System header to define __stub macros and hopefully few prototypes,
3679 which can conflict with char openpty(); below. */
3681 /* Override any gcc2 internal prototype to avoid an error. */
3682 /* We use char because int might match the return type of a gcc2
3683 builtin and then its argument prototype would still apply. */
3688 /* The GNU C library defines this for functions which it implements
3689 to always fail with ENOSYS. Some functions are actually named
3690 something starting with __ and the normal name is an alias. */
3691 #if defined (__stub_openpty) || defined (__stub___openpty)
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701 eval "ac_cv_func_openpty=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3706 eval "ac_cv_func_openpty=no"
3711 if eval "test \"`echo '$ac_cv_func_'openpty`\" = yes"; then
3712 echo "$ac_t""yes" 1>&6
3715 echo "$ac_t""no" 1>&6
3719 if test $openpty -eq 0 ; then
3720 unset ac_cv_lib_util_openpty
3721 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
3722 echo "configure:3723: checking for openpty in -lutil" >&5
3723 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
3724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 ac_save_LIBS="$LIBS"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 eval "ac_cv_lib_$ac_lib_var=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_lib_$ac_lib_var=no"
3751 LIBS="$ac_save_LIBS"
3754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3757 cat >> confdefs.h <<\EOF
3758 #define HAVE_OPENPTY 1
3764 echo "$ac_t""no" 1>&6
3768 # save Tk results and reset for Expect
3769 EXP_AND_TK_LIBS=$LIBS
3774 ######################################################################
3775 # End of library/func checking
3776 ######################################################################
3778 ######################################################################
3780 # Look for various header files
3782 ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
3783 echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
3784 echo "configure:3785: checking for sys/sysmacros.h" >&5
3785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 #include <sys/sysmacros.h>
3793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3794 { (eval echo configure:3795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3796 if test -z "$ac_err"; then
3798 eval "ac_cv_header_$ac_safe=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_header_$ac_safe=no"
3808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3809 echo "$ac_t""yes" 1>&6
3810 cat >> confdefs.h <<\EOF
3811 #define HAVE_SYSMACROS_H 1
3815 echo "$ac_t""no" 1>&6
3818 ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
3819 echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
3820 echo "configure:3821: checking for stdlib.h" >&5
3821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3830 { (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3832 if test -z "$ac_err"; then
3834 eval "ac_cv_header_$ac_safe=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 eval "ac_cv_header_$ac_safe=no"
3844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3848 echo "$ac_t""no" 1>&6
3849 cat >> confdefs.h <<\EOF
3850 #define NO_STDLIB_H 1
3857 # Look for inttypes.h. Sometimes there are data type conflicts
3858 # with sys/types.h, so we have to use our own special test.
3860 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
3861 echo "configure:3862: checking for inttypes.h" >&5
3862 if eval "test \"`echo '$''{'ac_cv_inttypes_h'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3869 #include <sys/types.h>
3870 #include <inttypes.h>
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3879 ac_cv_inttypes_h="yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 ac_cv_inttypes_h="no"
3889 echo "$ac_t""$ac_cv_inttypes_h" 1>&6
3890 if test x"${ac_cv_inttypes_h}" = x"yes"; then
3891 cat >> confdefs.h <<\EOF
3892 #define HAVE_INTTYPES_H 1
3898 # Oddly, some systems have stdarg but don't support prototypes
3899 # Tcl avoids the whole issue by not using stdarg on UNIX at all!
3901 ac_safe=`echo "varargs.h" | sed 'y%./+-%__p_%'`
3902 echo $ac_n "checking for varargs.h""... $ac_c" 1>&6
3903 echo "configure:3904: checking for varargs.h" >&5
3904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #include <varargs.h>
3912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3913 { (eval echo configure:3914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3915 if test -z "$ac_err"; then
3917 eval "ac_cv_header_$ac_safe=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 eval "ac_cv_header_$ac_safe=no"
3927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 cat >> confdefs.h <<\EOF
3930 #define HAVE_VARARGS_H 1
3934 echo "$ac_t""no" 1>&6
3937 ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
3938 echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
3939 echo "configure:3940: checking for unistd.h" >&5
3940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3949 { (eval echo configure:3950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3951 if test -z "$ac_err"; then
3953 eval "ac_cv_header_$ac_safe=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_header_$ac_safe=no"
3963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 cat >> confdefs.h <<\EOF
3966 #define HAVE_UNISTD_H 1
3970 echo "$ac_t""no" 1>&6
3973 ac_safe=`echo "sys/stropts.h" | sed 'y%./+-%__p_%'`
3974 echo $ac_n "checking for sys/stropts.h""... $ac_c" 1>&6
3975 echo "configure:3976: checking for sys/stropts.h" >&5
3976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 #include <sys/stropts.h>
3984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3985 { (eval echo configure:3986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3987 if test -z "$ac_err"; then
3989 eval "ac_cv_header_$ac_safe=yes"
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
3995 eval "ac_cv_header_$ac_safe=no"
3999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 cat >> confdefs.h <<\EOF
4002 #define HAVE_STROPTS_H 1
4006 echo "$ac_t""no" 1>&6
4009 ac_safe=`echo "sys/sysconfig.h" | sed 'y%./+-%__p_%'`
4010 echo $ac_n "checking for sys/sysconfig.h""... $ac_c" 1>&6
4011 echo "configure:4012: checking for sys/sysconfig.h" >&5
4012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 #include <sys/sysconfig.h>
4020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4021 { (eval echo configure:4022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4023 if test -z "$ac_err"; then
4025 eval "ac_cv_header_$ac_safe=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_header_$ac_safe=no"
4035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 cat >> confdefs.h <<\EOF
4038 #define HAVE_SYSCONF_H 1
4042 echo "$ac_t""no" 1>&6
4045 ac_safe=`echo "sys/fcntl.h" | sed 'y%./+-%__p_%'`
4046 echo $ac_n "checking for sys/fcntl.h""... $ac_c" 1>&6
4047 echo "configure:4048: checking for sys/fcntl.h" >&5
4048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <sys/fcntl.h>
4056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4057 { (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4059 if test -z "$ac_err"; then
4061 eval "ac_cv_header_$ac_safe=yes"
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4067 eval "ac_cv_header_$ac_safe=no"
4071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4072 echo "$ac_t""yes" 1>&6
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_SYS_FCNTL_H 1
4078 echo "$ac_t""no" 1>&6
4081 ac_safe=`echo "sys/select.h" | sed 'y%./+-%__p_%'`
4082 echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6
4083 echo "configure:4084: checking for sys/select.h" >&5
4084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 #include <sys/select.h>
4092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4093 { (eval echo configure:4094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4095 if test -z "$ac_err"; then
4097 eval "ac_cv_header_$ac_safe=yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 eval "ac_cv_header_$ac_safe=no"
4107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 cat >> confdefs.h <<\EOF
4110 #define HAVE_SYS_SELECT_H 1
4114 echo "$ac_t""no" 1>&6
4117 ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
4118 echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
4119 echo "configure:4120: checking for sys/time.h" >&5
4120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/time.h>
4128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4129 { (eval echo configure:4130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4131 if test -z "$ac_err"; then
4133 eval "ac_cv_header_$ac_safe=yes"
4136 echo "configure: failed program was:" >&5
4137 cat conftest.$ac_ext >&5
4139 eval "ac_cv_header_$ac_safe=no"
4143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4144 echo "$ac_t""yes" 1>&6
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_SYS_TIME_H 1
4150 echo "$ac_t""no" 1>&6
4153 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
4154 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
4155 echo "configure:4156: checking for sys/ptem.h" >&5
4156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/ptem.h>
4164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4165 { (eval echo configure:4166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4167 if test -z "$ac_err"; then
4169 eval "ac_cv_header_$ac_safe=yes"
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 eval "ac_cv_header_$ac_safe=no"
4179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4180 echo "$ac_t""yes" 1>&6
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_SYS_PTEM_H 1
4186 echo "$ac_t""no" 1>&6
4189 ac_safe=`echo "sys/strredir.h" | sed 'y%./+-%__p_%'`
4190 echo $ac_n "checking for sys/strredir.h""... $ac_c" 1>&6
4191 echo "configure:4192: checking for sys/strredir.h" >&5
4192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4198 #include <sys/strredir.h>
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 eval "ac_cv_header_$ac_safe=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_header_$ac_safe=no"
4215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_STRREDIR_H 1
4222 echo "$ac_t""no" 1>&6
4225 ac_safe=`echo "sys/strpty.h" | sed 'y%./+-%__p_%'`
4226 echo $ac_n "checking for sys/strpty.h""... $ac_c" 1>&6
4227 echo "configure:4228: checking for sys/strpty.h" >&5
4228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4234 #include <sys/strpty.h>
4236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4237 { (eval echo configure:4238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4239 if test -z "$ac_err"; then
4241 eval "ac_cv_header_$ac_safe=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4247 eval "ac_cv_header_$ac_safe=no"
4251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 cat >> confdefs.h <<\EOF
4254 #define HAVE_STRPTY_H 1
4258 echo "$ac_t""no" 1>&6
4263 echo $ac_n "checking for sys/bsdtypes.h""... $ac_c" 1>&6
4264 echo "configure:4265: checking for sys/bsdtypes.h" >&5
4265 if test "ISC_${ISC}" = "ISC_1" ; then
4266 echo "$ac_t""yes" 1>&6
4267 # if on ISC 1, we need <sys/bsdtypes.h> to get FD_SET macros
4268 for ac_hdr in sys/bsdtypes.h
4270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4272 echo "configure:4273: checking for $ac_hdr" >&5
4273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4282 { (eval echo configure:4283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4284 if test -z "$ac_err"; then
4286 eval "ac_cv_header_$ac_safe=yes"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4292 eval "ac_cv_header_$ac_safe=no"
4296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4299 cat >> confdefs.h <<EOF
4300 #define $ac_tr_hdr 1
4304 echo "$ac_t""no" 1>&6
4309 echo "$ac_t""no" 1>&6
4313 # Look for functions that may be missing
4315 echo $ac_n "checking for memmove""... $ac_c" 1>&6
4316 echo "configure:4317: checking for memmove" >&5
4317 if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* System header to define __stub macros and hopefully few prototypes,
4324 which can conflict with char memmove(); below. */
4326 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4333 /* The GNU C library defines this for functions which it implements
4334 to always fail with ENOSYS. Some functions are actually named
4335 something starting with __ and the normal name is an alias. */
4336 #if defined (__stub_memmove) || defined (__stub___memmove)
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 eval "ac_cv_func_memmove=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4351 eval "ac_cv_func_memmove=no"
4356 if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_MEMMOVE 1
4363 echo "$ac_t""no" 1>&6
4366 echo $ac_n "checking for sysconf""... $ac_c" 1>&6
4367 echo "configure:4368: checking for sysconf" >&5
4368 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
4369 echo $ac_n "(cached) $ac_c" 1>&6
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 /* System header to define __stub macros and hopefully few prototypes,
4375 which can conflict with char sysconf(); below. */
4377 /* Override any gcc2 internal prototype to avoid an error. */
4378 /* We use char because int might match the return type of a gcc2
4379 builtin and then its argument prototype would still apply. */
4384 /* The GNU C library defines this for functions which it implements
4385 to always fail with ENOSYS. Some functions are actually named
4386 something starting with __ and the normal name is an alias. */
4387 #if defined (__stub_sysconf) || defined (__stub___sysconf)
4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4397 eval "ac_cv_func_sysconf=yes"
4399 echo "configure: failed program was:" >&5
4400 cat conftest.$ac_ext >&5
4402 eval "ac_cv_func_sysconf=no"
4407 if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 cat >> confdefs.h <<\EOF
4410 #define HAVE_SYSCONF 1
4414 echo "$ac_t""no" 1>&6
4417 echo $ac_n "checking for strftime""... $ac_c" 1>&6
4418 echo "configure:4419: checking for strftime" >&5
4419 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char strftime(); below. */
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 /* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4435 /* The GNU C library defines this for functions which it implements
4436 to always fail with ENOSYS. Some functions are actually named
4437 something starting with __ and the normal name is an alias. */
4438 #if defined (__stub_strftime) || defined (__stub___strftime)
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4448 eval "ac_cv_func_strftime=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_func_strftime=no"
4458 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4460 cat >> confdefs.h <<\EOF
4461 #define HAVE_STRFTIME 1
4465 echo "$ac_t""no" 1>&6
4468 echo $ac_n "checking for strchr""... $ac_c" 1>&6
4469 echo "configure:4470: checking for strchr" >&5
4470 if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4476 /* System header to define __stub macros and hopefully few prototypes,
4477 which can conflict with char strchr(); below. */
4479 /* Override any gcc2 internal prototype to avoid an error. */
4480 /* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */
4486 /* The GNU C library defines this for functions which it implements
4487 to always fail with ENOSYS. Some functions are actually named
4488 something starting with __ and the normal name is an alias. */
4489 #if defined (__stub_strchr) || defined (__stub___strchr)
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499 eval "ac_cv_func_strchr=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 eval "ac_cv_func_strchr=no"
4509 if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 cat >> confdefs.h <<\EOF
4512 #define HAVE_STRCHR 1
4516 echo "$ac_t""no" 1>&6
4519 echo $ac_n "checking for timezone""... $ac_c" 1>&6
4520 echo "configure:4521: checking for timezone" >&5
4521 if eval "test \"`echo '$''{'ac_cv_func_timezone'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 /* System header to define __stub macros and hopefully few prototypes,
4528 which can conflict with char timezone(); below. */
4530 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4537 /* The GNU C library defines this for functions which it implements
4538 to always fail with ENOSYS. Some functions are actually named
4539 something starting with __ and the normal name is an alias. */
4540 #if defined (__stub_timezone) || defined (__stub___timezone)
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 eval "ac_cv_func_timezone=yes"
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 eval "ac_cv_func_timezone=no"
4560 if eval "test \"`echo '$ac_cv_func_'timezone`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 cat >> confdefs.h <<\EOF
4563 #define HAVE_TIMEZONE 1
4567 echo "$ac_t""no" 1>&6
4571 # dnl check for memcpy by hand
4572 # because Unixware 2.0 handles it specially and refuses to compile
4573 # autoconf's automatic test that is a call with no arguments
4574 echo $ac_n "checking for memcpy""... $ac_c" 1>&6
4575 echo "configure:4576: checking for memcpy" >&5
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4589 echo "$ac_t""yes" 1>&6
4590 cat >> confdefs.h <<\EOF
4591 #define HAVE_MEMCPY 1
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 echo "$ac_t""no" 1>&6
4604 # Some systems only define WNOHANG if _POSIX_SOURCE is defined
4605 # The following merely tests that sys/wait.h can be included
4606 # and if so that WNOHANG is not defined. The only place I've
4608 echo $ac_n "checking if WNOHANG requires _POSIX_SOURCE""... $ac_c" 1>&6
4609 echo "configure:4610: checking if WNOHANG requires _POSIX_SOURCE" >&5
4610 if test "$cross_compiling" = yes; then
4612 *-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
4613 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4621 #include <sys/wait.h>
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4632 echo "$ac_t""yes" 1>&6
4633 cat >> confdefs.h <<\EOF
4634 #define WNOHANG_REQUIRES_POSIX_SOURCE 1
4639 echo "configure: failed program was:" >&5
4640 cat conftest.$ac_ext >&5
4642 echo "$ac_t""no" 1>&6
4649 echo $ac_n "checking if any value exists for WNOHANG""... $ac_c" 1>&6
4650 echo "configure:4651: checking if any value exists for WNOHANG" >&5
4652 if test "$cross_compiling" = yes; then
4654 *-*-cygwin*) echo "$ac_t""yes" 1>&6
4655 cat >> confdefs.h <<\EOF
4656 #define WNOHANG_BACKUP_VALUE 1
4659 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
4663 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4668 #include <sys/wait.h>
4671 FILE *fp = fopen("wnohang","w");
4672 fprintf(fp,"%d",WNOHANG);
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4682 echo "$ac_t""yes" 1>&6
4683 cat >> confdefs.h <<EOF
4684 #define WNOHANG_BACKUP_VALUE `cat wnohang`
4690 echo "configure: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4693 echo "$ac_t""no" 1>&6
4694 cat >> confdefs.h <<\EOF
4695 #define WNOHANG_BACKUP_VALUE 1
4705 # check how signals work
4708 # Check for the data type of the mask used in select().
4709 # This picks up HP braindamage which defines fd_set and then
4710 # proceeds to ignore it and use int.
4711 # Pattern matching on int could be loosened.
4712 # Can't use ac_header_egrep since that doesn't see prototypes with K&R cpp.
4713 echo $ac_n "checking mask type of select""... $ac_c" 1>&6
4714 echo "configure:4715: checking mask type of select" >&5
4715 if egrep "select\(size_t, int" /usr/include/sys/time.h >/dev/null 2>&1; then
4716 echo "$ac_t""int" 1>&6
4717 cat >> confdefs.h <<\EOF
4718 #define SELECT_MASK_TYPE int
4722 echo "$ac_t""none" 1>&6
4726 # FIXME: check if alarm exists
4727 echo $ac_n "checking if signals need to be re-armed""... $ac_c" 1>&6
4728 echo "configure:4729: checking if signals need to be re-armed" >&5
4729 if test "$cross_compiling" = yes; then
4731 *-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
4732 *) echo "configure: warning: Expect can't be cross compiled" 1>&2 ;;
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4741 #define RETSIGTYPE $retsigtype
4743 int signal_rearms = 0;
4746 child_sigint_handler(n)
4752 parent_sigint_handler(n)
4760 signal(SIGINT,parent_sigint_handler);
4763 signal(SIGINT,child_sigint_handler);
4764 kill(getpid(),SIGINT);
4765 kill(getpid(),SIGINT);
4766 kill(getppid(),SIGINT);
4772 exit(signal_rearms);
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4778 echo "$ac_t""yes" 1>&6
4779 cat >> confdefs.h <<\EOF
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 echo "$ac_t""no" 1>&6
4795 # HPUX7 has trouble with the big cat so split it
4796 # Owen Rees <rtor@ansa.co.uk> 29Mar93
4797 SEDDEFS="${SEDDEFS}CONFEOF
4798 cat >> conftest.sed <<CONFEOF
4802 # There are multiple versions of getpty, alas.
4803 # I don't remember who has the first one, but Convex just added one
4804 # so check for it. Unfortunately, there is no header so the only
4805 # reasonable way to make sure is to look it we are on a Convex.
4806 echo $ac_n "checking if on Convex""... $ac_c" 1>&6
4807 echo "configure:4808: checking if on Convex" >&5
4810 c[12]-*-*) convex=1;;
4813 if test $convex -eq 1 ; then
4814 echo "$ac_t""yes" 1>&6
4815 cat >> confdefs.h <<\EOF
4820 echo "$ac_t""no" 1>&6
4825 echo $ac_n "checking if on NeXT""... $ac_c" 1>&6
4826 echo "configure:4827: checking if on NeXT" >&5
4827 if test -r /NextApps -a "$cross_compiling" != "yes" ; then
4828 echo "$ac_t""yes" 1>&6
4829 # "-m" flag suppresses complaints about multiple strtod
4830 EXP_LDFLAGS="$EXP_LDFLAGS -m"
4832 echo "$ac_t""no" 1>&6
4836 echo $ac_n "checking if on HP""... $ac_c" 1>&6
4837 echo "configure:4838: checking if on HP" >&5
4838 if test "x`(uname) 2>/dev/null`" = xHP-UX; then
4839 echo "$ac_t""yes" 1>&6
4842 echo "$ac_t""no" 1>&6
4846 echo $ac_n "checking sane default stty arguments""... $ac_c" 1>&6
4847 echo "configure:4848: checking sane default stty arguments" >&5
4848 DEFAULT_STTY_ARGS="sane"
4850 if test $mach -eq 1 ; then
4851 DEFAULT_STTY_ARGS="cooked"
4854 if test $hp -eq 1 ; then
4855 DEFAULT_STTY_ARGS="sane kill
\15"
4858 echo "$ac_t""$DEFAULT_STTY_ARG" 1>&6
4860 # Look for various features to determine what kind of pty
4861 # we have. For some weird reason, ac_compile_check would not
4862 # work, but ac_test_program does.
4864 echo $ac_n "checking for HP style pty allocation""... $ac_c" 1>&6
4865 echo "configure:4866: checking for HP style pty allocation" >&5
4866 # following test fails on DECstations and other things that don't grok -c
4867 # but that's ok, since they don't have PTYMs anyway
4868 if test -r /dev/ptym/ptyp0 2>/dev/null -a "$cross_compiling" != "yes" ; then
4869 echo "$ac_t""yes" 1>&6
4870 cat >> confdefs.h <<\EOF
4875 echo "$ac_t""no" 1>&6
4878 echo $ac_n "checking for HP style pty trapping""... $ac_c" 1>&6
4879 echo "configure:4880: checking for HP style pty trapping" >&5
4880 cat > conftest.$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 #include <sys/ptyio.h>
4885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4886 egrep "struct.*request_info" >/dev/null 2>&1; then
4888 echo "$ac_t""yes" 1>&6
4889 cat >> confdefs.h <<\EOF
4890 #define HAVE_PTYTRAP 1
4896 echo "$ac_t""no" 1>&6
4902 echo $ac_n "checking for AIX new-style pty allocation""... $ac_c" 1>&6
4903 echo "configure:4904: checking for AIX new-style pty allocation" >&5
4904 if test -r /dev/ptc -a -r /dev/pts -a "$cross_compiling" != "yes" ; then
4905 echo "$ac_t""yes" 1>&6
4906 cat >> confdefs.h <<\EOF
4907 #define HAVE_PTC_PTS 1
4911 echo "$ac_t""no" 1>&6
4914 echo $ac_n "checking for SGI old-style pty allocation""... $ac_c" 1>&6
4915 echo "configure:4916: checking for SGI old-style pty allocation" >&5
4916 if test -r /dev/ptc -a ! -r /dev/pts -a "$cross_compiling" != "yes" ; then
4917 echo "$ac_t""yes" 1>&6
4918 cat >> confdefs.h <<\EOF
4923 echo "$ac_t""no" 1>&6
4926 # On SCO OpenServer, two types of ptys are available: SVR4 streams and c-list.
4927 # The library routines to open the SVR4 ptys are broken on certain systems and
4928 # the SCO command to increase the number of ptys only configure c-list ones
4929 # anyway. So we chose these, which have a special numbering scheme.
4931 echo $ac_n "checking for SCO style pty allocation""... $ac_c" 1>&6
4932 echo "configure:4933: checking for SCO style pty allocation" >&5
4935 *-sco3.2v[45]*) sco_clist_ptys=1 svr4_ptys_broken=1;;
4938 if test x"${sco_clist_ptys}" != x"" ; then
4939 echo "$ac_t""yes" 1>&6
4940 cat >> confdefs.h <<\EOF
4941 #define HAVE_SCO_CLIST_PTYS 1
4945 echo "$ac_t""no" 1>&6
4948 echo $ac_n "checking for SVR4 style pty allocation""... $ac_c" 1>&6
4949 echo "configure:4950: checking for SVR4 style pty allocation" >&5
4950 if test -r /dev/ptmx -a "x$svr4_ptys_broken" = x -a "$cross_compiling" != "yes" ; then
4951 echo "$ac_t""yes" 1>&6
4952 cat >> confdefs.h <<\EOF
4956 # aargg. Some systems need libpt.a to use /dev/ptmx
4957 echo $ac_n "checking for ptsname""... $ac_c" 1>&6
4958 echo "configure:4959: checking for ptsname" >&5
4959 if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 /* System header to define __stub macros and hopefully few prototypes,
4966 which can conflict with char ptsname(); below. */
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4975 /* The GNU C library defines this for functions which it implements
4976 to always fail with ENOSYS. Some functions are actually named
4977 something starting with __ and the normal name is an alias. */
4978 #if defined (__stub_ptsname) || defined (__stub___ptsname)
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 eval "ac_cv_func_ptsname=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_func_ptsname=no"
4998 if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5002 echo "$ac_t""no" 1>&6
5006 # I've never seen Tcl or Tk include -lpt so don't bother with explicit test
5007 echo $ac_n "checking for ptsname""... $ac_c" 1>&6
5008 echo "configure:5009: checking for ptsname" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char ptsname(); below. */
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_ptsname) || defined (__stub___ptsname)
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5038 eval "ac_cv_func_ptsname=yes"
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5043 eval "ac_cv_func_ptsname=no"
5048 if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5052 echo "$ac_t""no" 1>&6
5053 EXP_AND_TCL_LIBS="${EXP_AND_TCL_LIBS} -lpt"
5056 echo $ac_n "checking for ptsname""... $ac_c" 1>&6
5057 echo "configure:5058: checking for ptsname" >&5
5058 if eval "test \"`echo '$''{'ac_cv_func_ptsname'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 cat > conftest.$ac_ext <<EOF
5062 #line 5063 "configure"
5063 #include "confdefs.h"
5064 /* System header to define __stub macros and hopefully few prototypes,
5065 which can conflict with char ptsname(); below. */
5067 /* Override any gcc2 internal prototype to avoid an error. */
5068 /* We use char because int might match the return type of a gcc2
5069 builtin and then its argument prototype would still apply. */
5074 /* The GNU C library defines this for functions which it implements
5075 to always fail with ENOSYS. Some functions are actually named
5076 something starting with __ and the normal name is an alias. */
5077 #if defined (__stub_ptsname) || defined (__stub___ptsname)
5085 if { (eval echo configure:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5087 eval "ac_cv_func_ptsname=yes"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 eval "ac_cv_func_ptsname=no"
5097 if eval "test \"`echo '$ac_cv_func_'ptsname`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5101 echo "$ac_t""no" 1>&6
5102 EXP_AND_TK_LIBS="${EXP_AND_TK_LIBS} -lpt"
5105 # CYGNUS LOCAL: IA-64
5106 # On some systems (e.g., IA-64 Linux), we need to define _XOPEN_SOURCE
5107 # in order to get a declaration for ptsname. It is safe to simply
5108 # define that whenever we are using ptsname.
5109 echo $ac_n "checking for NSIG definition with _XOPEN_SOURCE""... $ac_c" 1>&6
5110 echo "configure:5111: checking for NSIG definition with _XOPEN_SOURCE" >&5
5111 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5115 /* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
5116 #define _XOPEN_SOURCE
5126 if { (eval echo configure:5127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5128 cat >> confdefs.h <<\EOF
5129 #define _XOPEN_SOURCE 1
5132 echo "$ac_t""yes" 1>&6
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 echo "$ac_t""no" 1>&6
5144 echo "$ac_t""no" 1>&6
5147 # In OSF/1 case, SVR4 are somewhat different.
5148 # Gregory Depp <depp@osf.org> 17Aug93
5149 echo $ac_n "checking for OSF/1 style pty allocation""... $ac_c" 1>&6
5150 echo "configure:5151: checking for OSF/1 style pty allocation" >&5
5151 if test -r /dev/ptmx_bsd -a "$cross_compiling" != "yes" ; then
5152 cat >> confdefs.h <<\EOF
5153 #define HAVE_PTMX_BSD 1
5156 echo "$ac_t""yes" 1>&6
5158 echo "$ac_t""no" 1>&6
5161 # Set the pty handling for Cygwin
5163 *-*-cygwin*) cat >> confdefs.h <<\EOF
5172 echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
5173 echo "configure:5174: checking for tcgetattr" >&5
5174 if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 /* System header to define __stub macros and hopefully few prototypes,
5181 which can conflict with char tcgetattr(); below. */
5183 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5190 /* The GNU C library defines this for functions which it implements
5191 to always fail with ENOSYS. Some functions are actually named
5192 something starting with __ and the normal name is an alias. */
5193 #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 eval "ac_cv_func_tcgetattr=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 eval "ac_cv_func_tcgetattr=no"
5213 if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
5214 echo "$ac_t""yes" 1>&6
5217 echo "$ac_t""no" 1>&6
5220 echo $ac_n "checking for tcsetattr""... $ac_c" 1>&6
5221 echo "configure:5222: checking for tcsetattr" >&5
5222 if eval "test \"`echo '$''{'ac_cv_func_tcsetattr'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 /* System header to define __stub macros and hopefully few prototypes,
5229 which can conflict with char tcsetattr(); below. */
5231 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5238 /* The GNU C library defines this for functions which it implements
5239 to always fail with ENOSYS. Some functions are actually named
5240 something starting with __ and the normal name is an alias. */
5241 #if defined (__stub_tcsetattr) || defined (__stub___tcsetattr)
5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5251 eval "ac_cv_func_tcsetattr=yes"
5253 echo "configure: failed program was:" >&5
5254 cat conftest.$ac_ext >&5
5256 eval "ac_cv_func_tcsetattr=no"
5261 if eval "test \"`echo '$ac_cv_func_'tcsetattr`\" = yes"; then
5262 echo "$ac_t""yes" 1>&6
5265 echo "$ac_t""no" 1>&6
5268 if test $tcgetattr -eq 1 -a $tcsetattr -eq 1 ; then
5269 cat >> confdefs.h <<\EOF
5270 #define HAVE_TCSETATTR 1
5273 cat >> confdefs.h <<\EOF
5279 # first check for the pure bsd
5280 echo $ac_n "checking for struct sgttyb""... $ac_c" 1>&6
5281 echo "configure:5282: checking for struct sgttyb" >&5
5282 if test "$cross_compiling" = yes; then
5284 *-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
5285 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5302 echo "$ac_t""yes" 1>&6
5303 cat >> confdefs.h <<\EOF
5304 #define HAVE_SGTTYB 1
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 echo "$ac_t""no" 1>&6
5320 # mach systems have include files for unimplemented features
5321 # so avoid doing following test on those systems
5322 if test $mach -eq 0 ; then
5324 # next check for the older style ttys
5325 # note that if we detect termio.h (only), we still set PTY_TYPE=termios
5326 # since that just controls which of pty_XXXX.c file is use and
5327 # pty_termios.c is set up to handle pty_termio.
5328 echo $ac_n "checking for struct termio""... $ac_c" 1>&6
5329 echo "configure:5330: checking for struct termio" >&5
5330 if test "$cross_compiling" = yes; then
5332 *-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
5333 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5349 cat >> confdefs.h <<\EOF
5350 #define HAVE_TERMIO 1
5354 echo "$ac_t""yes" 1>&6
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 echo "$ac_t""no" 1>&6
5367 # now check for the new style ttys (not yet posix)
5368 echo $ac_n "checking for struct termios""... $ac_c" 1>&6
5369 echo "configure:5370: checking for struct termios" >&5
5370 if test "$cross_compiling" = yes; then
5372 *-*-cygwin*) cat >> confdefs.h <<\EOF
5373 #define HAVE_TERMIOS 1
5377 echo "$ac_t""yes" 1>&6 ;;
5378 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure"
5384 #include "confdefs.h"
5386 # ifdef HAVE_INTTYPES_H
5387 # include <inttypes.h>
5389 # include <termios.h>
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5398 cat >> confdefs.h <<\EOF
5399 #define HAVE_TERMIOS 1
5403 echo "$ac_t""yes" 1>&6
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5409 echo "$ac_t""no" 1>&6
5417 echo $ac_n "checking if TCGETS or TCGETA in termios.h""... $ac_c" 1>&6
5418 echo "configure:5419: checking if TCGETS or TCGETA in termios.h" >&5
5419 if test "$cross_compiling" = yes; then
5421 *-*-cygwin*) cat >> confdefs.h <<\EOF
5422 #define HAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H 1
5425 echo "$ac_t""yes" 1>&6 ;;
5426 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5434 /* including termios.h on Solaris 5.6 fails unless inttypes.h included */
5435 #ifdef HAVE_INTTYPES_H
5436 #include <inttypes.h>
5438 #include <termios.h>
5440 #if defined(TCGETS) || defined(TCGETA)
5447 if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5449 cat >> confdefs.h <<\EOF
5450 #define HAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H 1
5453 echo "$ac_t""yes" 1>&6
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5459 echo "$ac_t""no" 1>&6
5466 echo $ac_n "checking if TIOCGWINSZ in termios.h""... $ac_c" 1>&6
5467 echo "configure:5468: checking if TIOCGWINSZ in termios.h" >&5
5468 if test "$cross_compiling" = yes; then
5470 *-*-cygwin*) cat >> confdefs.h <<\EOF
5471 #define HAVE_TIOCGWINSZ_IN_TERMIOS_H 1
5474 echo "$ac_t""yes" 1>&6 ;;
5475 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5483 /* including termios.h on Solaris 5.6 fails unless inttypes.h included */
5484 #ifdef HAVE_INTTYPES_H
5485 #include <inttypes.h>
5487 #include <termios.h>
5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5498 cat >> confdefs.h <<\EOF
5499 #define HAVE_TIOCGWINSZ_IN_TERMIOS_H 1
5502 echo "$ac_t""yes" 1>&6
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5508 echo "$ac_t""no" 1>&6
5515 # finally check for Cray style ttys
5516 echo $ac_n "checking for Cray-style ptys""... $ac_c" 1>&6
5517 echo "configure:5518: checking for Cray-style ptys" >&5
5519 if test "$cross_compiling" = yes; then
5521 *-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
5522 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5526 cat > conftest.$ac_ext <<EOF
5527 #line 5528 "configure"
5528 #include "confdefs.h"
5539 if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5543 echo "$ac_t""yes" 1>&6
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 echo "$ac_t""no" 1>&6
5557 # Check for select and/or poll. If both exist, we prefer select.
5558 # if neither exists, define SIMPLE_EVENT.
5562 unset ac_cv_func_select
5563 echo $ac_n "checking for select""... $ac_c" 1>&6
5564 echo "configure:5565: checking for select" >&5
5565 if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes,
5572 which can conflict with char select(); below. */
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_select) || defined (__stub___select)
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 eval "ac_cv_func_select=yes"
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 eval "ac_cv_func_select=no"
5604 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5608 echo "$ac_t""no" 1>&6
5611 echo $ac_n "checking for poll""... $ac_c" 1>&6
5612 echo "configure:5613: checking for poll" >&5
5613 if eval "test \"`echo '$''{'ac_cv_func_poll'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 /* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char poll(); below. */
5622 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5629 /* The GNU C library defines this for functions which it implements
5630 to always fail with ENOSYS. Some functions are actually named
5631 something starting with __ and the normal name is an alias. */
5632 #if defined (__stub_poll) || defined (__stub___poll)
5640 if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5642 eval "ac_cv_func_poll=yes"
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5647 eval "ac_cv_func_poll=no"
5652 if eval "test \"`echo '$ac_cv_func_'poll`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5656 echo "$ac_t""no" 1>&6
5659 echo $ac_n "checking event handling""... $ac_c" 1>&6
5660 echo "configure:5661: checking event handling" >&5
5661 if test $select -eq 1 ; then
5664 echo "$ac_t""via select" 1>&6
5665 elif test $poll -eq 1 ; then
5668 echo "$ac_t""via poll" 1>&6
5672 echo "$ac_t""none" 1>&6
5673 cat >> confdefs.h <<\EOF
5674 #define SIMPLE_EVENT 1
5679 for ac_func in _getpty
5681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5682 echo "configure:5683: checking for $ac_func" >&5
5683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5686 cat > conftest.$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5689 /* System header to define __stub macros and hopefully few prototypes,
5690 which can conflict with char $ac_func(); below. */
5692 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */
5699 /* The GNU C library defines this for functions which it implements
5700 to always fail with ENOSYS. Some functions are actually named
5701 something starting with __ and the normal name is an alias. */
5702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5710 if { (eval echo configure:5711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5712 eval "ac_cv_func_$ac_func=yes"
5714 echo "configure: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5717 eval "ac_cv_func_$ac_func=no"
5722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5723 echo "$ac_t""yes" 1>&6
5724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5725 cat >> confdefs.h <<EOF
5726 #define $ac_tr_func 1
5730 echo "$ac_t""no" 1>&6
5734 for ac_func in getpty
5736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5737 echo "configure:5738: checking for $ac_func" >&5
5738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 cat > conftest.$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5744 /* System header to define __stub macros and hopefully few prototypes,
5745 which can conflict with char $ac_func(); below. */
5747 /* Override any gcc2 internal prototype to avoid an error. */
5748 /* We use char because int might match the return type of a gcc2
5749 builtin and then its argument prototype would still apply. */
5754 /* The GNU C library defines this for functions which it implements
5755 to always fail with ENOSYS. Some functions are actually named
5756 something starting with __ and the normal name is an alias. */
5757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5765 if { (eval echo configure:5766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5767 eval "ac_cv_func_$ac_func=yes"
5769 echo "configure: failed program was:" >&5
5770 cat conftest.$ac_ext >&5
5772 eval "ac_cv_func_$ac_func=no"
5777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5778 echo "$ac_t""yes" 1>&6
5779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5780 cat >> confdefs.h <<EOF
5781 #define $ac_tr_func 1
5785 echo "$ac_t""no" 1>&6
5791 # check for timezones
5793 echo $ac_n "checking for SV-style timezone""... $ac_c" 1>&6
5794 echo "configure:5795: checking for SV-style timezone" >&5
5795 if test "$cross_compiling" = yes; then
5797 *-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
5798 *) { echo "configure: error: Expect can't be cross compiled" 1>&2; exit 1; } ;;
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5806 extern char *tzname[2];
5807 extern int daylight;
5816 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5818 cat >> confdefs.h <<\EOF
5819 #define HAVE_SV_TIMEZONE 1
5822 echo "$ac_t""yes" 1>&6
5824 echo "configure: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5827 echo "$ac_t""no" 1>&6
5834 # only look for Tk stuff if we have X11 and user doesn't say not to
5835 # Check whether --with-x or --without-x was given.
5836 if test "${with_x+set}" = set; then
5843 if test "$with_x" = "no"; then
5848 # Ok, lets find the tk source trees so we can use the headers
5849 # If the directory (presumably symlink) named "tk" exists, use that one
5850 # in preference to any others. Same logic is used when choosing library
5851 # and again with Tcl. The search order is the best place to look first, then in
5852 # decreasing significance. The loop breaks if the trigger file is found.
5853 # Note the gross little conversion here of srcdir by cd'ing to the found
5854 # directory. This converts the path from a relative to an absolute, so
5855 # recursive cache variables for the path will work right. We check all
5856 # the possible paths in one loop rather than many seperate loops to speed
5858 # the alternative search directory is involked by --with-tkinclude
5861 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
5862 echo "configure:5863: checking for Tk private headers" >&5
5863 # Check whether --with-tkinclude or --without-tkinclude was given.
5864 if test "${with_tkinclude+set}" = set; then
5865 withval="$with_tkinclude"
5866 with_tkinclude=${withval}
5869 if eval "test \"`echo '$''{'ac_cv_c_tkh'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5873 # first check to see if --with-tkinclude was specified
5874 if test x"${with_tkinclude}" != x ; then
5875 if test -f ${with_tkinclude}/tk.h ; then
5876 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
5877 elif test -f ${with_tkinclude}/generic/tk.h ; then
5878 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
5880 { echo "configure: error: ${with_tkinclude} directory doesn't contain private headers" 1>&2; exit 1; }
5884 # next check if it came with Tk configuration file
5885 if test x"${ac_cv_c_tkconfig}" != x ; then
5886 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
5887 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/../generic; pwd)`
5891 # next check in private source directory
5893 # since ls returns lowest version numbers first, reverse its output
5895 if test x"${ac_cv_c_tkh}" = x ; then
5898 `ls -dr ${srcdir}/../tk[4-9].[0-9] 2>/dev/null` \
5899 ${srcdir}/../../tk \
5900 `ls -dr ${srcdir}/../../tk[4-9].[0-9] 2>/dev/null` \
5901 ${srcdir}/../../../tk \
5902 `ls -dr ${srcdir}/../../../tk[4-9].[0-9] 2>/dev/null ` ; do
5903 if test -f $i/generic/tk.h ; then
5904 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5910 # finally check in a few common install locations
5912 # since ls returns lowest version numbers first, reverse its output
5914 if test x"${ac_cv_c_tkh}" = x ; then
5916 `ls -dr /usr/local/src/tk[4-9].[0-9] 2>/dev/null` \
5917 `ls -dr /usr/local/lib/tk[4-9].[0-9] 2>/dev/null` \
5920 ${prefix}/include ; do
5921 if test -f $i/generic/tk.h ; then
5922 ac_cv_c_tkh=`(cd $i/generic; pwd)`
5928 # see if one is installed
5929 if test x"${ac_cv_c_tkh}" = x ; then
5930 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
5931 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5932 echo "configure:5933: checking for tk.h" >&5
5933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5934 echo $ac_n "(cached) $ac_c" 1>&6
5936 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure"
5938 #include "confdefs.h"
5941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5942 { (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5944 if test -z "$ac_err"; then
5946 eval "ac_cv_header_$ac_safe=yes"
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5952 eval "ac_cv_header_$ac_safe=no"
5956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_cv_c_tkh=installed
5960 echo "$ac_t""no" 1>&6
5968 if test x"${ac_cv_c_tkh}" != x ; then
5970 if test x"${ac_cv_c_tkh}" = x"installed" ; then
5971 echo "$ac_t""is installed" 1>&6
5974 echo "$ac_t""found in ${ac_cv_c_tkh}" 1>&6
5975 # this hack is cause the TKHDIRDASHI won't print if there is a "-I" in it.
5976 TKHDIRDASHI="-I${ac_cv_c_tkh}"
5979 TKHDIRDASHI="# no Tk directory found"
5980 echo "configure: warning: Can't find Tk private headers" 1>&2
5987 if test x"$no_tk" != x"true" ; then
5988 # libexpectk no longer exists
5989 # X_PROGS="expectk \$(LIBEXPECTK)"
5991 # should really generate following symbol, but I'm hitting configure's limit on substs.
5992 X_PROGS_INSTALLED=expectk_installed
5994 X_PROGS="# no X support on this system"
5995 echo "configure: warning: No X based programs will be built" 1>&2
5996 echo " WARNING: Can't find Tk headers or library. You can still"
5997 echo " build expect, but not expectk. See Expect's README for"
5998 echo " information on how to obtain Tk. If Tk is installed, see"
5999 echo " Expect's INSTALL on how to tell configure where Tk is"
6003 # consume these flags so that user can invoke Expect's configure with
6004 # the same command as Tcl's configure
6005 # Check whether --enable-load or --disable-load was given.
6006 if test "${enable_load+set}" = set; then
6007 enableval="$enable_load"
6008 disable_dl=$enableval
6014 # Check whether --enable-gcc or --disable-gcc was given.
6015 if test "${enable_gcc+set}" = set; then
6016 enableval="$enable_gcc"
6017 enable_gcc=$enableval
6024 # Following comment stolen from Tcl's configure.in:
6025 # Note: in the following variable, it's important to use the absolute
6026 # path name of the Tcl directory rather than "..": this is because
6027 # AIX remembers this path and will attempt to use it at run-time to look
6028 # up the Tcl library.
6030 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
6031 EXP_LIB_VERSION=$EXP_VERSION
6033 EXP_LIB_VERSION=$EXP_VERSION_NODOTS
6035 if test $iunix -eq 1 ; then
6036 EXP_LIB_VERSION=$EXP_VERSION_NODOTS
6039 # also remove dots on systems that don't support filenames > 14
6040 # (are there systems which support shared libs and restrict filename lengths!?)
6041 echo $ac_n "checking for long file names""... $ac_c" 1>&6
6042 echo "configure:6043: checking for long file names" >&5
6043 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 ac_cv_sys_long_file_names=yes
6047 # Test for long file names in all the places we know might matter:
6048 # . the current directory, where building will happen
6049 # $prefix/lib where we will be installing things
6050 # $exec_prefix/lib likewise
6051 # eval it to expand exec_prefix.
6052 # $TMPDIR if set, where it might want to write temporary files
6053 # if $TMPDIR is not set:
6054 # /tmp where it might want to write temporary files
6057 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6058 ac_tmpdirs="$TMPDIR"
6060 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6062 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6063 test -d $ac_dir || continue
6064 test -w $ac_dir || continue # It is less confusing to not echo anything here.
6065 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
6066 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
6067 val=`cat $ac_dir/conftest9012345 2>/dev/null`
6068 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
6069 ac_cv_sys_long_file_names=no
6070 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
6073 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
6077 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
6078 if test $ac_cv_sys_long_file_names = yes; then
6079 cat >> confdefs.h <<\EOF
6080 #define HAVE_LONG_FILE_NAMES 1
6085 if test $ac_cv_sys_long_file_names = no; then
6086 EXP_LIB_VERSION=$EXP_VERSION_NODOTS
6089 EXP_BUILD_LIB_SPEC="-L`pwd` -lexpect${EXP_LIB_VERSION}"
6090 EXP_LIB_SPEC="-L\${libdir} -lexpect${EXP_LIB_VERSION}"
6091 EXP_UNSHARED_LIB_FILE=libexpect${EXP_LIB_VERSION}.a
6092 EXP_BUILD_LIB_SPEC=${EXP_UNSHARED_LIB_FILE}
6094 echo $ac_n "checking for type of library to build""... $ac_c" 1>&6
6095 echo "configure:6096: checking for type of library to build" >&5
6096 if test "$enable_shared" = "yes" && test "x${TCL_SHLIB_SUFFIX}" != "x" ; then
6097 EXP_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
6098 # EXP_SHARED_LIB_FILE=libexpect$EXP_LIB_VERSION$TCL_SHLIB_SUFFIX
6099 eval "EXP_SHARED_LIB_FILE=libexpect${TCL_SHARED_LIB_SUFFIX}"
6100 EXP_LIB_FILE=$EXP_SHARED_LIB_FILE
6101 EXP_LIB_FILES="$EXP_SHARED_LIB_FILE $EXP_UNSHARED_LIB_FILE"
6102 echo "$ac_t""both shared and unshared" 1>&6
6105 EXP_SHARED_LIB_FILE="reconfigure_Tcl_for_shared_library"
6106 EXP_LIB_FILE=$EXP_UNSHARED_LIB_FILE
6107 EXP_LIB_FILES="$EXP_UNSHARED_LIB_FILE"
6108 echo "$ac_t""unshared" 1>&6
6112 # We always link expect statically (against $EXP_UNSHARED_LIB_FILE)
6113 # so we can run it out of the build directory without hurting
6114 # ourselves and others.
6116 # now broken out into EXP_AND_TCL_LIBS and EXP_AND_TK_LIBS. Had to do this
6117 # in order to avoid repeating lib specs to which some systems object.
6118 EXP_AND_TCL_LIBS="$EXP_AND_TCL_LIBS $TCL_CC_SEARCH_FLAGS"
6119 EXP_AND_TK_LIBS="$EXP_AND_TK_LIBS $TCL_CC_SEARCH_FLAGS"
6121 # Sigh - Tcl defines SHLIB_LD_LIBS to be either empty or ${LIBS} and
6122 # LIBS is intended to be expanded by Make. But since we're too close
6123 # to hitting config's max symbols, pack everything together here and
6124 # do test ourselves. Ugh.
6126 if test "x$TCL_SHLIB_LD_LIBS" = "x" ; then
6127 EXP_SHLIB_LD_LIBS=""
6129 # seems a little strange to build in Tcl's build-lib, but
6130 # that's what Tk does.
6131 EXP_SHLIB_LD_LIBS="$TCL_BUILD_LIB_SPEC $TCL_DL_LIBS $LIBS -lc"
6134 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
6135 echo "configure:6136: checking for Cygwin32 environment" >&5
6136 if eval "test \"`echo '$''{'ac_cv_cygwin32'+set}'`\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure"
6141 #include "confdefs.h"
6144 int main () { return __CYGWIN__; }
6147 if { (eval echo configure:6148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6151 echo "configure: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6160 echo "$ac_t""$ac_cv_cygwin32" 1>&6
6162 test "$ac_cv_cygwin32" = yes && CYGWIN=yes
6163 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
6164 echo "configure:6165: checking for executable suffix" >&5
6165 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 if test "$CYGWIN" = yes; then
6171 cat > ac_c_test.c << 'EOF'
6173 /* Nothing needed here */
6176 ${CC-cc} -o ac_c_test $CFLAGS $CPPFLAGS $LDFLAGS ac_c_test.c $LIBS 1>&5
6177 ac_cv_exeext=`ls ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
6181 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
6184 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
6185 echo "$ac_t""${ac_cv_exeext}" 1>&6
6188 #--------------------------------------------------------------------
6189 # This section is based on analogous thing in Tk installation. - DEL
6190 # Various manipulations on the search path used at runtime to
6191 # find shared libraries:
6192 # 2. On systems such as AIX and Ultrix that use "-L" as the
6193 # search path option, colons cannot be used to separate
6194 # directories from each other. Change colons to " -L".
6195 # 3. Create two sets of search flags, one for use in cc lines
6196 # and the other for when the linker is invoked directly. In
6197 # the second case, '-Wl,' must be stripped off and commas must
6198 # be replaced by spaces.
6199 #--------------------------------------------------------------------
6201 LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}'
6203 # If Tcl and Expect are installed in different places, adjust the library
6204 # search path to reflect this.
6206 if test "$TCL_EXEC_PREFIX" != "$exec_prefix"; then
6207 LIB_RUNTIME_DIR="${LIB_RUNTIME_DIR}:${TCL_EXEC_PREFIX}"
6210 if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then
6211 LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'`
6214 # The statement below is very tricky! It actually *evaluates* the
6215 # string in TCL_LD_SEARCH_FLAGS, which causes a substitution of the
6216 # variable LIB_RUNTIME_DIR.
6218 eval "EXP_CC_SEARCH_FLAGS=\"$TCL_LD_SEARCH_FLAGS\""
6219 if test "$GCC" = yes; then
6222 EXP_LD_SEARCH_FLAGS=`echo ${EXP_CC_SEARCH_FLAGS} |sed -e "s|-Wl,||g" -e "s|,| |g"`
6226 # Set up makefile substitutions
6257 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6260 # Let make expand exec_prefix.
6261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6263 # Any assignment to VPATH causes Sun make to only execute
6264 # the first set of double-colon rules, so remove it if not needed.
6265 # If there is a colon in the path, we need to keep it.
6266 if test "x$srcdir" = x.; then
6267 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6270 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6272 DEFS=-DHAVE_CONFIG_H
6274 # Without the "./", some shells look in PATH for config.status.
6275 : ${CONFIG_STATUS=./config.status}
6277 echo creating $CONFIG_STATUS
6278 rm -f $CONFIG_STATUS
6279 cat > $CONFIG_STATUS <<EOF
6281 # Generated automatically by configure.
6282 # Run this file to recreate the current configuration.
6283 # This directory was configured as follows,
6284 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6286 # $0 $ac_configure_args
6288 # Compiler output produced by configure, useful for debugging
6289 # configure, is in ./config.log if it exists.
6291 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6294 case "\$ac_option" in
6295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6296 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6297 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6298 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6299 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6301 -help | --help | --hel | --he | --h)
6302 echo "\$ac_cs_usage"; exit 0 ;;
6303 *) echo "\$ac_cs_usage"; exit 1 ;;
6307 ac_given_srcdir=$srcdir
6308 ac_given_INSTALL="$INSTALL"
6310 trap 'rm -fr `echo "Makefile pkgIndex expect_cf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6312 cat >> $CONFIG_STATUS <<EOF
6314 # Protect against being on the right side of a sed subst in config.status.
6315 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6316 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6320 s%@CFLAGS@%$CFLAGS%g
6321 s%@CPPFLAGS@%$CPPFLAGS%g
6322 s%@CXXFLAGS@%$CXXFLAGS%g
6323 s%@FFLAGS@%$FFLAGS%g
6325 s%@LDFLAGS@%$LDFLAGS%g
6327 s%@exec_prefix@%$exec_prefix%g
6328 s%@prefix@%$prefix%g
6329 s%@program_transform_name@%$program_transform_name%g
6330 s%@bindir@%$bindir%g
6331 s%@sbindir@%$sbindir%g
6332 s%@libexecdir@%$libexecdir%g
6333 s%@datadir@%$datadir%g
6334 s%@sysconfdir@%$sysconfdir%g
6335 s%@sharedstatedir@%$sharedstatedir%g
6336 s%@localstatedir@%$localstatedir%g
6337 s%@libdir@%$libdir%g
6338 s%@includedir@%$includedir%g
6339 s%@oldincludedir@%$oldincludedir%g
6340 s%@infodir@%$infodir%g
6341 s%@mandir@%$mandir%g
6343 s%@host_alias@%$host_alias%g
6344 s%@host_cpu@%$host_cpu%g
6345 s%@host_vendor@%$host_vendor%g
6346 s%@host_os@%$host_os%g
6347 s%@target@%$target%g
6348 s%@target_alias@%$target_alias%g
6349 s%@target_cpu@%$target_cpu%g
6350 s%@target_vendor@%$target_vendor%g
6351 s%@target_os@%$target_os%g
6353 s%@build_alias@%$build_alias%g
6354 s%@build_cpu@%$build_cpu%g
6355 s%@build_vendor@%$build_vendor%g
6356 s%@build_os@%$build_os%g
6357 s%@TCL_DEFS@%$TCL_DEFS%g
6358 s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g
6359 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
6360 s%@TCL_LD_FLAGS@%$TCL_LD_FLAGS%g
6361 s%@TCL_RANLIB@%$TCL_RANLIB%g
6362 s%@TCL_BUILD_LIB_SPEC@%$TCL_BUILD_LIB_SPEC%g
6363 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
6364 s%@TCL_SHARED_LIB_SUFFIX@%$TCL_SHARED_LIB_SUFFIX%g
6365 s%@TK_VERSION@%$TK_VERSION%g
6366 s%@TK_DEFS@%$TK_DEFS%g
6367 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
6368 s%@TK_XLIBSW@%$TK_XLIBSW%g
6369 s%@TK_BUILD_LIB_SPEC@%$TK_BUILD_LIB_SPEC%g
6370 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
6372 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6373 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6374 s%@INSTALL_DATA@%$INSTALL_DATA%g
6375 s%@RANLIB@%$RANLIB%g
6376 s%@subdirs@%$subdirs%g
6378 s%@TCLHDIR@%$TCLHDIR%g
6379 s%@TCLHDIRDASHI@%$TCLHDIRDASHI%g
6380 s%@TCL_LIBRARY@%$TCL_LIBRARY%g
6381 s%@ITCLHDIR@%$ITCLHDIR%g
6382 s%@ITCLLIB@%$ITCLLIB%g
6383 s%@TKHDIRDASHI@%$TKHDIRDASHI%g
6384 s%@EXEEXT@%$EXEEXT%g
6385 s%@EXP_MAJOR_VERSION@%$EXP_MAJOR_VERSION%g
6386 s%@EXP_MINOR_VERSION@%$EXP_MINOR_VERSION%g
6387 s%@EXP_MICRO_VERSION@%$EXP_MICRO_VERSION%g
6388 s%@EXP_VERSION_FULL@%$EXP_VERSION_FULL%g
6389 s%@EXP_VERSION@%$EXP_VERSION%g
6390 s%@EXP_CONFIG_SHELL@%$EXP_CONFIG_SHELL%g
6391 s%@EXP_SHARED_LIB_FILE@%$EXP_SHARED_LIB_FILE%g
6392 s%@EXP_UNSHARED_LIB_FILE@%$EXP_UNSHARED_LIB_FILE%g
6393 s%@EXP_SHLIB_CFLAGS@%$EXP_SHLIB_CFLAGS%g
6394 s%@EXP_LIB_FILE@%$EXP_LIB_FILE%g
6395 s%@EXP_LIB_FILES@%$EXP_LIB_FILES%g
6396 s%@EXP_BUILD_LIB_SPEC@%$EXP_BUILD_LIB_SPEC%g
6397 s%@EXP_LIB_SPEC@%$EXP_LIB_SPEC%g
6398 s%@EXP_CFLAGS@%$EXP_CFLAGS%g
6399 s%@EXP_LDFLAGS@%$EXP_LDFLAGS%g
6400 s%@EXP_LD_SEARCH_FLAGS@%$EXP_LD_SEARCH_FLAGS%g
6401 s%@EXP_AND_TCL_LIBS@%$EXP_AND_TCL_LIBS%g
6402 s%@EXP_AND_TK_LIBS@%$EXP_AND_TK_LIBS%g
6403 s%@EXP_SHLIB_LD_LIBS@%$EXP_SHLIB_LD_LIBS%g
6404 s%@X_PROGS@%$X_PROGS%g
6405 s%@PTY_TYPE@%$PTY_TYPE%g
6406 s%@EVENT_TYPE@%$EVENT_TYPE%g
6407 s%@EVENT_ABLE@%$EVENT_ABLE%g
6408 s%@SETUID@%$SETUID%g
6409 s%@UNSHARED_RANLIB@%$UNSHARED_RANLIB%g
6410 s%@DEFAULT_STTY_ARGS@%$DEFAULT_STTY_ARGS%g
6415 cat >> $CONFIG_STATUS <<\EOF
6417 # Split the substitutions into bite-sized pieces for seds with
6418 # small command number limits, like on Digital OSF/1 and HP-UX.
6419 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6420 ac_file=1 # Number of current file.
6421 ac_beg=1 # First line for current file.
6422 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6425 while $ac_more_lines; do
6426 if test $ac_beg -gt 1; then
6427 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6429 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6431 if test ! -s conftest.s$ac_file; then
6433 rm -f conftest.s$ac_file
6435 if test -z "$ac_sed_cmds"; then
6436 ac_sed_cmds="sed -f conftest.s$ac_file"
6438 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6440 ac_file=`expr $ac_file + 1`
6442 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6445 if test -z "$ac_sed_cmds"; then
6450 cat >> $CONFIG_STATUS <<EOF
6452 CONFIG_FILES=\${CONFIG_FILES-"Makefile pkgIndex"}
6454 cat >> $CONFIG_STATUS <<\EOF
6455 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6458 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6459 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6460 *) ac_file_in="${ac_file}.in" ;;
6463 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6465 # Remove last slash and all that follows it. Not all systems have dirname.
6466 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6467 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6468 # The file is in a subdirectory.
6469 test ! -d "$ac_dir" && mkdir "$ac_dir"
6470 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6471 # A "../" for each directory in $ac_dir_suffix.
6472 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6474 ac_dir_suffix= ac_dots=
6477 case "$ac_given_srcdir" in
6479 if test -z "$ac_dots"; then top_srcdir=.
6480 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6481 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6483 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6484 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6487 case "$ac_given_INSTALL" in
6488 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6489 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6492 echo creating "$ac_file"
6494 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6496 *Makefile*) ac_comsub="1i\\
6497 # $configure_input" ;;
6501 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6503 s%@configure_input@%$configure_input%g
6504 s%@srcdir@%$srcdir%g
6505 s%@top_srcdir@%$top_srcdir%g
6506 s%@INSTALL@%$INSTALL%g
6507 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6511 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6512 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6514 # ac_d sets the value in "#define NAME VALUE" lines.
6515 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6516 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6519 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6520 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6521 ac_uB='\([ ]\)%\1#\2define\3'
6524 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6525 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6526 ac_eB='$%\1#\2define\3'
6530 if test "${CONFIG_HEADERS+set}" != set; then
6532 cat >> $CONFIG_STATUS <<EOF
6533 CONFIG_HEADERS="expect_cf.h"
6535 cat >> $CONFIG_STATUS <<\EOF
6537 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6540 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6541 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6542 *) ac_file_in="${ac_file}.in" ;;
6545 echo creating $ac_file
6547 rm -f conftest.frag conftest.in conftest.out
6548 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6549 cat $ac_file_inputs > conftest.in
6553 # Transform confdefs.h into a sed script conftest.vals that substitutes
6554 # the proper values into config.h.in to produce config.h. And first:
6555 # Protect against being on the right side of a sed subst in config.status.
6556 # Protect against being in an unquoted here document in config.status.
6558 cat > conftest.hdr <<\EOF
6561 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6565 sed -n -f conftest.hdr confdefs.h > conftest.vals
6568 # This sed command replaces #undef with comments. This is necessary, for
6569 # example, in the case of _POSIX_SOURCE, which is predefined and required
6570 # on some systems where configure will not decide to define it.
6571 cat >> conftest.vals <<\EOF
6572 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6575 # Break up conftest.vals because some shells have a limit on
6576 # the size of here documents, and old seds have small limits too.
6581 ac_lines=`grep -c . conftest.vals`
6582 # grep -c gives empty output for an empty file on some AIX systems.
6583 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6584 # Write a limited-size here document to conftest.frag.
6585 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6586 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6588 sed -f conftest.frag conftest.in > conftest.out
6590 mv conftest.out conftest.in
6592 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6594 mv conftest.tail conftest.vals
6598 cat >> $CONFIG_STATUS <<\EOF
6599 rm -f conftest.frag conftest.h
6600 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6601 cat conftest.in >> conftest.h
6603 if cmp -s $ac_file conftest.h 2>/dev/null; then
6604 echo "$ac_file is unchanged"
6607 # Remove last slash and all that follows it. Not all systems have dirname.
6608 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6609 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6610 # The file is in a subdirectory.
6611 test ! -d "$ac_dir" && mkdir "$ac_dir"
6614 mv conftest.h $ac_file
6619 cat >> $CONFIG_STATUS <<EOF
6622 cat >> $CONFIG_STATUS <<\EOF
6626 chmod +x $CONFIG_STATUS
6627 rm -fr confdefs* $ac_clean_files
6628 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6630 if test "$no_recursion" != yes; then
6632 # Remove --cache-file and --srcdir arguments so they do not pile up.
6633 ac_sub_configure_args=
6635 for ac_arg in $ac_configure_args; do
6636 if test -n "$ac_prev"; then
6641 -cache-file | --cache-file | --cache-fil | --cache-fi \
6642 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6643 ac_prev=cache_file ;;
6644 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6645 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6647 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6649 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6651 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6655 for ac_config_dir in testsuite; do
6657 # Do not complain, so a configure script can configure whichever
6658 # parts of a large source tree are present.
6659 if test ! -d $srcdir/$ac_config_dir; then
6663 echo configuring in $ac_config_dir
6668 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6670 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6678 # A "../" for each directory in /$ac_config_dir.
6679 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6682 .) # No --srcdir option. We are building in place.
6683 ac_sub_srcdir=$srcdir ;;
6684 /*) # Absolute path.
6685 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6687 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6690 # Check for guested configure; otherwise get Cygnus style configure.
6691 if test -f $ac_sub_srcdir/configure; then
6692 ac_sub_configure=$ac_sub_srcdir/configure
6693 elif test -f $ac_sub_srcdir/configure.in; then
6694 ac_sub_configure=$ac_configure
6696 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6700 # The recursion is here.
6701 if test -n "$ac_sub_configure"; then
6703 # Make the cache file name correct relative to the subdirectory.
6704 case "$cache_file" in
6705 /*) ac_sub_cache_file=$cache_file ;;
6707 ac_sub_cache_file="$ac_dots$cache_file" ;;
6709 case "$ac_given_INSTALL" in
6710 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6711 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6714 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6715 # The eval makes quoting arguments work.
6716 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6719 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }