MinGW32 build fixes

After long discussions in IRC we came to conclusion that there is no
elegant way to handle static builds with MinGW32. This patch sets
AC_DISABLE_STATIC by default on MinGW32 and Cygwin

Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
This commit is contained in:
Mikko Koppanen
2010-11-17 15:06:51 +01:00
committed by Martin Sustrik
parent 3dbd5d5872
commit 925595259b
2 changed files with 41 additions and 5 deletions

View File

@@ -1,3 +1,30 @@
dnl ##############################################################################
dnl # AC_CONFIG_LIBTOOL #
dnl # Configure libtool. $host_os needs to be set before calling this macro #
dnl ##############################################################################
AC_DEFUN([AC_CONFIG_LIBTOOL], [{
if test "x${host_os}" = "x"; then
AC_MSG_ERROR([AC@&t@_CANONICAL_HOST not called before calling AC@&t@_CONFIG_LIBTOOL])
fi
# Libtool configuration for different targets
case "${host_os}" in
*mingw32*|*cygwin*)
# Disable static build by default
AC_DISABLE_STATIC
;;
*)
# Everything else with static enabled
AC_ENABLE_STATIC
;;
esac
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
}])
dnl ##############################################################################
dnl # AC_CHECK_LANG_ICC #
dnl # Check if the current language is compiled using ICC #