diff options
| author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-02-19 00:45:43 +0000 |
|---|---|---|
| committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-02-19 00:45:43 +0000 |
| commit | 0490d0830234062b4055e4b0fd2131fb54d7743f (patch) | |
| tree | 7adba02daf24b8169265659714b2cf69fe648efa | |
| parent | 841198076937d15155a6812472ad4da0d789649c (diff) | |
| download | monitoring-plugins-0490d0830234062b4055e4b0fd2131fb54d7743f.tar.gz | |
Move getloadavg to lib directory. Must run "aclocal -I lib"
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@345 f882894a-f735-0410-b71e-b25c423dba1c
| -rw-r--r-- | Makefile.am | 4 | ||||
| -rw-r--r-- | configure.in | 4 | ||||
| -rw-r--r-- | lib/Makefile.am | 4 | ||||
| -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.am | 2 |
6 files changed, 8 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index 71c40cb9..3d919261 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -3,7 +3,9 @@ | |||
| 3 | SUBDIRS = lib plugins plugins-scripts | 3 | SUBDIRS = lib plugins plugins-scripts |
| 4 | 4 | ||
| 5 | EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \ | 5 | EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \ |
| 6 | contrib nagios-plugins.spec.in getloadavg.m4 | 6 | contrib nagios-plugins.spec.in |
| 7 | |||
| 8 | ACLOCAL_AMFLAGS = -I lib | ||
| 7 | 9 | ||
| 8 | dist-hook: | 10 | dist-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 5d9e45cd..38c2470e 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1,6 +1,4 @@ | |||
| 1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. |
| 2 | include(`aclocal.m4') | ||
| 3 | include(`getloadavg.m4') | ||
| 4 | AC_REVISION ($Revision$) | 2 | AC_REVISION ($Revision$) |
| 5 | AC_INIT(Helper.pm) | 3 | AC_INIT(Helper.pm) |
| 6 | VER=1.3.0 | 4 | VER=1.3.0 |
| @@ -25,7 +23,7 @@ AC_PROG_CC | |||
| 25 | AC_PROG_MAKE_SET | 23 | AC_PROG_MAKE_SET |
| 26 | AC_PROG_AWK | 24 | AC_PROG_AWK |
| 27 | 25 | ||
| 28 | AC_FUNC_GETLOADAVG(plugins) | 26 | AC_FUNC_GETLOADAVG([lib]) |
| 29 | ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) | 27 | ifdef([AC_FUNC_STRTOD],[AC_FUNC_STRTOD],[AM_FUNC_STRTOD]) |
| 30 | dnl AM_WITH_REGEX | 28 | dnl AM_WITH_REGEX |
| 31 | AC_PROG_RANLIB | 29 | AC_PROG_RANLIB |
diff --git a/lib/Makefile.am b/lib/Makefile.am index 7727b282..afa91a6d 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 | ||
| 3 | EXTRA_DIST = getloadavg.m4 | ||
| 4 | |||
| 3 | noinst_LIBRARIES = libnagiosplug.a | 5 | noinst_LIBRARIES = libnagiosplug.a |
| 4 | 6 | ||
| 5 | noinst_HEADERS = getopt.h | 7 | noinst_HEADERS = getopt.h |
| 6 | 8 | ||
| 7 | libnagiosplug_a_SOURCES = getopt.c getopt1.c | 9 | libnagiosplug_a_SOURCES = getopt.c getopt1.c getloadavg.c |
| 8 | 10 | ||
| 9 | INCLUDES = -I$(srcdir) | 11 | INCLUDES = -I$(srcdir) |
| 10 | 12 | ||
diff --git a/plugins/getloadavg.c b/lib/getloadavg.c index e9c4c088..e9c4c088 100644 --- a/plugins/getloadavg.c +++ b/lib/getloadavg.c | |||
diff --git a/getloadavg.m4 b/lib/getloadavg.m4 index ff8cf309..ff8cf309 100644 --- a/getloadavg.m4 +++ b/lib/getloadavg.m4 | |||
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 7015466d..851745a7 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 \ | |||
| 17 | check_tcp_programs = check_ftp check_imap check_nntp check_pop | 17 | check_tcp_programs = check_ftp check_imap check_nntp check_pop |
| 18 | 18 | ||
| 19 | EXTRA_DIST = t utils.c netutils.c popen.c \ | 19 | EXTRA_DIST = t utils.c netutils.c popen.c \ |
| 20 | snprintf.c getloadavg.c | 20 | snprintf.c |
| 21 | 21 | ||
| 22 | PLUGINHDRS = common.h config.h | 22 | PLUGINHDRS = common.h config.h |
| 23 | 23 | ||
