From eff443f6307425aa37b56ca19ee32ab21db204d7 Mon Sep 17 00:00:00 2001 From: Nathan Kinder Date: Mon, 20 Aug 2007 17:49:17 +0000 Subject: Resolves: 253582 Summary: Check if pkgconfig is available before trying to use it. --- m4/db.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'm4') 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 -- cgit