summaryrefslogtreecommitdiffstats
path: root/m4/db.m4
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2007-02-07 23:26:19 +0000
committerNathan Kinder <nkinder@redhat.com>2007-02-07 23:26:19 +0000
commit67be3511d41496ed3c26f082cbf1eb06d96003cb (patch)
tree94fddbe3dfe52a0700d24d49fd22577a2874f476 /m4/db.m4
parent6bf7bfa5eb16d0758795c39ee38eea6e1293072c (diff)
downloadds-67be3511d41496ed3c26f082cbf1eb06d96003cb.tar.gz
ds-67be3511d41496ed3c26f082cbf1eb06d96003cb.tar.xz
ds-67be3511d41496ed3c26f082cbf1eb06d96003cb.zip
Resolves: 227754
Summary: Set library search path when using AC_CHECK_LIB in db.m4.
Diffstat (limited to 'm4/db.m4')
-rw-r--r--m4/db.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/db.m4 b/m4/db.m4
index 2e43b144..61bd34a6 100644
--- a/m4/db.m4
+++ b/m4/db.m4
@@ -1,5 +1,5 @@
# BEGIN COPYRIGHT BLOCK
-# Copyright (C) 2006 Red Hat, Inc.
+# Copyright (C) 2007 Red Hat, Inc.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or
@@ -73,7 +73,10 @@ dnl libname is libdb-maj.min e.g. libdb-4.2
db_libver=${db_ver_maj}.${db_ver_min}
dnl make sure the lib is available
dnl use true so libdb won't be added to LIBS
+save_ldflags="$LDFLAGS"
+LDFLAGS="$db_lib"
AC_CHECK_LIB([db-$db_libver], [db_create], [true],
[AC_MSG_ERROR([$db_incdir/db.h is version $db_libver but libdb-$db_libver not found])],
[$LIBNSL])
+LDFLAGS="$save_ldflags"