diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-02-23T22·12+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-02-23T22·12+0000 |
commit | b4e6d98fc33df055c8230903bb7d9633042a6374 (patch) | |
tree | b4bf61f9a936e80fe0d2af8808818e78821e509b /configure.ac | |
parent | 2b20318b0e968432438a7528b2d11d05585877c2 (diff) |
* configure: flag --with-sqlite.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index f726b1ae43ea..9d3d9f76eb37 100644 --- a/configure.ac +++ b/configure.ac @@ -245,11 +245,25 @@ AC_SUBST(bzip2_include) AC_SUBST(bzip2_bin) AC_SUBST(bzip2_bin_test) - -AC_CHECK_LIB(pthread, pthread_mutex_init) +AC_ARG_WITH(sqlite, AC_HELP_STRING([--with-sqlite=PATH], + [prefix of SQLite]), + sqlite=$withval, sqlite=) +AM_CONDITIONAL(HAVE_SQLITE, test -n "$sqlite") +if test -z "$sqlite"; then + sqlite_lib='-L${top_builddir}/externals/inst-sqlite/lib -lsqlite3' + sqlite_include='-I${top_builddir}/externals/inst-sqlite/include' + sqlite_bin='${top_builddir}/externals/inst-sqlite/bin' +else + sqlite_lib="-L$sqlite/lib -lsqlite3" + sqlite_include="-I$sqlite/include" + sqlite_bin="$sqlite/bin" +fi +AC_SUBST(sqlite_lib) +AC_SUBST(sqlite_include) +AC_SUBST(sqlite_bin) -LDFLAGS="-lsqlite3" +AC_CHECK_LIB(pthread, pthread_mutex_init) AC_ARG_ENABLE(init-state, AC_HELP_STRING([--disable-init-state], |