From 4443e2fd95a71840109e7ca6d34f03e7c87dc6f8 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 21 Feb 2013 23:09:39 +0100 Subject: Link with ole32 on WIN32 to fix build --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6c4722f..b60548f 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,22 @@ if test "x$ac_cv_have_endian" = "xno"; then fi fi +# Check for operating system +AC_MSG_CHECKING([whether to enable WIN32 build settings]) +case ${host_os} in + *mingw32*|*cygwin*) + win32=true + AC_MSG_RESULT([yes]) + AC_CHECK_TOOL([WINDRES], [windres], AC_MSG_ERROR([windres not found])) + AC_SUBST(WINDRES) + ;; + *) + win32=false + AC_MSG_RESULT([no]) + ;; +esac +AM_CONDITIONAL(WIN32, test x$win32 = xtrue) + # Cython Python Bindings AC_ARG_WITH([cython], [AS_HELP_STRING([--without-cython], -- cgit v1.1-32-gdbae