diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-14 18:25:10 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-14 18:25:10 +0000 |
commit | c77ffcedc423655621be9803b7f710c758a959b7 (patch) | |
tree | bf61006f5399497f83fdd9de9fddad5048512c28 /configure.in | |
parent | be0cbafb0be470dcd3d29c20d7c5ce503c467bd4 (diff) | |
download | monitoring-plugins-c77ffcedc423655621be9803b7f710c758a959b7.tar.gz |
fix bug with gettimeofday test, improve version/release handling, update rpm spec
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@200 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/configure.in b/configure.in index c6730189..509b6236 100644 --- a/configure.in +++ b/configure.in | |||
@@ -3,11 +3,15 @@ include(`aclocal.m4') | |||
3 | include(`getloadavg.m4') | 3 | include(`getloadavg.m4') |
4 | AC_REVISION ($Revision$) | 4 | AC_REVISION ($Revision$) |
5 | AC_INIT(Helper.pm) | 5 | AC_INIT(Helper.pm) |
6 | PACKAGE_VERSION="1.3.0" | 6 | VER=1.3.0 |
7 | REL=beta2 | ||
8 | AC_SUBST(VER) | ||
9 | AC_SUBST(REL) | ||
10 | PACKAGE_VERSION="${VER}-${REL}" | ||
7 | AC_SUBST(PACKAGE_VERSION) | 11 | AC_SUBST(PACKAGE_VERSION) |
8 | PACKAGE_RELEASE="alpha1" | 12 | PACKAGE_RELEASE="alpha1" |
9 | AC_SUBST(PACKAGE_RELEASE) | 13 | AC_SUBST(PACKAGE_RELEASE) |
10 | AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION}-${PACKAGE_RELEASE}) | 14 | AM_INIT_AUTOMAKE(nagios-plugins,${PACKAGE_VERSION}) |
11 | AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h) | 15 | AM_CONFIG_HEADER(plugins/config.h plugins/common.h plugins/version.h plugins/netutils.h plugins/utils.h plugins/popen.h) |
12 | 16 | ||
13 | AC_PREFIX_DEFAULT(/usr/local/nagios) | 17 | AC_PREFIX_DEFAULT(/usr/local/nagios) |
@@ -366,12 +370,15 @@ AC_TRY_COMPILE([#include <getopt.h> | |||
366 | DEPLIBS="$DEPLIBS libgetopt.a"]) | 370 | DEPLIBS="$DEPLIBS libgetopt.a"]) |
367 | 371 | ||
368 | AC_TRY_COMPILE([#include <sys/time.h>], | 372 | AC_TRY_COMPILE([#include <sys/time.h>], |
369 | [struct timeval *foo;], | 373 | [struct timeval *tv; |
370 | [AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure])]) | 374 | struct timezone *tz;], |
371 | 375 | AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) | |
372 | AC_TRY_COMPILE([#include <sys/time.h>], | 376 | AC_TRY_COMPILE([#include <sys/time.h>], |
373 | [gettimeofday(NULL, NULL);], | 377 | [struct timeval *tv; |
374 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found])) | 378 | struct timezone *tz; |
379 | gettimeofday(tv, tz);], | ||
380 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), | ||
381 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) | ||
375 | 382 | ||
376 | dnl Checks for library functions. | 383 | dnl Checks for library functions. |
377 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul) | 384 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul) |