diff options
author | dsmith <dsmith> | 2008-01-28 15:08:58 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2008-01-28 15:08:58 +0000 |
commit | 0760668552a05a25bc09055ca35b0585c206fd25 (patch) | |
tree | bf23a82c1eaf6fda784ab8c9cf2ddaf2b28ee233 | |
parent | e2de7195efa37921953248d2a4af565e99bfd249 (diff) | |
download | systemtap-steved-0760668552a05a25bc09055ca35b0585c206fd25.tar.gz systemtap-steved-0760668552a05a25bc09055ca35b0585c206fd25.tar.xz systemtap-steved-0760668552a05a25bc09055ca35b0585c206fd25.zip |
2008-01-28 David Smith <dsmith@redhat.com>
PR 5685. From Eugeniy Meshcheryakov <eugen@debian.org>
* configure.ac: If "--enable-sqlite" is specified, define
HAVE_LIBSQLITE3.
* configure: Regenerated.
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.ac | 3 |
3 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2008-01-28 David Smith <dsmith@redhat.com> + + PR 5685. From Eugeniy Meshcheryakov <eugen@debian.org> + * configure.ac: If "--enable-sqlite" is specified, define + HAVE_LIBSQLITE3. + * configure: Regenerated. + 2008-01-26 Frank Ch. Eigler <fche@elastic.org> PR 5673. @@ -6029,6 +6029,10 @@ echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; } if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then sqlite3_LIBS=-lsqlite3 + cat >>confdefs.h <<\_ACEOF +#define HAVE_LIBSQLITE3 1 +_ACEOF + else if test "x$enable_sqlite" != xcheck; then { { echo "$as_me:$LINENO: error: --enable-sqlite was given, but test for sqlite failed diff --git a/configure.ac b/configure.ac index f5fcc968..8ce6da11 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,8 @@ AC_ARG_ENABLE([sqlite], sqlite3_LIBS= AS_IF([test "x$enable_sqlite" != xno], [AC_CHECK_LIB([sqlite3], [sqlite3_open], - [AC_SUBST([sqlite3_LIBS], [-lsqlite3])], + [AC_SUBST([sqlite3_LIBS], [-lsqlite3]) + AC_DEFINE([HAVE_LIBSQLITE3])], [if test "x$enable_sqlite" != xcheck; then AC_MSG_FAILURE([--enable-sqlite was given, but test for sqlite failed]) fi])]) |