From 6b08dd09864e7fbb424296ad490f9fe65c9bc247 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 10 Sep 2021 09:56:57 +0900 Subject: gpgrt-config: Fix behavior when PKG_CONFIG_LIBDIR="". * src/gpgrt-config.in: Correctly detect the case. -- GnuPG-bug-id: 5595 Signed-off-by: NIIBE Yutaka --- src/gpgrt-config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpgrt-config.in b/src/gpgrt-config.in index 6352384..3aaa243 100644 --- a/src/gpgrt-config.in +++ b/src/gpgrt-config.in @@ -470,7 +470,7 @@ while test $# -gt 0; do esac done -if [ x"${PKG_CONFIG_LIBDIR:+set}" = xset -a -z "$PKG_CONFIG_LIBDIR" ]; then +if env | grep '^PKG_CONFIG_LIBDIR=$' >/dev/null 2>&1; then # The variable set as empty, we use PKG_CONFIG_PATH in this case, # ignoring --libdir option if [ -z "$PKG_CONFIG_PATH" ]; then -- cgit v1.2.3