[project @ 2002-02-13 11:51:40 by simonmar]
authorsimonmar <unknown>
Wed, 13 Feb 2002 11:51:40 +0000 (11:51 +0000)
committersimonmar <unknown>
Wed, 13 Feb 2002 11:51:40 +0000 (11:51 +0000)
- Detect presence of a POSIX-compatible regex interface in configure,
  and omit Text.Regex.Posix (and hence Text.Regex) if it is missing.
  ToDo: pull in a suitably-licensed implementation of POSIX regex
  to be used in the event that the system doesn't supply one.

- Rename old HaveRegex to HaveGNURegex.

Makefile

index 6d91aa4..47276f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.15 2002/02/12 15:17:34 simonmar Exp $
+# $Id: Makefile,v 1.16 2002/02/13 11:51:40 simonmar Exp $
 
 TOP=..
 include $(TOP)/mk/boilerplate.mk
@@ -39,6 +39,10 @@ ALL_DIRS = \
 
 PACKAGE = base
 
+ifneq "$(HavePosixRegex)" "YES"
+EXCLUDED_SRCS += Text/Regex/Posix.hsc Text/Regex.hs
+endif
+
 SRC_HC_OPTS += -fglasgow-exts -cpp -Iinclude
 SRC_HSC2HS_OPTS += -Iinclude