monotone

monotone Mtn Source Tree

Root/m4/sqlite.m4

1dnl checks only done because the bundled sqlite needs them.
2AC_DEFUN([MTN_SQLITE_DEPENDENCIES],
3[SQLITE_CPPFLAGS=
4
5# sqlite does not read our config.h so we have to shove all this on the
6# command line.
7
8AC_SEARCH_LIBS([fdatasync], [rt],
9 [SQLITE_CPPFLAGS="$SQLITE_CPPFLAGS -DHAVE_FDATASYNC=1"])
10
11AC_SEARCH_LIBS([usleep], [rt],
12 [SQLITE_CPPFLAGS="$SQLITE_CPPFLAGS -DHAVE_USLEEP=1"])
13
14AC_CHECK_FUNC([pread],
15 [AC_CHECK_FUNC([pwrite],
16 [SQLITE_CPPFLAGS="$SQLITE_CPPFLAGS -DUSE_PREAD=1"])])
17
18# Let the user specify whether he wants large file support or not in sqlite.
19AC_ARG_ENABLE([large-file],
20 AS_HELP_STRING(
21 [--disable-large-file],
22 [Disable large file support in builtin sqlite]
23 ), , enable_large_file=yes
24)
25
26if test "x$enable_large_file" = "xno"; then
27 SQLITE_CPPFLAGS="$SQLITE_CPPFLAGS -DSQLITE_DISABLE_LFS"
28fi
29
30AC_SUBST(SQLITE_CPPFLAGS)
31])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status