diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-04-13 06:33:12 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-04-13 06:33:12 +0000 |
commit | 13a523929a719c0b55702c964b1f1c0bbb2c9967 (patch) | |
tree | addb06e8f6787fdbfb3d6f8fa080db7238ca9f8b /configure.in | |
parent | b41927c8dbfee8882f9d6e87ce26467dfee5321b (diff) | |
download | plptools-13a523929a719c0b55702c964b1f1c0bbb2c9967.tar.gz plptools-13a523929a719c0b55702c964b1f1c0bbb2c9967.tar.bz2 plptools-13a523929a719c0b55702c964b1f1c0bbb2c9967.zip |
Add newt test
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 20 insertions, 0 deletions
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) |