summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
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