summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2002-10-22 18:53:10 +0000
committerEzra Peisach <epeisach@mit.edu>2002-10-22 18:53:10 +0000
commit4ecb3164f3932a303485ede355ec91ab6bfb0d1b (patch)
tree4402ee3c326297f38a2af207093121f11f1385f1 /src
parentfcbd19fa1eab345d7ca5a97a2a8d2e63c6e60d26 (diff)
downloadkrb5-4ecb3164f3932a303485ede355ec91ab6bfb0d1b.tar.gz
krb5-4ecb3164f3932a303485ede355ec91ab6bfb0d1b.tar.xz
krb5-4ecb3164f3932a303485ede355ec91ab6bfb0d1b.zip
* configure.in: Autoconf 2.55 will not simply use cpp to test for
header file existance - the header file must be compilable. This will mean that if one header depends on another, it must be included. Test for term.h using the optional fourth argument to AC_CHECK_HEADERS to specify include files to test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14933 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/telnet/telnet/ChangeLog8
-rw-r--r--src/appl/telnet/telnet/configure.in10
2 files changed, 17 insertions, 1 deletions
diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog
index 65875fa5d..72a0e273d 100644
--- a/src/appl/telnet/telnet/ChangeLog
+++ b/src/appl/telnet/telnet/ChangeLog
@@ -1,3 +1,11 @@
+2002-10-22 Ezra Peisach <epeisach@bu.edu>
+
+ * configure.in: Autoconf 2.55 will not simply use cpp to test for
+ header file existance - the header file must be compilable. This
+ will mean that if one header depends on another, it must be
+ included. Test for term.h using the optional fourth argument to
+ AC_CHECK_HEADERS to specify include files to test.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Revert $(S)=>/ change, for Windows support.
diff --git a/src/appl/telnet/telnet/configure.in b/src/appl/telnet/telnet/configure.in
index f1f96fa33..c2fbd6342 100644
--- a/src/appl/telnet/telnet/configure.in
+++ b/src/appl/telnet/telnet/configure.in
@@ -11,7 +11,15 @@ case $krb5_cv_host in
fi
;;
esac
-AC_CHECK_HEADERS(string.h arpa/nameser.h unistd.h sys/select.h stdlib.h arpa/inet.h sys/filio.h curses.h term.h)
+AC_CHECK_HEADERS(string.h arpa/nameser.h unistd.h sys/select.h stdlib.h arpa/inet.h sys/filio.h curses.h)
+dnl
+dnl On some systems, term.h requires curses.h inclusion
+AC_CHECK_HEADERS(term.h,,,dnl
+[#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+])
+dnl
AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP)
LIBS="$LIBS -ltermcap",
AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses",