summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34cb16d)
raw | patch | inline | side by side (parent: 34cb16d)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 28 Apr 2006 08:45:24 +0000 (08:45 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Fri, 28 Apr 2006 08:45:24 +0000 (08:45 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1384 f882894a-f735-0410-b71e-b25c423dba1c
configure.in | patch | blob | history | |
plugins-root/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index 1313b2f52e4e6430e14042e9f3e62b0f9f59ddb5..d0a2a528b5c10893ff50c745a04e082fbafbdf1f 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_SUBST(with_trusted_path)
EXTRAS=
+EXTRAS_ROOT=pst3
dnl PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc:/usr/local/bin:/usr/local/sbin:$PATH
LDFLAGS="$LDFLAGS -L."
[Variable list for sscanf of 'ps' output]),
PS_VARLIST=$withval)
-AM_CONDITIONAL(WANT_PST3, false)
-
if test -n "$PS_COMMAND" && test -n "$PS_FORMAT" && test -n "$PS_COLS" && test -n "$PS_VARLIST"; then
ac_cv_ps_command="$PS_COMMAND"
ac_cv_ps_format="$PS_FORMAT"
ac_cv_ps_varlist="[procstat,&procuid,&procppid,&procvsz,&procrss,&procpcpu,procprog,&pos]"
ac_cv_ps_cols=8
AC_MSG_RESULT([using nagios-plugins internal ps for solaris])
- AM_CONDITIONAL(WANT_PST3, true)
+ EXTRAS_ROOT="$EXTRAS_ROOT pst3"
dnl Some gnu/linux systems (debian for one) don't like -axwo and need axwo.
dnl so test for this first...
esac
AC_SUBST(EXTRAS)
+AC_SUBST(EXTRAS_ROOT)
AC_SUBST(EXTRA_NETOBJS)
AC_SUBST(DEPLIBS)
index 54e91b0808b94e047fdff74472611653cc312f40..782a1ca78859d78c07dfcf0da842e54f61adf32b 100644 (file)
--- a/plugins-root/Makefile.am
+++ b/plugins-root/Makefile.am
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
LIBS = @LIBINTL@ @LIBS@ @SSLLIBS@
-EXTRA_PROGRAMS = check_dhcp check_icmp
+libexec_PROGRAMS = check_dhcp check_icmp @EXTRAS_ROOT@
-if WANT_PST3
- EXTRA_PROGRAMS += pst3
- pst3_DEPENDENCIES = pst3.c
-endif
+EXTRA_PROGRAMS = pst3
+
+EXTRA_DIST = pst3.c
BASEOBJS = ../plugins/utils.o ../lib/libnagiosplug.a ../lib/libcoreutils.a
NETOBJS = ../plugins/netutils.o $(BASEOBJS) $(EXTRA_NETOBJS)
test:
perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
-all-local: $(EXTRA_PROGRAMS)
-
setuid_root_mode = 4550
group = nagios