blob: 72c861dd4762c4e09157dda010a59156650b7d16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
AC_DEFUN([AM_IS_WIN32],
[
AC_MSG_CHECKING([for Win32])
case "$host" in
*-mingw*)
os_win32=yes
;;
*)
os_win32=no
;;
esac
AC_MSG_RESULT([$os_win32])
if test "$os_win32" = "yes"; then
if test x$enable_static = xyes -o x$enable_static = x; then
AC_MSG_WARN(
[Disabling static library build, must build as DLL on Windows.])
fi
if test x$enable_shared = xno; then
AC_MSG_WARN(
[Enabling shared library build, must build as DLL on Windows.])
fi
enable_static=no
enable_shared=yes
fi
])
|