X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/58ee1eb660af5f69de403aaf36019f5dcaf9760e..44b2544ecbca17b3903dd56bf499b47063374a13:/src/scripts/lookups-Makefile diff --git a/src/scripts/lookups-Makefile b/src/scripts/lookups-Makefile index e7aeaa08a..51fbd944b 100755 --- a/src/scripts/lookups-Makefile +++ b/src/scripts/lookups-Makefile @@ -76,6 +76,15 @@ want_at_all() { grep -q "^[ $tab]*$re" "$defs_source" } +# Adapted want_at_all above to work for EXPERIMENTAL features +want_experimental() { + local want_name="$1" + local re="EXPERIMENTAL_${want_name}[ $tab]*=[ $tab]*." + env | grep -q "^$re" + if [ $? -eq 0 ]; then return 0; fi + grep -q "^[ $tab]*$re" "$defs_source" +} + # The values of these variables will be emitted into the Makefile. MODS="" @@ -139,6 +148,14 @@ fi OBJ="${OBJ} spf.o" +# Because the variable is EXPERIMENTAL_REDIS and not LOOKUP_REDIS we +# use a different function to check for EXPERIMENTAL_* features +# requested. Don't use the SPF method with dummy functions above. +if want_experimental REDIS +then + OBJ="${OBJ} redis.o" +fi + echo "MODS = $MODS" echo "OBJ = $OBJ"