diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-20 00:41:16 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-20 00:41:16 +0200 |
commit | 36a9b52caeae27e44e9f336e2701bda67a3959a2 (patch) | |
tree | ef38bbae3ae16ee565bd33510d11e91c9455fbca /configure.in | |
parent | a15b062e44ae0da805d5569f25015e28dd8552fd (diff) | |
download | monitoring-plugins-36a9b52caeae27e44e9f336e2701bda67a3959a2.tar.gz |
check_ide_smart: Add support for NetBSD
Thanks to Emmanuel Dreyfus for providing the patch.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/configure.in b/configure.in index bbcbb71c..de75e532 100644 --- a/configure.in +++ b/configure.in | |||
@@ -317,16 +317,34 @@ AS_IF([test "x$with_ldap" != "xno"], [ | |||
317 | ]) | 317 | ]) |
318 | 318 | ||
319 | dnl Check for headers used by check_ide_smart | 319 | dnl Check for headers used by check_ide_smart |
320 | AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) | 320 | case $host in |
321 | if test "$FOUNDINCLUDE" = "yes" ; then | 321 | *linux*) |
322 | AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) | 322 | AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) |
323 | fi | 323 | if test "$FOUNDINCLUDE" = "yes" ; then |
324 | AC_CHECK_HEADER(linux/types.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) | ||
325 | fi | ||
326 | if test "$FOUNDINCLUDE" = "no" ; then | ||
327 | AC_MSG_WARN([Skipping check_ide_smart plugin.]) | ||
328 | AC_MSG_WARN([check_ide_smart requires linux/hdreg.h and linux/types.h.]) | ||
329 | fi | ||
330 | ;; | ||
331 | *netbsd*) | ||
332 | AC_CHECK_HEADER(dev/ata/atareg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) | ||
333 | if test "$FOUNDINCLUDE" = "yes" ; then | ||
334 | AC_CHECK_HEADER(dev/ic/wdcreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) | ||
335 | fi | ||
336 | if test "$FOUNDINCLUDE" = "no" ; then | ||
337 | AC_MSG_WARN([Skipping check_ide_smart plugin.]) | ||
338 | AC_MSG_WARN([check_ide_smart requires dev/ata/atareg.h and dev/ic/wdcreg.h]) | ||
339 | fi | ||
340 | ;; | ||
341 | *) | ||
342 | AC_MSG_WARN([Skipping check_ide_smart plugin.]) | ||
343 | AC_MSG_WARN([check_ide_smart works only on Linux and NetBSD]) | ||
344 | esac | ||
324 | 345 | ||
325 | if test "$FOUNDINCLUDE" = "yes" ; then | 346 | if test "$FOUNDINCLUDE" = "yes" ; then |
326 | EXTRAS="$EXTRAS check_ide_smart" | 347 | EXTRAS="$EXTRAS check_ide_smart" |
327 | else | ||
328 | AC_MSG_WARN([Skipping check_ide_smart plugin.]) | ||
329 | AC_MSG_WARN([check_ide_smart is linux specific. It requires linux/hdreg.h and linux/types.h.]) | ||
330 | fi | 348 | fi |
331 | 349 | ||
332 | dnl Check for mysql libraries | 350 | dnl Check for mysql libraries |