diff options
author | Charlie Brej <cbrej@cs.man.ac.uk> | 2010-08-06 16:10:59 +0100 |
---|---|---|
committer | Charlie Brej <cbrej@cs.man.ac.uk> | 2010-08-06 16:10:59 +0100 |
commit | 33332192312f798fd0bce0ed6a1a3ac9ffc80e19 (patch) | |
tree | 25039ad32ec1230727bbfb1e422bbe16078242fb | |
parent | c531e95707cab2962bc55c479daf76b138372b2b (diff) |
Correct sqlite m4 script
-rw-r--r-- | m4/ax_lib_sqlite3.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/m4/ax_lib_sqlite3.m4 b/m4/ax_lib_sqlite3.m4 index 21f49a5..3dff349 100644 --- a/m4/ax_lib_sqlite3.m4 +++ b/m4/ax_lib_sqlite3.m4 @@ -102,6 +102,28 @@ AC_DEFUN([AX_LIB_SQLITE3], saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags" + AC_COMPILE_IFELSE( + [ + AC_LANG_PROGRAM([[@%:@include <sqlite3.h>]], + [[ +#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number) +// Everything is okay +#else +# error SQLite version is too old +#endif + ]] + ) + ], + [ + AC_MSG_RESULT([yes]) + success="yes" + ], + [ + AC_MSG_RESULT([not found]) + succees="no" + ] + ) + CPPFLAGS="$saved_CPPFLAGS" if test "$success" = "yes"; then |