From 13a523929a719c0b55702c964b1f1c0bbb2c9967 Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Sat, 13 Apr 2002 06:33:12 +0000 Subject: Add newt test --- configure.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/configure.in b/configure.in index 35e600e..86d4740 100644 --- a/configure.in +++ b/configure.in @@ -94,6 +94,26 @@ fi LIBHISTORY=${ac_cv_libhistory} AC_SUBST(LIBHISTORY) +ac_enable_newt=yes +ac_cv_libnewt= +AC_ARG_ENABLE(newt, + [ --disable-newt disable libnewt support [no]], + if test "$enableval" = "no" ; then + AC_MSG_RESULT([support for libnewt disabled]) + ac_enable_newt=no + fi +) +if test "x$ac_enable_newt" = "xyes" ; then + AC_CHECK_LIB(newt, newtInit, + [ + AC_DEFINE_UNQUOTED(HAVE_LIBNEWT,1, + [Define this, if you have libnewt]) + ac_cv_libnewt=-lnewt + ]) +fi +LIBNEWT=${ac_cv_libnewt} +AC_SUBST(LIBNEWT) + dnl these three are for solaris AC_CHECK_LIB(socket, socket) AC_CHECK_LIB(nsl, gethostbyname) -- cgit v1.2.3