/* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
#define _XOPEN_SOURCE
#include <signal.h>
+#ifndef NSIG
+#define NSIG _NSIG
+#endif
char junk[NSIG];
int main() {
; return 0; }
EOF
-if { (eval echo configure:5119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _XOPEN_SOURCE 1
# In OSF/1 case, SVR4 are somewhat different.
# Gregory Depp <depp@osf.org> 17Aug93
echo $ac_n "checking for OSF/1 style pty allocation""... $ac_c" 1>&6
-echo "configure:5143: checking for OSF/1 style pty allocation" >&5
+echo "configure:5146: checking for OSF/1 style pty allocation" >&5
if test -r /dev/ptmx_bsd -a "$cross_compiling" != "yes" ; then
cat >> confdefs.h <<\EOF
#define HAVE_PTMX_BSD 1
tcgetattr=0
tcsetattr=0
echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
-echo "configure:5166: checking for tcgetattr" >&5
+echo "configure:5169: checking for tcgetattr" >&5
if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5171 "configure"
+#line 5174 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char tcgetattr(); below. */
; return 0; }
EOF
-if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_tcgetattr=yes"
else
fi
echo $ac_n "checking for tcsetattr""... $ac_c" 1>&6
-echo "configure:5214: checking for tcsetattr" >&5
+echo "configure:5217: checking for tcsetattr" >&5
if eval "test \"`echo '$''{'ac_cv_func_tcsetattr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5219 "configure"
+#line 5222 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char tcsetattr(); below. */
; return 0; }
EOF
-if { (eval echo configure:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_tcsetattr=yes"
else
# first check for the pure bsd
echo $ac_n "checking for struct sgttyb""... $ac_c" 1>&6
-echo "configure:5274: checking for struct sgttyb" >&5
+echo "configure:5277: checking for struct sgttyb" >&5
if test "$cross_compiling" = yes; then
case "${host}" in
*-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
else
cat > conftest.$ac_ext <<EOF
-#line 5283 "configure"
+#line 5286 "configure"
#include "confdefs.h"
#include <sgtty.h>
exit(0);
}
EOF
-if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
echo "$ac_t""yes" 1>&6
cat >> confdefs.h <<\EOF
# since that just controls which of pty_XXXX.c file is use and
# pty_termios.c is set up to handle pty_termio.
echo $ac_n "checking for struct termio""... $ac_c" 1>&6
-echo "configure:5322: checking for struct termio" >&5
+echo "configure:5325: checking for struct termio" >&5
if test "$cross_compiling" = yes; then
case "${host}" in
*-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
else
cat > conftest.$ac_ext <<EOF
-#line 5331 "configure"
+#line 5334 "configure"
#include "confdefs.h"
#include <termio.h>
main()
exit(0);
}
EOF
-if { (eval echo configure:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cat >> confdefs.h <<\EOF
#define HAVE_TERMIO 1
# now check for the new style ttys (not yet posix)
echo $ac_n "checking for struct termios""... $ac_c" 1>&6
-echo "configure:5362: checking for struct termios" >&5
+echo "configure:5365: checking for struct termios" >&5
if test "$cross_compiling" = yes; then
case "${host}" in
*-*-cygwin*) cat >> confdefs.h <<\EOF
else
cat > conftest.$ac_ext <<EOF
-#line 5376 "configure"
+#line 5379 "configure"
#include "confdefs.h"
# ifdef HAVE_INTTYPES_H
exit(0);
}
EOF
-if { (eval echo configure:5389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cat >> confdefs.h <<\EOF
#define HAVE_TERMIOS 1
fi
echo $ac_n "checking if TCGETS or TCGETA in termios.h""... $ac_c" 1>&6
-echo "configure:5411: checking if TCGETS or TCGETA in termios.h" >&5
+echo "configure:5414: checking if TCGETS or TCGETA in termios.h" >&5
if test "$cross_compiling" = yes; then
case "${host}" in
*-*-cygwin*) cat >> confdefs.h <<\EOF
else
cat > conftest.$ac_ext <<EOF
-#line 5424 "configure"
+#line 5427 "configure"
#include "confdefs.h"
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
#endif
}
EOF
-if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cat >> confdefs.h <<\EOF
#define HAVE_TCGETS_OR_TCGETA_IN_TERMIOS_H 1
echo $ac_n "checking if TIOCGWINSZ in termios.h""... $ac_c" 1>&6
-echo "configure:5460: checking if TIOCGWINSZ in termios.h" >&5
+echo "configure:5463: checking if TIOCGWINSZ in termios.h" >&5
if test "$cross_compiling" = yes; then
case "${host}" in
*-*-cygwin*) cat >> confdefs.h <<\EOF
else
cat > conftest.$ac_ext <<EOF
-#line 5473 "configure"
+#line 5476 "configure"
#include "confdefs.h"
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
#endif
}
EOF
-if { (eval echo configure:5489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cat >> confdefs.h <<\EOF
#define HAVE_TIOCGWINSZ_IN_TERMIOS_H 1
# finally check for Cray style ttys
echo $ac_n "checking for Cray-style ptys""... $ac_c" 1>&6
-echo "configure:5510: checking for Cray-style ptys" >&5
+echo "configure:5513: checking for Cray-style ptys" >&5
SETUID=":"
if test "$cross_compiling" = yes; then
case "${host}" in
else
cat > conftest.$ac_ext <<EOF
-#line 5520 "configure"
+#line 5523 "configure"
#include "confdefs.h"
main(){
}
EOF
-if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
PTY_TYPE=unicos
SETUID="chmod u+s"
poll=0
unset ac_cv_func_select
echo $ac_n "checking for select""... $ac_c" 1>&6
-echo "configure:5557: checking for select" >&5
+echo "configure:5560: checking for select" >&5
if eval "test \"`echo '$''{'ac_cv_func_select'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5562 "configure"
+#line 5565 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char select(); below. */
; return 0; }
EOF
-if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_select=yes"
else
fi
echo $ac_n "checking for poll""... $ac_c" 1>&6
-echo "configure:5605: checking for poll" >&5
+echo "configure:5608: checking for poll" >&5
if eval "test \"`echo '$''{'ac_cv_func_poll'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5610 "configure"
+#line 5613 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char poll(); below. */
; return 0; }
EOF
-if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_poll=yes"
else
fi
echo $ac_n "checking event handling""... $ac_c" 1>&6
-echo "configure:5653: checking event handling" >&5
+echo "configure:5656: checking event handling" >&5
if test $select -eq 1 ; then
EVENT_TYPE=select
EVENT_ABLE=event
for ac_func in _getpty
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5675: checking for $ac_func" >&5
+echo "configure:5678: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5680 "configure"
+#line 5683 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
for ac_func in getpty
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5730: checking for $ac_func" >&5
+echo "configure:5733: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5735 "configure"
+#line 5738 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
# check for timezones
#
echo $ac_n "checking for SV-style timezone""... $ac_c" 1>&6
-echo "configure:5787: checking for SV-style timezone" >&5
+echo "configure:5790: checking for SV-style timezone" >&5
if test "$cross_compiling" = yes; then
case "${host}" in
*-*-cygwin*) echo "$ac_t""no" 1>&6 ;;
else
cat > conftest.$ac_ext <<EOF
-#line 5796 "configure"
+#line 5799 "configure"
#include "confdefs.h"
extern char *tzname[2];
exit(0);
}
EOF
-if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cat >> confdefs.h <<\EOF
#define HAVE_SV_TIMEZONE 1
#
#no_tk=true
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
-echo "configure:5855: checking for Tk private headers" >&5
+echo "configure:5858: checking for Tk private headers" >&5
# Check whether --with-tkinclude or --without-tkinclude was given.
if test "${with_tkinclude+set}" = set; then
withval="$with_tkinclude"
if test x"${ac_cv_c_tkh}" = x ; then
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
-echo "configure:5925: checking for tk.h" >&5
+echo "configure:5928: checking for tk.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5930 "configure"
+#line 5933 "configure"
#include "confdefs.h"
#include <tk.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
# also remove dots on systems that don't support filenames > 14
# (are there systems which support shared libs and restrict filename lengths!?)
echo $ac_n "checking for long file names""... $ac_c" 1>&6
-echo "configure:6035: checking for long file names" >&5
+echo "configure:6038: checking for long file names" >&5
if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
EXP_BUILD_LIB_SPEC=${EXP_UNSHARED_LIB_FILE}
echo $ac_n "checking for type of library to build""... $ac_c" 1>&6
-echo "configure:6088: checking for type of library to build" >&5
+echo "configure:6091: checking for type of library to build" >&5
if test "$enable_shared" = "yes" && test "x${TCL_SHLIB_SUFFIX}" != "x" ; then
EXP_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
# EXP_SHARED_LIB_FILE=libexpect$EXP_LIB_VERSION$TCL_SHLIB_SUFFIX
fi
echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
-echo "configure:6128: checking for Cygwin32 environment" >&5
+echo "configure:6131: checking for Cygwin32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6133 "configure"
+#line 6136 "configure"
#include "confdefs.h"
int main() {
int main () { return __CYGWIN__; }
; return 0; }
EOF
-if { (eval echo configure:6140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_cygwin32=yes
else
CYGWIN=
test "$ac_cv_cygwin32" = yes && CYGWIN=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:6157: checking for executable suffix" >&5
+echo "configure:6160: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else