summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-02-26 20:03:28 (GMT)
committerhobbs <hobbs>2002-02-26 20:03:28 (GMT)
commit715f64dcd530ec9d25427311edbd638c3c3092cb (patch)
tree158a051c6af4ce91828e41bda3aa481675c3d6fa /unix/tcl.m4
parent434f12d55669f76e9a0ce7b0898354b1cbc9414a (diff)
downloadtcl-715f64dcd530ec9d25427311edbd638c3c3092cb.zip
tcl-715f64dcd530ec9d25427311edbd638c3c3092cb.tar.gz
tcl-715f64dcd530ec9d25427311edbd638c3c3092cb.tar.bz2
* unix/configure:
* unix/tcl.m4 (SC_SERIAL_PORT): added sys/modem.h check and defined _XOPEN_SOURCE_EXTENDED for HP-11 to get updated header decls.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 5640546..13234da 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -791,6 +791,9 @@ dnl AC_CHECK_TOOL(AR, ar, :)
LD_SEARCH_FLAGS=""
;;
HP-UX-*.11.*)
+ # Use updated header definitions where possible
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
+
SHLIB_SUFFIX=".sl"
AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no)
if test "$tcl_ok" = yes; then
@@ -1447,6 +1450,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
# Results:
#
# Defines only one of the following vars:
+# HAVE_SYS_MODEM_H
# USE_TERMIOS
# USE_TERMIO
# USE_SGTTY
@@ -1454,6 +1458,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
#--------------------------------------------------------------------
AC_DEFUN(SC_SERIAL_PORT, [
+ AC_CHECK_HEADERS(sys/modem.h)
AC_MSG_CHECKING([termios vs. termio vs. sgtty])
AC_CACHE_VAL(tcl_cv_api_serial, [
AC_TRY_RUN([
@@ -1582,7 +1587,6 @@ int main() {
#--------------------------------------------------------------------
AC_DEFUN(SC_MISSING_POSIX_HEADERS, [
-
AC_MSG_CHECKING(dirent.h)
AC_TRY_LINK([#include <sys/types.h>
#include <dirent.h>], [