| 1 |
dnl For Tritonn MySQL Engine |
dnl For Tritonn MySQL Engine |
| 2 |
AC_INIT(src/ha_tritonn.cc) |
AC_INIT(src/ha_tritonn.cc) |
| 3 |
AC_CONFIG_AUX_DIR(config) |
AM_CONFIG_HEADER(src/tritonn_config.h) |
|
dnl AM_CONFIG_HEADER(src/skeleton_config.h) |
|
| 4 |
AM_INIT_AUTOMAKE("tritonn_engine", 0.0.1) |
AM_INIT_AUTOMAKE("tritonn_engine", 0.0.1) |
| 5 |
|
|
| 6 |
AC_PROG_CC |
AC_PROG_CC |
| 11 |
LIBTOOL="$LIBTOOL --preserve-dup-deps" |
LIBTOOL="$LIBTOOL --preserve-dup-deps" |
| 12 |
AC_SUBST(LIBTOOL)dnl |
AC_SUBST(LIBTOOL)dnl |
| 13 |
|
|
| 14 |
sinclude(config/ac_mysql.m4) |
AC_DEFUN([MYSQL_SRC_TEST], [ |
| 15 |
sinclude(config/ac_system.m4) |
AC_MSG_CHECKING(for mysql source code) |
| 16 |
sinclude(config/dtrace.m4) |
AC_ARG_WITH(mysql, |
| 17 |
|
[[ --with-mysql[=mysql src directory] |
| 18 |
|
Source requir to build engine.]], |
| 19 |
|
[ |
| 20 |
|
if test -d "$withval/sql"; then |
| 21 |
|
MYSQL_SRC="$i/mysql_config" |
| 22 |
|
fi |
| 23 |
|
|
| 24 |
|
AC_DEFINE([MYSQL_SRC], [1], [Source directory for MySQL]) |
| 25 |
|
MYSQL_INC="-I$withval/sql -I$withval/include -I$withval/regex -I$withval" |
| 26 |
|
AC_MSG_RESULT(["$withval"]) |
| 27 |
|
], |
| 28 |
|
[ |
| 29 |
|
AC_MSG_ERROR(["no mysql source provided"]) |
| 30 |
|
]) |
| 31 |
|
]) |
| 32 |
MYSQL_SRC_TEST |
MYSQL_SRC_TEST |
| 33 |
AC_SUBST(MYSQL_INC) |
AC_SUBST(MYSQL_INC) |
| 34 |
|
|