diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-02-24 16:41:06 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-02-24 16:41:06 +0000 |
commit | 6aa8cc090daa646f6d3d7b5af2ab5e59dd7d9b18 (patch) | |
tree | c47865be2c6a40a09c029e4aa330bc3864afd463 | |
parent | 4a7401ea71fc7735be5fe371eb155284eb3a9583 (diff) | |
download | monitoring-plugins-6aa8cc090daa646f6d3d7b5af2ab5e59dd7d9b18.tar.gz |
Use the installed tap library instead of requesting a compiled object
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1318 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 19 | ||||
-rw-r--r-- | plugins/tests/Makefile.am | 2 |
2 files changed, 9 insertions, 12 deletions
diff --git a/configure.in b/configure.in index 16e22a68..ddbde159 100644 --- a/configure.in +++ b/configure.in | |||
@@ -74,17 +74,6 @@ AC_SUBST(with_nagios_group) | |||
74 | INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" | 74 | INSTALL_OPTS="-o $with_nagios_user -g $with_nagios_group" |
75 | AC_SUBST(INSTALL_OPTS) | 75 | AC_SUBST(INSTALL_OPTS) |
76 | 76 | ||
77 | AC_ARG_WITH(libtap-srcdir, | ||
78 | ACX_HELP_STRING([--with-libtap-srcdir=path], | ||
79 | [full path to a compiled libtap srcdir]), | ||
80 | EXTRA_TEST=test_utils | ||
81 | EXTRA_TAPOBJ=$withval/tap.o | ||
82 | AC_SUBST(EXTRA_TEST) | ||
83 | AC_SUBST(EXTRA_TAPOBJ) | ||
84 | LDFLAGS="$LDFLAGS -L$withval" | ||
85 | CPPFLAGS="$CPPFLAGS -I$withval" | ||
86 | ) | ||
87 | |||
88 | AC_ARG_WITH(trusted_path, | 77 | AC_ARG_WITH(trusted_path, |
89 | ACX_HELP_STRING([--with-trusted-path=PATH], | 78 | ACX_HELP_STRING([--with-trusted-path=PATH], |
90 | [sets trusted path for executables called by scripts (default=/bin:/sbin:/usr/bin:/usr/sbin)]), | 79 | [sets trusted path for executables called by scripts (default=/bin:/sbin:/usr/bin:/usr/sbin)]), |
@@ -177,6 +166,14 @@ AC_CHECK_HEADERS(math.h) | |||
177 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") | 166 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") |
178 | AC_SUBST(MATHLIBS) | 167 | AC_SUBST(MATHLIBS) |
179 | 168 | ||
169 | dnl Check for libtap, to run perl-like tests | ||
170 | AC_CHECK_LIB(tap, plan_tests, | ||
171 | TAPLIBS="-ltap" | ||
172 | EXTRA_TEST=test_utils | ||
173 | AC_SUBST(EXTRA_TEST) | ||
174 | AC_SUBST(TAPLIBS) | ||
175 | ) | ||
176 | |||
180 | dnl Check for PostgreSQL libraries | 177 | dnl Check for PostgreSQL libraries |
181 | _SAVEDLIBS="$LIBS" | 178 | _SAVEDLIBS="$LIBS" |
182 | _SAVEDCPPFLAGS="$CPPFLAGS" | 179 | _SAVEDCPPFLAGS="$CPPFLAGS" |
diff --git a/plugins/tests/Makefile.am b/plugins/tests/Makefile.am index cd4caeb9..c73725de 100644 --- a/plugins/tests/Makefile.am +++ b/plugins/tests/Makefile.am | |||
@@ -16,7 +16,7 @@ LIBS = @LIBINTL@ | |||
16 | test_utils_SOURCES = test_utils.c | 16 | test_utils_SOURCES = test_utils.c |
17 | test_utils_CFLAGS = -g -I.. | 17 | test_utils_CFLAGS = -g -I.. |
18 | test_utils_LDFLAGS = -L.. | 18 | test_utils_LDFLAGS = -L.. |
19 | test_utils_LDADD = ../utils.o @EXTRA_TAPOBJ@ | 19 | test_utils_LDADD = ../utils.o $(TAPLIBS) |
20 | 20 | ||
21 | test: ${noinst_PROGRAMS} | 21 | test: ${noinst_PROGRAMS} |
22 | perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) | 22 | perl -MTest::Harness -e '$$Test::Harness::switches=""; runtests(map {$$_ .= ".t"} @ARGV)' $(EXTRA_PROGRAMS) |