AC_SUBST(HaveLibGmp)
AC_SUBST(LibGmp)
+dnl ** check for mingwex library
+AC_CHECK_LIB(mingwex, closedir, HaveLibMingwEx=YES, HaveLibMingwEx=NO)
+AC_SUBST(HaveLibMingwEx)
+
+if test $HaveLibMingwEx = YES ; then
+ AC_DEFINE(HAVE_MINGWEX)
+fi
+
if test "$HaveLibGmp" = "NO"; then
if test "$HostArch_CPP" = "ia64"; then
AC_MSG_ERROR([You need to install libgmp (the in-tree version does not work on IA64).])
#-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.70 2002/04/13 05:18:07 sof Exp $
+# $Id: Makefile,v 1.71 2002/06/25 15:49:58 mthomas Exp $
#
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
PACKAGE_CPP_OPTS += -DHAVE_LIBGMP
endif
+ifeq "$(HaveLibMingwEx)" "YES"
+PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX
+endif
+
ifneq "$(DLLized)" "YES"
EXCLUDED_SRCS += RtsDllMain.c
else
#ifdef USING_LIBBFD
,"bfd", "iberty" /* for debugging */
#endif
+#ifdef HAVE_LIBMINGWEX
+# ifndef INSTALLING /* Bundled Mingw is behind */
+ ,"mingwex"
+# endif
+#endif
#if defined(THREADED_RTS) && !defined(mingw32_TARGET_OS)
,"pthread"
# ifdef osf3_TARGET_OS
/* Define if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
+/* Define if you have the mingwex library. */
+#undef HAVE_MINGWEX
+
/* Define if you have the <windows.h> header file. */
#undef HAVE_WINDOWS_H
LibGmp = @LibGmp@
#-----------------------------------------------------------------------------
+# Mingwex Library
+#
+HaveLibMingwEx = @HaveLibMingwEx@
+
+#-----------------------------------------------------------------------------
# Regex libraries
# (if present in libc use that one, otherwise use the one in the tree)
#