~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

MergedĀ inĀ pandora-build

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
PANDORA_REQUIRE_PTHREAD
73
73
 
74
74
PANDORA_REQUIRE_LIBPROTOBUF
75
 
PANDORA_PROTOBUF_RECENT
 
75
PANDORA_PROTOBUF_REQUIRE_VERSION([2.1.0])
76
76
PANDORA_REQUIRE_PROTOC
77
77
 
78
78
#--------------------------------------------------------------------
655
655
 
656
656
DRIZZLE_CHECK_MAX_INDEXES
657
657
 
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
 
#--------------------------------------------------------------------
663
 
 
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])
669
 
 
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)
675
 
 
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)
681
 
 
682
 
dnl Must be done once we turn on warnings and such
683
 
AC_CACHE_CHECK(
684
 
  [whether __attribute__ visibility "hidden" is supported],
685
 
  [ac_cv_can_use_hidden_],[
686
 
    AC_LANG_PUSH(C++)
687
 
    save_CXXFLAGS="${CXXFLAGS}"
688
 
    CXXFLAGS="${AM_CXXFLAGS}"
689
 
    AC_LINK_IFELSE([
690
 
      AC_LANG_PROGRAM(
691
 
        [[
692
 
__attribute__((visibility ("hidden")))
693
 
void testme() {  }
694
 
        ]],[[testme()]]
695
 
      )],  
696
 
      [ac_cv_can_use_hidden_=yes],
697
 
      [ac_cv_can_use_hidden_=no])
698
 
    CXXFLAGS="${save_CXXFLAGS}"
699
 
    AC_LANG_POP()])
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")))])
703
 
])
704
 
 
705
 
 
706
 
AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
 
658
dnl Has to be done late, as the plugin may need to check for existence of
 
659
dnl functions tested above
 
660
PANDORA_PLUGINS
707
661
 
708
662
dnl GCC Precompiled Header Support
709
663
dnl re-enable later