summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-08-20 17:49:17 +0000
committerNathan Kinder <nkinder@redhat.com>2007-08-20 17:49:17 +0000
commiteff443f6307425aa37b56ca19ee32ab21db204d7 (patch)
treef73d117ac69062d8f5c5b2a2281c109e7b10c9c2 /m4
parent7afaf4974625c0d80d81cfbedbfe9635f21d5a57 (diff)
downloadds-eff443f6307425aa37b56ca19ee32ab21db204d7.tar.gz
ds-eff443f6307425aa37b56ca19ee32ab21db204d7.tar.xz
ds-eff443f6307425aa37b56ca19ee32ab21db204d7.zip
Resolves: 253582
Summary: Check if pkgconfig is available before trying to use it.
Diffstat (limited to 'm4')
-rw-r--r--m4/db.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/db.m4 b/m4/db.m4
index 79da2f04..24927a87 100644
--- a/m4/db.m4
+++ b/m4/db.m4
@@ -84,8 +84,12 @@ LDFLAGS="$save_ldflags"
# last resort
# Although the other db_* variables are correctly assigned at this point,
# db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
-if $PKG_CONFIG --exists db; then
- db_bindir=`$PKG_CONFIG --variable=bindir db`
+if test -n "$PKG_CONFIG"; then
+ if $PKG_CONFIG --exists db; then
+ db_bindir=`$PKG_CONFIG --variable=bindir db`
+ else
+ db_bindir=/usr/bin
+ fi
else
db_bindir=/usr/bin
fi