diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 68 |
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 | |||
| 3 | AC_PREREQ(2.59) | ||
| 4 | AC_INIT(mysql-table-sizes-plugin, [dev]) | ||
| 5 | AC_CANONICAL_TARGET | ||
| 6 | AC_CONFIG_MACRO_DIR([m4]) | ||
| 7 | |||
| 8 | AM_INIT_AUTOMAKE | ||
| 9 | |||
| 10 | AC_CONFIG_SRCDIR([src/table_sizes.cc]) | ||
| 11 | AC_CONFIG_HEADER([src/config.h]) | ||
| 12 | |||
| 13 | AC_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 | |||
| 31 | dnl Run tests using C++ compiler | ||
| 32 | dnl AC_LANG(C++) | ||
| 33 | |||
| 34 | CHECK_DEBUG | ||
| 35 | |||
| 36 | #check for mysql src | ||
| 37 | MYSQL_SRC_TEST | ||
| 38 | MYSQL_PLUGIN_DIR_TEST | ||
| 39 | #MYSQL_LIB_SERVICES_TEST | ||
| 40 | AC_SUBST(MYSQL_INC) | ||
| 41 | AC_SUBST(MYSQL_PLUGIN_DIR) | ||
| 42 | #AC_SUBST(MYSQL_LIBSERVICES) | ||
| 43 | |||
| 44 | #check for programs | ||
| 45 | AC_PROG_CC | ||
| 46 | AC_PROG_LIBTOOL | ||
| 47 | AC_PROG_CXX | ||
| 48 | AC_PROG_CPP | ||
| 49 | |||
| 50 | #we can add the following flags for better error catching: -Werror | ||
| 51 | CPPFLAGS="$CPPFLAGS -Werror" | ||
| 52 | # From MySQL: Disable exceptions as they seams to create problems with gcc and threads. | ||
| 53 | CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti" | ||
| 54 | |||
| 55 | #make sure we have const | ||
| 56 | AC_C_CONST | ||
| 57 | AC_TYPE_SIZE_T | ||
| 58 | |||
| 59 | #subst the relevant variables | ||
| 60 | AC_SUBST(CPPFLAGS) | ||
| 61 | AC_SUBST(CXXLAGS) | ||
| 62 | AC_SUBST(CFLAGS) | ||
| 63 | |||
| 64 | AC_CONFIG_FILES([ | ||
| 65 | Makefile | ||
| 66 | src/Makefile | ||
| 67 | ]) | ||
| 68 | AC_OUTPUT | ||
