X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_plugins.m4;h=217a0968161f7ef9dec7e74db9639299ace8da35;hb=c1a8ae2ab7557b9c167e022182b810d3e2cd43ce;hp=c4df08dc6efb69afbf8a4384347b78d32aed9359;hpb=0f880f36260e5b71921b17425400c952b96606d1;p=awesomized%2Flibmemcached diff --git a/m4/pandora_plugins.m4 b/m4/pandora_plugins.m4 index c4df08dc..217a0968 100644 --- a/m4/pandora_plugins.m4 +++ b/m4/pandora_plugins.m4 @@ -9,15 +9,38 @@ dnl-------------------------------------------------------------------- AC_DEFUN([PANDORA_PLUGINS],[ - m4_include(config/plugin.ac) - dnl Add code here to read set plugin lists and set drizzled_default_plugin_list - AC_DEFINE_UNQUOTED([PANDORA_PLUGIN_LIST],[$pandora_default_plugin_list], - [List of plugins that should be loaded on startup if no - value is given for --plugin-load]) + dnl We do this to prime the files from a fresh checkout. Normally we want + dnl these commands to be executed by make. Perhaps we should split them into + dnl a few shell script snippets in config and make Make call them... we're + dnl going to get there... + dnl ANYWAY - syscmd gets called during aclocal - so before automake. It will + dnl get called probably during autoconf too, so it's important to protect + dnl with test -f ... if the files exist, we don't have the chicken/egg + dnl problem and therefore don't need to do anything here + m4_syscmd([python config/pandora-plugin > /dev/null]) + m4_syscmd([test -f config/plugin.stamp || touch config/plugin.stamp aclocal.m4]) + + m4_sinclude(config/pandora-plugin.ac) + dnl Add code here to read set plugin lists and set drizzled_default_plugin_list pandora_builtin_list=`echo $pandora_builtin_list | sed 's/, *$//'` - AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],[$pandora_builtin_list], - [List of plugins to be built in]) + pandora_builtin_symbols_list=`echo $pandora_builtin_symbols_list | sed 's/, *$//'` + AS_IF([test "x$pandora_builtin_symbols_list" = "x"], pandora_builtin_symbols_list="NULL") + AC_SUBST([PANDORA_BUILTIN_LIST],[$pandora_builtin_list]) + AC_SUBST([PANDORA_BUILTIN_SYMBOLS_LIST],[$pandora_builtin_symbols_list]) + AC_SUBST([PANDORA_PLUGIN_LIST],[$pandora_default_plugin_list]) + m4_ifval(m4_normalize([$1]),[ + AC_CONFIG_FILES($*) + ],[ + AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],["$pandora_builtin_list"], + [List of plugins to be built in]) + AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_SYMBOLS_LIST],["$pandora_builtin_symbols_list"], + [List of builtin plugin symbols to be built in]) + AC_DEFINE_UNQUOTED([PANDORA_PLUGIN_LIST],["$pandora_default_plugin_list"], + [List of plugins that should be loaded on startup if no + value is given for --plugin-load]) + ]) + AC_SUBST(pandora_plugin_test_list) AC_SUBST(pandora_plugin_libs) @@ -26,9 +49,9 @@ AC_DEFUN([PANDORA_PLUGINS],[ AC_SUBST(pandora_plugin_defs) AC_SUBST(PANDORA_PLUGIN_DEP_LIBS) - AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin") + AC_SUBST(pkgplugindir,"\$(pkglibdir)") ]) AC_DEFUN([PANDORA_ADD_PLUGIN_DEP_LIB],[ PANDORA_PLUGIN_DEP_LIBS="${PANDORA_PLUGIN_DEP_LIBS} $*" -]) \ No newline at end of file +])