diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2008-06-26 22:00:08 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2008-06-26 22:00:08 +0000 |
commit | 6c476db6dcc7aa70a687d09c10e6ad515c290c23 (patch) | |
tree | 01262e224740a0b01fe018eb167b3c46de3a6ea7 /configure.in | |
parent | 2968a166e2524c5c1c557a12ae8dd6eaf698d7ea (diff) | |
download | monitoring-plugins-6c476db6dcc7aa70a687d09c10e6ad515c290c23.tar.gz |
Adding libtap into distribution to help run C based tests
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2013 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 612d6869..afde8374 100644 --- a/configure.in +++ b/configure.in | |||
@@ -154,12 +154,6 @@ AC_CHECK_HEADERS(math.h) | |||
154 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") | 154 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") |
155 | AC_SUBST(MATHLIBS) | 155 | AC_SUBST(MATHLIBS) |
156 | 156 | ||
157 | dnl Check for libtap, to run perl-like tests | ||
158 | AC_CHECK_LIB(tap, plan_tests, | ||
159 | EXTRA_TEST="test_utils test_disk test_tcp test_cmd test_base64" | ||
160 | AC_SUBST(EXTRA_TEST) | ||
161 | ) | ||
162 | |||
163 | dnl INI Parsing | 157 | dnl INI Parsing |
164 | AC_ARG_ENABLE(extra-opts, | 158 | AC_ARG_ENABLE(extra-opts, |
165 | AC_HELP_STRING([--enable-extra-opts], | 159 | AC_HELP_STRING([--enable-extra-opts], |
@@ -1595,6 +1589,21 @@ if test "$ac_cv_uname_s" = 'SunOS' -a \( "x$ac_cv_prog_ac_ct_AR" = "x" -o "$ac_c | |||
1595 | AC_MSG_ERROR(No ar found for Solaris - is /usr/ccs/bin in PATH?) | 1589 | AC_MSG_ERROR(No ar found for Solaris - is /usr/ccs/bin in PATH?) |
1596 | fi | 1590 | fi |
1597 | 1591 | ||
1592 | AC_ARG_ENABLE(libtap, | ||
1593 | AC_HELP_STRING([--enable-libtap], | ||
1594 | [Enables configuring of libtap in external/tap/. Run "make tap" to compile (default: no)]), | ||
1595 | [enable_libtap=$enableval], | ||
1596 | [enable_libtap=no]) | ||
1597 | dnl Have to define TAP_DIR so that Makefile can pull it as an extra dist | ||
1598 | TAP_DIR=external/tap-1.01 | ||
1599 | AC_SUBST(TAP_DIR) | ||
1600 | if test "$enable_libtap" = yes; then | ||
1601 | dnl Have to have AC_CONFIG_SUBDIRS as a literal | ||
1602 | AC_CONFIG_SUBDIRS([external/tap-1.01]) | ||
1603 | EXTRA_TEST="test_utils test_disk test_tcp test_cmd test_base64" | ||
1604 | AC_SUBST(EXTRA_TEST) | ||
1605 | fi | ||
1606 | |||
1598 | AC_OUTPUT( | 1607 | AC_OUTPUT( |
1599 | Makefile | 1608 | Makefile |
1600 | lib/Makefile | 1609 | lib/Makefile |