From 6b1a02746ee21861ddbd7bb7ccd46d0674904417 Mon Sep 17 00:00:00 2001 From: wcohen Date: Fri, 29 Jun 2007 18:13:49 +0000 Subject: PR 4529 * configure.ac: * Makefile.am: Limit where sqlite3 linked in. * configure: * Makefile.in: Regenerate. * coveragedb.cxx (update_coverage_db): Remove unneeded print. * coveragedb.cxx (increment_element): Correct formatting. --- configure.ac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ec619094..ae1207dc 100644 --- a/configure.ac +++ b/configure.ac @@ -137,11 +137,16 @@ else # We built our own and stap_LDFLAGS points at the install. stap_LIBS="-ldw -lebl" fi -AC_SUBST(stap_LIBS) -AC_MSG_NOTICE([stap will link $stap_LIBS]) -AC_CHECK_HEADER(sqlite3.h, AC_CHECK_LIB(sqlite3, sqlite3_open, +save_LIBS="$LIBS" +LIBS="$stap_LIBS" +AC_CHECK_LIB(sqlite3, sqlite3_open,,[ AC_MSG_ERROR([missing sqlite development headers/libraries])]) +stap_LIBS="$LIBS" +LIBS="$SAVE_LIBS" + +AC_SUBST(stap_LIBS) +AC_MSG_NOTICE([stap will link $stap_LIBS]) dnl Plop in the build (configure) date date=`date +%Y-%m-%d` -- cgit