ax_sqlite3_for_bind10.m4 795 B

12345678910111213141516171819202122232425
  1. dnl @synopsis AX_SQLITE3_FOR_BIND10
  2. dnl
  3. dnl Test for the sqlite3 library and program, intended to be used within
  4. dnl BIND 10, and to test BIND 10.
  5. dnl
  6. dnl We use pkg-config to look for the sqlite3 library, so the sqlite3
  7. dnl development package with the .pc file must be installed.
  8. dnl
  9. dnl This macro sets SQLITE_CFLAGS and SQLITE_LIBS. It also sets
  10. dnl SQLITE3_PROGRAM to the path of the sqlite3 program, if it is found
  11. dnl in PATH.
  12. AC_DEFUN([AX_SQLITE3_FOR_BIND10], [
  13. PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9,
  14. have_sqlite="yes",
  15. have_sqlite="no (sqlite3 not detected)")
  16. # Check for sqlite3 program
  17. AC_PATH_PROG(SQLITE3_PROGRAM, sqlite3, no)
  18. AM_CONDITIONAL(HAVE_SQLITE3_PROGRAM, test "x$SQLITE3_PROGRAM" != "xno")
  19. # TODO: check for _sqlite3.py module
  20. ])dnl AX_SQLITE3_FOR_BIND10