summaryrefslogtreecommitdiff
path: root/config/ac-macros/ha_maria.m4
blob: 56ec8720a091689991ff465dd6681f0bc34d2ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
dnl ---------------------------------------------------------------------------
dnl Macro: MYSQL_CHECK_MARIA
dnl Sets HAVE_MARIA_DB if --with-maria-storage-engine is used
dnl ---------------------------------------------------------------------------
AC_DEFUN([MYSQL_CHECK_MARIA], [
  AC_ARG_WITH([maria-storage-engine],
              [
  --with-maria-storage-engine
                          Enable the Maria Storage Engine],
              [mariadb="$withval"],
              [mariadb=no])
  AC_MSG_CHECKING([for Maria storage engine])

  case "$mariadb" in
    yes )
      AC_DEFINE([HAVE_MARIA_DB], [1], [Builds Maria Storage Engine])
      AC_MSG_RESULT([yes])
      [mariadb=yes]
      ;;
    * )
      AC_MSG_RESULT([no])
      [mariadb=no]
      ;;
  esac

])
dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_MARIA SECTION
dnl ---------------------------------------------------------------------------