summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-04-29 18:30:47 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-04-29 18:31:12 -0700
commitc3259803fe255fb55f2cfcdf4cf5bd94ae3befdd (patch)
treec5259fb391aa5cde93ddb04e9f38ff70bed5d833 /m4
parent7460d0f8b02714a7297ccf9349299cdacc2619bf (diff)
downloadgrep-c3259803fe255fb55f2cfcdf4cf5bd94ae3befdd.tar.gz
build: support explicit ‘PCRE_CFLAGS= PCRE_LIBS=’
* m4/pcre.m4 (gl_FUNC_PCRE): Check whether PCRE_CFLAGS and PCRE_LIBS are set, not whether they are set to a nonempty value.
Diffstat (limited to 'm4')
-rw-r--r--m4/pcre.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/pcre.m4 b/m4/pcre.m4
index f4c71c73..40007822 100644
--- a/m4/pcre.m4
+++ b/m4/pcre.m4
@@ -22,7 +22,7 @@ AC_DEFUN([gl_FUNC_PCRE],
if test $test_pcre != no; then
- if test -z "$PCRE_CFLAGS" && test -z "$PCRE_LIBS"; then
+ if test -z "${PCRE_CFLAGS+set}" && test -z "${PCRE_LIBS+set}"; then
PKG_CHECK_MODULES([PCRE], [libpcre2-8], [], [: ${PCRE_LIBS=-lpcre2-8}])
fi