diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-15 20:07:33 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-10-15 20:07:33 (GMT) |
commit | 685c2931dfc3cb67b7605eba143598512a66c037 (patch) | |
tree | 4d73bf71eb19e7c63f3d649fa969c63104a4b456 /configure.ac | |
parent | 0875351a8385d6587133c2af541d102f31c17a46 (diff) | |
parent | bf70f5f847e3407af572d1768cca747af270b993 (diff) | |
download | monitoring-plugins-685c2931dfc3cb67b7605eba143598512a66c037.tar.gz |
Merge branch 'master' into dev/check_ssh-patches
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index a294b00..b5374b2 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -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) |