mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
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:
committed by
Martin Sustrik
parent
3dbd5d5872
commit
925595259b
27
acinclude.m4
27
acinclude.m4
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user