diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index a294b00f..8594238f 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1,6 +1,6 @@ | |||
| 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 | AC_PREREQ(2.64) | 2 | AC_PREREQ(2.64) |
| 3 | AC_INIT(monitoring-plugins,2.3git) | 3 | AC_INIT(monitoring-plugins,2.4git) |
| 4 | AC_CONFIG_SRCDIR(NPTest.pm) | 4 | AC_CONFIG_SRCDIR(NPTest.pm) |
| 5 | AC_CONFIG_FILES([gl/Makefile]) | 5 | AC_CONFIG_FILES([gl/Makefile]) |
| 6 | AC_CONFIG_AUX_DIR(build-aux) | 6 | AC_CONFIG_AUX_DIR(build-aux) |
| @@ -621,7 +621,6 @@ AC_C_CONST | |||
| 621 | AC_STRUCT_TM | 621 | AC_STRUCT_TM |
| 622 | AC_TYPE_PID_T | 622 | AC_TYPE_PID_T |
| 623 | AC_TYPE_SIZE_T | 623 | AC_TYPE_SIZE_T |
| 624 | AC_TYPE_SIGNAL | ||
| 625 | 624 | ||
| 626 | AC_CACHE_CHECK([for va_copy],ac_cv_HAVE_VA_COPY,[ | 625 | AC_CACHE_CHECK([for va_copy],ac_cv_HAVE_VA_COPY,[ |
| 627 | AC_TRY_LINK([#include <stdarg.h> | 626 | AC_TRY_LINK([#include <stdarg.h> |
| @@ -645,12 +644,16 @@ AC_TRY_COMPILE([#include <sys/time.h>], | |||
| 645 | [struct timeval *tv; | 644 | [struct timeval *tv; |
| 646 | struct timezone *tz;], | 645 | struct timezone *tz;], |
| 647 | AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) | 646 | AC_DEFINE(HAVE_STRUCT_TIMEVAL,1,[Define if we have a timeval structure]) |
| 648 | AC_TRY_COMPILE([#include <sys/time.h>], | 647 | FOUND_STRUCT_TIMEVAL="yes") |
| 649 | [struct timeval *tv; | 648 | |
| 650 | struct timezone *tz; | 649 | if test x"$FOUND_STRUCT_TIMEVAL" = x"yes"; then |
| 651 | gettimeofday(tv, tz);], | 650 | AC_TRY_COMPILE([#include <sys/time.h>], |
| 652 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), | 651 | [struct timeval *tv; |
| 653 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) | 652 | struct timezone *tz; |
| 653 | gettimeofday(tv, tz);], | ||
| 654 | AC_DEFINE(HAVE_GETTIMEOFDAY,1,[Define if gettimeofday is found]), | ||
| 655 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed])) | ||
| 656 | fi | ||
| 654 | 657 | ||
| 655 | dnl Checks for library functions. | 658 | dnl Checks for library functions. |
| 656 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) | 659 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtol strtoul floor) |
| @@ -1921,7 +1924,6 @@ AC_OUTPUT( | |||
| 1921 | perlmods/Makefile | 1924 | perlmods/Makefile |
| 1922 | test.pl | 1925 | test.pl |
| 1923 | pkg/solaris/pkginfo | 1926 | pkg/solaris/pkginfo |
| 1924 | po/Makefile.in | ||
| 1925 | ) | 1927 | ) |
| 1926 | 1928 | ||
| 1927 | 1929 | ||
