* configure.ac: Don't AC_MSG_ERROR if don't HAVE_LIBSQLITE3.
* coveragedb.cxx: Compile to nothing unless HAVE_LIBSQLITE3.
* main.cxx: Print no error message on -q if HAVE_LIBSQLITE3.
* configure: Regenerated, looks rosier with HAVE_LIBSQLITE3.
+2007-07-11 Frank Ch. Eigler <fche@elastic.org>
+
+ * configure.ac: Don't AC_MSG_ERROR if don't HAVE_LIBSQLITE3.
+ * coveragedb.cxx: Compile to nothing unless HAVE_LIBSQLITE3.
+ * main.cxx: Print no error message on -q if HAVE_LIBSQLITE3.
+ * configure: Regenerated, looks rosier with HAVE_LIBSQLITE3.
+
2007-07-08 William Cohen <wcohen@redhat.com>
PR 4529
LIBS="-lsqlite3 $LIBS"
-else
-
- { { echo "$as_me:$LINENO: error: missing sqlite development headers/libraries" >&5
-echo "$as_me: error: missing sqlite development headers/libraries" >&2;}
- { (exit 1); exit 1; }; }
fi
sqlite3_LIBS="$LIBS"
SAVE_LIBS="$LIBS"
-AC_CHECK_LIB(sqlite3, sqlite3_open,,[
- AC_MSG_ERROR([missing sqlite development headers/libraries])])
+AC_CHECK_LIB(sqlite3, sqlite3_open)
sqlite3_LIBS="$LIBS"
AC_SUBST(sqlite3_LIBS)
LIBS="$SAVE_LIBS"
#include "session.h"
#include "util.h"
+#ifdef HAVE_LIBSQLITE3
+
#include <iostream>
#include <sqlite3.h>
#include <cstdlib>
sqlite3_close(db);
}
+
+#endif /* HAVE_LIBSQLITE3 */
<< endl
<< " -x PID sets target() to PID" << endl
<< " -t collect probe timing information" << endl
+#ifdef HAVE_LIBSQLITE3
<< " -q generate information on tapset coverage"
+#endif /* HAVE_LIBSQLITE3 */
<< endl
;
// -d: dump safety-related external references
// update the database information
if (!rc && s.tapset_compile_coverage) {
+#ifdef HAVE_LIBSQLITE3
update_coverage_db(s);
+#else
+ cerr << "Coverage database not available without libsqlite3" << endl;
+#endif
}
// Clean up temporary directory. Obviously, be careful with this.