]> git.cworth.org Git - notmuch/blobdiff - configure
configure: fix reference to possibly undefined $PKG_CONFIG_PATH
[notmuch] / configure
index fad2655c39ad4d2b6fbb0c85042f70059b15d418..c16d18dce13c35c127c84fffaacefad651b45d81 100755 (executable)
--- a/configure
+++ b/configure
@@ -604,7 +604,7 @@ fi
 if ! pkg-config --exists zlib; then
   ${CC} -o compat/gen_zlib_pc "$srcdir"/compat/gen_zlib_pc.c >/dev/null 2>&1 &&
   compat/gen_zlib_pc > compat/zlib.pc &&
-  PKG_CONFIG_PATH="$PKG_CONFIG_PATH":compat &&
+  PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}compat &&
   export PKG_CONFIG_PATH
   rm -f compat/gen_zlib_pc
 fi