From 538b97cea63d68efbd9c9c67d9c41278cfd1ebad Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Fri, 28 Nov 2008 03:22:39 -0500 Subject: Revert inclusion of libtap into nagiosplugins (except for the NEWS file) This reverts the following commits (latest first): f3e0909, 9f16b54, be8df51, f31cd40, 5270c7d, a25083f, f1bfe40, c503d85 and 6c476db --- configure.in | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 8cae5341..39cd6b71 100644 --- a/configure.in +++ b/configure.in @@ -156,25 +156,11 @@ AC_CHECK_HEADERS(math.h) AC_CHECK_LIB(m,floor,MATHLIBS="-lm") AC_SUBST(MATHLIBS) -dnl Add libtap for tests -AC_ARG_ENABLE(libtap, - AC_HELP_STRING([--enable-libtap], - [Enables configuring of libtap in external/tap/. Run "make tap" to compile (default: no)]), - [enable_libtap=$enableval], - [enable_libtap=no]) -dnl Have to define TAP_DIR so that Makefile can pull it as an extra dist -TAP_DIR=external/tap-1.01 -AC_SUBST(TAP_DIR) -if test "$enable_libtap" = yes; then - dnl Have to have AC_CONFIG_SUBDIRS as a literal - AC_CONFIG_SUBDIRS([external/tap-1.01]) - dnl This is required so that TAP stuff is compiled before the libs and tests - dnl A make install will also install the tap library, but as this is a development tool, this should be okay - INCLUDE_TAP_DIR=$TAP_DIR - AC_SUBST(INCLUDE_TAP_DIR) +dnl Check for libtap, to run perl-like tests +AC_CHECK_LIB(tap, plan_tests, EXTRA_TEST="test_utils test_disk test_tcp test_cmd test_base64" AC_SUBST(EXTRA_TEST) -fi + ) dnl INI Parsing AC_ARG_ENABLE(extra-opts, @@ -184,11 +170,9 @@ AC_ARG_ENABLE(extra-opts, [enable_extra_opts=no]) AM_CONDITIONAL([USE_PARSE_INI],[test "$enable_extra_opts" = "yes"]) if test "$enable_extra_opts" = "yes" ; then + EXTRA_TEST="$EXTRA_TEST test_ini test_opts" + AC_SUBST(EXTRA_TEST) AC_DEFINE(NP_EXTRA_OPTS,[1],[Enable INI file parsing.]) - if test "$enable_libtap" = yes; then - EXTRA_TEST="$EXTRA_TEST test_ini test_opts" - AC_SUBST(EXTRA_TEST) - fi fi dnl Check for PostgreSQL libraries -- cgit v1.2.3-74-g34f1