diff options
author | Gerhard Lausser <lausser@users.sourceforge.net> | 2013-10-01 08:57:10 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-28 22:08:08 +0100 |
commit | 6986aa1d0a352d8d02eed4896034631fffd25a27 (patch) | |
tree | a61dccd97b1a00a52a7d48787e12facc361d37af /configure.ac | |
parent | f3b789a526af04434813c3d49dfb28b106ad691c (diff) | |
download | monitoring-plugins-6986aa1d0a352d8d02eed4896034631fffd25a27.tar.gz |
Don't let check_disk hang on hanging file systems
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 59875e5a..6dacd4f4 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -544,6 +544,18 @@ else | |||
544 | with_gnutls="no" | 544 | with_gnutls="no" |
545 | fi | 545 | fi |
546 | 546 | ||
547 | dnl Check for POSIX thread libraries | ||
548 | AC_CHECK_HEADERS(pthread.h) | ||
549 | case $host in | ||
550 | *sun* | *solaris*) | ||
551 | AC_CHECK_LIB(pthread,pthread_create,THRLIBS="-lpthread -lrt") | ||
552 | ;; | ||
553 | *) | ||
554 | AC_CHECK_LIB(pthread,pthread_create,THRLIBS="-lpthread") | ||
555 | ;; | ||
556 | esac | ||
557 | AC_SUBST(THRLIBS) | ||
558 | |||
547 | dnl | 559 | dnl |
548 | dnl Checks for header files. | 560 | dnl Checks for header files. |
549 | dnl | 561 | dnl |