You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2010/02/23 19:38:35 UTC

svn commit: r915473 - in /incubator/trafficserver/traffic/trunk: README configure.ac

Author: zwoop
Date: Tue Feb 23 18:38:35 2010
New Revision: 915473

URL: http://svn.apache.org/viewvc?rev=915473&view=rev
Log:
TS-128: Added some info to the README, and error out in configure if no backend DBs are activated.

Modified:
    incubator/trafficserver/traffic/trunk/README
    incubator/trafficserver/traffic/trunk/configure.ac

Modified: incubator/trafficserver/traffic/trunk/README
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/README?rev=915473&r1=915472&r2=915473&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/README (original)
+++ incubator/trafficserver/traffic/trunk/README Tue Feb 23 18:38:35 2010
@@ -62,6 +62,8 @@
     libsqlite3-dev (or optionally, libdb-dev)
     libpcre3-dev
 
+For using sqlite3, we only support v3.5 or later (basically, we require the v2 APIs).
+
 
 4. BUILDING FROM SVN REPO
 

Modified: incubator/trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/configure.ac?rev=915473&r1=915472&r2=915473&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/configure.ac (original)
+++ incubator/trafficserver/traffic/trunk/configure.ac Tue Feb 23 18:38:35 2010
@@ -284,6 +284,12 @@
   [with_libdb=no]
 )
 AC_MSG_RESULT([$with_libdb])
+
+# Make sure there is at least one supported backend DB for SimpleDBM
+if test "${with_sqlite3}" = "no" -a "${with_libdb}" = "no"; then
+   AC_MSG_ERROR([Need at least one DB backend, --with-sqlite3 and --with-libdb are supported])
+fi
+
           
 #
 # Installation directories
@@ -486,7 +492,7 @@
 )
 
 if test "x${with_sqlite3}" = "xyes"; then
-  AC_CHECK_LIB([sqlite3], [sqlite3_open], 
+  AC_CHECK_LIB([sqlite3], [sqlite3_open_v2], 
     [AC_SUBST([LIBSQLITE3], ["-lsqlite3"])
     ],
     [AC_MSG_FAILURE([check for sqlite3 failed. Have you installed sqlite3-devel?])],