summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-09-12 15:42:51 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-09-12 15:42:51 +0100
commit22ed7a5295f196fce32563f6e9c669110dd36f4d (patch)
tree19169afbc1f8c69890ee140c353b20200939d072 /src/scripts
parent8271f864edaf7fb2db0eb3aaa0c4789f55125978 (diff)
downloadexim4-22ed7a5295f196fce32563f6e9c669110dd36f4d.tar.gz
pcre2
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/Configure-Makefile28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/scripts/Configure-Makefile b/src/scripts/Configure-Makefile
index 61368ecb3..df597a864 100755
--- a/src/scripts/Configure-Makefile
+++ b/src/scripts/Configure-Makefile
@@ -150,7 +150,7 @@ rm -f ./$mftepcp ./$mftepcp2
egrep "^[$st]*(AUTH|LOOKUP)_[A-Z0-9_]*[$st]*=[$st]*" $mft | \
sed "s/[$st]*=/='/" | \
sed "s/\$/'/" > $mftt
-egrep "^[$st]*((USE_(OPENSSL|GNUTLS)_PC)|SUPPORT_TLS|USE_GNUTLS|PCRE_CONFIG|AVOID_GNUTLS_PKCS11)[$st]*=[$st]*" $mft | \
+egrep "^[$st]*((USE_(OPENSSL|GNUTLS)_PC)|SUPPORT_TLS|USE_GNUTLS|PCRE2?_CONFIG|AVOID_GNUTLS_PKCS11)[$st]*=[$st]*" $mft | \
sed "s/[$st]*=/='/" | \
sed "s/\$/'/" >> $mftt
if test -s $mftt
@@ -233,12 +233,32 @@ then
PCRE_CONFIG)
case $PCRE_CONFIG in
yes|YES|y|Y)
- cflags=`pcre-config --cflags`
+ echo >&2 "pcre is no longer supported; migrate to pcre2"
+ exit 1
+
+# cflags=`pcre-config --cflags`
+# if [ $? -ne 0 ]; then
+# echo >&2 "*** Missing pcre-config for regular expression support"
+# exit 1
+# fi
+# libs=`pcre-config --libs`
+# if [ ".$cflags" != "." ]; then
+# echo "INCLUDE += $cflags"
+# fi
+# echo "PCRE_LIBS=$libs"
+ ;;
+ esac
+ ;;
+
+ PCRE2_CONFIG)
+ case $PCRE2_CONFIG in
+ yes|YES|y|Y)
+ cflags=`pcre2-config --cflags`
if [ $? -ne 0 ]; then
- echo >&2 "*** Missing pcre-config for regular expression support"
+ echo >&2 "*** Missing pcre2-config for regular expression support"
exit 1
fi
- libs=`pcre-config --libs`
+ libs=`pcre2-config --libs8`
if [ ".$cflags" != "." ]; then
echo "INCLUDE += $cflags"
fi