瀏覽代碼

2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
	detected properly.
	* m4/sqlite3.m4
Tatsuhiro Tsujikawa 16 年之前
父節點
當前提交
942990354f
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      configure
  2. 2 0
      m4/sqlite3.m4

+ 2 - 0
configure

@@ -6401,6 +6401,8 @@ fi
   fi
   fi
 fi
 fi
 if test "x$have_sqlite3" = "xyes"; then
 if test "x$have_sqlite3" = "xyes"; then
+    LIBS="$SQLITE3_LIBS"
+    CPPFLAGS="$SQLITE3_CFLAGS"
 
 
 for ac_func in sqlite3_open_v2
 for ac_func in sqlite3_open_v2
 do
 do

+ 2 - 0
m4/sqlite3.m4

@@ -29,6 +29,8 @@ if test "x$have_sqlite3" != "xyes"; then
   fi
   fi
 fi
 fi
 if test "x$have_sqlite3" = "xyes"; then
 if test "x$have_sqlite3" = "xyes"; then
+    LIBS="$SQLITE3_LIBS $LIBS"
+    CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
     AC_CHECK_FUNCS([sqlite3_open_v2])
     AC_CHECK_FUNCS([sqlite3_open_v2])
     AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3.])
     AC_DEFINE([HAVE_SQLITE3], [1], [Define to 1 if you have sqlite3.])
     AC_SUBST(SQLITE3_LIBS)
     AC_SUBST(SQLITE3_LIBS)