summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.in4
-rw-r--r--lib/Makefile.am4
-rw-r--r--lib/getloadavg.c (renamed from plugins/getloadavg.c)0
-rw-r--r--lib/getloadavg.m4 (renamed from getloadavg.m4)0
-rw-r--r--plugins/Makefile.am2
6 files changed, 8 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 71c40cb..3d91926 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,9 @@
3SUBDIRS = lib plugins plugins-scripts 3SUBDIRS = lib plugins plugins-scripts
4 4
5EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \ 5EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \
6contrib nagios-plugins.spec.in getloadavg.m4 6contrib nagios-plugins.spec.in
7
8ACLOCAL_AMFLAGS = -I lib
7 9
8dist-hook: 10dist-hook:
9 sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec 11 sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
diff --git a/configure.in b/configure.in
index 5d9e45c..38c2470 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,4 @@
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2include(`aclocal.m4')
3include(`getloadavg.m4')
4AC_REVISION ($Revision$) 2AC_REVISION ($Revision$)
5AC_INIT(Helper.pm) 3AC_INIT(Helper.pm)
6VER=1.3.0 4VER=1.3.0
@@ -25,7 +23,7 @@ AC_PROG_CC
25AC_PROG_MAKE_SET 23AC_PROG_MAKE_SET
26AC_PROG_AWK 24AC_PROG_AWK
27 25
28AC_FUNC_GETLOADAVG(plugins) 26AC_FUNC_GETLOADAVG([lib])
29ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) 27ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD])
30dnl AM_WITH_REGEX 28dnl AM_WITH_REGEX
31AC_PROG_RANLIB 29AC_PROG_RANLIB
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 7727b28..afa91a6 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1,10 +1,12 @@
1## Process this file with automake to produce Makefile.in 1## Process this file with automake to produce Makefile.in
2 2
3EXTRA_DIST = getloadavg.m4
4
3noinst_LIBRARIES = libnagiosplug.a 5noinst_LIBRARIES = libnagiosplug.a
4 6
5noinst_HEADERS = getopt.h 7noinst_HEADERS = getopt.h
6 8
7libnagiosplug_a_SOURCES = getopt.c getopt1.c 9libnagiosplug_a_SOURCES = getopt.c getopt1.c getloadavg.c
8 10
9INCLUDES = -I$(srcdir) 11INCLUDES = -I$(srcdir)
10 12
diff --git a/plugins/getloadavg.c b/lib/getloadavg.c
index e9c4c08..e9c4c08 100644
--- a/plugins/getloadavg.c
+++ b/lib/getloadavg.c
diff --git a/getloadavg.m4 b/lib/getloadavg.m4
index ff8cf30..ff8cf30 100644
--- a/getloadavg.m4
+++ b/lib/getloadavg.m4
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 7015466..851745a 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -17,7 +17,7 @@ EXTRA_PROGRAMS = check_mysql check_radius check_pgsql check_snmp check_hpjd \
17check_tcp_programs = check_ftp check_imap check_nntp check_pop 17check_tcp_programs = check_ftp check_imap check_nntp check_pop
18 18
19EXTRA_DIST = t utils.c netutils.c popen.c \ 19EXTRA_DIST = t utils.c netutils.c popen.c \
20 snprintf.c getloadavg.c 20 snprintf.c
21 21
22PLUGINHDRS = common.h config.h 22PLUGINHDRS = common.h config.h
23 23