summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac68
1 files changed, 0 insertions, 68 deletions
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 48857f8..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,68 +0,0 @@
1# Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.59)
4AC_INIT(mysql-table-sizes-plugin, [dev])
5AC_CANONICAL_TARGET
6AC_CONFIG_MACRO_DIR([m4])
7
8AM_INIT_AUTOMAKE
9
10AC_CONFIG_SRCDIR([src/table_sizes.cc])
11AC_CONFIG_HEADER([src/config.h])
12
13AC_DEFUN([CHECK_DEBUG], [
14 AC_ARG_ENABLE([debug],
15 AS_HELP_STRING([--enable-debug], [turn on debugging, default: no]))
16
17 AC_MSG_CHECKING(whether to enable debugging)
18 AS_IF([test "x$enable_debug" = "xyes"],
19 [
20 CPPFLAGS="$CPPFLAGS -g -D_DEBUG"
21 AC_MSG_RESULT(yes)
22 ],
23 [
24 CPPFLAGS="$CPPFLAGS -g -O2 -DDBUG_OFF"
25 AC_MSG_RESULT(no)
26 ]
27 )
28])
29
30
31dnl Run tests using C++ compiler
32dnl AC_LANG(C++)
33
34CHECK_DEBUG
35
36#check for mysql src
37MYSQL_SRC_TEST
38MYSQL_PLUGIN_DIR_TEST
39#MYSQL_LIB_SERVICES_TEST
40AC_SUBST(MYSQL_INC)
41AC_SUBST(MYSQL_PLUGIN_DIR)
42#AC_SUBST(MYSQL_LIBSERVICES)
43
44#check for programs
45AC_PROG_CC
46AC_PROG_LIBTOOL
47AC_PROG_CXX
48AC_PROG_CPP
49
50#we can add the following flags for better error catching: -Werror
51CPPFLAGS="$CPPFLAGS -Werror"
52# From MySQL: Disable exceptions as they seams to create problems with gcc and threads.
53CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
54
55#make sure we have const
56AC_C_CONST
57AC_TYPE_SIZE_T
58
59#subst the relevant variables
60AC_SUBST(CPPFLAGS)
61AC_SUBST(CXXLAGS)
62AC_SUBST(CFLAGS)
63
64AC_CONFIG_FILES([
65 Makefile
66 src/Makefile
67])
68AC_OUTPUT