10
10
AC_DEFUN([PANDORA_PLUGINS],[
12
m4_sinclude(config/plugin.ac)
12
dnl We do this to prime the files from a fresh checkout. Normally we want
13
dnl these commands to be executed by make. Perhaps we should split them into
14
dnl a few shell script snippets in config and make Make call them... we're
15
dnl going to get there...
16
dnl ANYWAY - syscmd gets called during aclocal - so before automake. It will
17
dnl get called probably during autoconf too, so it's important to protect
18
dnl with test -f ... if the files exist, we don't have the chicken/egg
19
dnl problem and therefore don't need to do anything here
20
syscmd([test -f config/plugin.stamp || python config/register_plugins.py . . > /dev/null])
21
syscmd([test -f config/plugin.stamp || touch config/plugin.stamp aclocal.m4])
23
m4_sinclude(config/plugin-list.ac)
13
25
dnl Add code here to read set plugin lists and set drizzled_default_plugin_list
14
AC_DEFINE_UNQUOTED([PANDORA_PLUGIN_LIST],[$pandora_default_plugin_list],
15
[List of plugins that should be loaded on startup if no
16
value is given for --plugin-load])
18
26
pandora_builtin_list=`echo $pandora_builtin_list | sed 's/, *$//'`
19
27
AS_IF([test "x$pandora_builtin_list" = "x"], pandora_builtin_list="NULL")
20
28
AC_SUBST([PANDORA_BUILTIN_LIST],[$pandora_builtin_list])
29
AC_SUBST([PANDORA_PLUGIN_LIST],[$pandora_default_plugin_list])
21
30
m4_ifval(m4_normalize([$1]),[
22
31
AC_CONFIG_FILES($*)
24
33
AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],[$pandora_builtin_list],
25
34
[List of plugins to be built in])
35
AC_DEFINE_UNQUOTED([PANDORA_PLUGIN_LIST],["$pandora_default_plugin_list"],
36
[List of plugins that should be loaded on startup if no
37
value is given for --plugin-load])