You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
989 B

  1. dnl ---------------------------------------------------------------------------
  2. dnl Macro: MYSQL_CHECK_EXAMPLEDB
  3. dnl Sets HAVE_EXAMPLE_DB if --with-example-storage-engine is used
  4. dnl ---------------------------------------------------------------------------
  5. AC_DEFUN([MYSQL_CHECK_EXAMPLEDB], [
  6. AC_ARG_WITH([example-storage-engine],
  7. [
  8. --with-example-storage-engine
  9. Enable the Example Storage Engine],
  10. [exampledb="$withval"],
  11. [exampledb=no])
  12. AC_MSG_CHECKING([for example storage engine])
  13. case "$exampledb" in
  14. yes )
  15. AC_DEFINE([HAVE_EXAMPLE_DB], [1], [Builds Example DB])
  16. AC_MSG_RESULT([yes])
  17. [exampledb=yes]
  18. ;;
  19. * )
  20. AC_MSG_RESULT([no])
  21. [exampledb=no]
  22. ;;
  23. esac
  24. ])
  25. dnl ---------------------------------------------------------------------------
  26. dnl END OF MYSQL_CHECK_EXAMPLE SECTION
  27. dnl ---------------------------------------------------------------------------