49
49
AM_CONDITIONAL(HAVE_LCOV,[test "x$LCOV" != "x"])
51
51
AC_CHECK_PROGS(YACC, ['bison -y'])
52
if test -z "$YACC" && test "$building_from_bzr" = "yes"
52
AS_IF([test "x$YACC" = "x" -a "$building_from_bzr" = "yes"],[
54
53
AC_MSG_ERROR(["bison is required for Drizzle to build from a bzr branch"])
58
57
AM_GNU_GETTEXT(external, need-formatstring-macros)
656
655
DRIZZLE_CHECK_MAX_INDEXES
658
#--------------------------------------------------------------------
659
# Declare our plugin modules
660
# Has to be done late, as the plugin may need to check for existence of
661
# functions tested above
662
#--------------------------------------------------------------------
664
m4_include(config/plugin.ac)
665
dnl Add code here to read set plugin lists and set drizzled_default_plugin_list
666
AC_DEFINE_UNQUOTED([DRIZZLED_PLUGIN_LIST],[$drizzled_default_plugin_list],
667
[List of plugins that should be loaded on startup if no
668
value is given for --plugin-load])
670
drizzled_builtin_list=`echo $drizzled_builtin_list | sed 's/, *$//'`
671
AC_DEFINE_UNQUOTED([DRIZZLED_BUILTIN_LIST],[$drizzled_builtin_list],
672
[List of plugins to be loaded in sql_builtin.cc])
673
AC_SUBST(drizzled_plugin_test_list)
674
AC_SUBST(drizzled_plugin_libs)
676
AC_SUBST(mysql_plugin_dirs)
677
AC_SUBST(mysql_plugin_libs)
678
drizzled_plugin_defs=`echo $drizzled_plugin_defs | sed 's/, *$//'`
679
AC_SUBST(drizzled_plugin_defs)
680
AC_SUBST(DRIZZLED_PLUGIN_DEP_LIBS)
682
dnl Must be done once we turn on warnings and such
684
[whether __attribute__ visibility "hidden" is supported],
685
[ac_cv_can_use_hidden_],[
687
save_CXXFLAGS="${CXXFLAGS}"
688
CXXFLAGS="${AM_CXXFLAGS}"
692
__attribute__((visibility ("hidden")))
696
[ac_cv_can_use_hidden_=yes],
697
[ac_cv_can_use_hidden_=no])
698
CXXFLAGS="${save_CXXFLAGS}"
700
AS_IF([test "$ac_cv_can_use_hidden_" = "yes"],[
701
AC_DEFINE(HAVE_ATTR_HIDDEN, 1,
702
[Define to 1 if you have support for __attribute__((visibility("hidden")))])
706
AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
657
dnl Has to be done late, as the plugin may need to check for existence of
658
dnl functions tested above
708
661
dnl GCC Precompiled Header Support
709
662
dnl re-enable later