[Nix-dev] [PATCH] configure: Make sure the user-provided SQLite is usable.
Ludovic Courtès
ludo at gnu.org
Wed Mar 21 18:28:21 CET 2012
Ping!
Ludo’.
Ludovic Courtès <ludo at gnu.org> skribis:
> ---
> configure.ac | 13 +++++++++++++
> 1 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 29fdfdb..ed8fc6b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -277,6 +277,19 @@ else
> sqlite_lib="-L$sqlite/lib -lsqlite3"
> sqlite_include="-I$sqlite/include"
> sqlite_bin="$sqlite/bin"
> +
> + save_CPPFLAGS="$CPPFLAGS"
> + save_LDFLAGS="$LDFLAGS"
> +
> + CPPFLAGS="$sqlite_include"
> + LDFLAGS="$sqlite_lib"
> +
> + # Is it usable?
> + AC_CHECK_LIB([sqlite3], [sqlite3_initialize], [:],
> + [AC_MSG_ERROR([SQLite 3 could not be found; see `config.log' for details.])])
> +
> + CPPFLAGS="$save_CPPFLAGS"
> + LDFLAGS="$save_LDFLAGS"
> fi
> AC_SUBST(sqlite_lib)
> AC_SUBST(sqlite_include)
More information about the nix-dev
mailing list