From 7ca3bb74a9acbcccc6dd8a84d03120e3a684fa9b Mon Sep 17 00:00:00 2001 From: mthomas Date: Tue, 25 Jun 2002 15:49:59 +0000 Subject: [PATCH] [project @ 2002-06-25 15:49:58 by mthomas] Latest Mingw32 needs libmingwex, but for now not when installing as bundled gcc is out of date. --- configure.in | 8 ++++++++ ghc/rts/Makefile | 6 +++++- ghc/rts/rts.conf.in | 5 +++++ mk/config.h.in | 3 +++ mk/config.mk.in | 5 +++++ 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 8855fcf..7ee231c 100644 --- a/configure.in +++ b/configure.in @@ -916,6 +916,14 @@ AC_CHECK_LIB(gmp, __gmpz_fdiv_qr, HaveLibGmp=YES; LibGmp=gmp, 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).]) diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index 9c3e312..d1334a3 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $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). @@ -43,6 +43,10 @@ ifeq "$(HaveLibGmp)" "YES" PACKAGE_CPP_OPTS += -DHAVE_LIBGMP endif +ifeq "$(HaveLibMingwEx)" "YES" +PACKAGE_CPP_OPTS += -DHAVE_LIBMINGWEX +endif + ifneq "$(DLLized)" "YES" EXCLUDED_SRCS += RtsDllMain.c else diff --git a/ghc/rts/rts.conf.in b/ghc/rts/rts.conf.in index c4e1c3f..2868deb 100644 --- a/ghc/rts/rts.conf.in +++ b/ghc/rts/rts.conf.in @@ -30,6 +30,11 @@ Package { #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 diff --git a/mk/config.h.in b/mk/config.h.in index 837e852..7631924 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -649,6 +649,9 @@ /* 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 header file. */ #undef HAVE_WINDOWS_H diff --git a/mk/config.mk.in b/mk/config.mk.in index f36f483..4ba14ba 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -676,6 +676,11 @@ HaveLibGmp = @HaveLibGmp@ LibGmp = @LibGmp@ #----------------------------------------------------------------------------- +# Mingwex Library +# +HaveLibMingwEx = @HaveLibMingwEx@ + +#----------------------------------------------------------------------------- # Regex libraries # (if present in libc use that one, otherwise use the one in the tree) # -- 1.7.10.4