diff --git a/configure.ac b/configure.ac
index 1dfdd80..451d0b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,17 +32,38 @@ if test x"$HASQMFGEN" = "x"; then
fi
dnl ---------------------------------------------------------------------
+dnl Test for WIN32
+dnl ---------------------------------------------------------------------
+WIN32="no"
+case "$host" in
+ *-*-mingw*)
+ WIN32="yes"
+ MINGW_EXTRA_LDFLAGS="-no-undefined"
+ ;;
+ *)
+ ;;
+esac
+AM_CONDITIONAL(WIN32, test "${WIN32}" = "yes")
+AC_SUBST([WIN32])
+AC_SUBST([MINGW_EXTRA_LDFLAGS])
+
+dnl ---------------------------------------------------------------------
dnl Checks for libraries.
dnl ---------------------------------------------------------------------
-AC_CHECK_LIB([check], [suite_create], ,
- AC_MSG_ERROR([Missing check libraries.]))
AC_CHECK_LIB([virt], [virConnectOpen], ,
AC_MSG_ERROR([Missing libvirt libraries.]))
AC_CHECK_LIB([pcre], [pcre_compile], ,
AC_MSG_ERROR([Missing PCRE libraries.]))
-AC_CHECK_LIB([udev], [udev_new], ,
- AC_MSG_ERROR([Missing udev libraries.]))
+dnl ---------------------------------------------------------------------
+dnl These libraries are not provided
+dnl ---------------------------------------------------------------------
+if test "${WIN32}" = "no"; then
+ AC_CHECK_LIB([check], [suite_create], ,
+ AC_MSG_ERROR([Missing check libraries.]))
+ AC_CHECK_LIB([udev], [udev_new], ,
+ AC_MSG_ERROR([Missing udev libraries.]))
+fi
dnl ---------------------------------------------------------------------
dnl Checks for header files.
--
__ __
.-----.| |_.-----.| |--.-----.-----.
|__ --|| _| _ || <| -__|__ --|
|_____||____|_____||__|__|_____|_____|
.----------------------------------.
( ajs(a)redhat.com || 919.754.4187 )
`----------------------------------'
_______________________________________________
Matahari mailing list
Matahari(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/matahari