summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in32
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
319dnl Check for headers used by check_ide_smart 319dnl Check for headers used by check_ide_smart
320AC_CHECK_HEADER(linux/hdreg.h, FOUNDINCLUDE=yes, FOUNDINCLUDE=no) 320case $host in
321if 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)
323fi 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])
344esac
324 345
325if test "$FOUNDINCLUDE" = "yes" ; then 346if test "$FOUNDINCLUDE" = "yes" ; then
326 EXTRAS="$EXTRAS check_ide_smart" 347 EXTRAS="$EXTRAS check_ide_smart"
327else
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.])
330fi 348fi
331 349
332dnl Check for mysql libraries 350dnl Check for mysql libraries