adapt configure script
authorAnas Nashif <anas.nashif@intel.com>
Tue, 27 Nov 2012 03:17:21 +0000 (19:17 -0800)
committerdavid <david@david-desktop.(none)>
Fri, 21 Nov 2014 01:41:00 +0000 (09:41 +0800)
configure.ac

index 96bb378..369e931 100644 (file)
@@ -128,6 +128,30 @@ dnl *** Misc checks ***
 dnl *******************
 AC_CHECK_FUNCS(gmtime_r)
 
+dnl *************************
+dnl *** SQL Lite support independently of gnome for Tizen  ***
+dnl *************************
+
+AC_ARG_ENABLE(sqllite,
+         AS_HELP_STRING([--enable-sqllite], [Enable SQL lite support ]),        ,
+         enable_sqllite=no)
+
+if test "$enable_sqllite" != "no"; then
+   PKG_CHECK_MODULES(SQLITE, sqlite3, :, [AC_MSG_ERROR(dnl
+[Could not find sqlite3 devel files:
+
+$SQLITE_PKG_ERRORS
+
+Pass "--without-sqlite" to configure if you want to build libsoup
+without sql lite support.])])
+
+fi
+
+AC_SUBST(SQLITE_CFLAGS)
+AC_SUBST(SQLITE_LIBS)
+
+AM_CONDITIONAL(SQLLITE_SUPPORT, [test $enable_sqllite = yes])
+
 dnl *********************
 dnl *** GNOME support ***
 dnl *********************