- 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.
# -----------------------------------------------------------------------------
-# $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
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