summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/ac_mysql.m496
1 files changed, 0 insertions, 96 deletions
diff --git a/m4/ac_mysql.m4 b/m4/ac_mysql.m4
deleted file mode 100644
index b5a5c0c..0000000
--- a/m4/ac_mysql.m4
+++ /dev/null
@@ -1,96 +0,0 @@
1dnl ---------------------------------------------------------------------------
2dnl Macro: MYSQL_SRC_TEST
3dnl ---------------------------------------------------------------------------
4
5dir_resolve() dnl {{{
6{
7 pwd=`pwd`
8 cd "$1" 2>/dev/null || cd "${pwd}/${1}" 2>/dev/null
9 if test "$?" = "0"
10 then
11 echo `pwd -P`
12 else
13 echo "$1"
14 fi
15}
16dnl }}}
17
18AC_DEFUN([MYSQL_SRC_TEST], [
19 AC_MSG_CHECKING(for mysql source code)
20 AC_ARG_WITH(mysql,
21 [AS_HELP_STRING([--with-mysql=PATH], [MySQL src directory required to build.])],
22 [
23 ac_mysql_source_dir=`readlink -e "$withval"`
24 HEADERS="include/my_dir.h include/mysql/plugin.h include/mysql.h include/mysql_version.h include/config.h include/my_config.h"
25 for file in $HEADERS
26 do
27 if ! test -r "$ac_mysql_source_dir/$file"
28 then
29 AC_MSG_ERROR([Failed to find required header file $ac_mysql_source_dir/$file, check the path and make sure you've run './configure ..<options>.. && cd include && make' in MySQL 5.1 sources dir or 'cmake . && make' in MySQL 5.5 sources dir.])
30 fi
31 done
32 AC_DEFINE([MYSQL_SRC], [1], [Source directory for MySQL])
33 MYSQL_INC="-I$ac_mysql_source_dir/sql -I$ac_mysql_source_dir/include -I$ac_mysql_source_dir/regex -I$ac_mysql_source_dir -I$ac_mysql_source_dir/libbinlogevents/export -I$ac_mysql_source_dir/libbinlogevents/include -I$ac_mysql_source_dir/sql/auth"
34 AC_MSG_RESULT(["$ac_mysql_source_dir"])
35 ],
36 [
37 AC_MSG_ERROR(["No mysql source provided. Please specify --with-mysql=<mysql source dir>!"])
38 ]
39 )
40])
41
42dnl ---------------------------------------------------------------------------
43dnl Macro: MYSQL_PLUGIN_DIR_TEST
44dnl ---------------------------------------------------------------------------
45
46AC_DEFUN([MYSQL_PLUGIN_DIR_TEST], [
47 AC_MSG_CHECKING([for mysql plugin dir])
48 ac_mysql_plugin_dir=
49 AC_ARG_WITH([mysql-plugindir],
50 [AS_HELP_STRING([--with-mysql-plugindir=PATH], [MySQL plugin directory where plugin is to be copied to])],
51 [
52 ac_mysql_plugin_dir=`readlink -m "$withval"`
53 MYSQL_PLUGIN_DIR="$ac_mysql_plugin_dir"
54 ],
55 [
56 ac_mysql_plugin_dir="/usr/lib/mysql/plugin"
57 MYSQL_PLUGIN_DIR="$ac_mysql_plugin_dir"
58 AC_MSG_RESULT([--with-mysql-plugindir was not set. Using $ac_mysql_plugin_dir])
59 ]
60 )
61])
62
63dnl ---------------------------------------------------------------------------
64dnl Macro: MYSQL_LIB_SERVICES : 5.5 services lib to add to linker
65dnl ---------------------------------------------------------------------------
66
67dnl AC_DEFUN([MYSQL_LIB_SERVICES_TEST], [
68dnl AC_MSG_CHECKING([for mysql libmysqlservices])
69dnl ac_mysql_libservices=
70dnl AC_ARG_WITH([mysql-libservices],
71dnl [AS_HELP_STRING([--with-mysql-libservices=PATH], [MySQL libmysqlservices.a location (relevant for 5.5 only)])],
72dnl [
73dnl ac_mysql_libservices=`readlink -e "$withval"`
74dnl if test -f "$ac_mysql_libservices"
75dnl then
76dnl MYSQL_LIBSERVICES="$ac_mysql_libservices"
77dnl AC_MSG_RESULT([yes: Using $ac_mysql_libservices])
78dnl else
79dnl AC_MSG_ERROR([invalid MySQL libmysqlservices : $ac_mysql_libservices])
80dnl fi
81dnl ],
82dnl [
83dnl if test -f "$ac_mysql_source_dir/VERSION"
84dnl then
85dnl source "$ac_mysql_source_dir/VERSION"
86dnl if test "$MYSQL_VERSION_MAJOR.$MYSQL_VERSION_MINOR" = "5.5"
87dnl then
88dnl AC_MSG_ERROR([no mysql-libservices. Required for MySQL 5.5])
89dnl fi
90dnl fi
91dnl ac_mysql_libservices=""
92dnl MYSQL_LIBSERVICES="$ac_mysql_libservices"
93dnl AC_MSG_RESULT([--with-mysql-libservices was not set.])
94dnl ]
95dnl )
96dnl ])