! check for termcap-related functions changed,
authorAlex Kirhenshtein <alk@netxms.org>
Tue, 1 Jun 2004 21:34:57 +0000 (21:34 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Tue, 1 Jun 2004 21:34:57 +0000 (21:34 +0000)
  now: termcap->ncurses->curses->blow up.

configure.ac

index 3e077d9..412c4b1 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.11 2004-05-31 06:46:28 victor Exp $
+# $Id: configure.ac,v 1.12 2004-06-01 21:34:57 alk Exp $
 #
 # Process this file with autoconf to produce a configure script.
 #
@@ -129,8 +129,10 @@ AC_PROG_LIBTOOL
 
 AC_CHECK_LIB(crypto, DH_new)
 AC_CHECK_LIB(ssl, SSL_accept)
-AC_CHECK_LIB(termcap, tgetstr)
-AC_CHECK_LIB(readline, readline)
+AC_CHECK_LIB(termcap, tgetstr, [], [AC_CHECK_LIB(ncurses, tgetstr, [], AC_CHECK_LIB(curses, tgetstr))])
+AC_CHECK_LIB(readline, readline,
+                                [],
+                                [AC_MSG_ERROR([readline broken])])
 AC_CHECK_LIB(socket, if_nameindex)
 
 # --------------------------------------------------------------------------