1
AC_INIT([spider_engine], [1.0], [kentokushiba@gmail.com])
2
AC_CONFIG_HEADERS([config.h])
11
AC_DEFUN([MYSQL_PATH_TEST],[
12
AC_MSG_CHECKING([mysql source path])
14
[AS_HELP_STRING([--with-mysql=PATH],[mysql source directory PATH])],
17
-f $withval/include/mysql/plugin.h -a \
18
-f $withval/include/mysql.h -a \
19
-f $withval/include/errmsg.h -a \
20
-f $withval/sql/mysql_priv.h ;
24
plugin_spider_shared_target=""
25
AC_SUBST(plugin_spider_shared_target)
26
plugin_spider_static_target=""
27
AC_SUBST(plugin_spider_static_target)
28
PLUGIN_SPIDER_LTLIBRARIES_TARGET="ha_spider.la"
29
AC_SUBST(PLUGIN_SPIDER_LTLIBRARIES_TARGET)
30
PLUGIN_SPIDER_LIBRARIES_TARGET="libspider.a"
31
AC_SUBST(PLUGIN_SPIDER_LIBRARIES_TARGET)
32
LIBTOOL="$LIBTOOL --preserve-dup-deps"
35
AC_MSG_ERROR([Can't find header files. Please check --with-mysql=PATH option])
40
-f ../../include/mysql/plugin.h -a \
41
-f ../../include/mysql.h -a \
42
-f ../../include/errmsg.h -a \
43
-f ../../sql/mysql_priv.h ;
48
AC_MSG_ERROR([Can't find header files. Please set --with-mysql=PATH option])
57
CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti"
60
AC_CHECK_FUNCS([memset strchr strncasecmp])
62
AC_CONFIG_FILES([Makefile])