~drizzle-trunk/drizzle/development

1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
1
dnl  Copyright (C) 2009 Sun Microsystems
2
dnl This file is free software; Sun Microsystems
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
5
dnl--------------------------------------------------------------------
6
dnl PANDORA_PLUGINS
7
dnl Declare our plugin modules
8
dnl--------------------------------------------------------------------
9
10
AC_DEFUN([PANDORA_PLUGINS],[
11
1192.3.7 by Monty Taylor
Added code necessary for building plugins dynamically.
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
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
20
  m4_syscmd([python config/pandora-plugin > /dev/null])
1192.3.14 by Monty Taylor
Renamed syscmd() to m4_syscmd.
21
  m4_syscmd([test -f config/plugin.stamp || touch config/plugin.stamp aclocal.m4])
1192.3.7 by Monty Taylor
Added code necessary for building plugins dynamically.
22
1192.3.25 by Monty Taylor
It seems to work.
23
  m4_sinclude(config/pandora-plugin.ac)
1192.3.7 by Monty Taylor
Added code necessary for building plugins dynamically.
24
1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
25
  dnl Add code here to read set plugin lists and  set drizzled_default_plugin_list
26
  pandora_builtin_list=`echo $pandora_builtin_list | sed 's/, *$//'`
1530.2.3 by Monty Taylor
Changed the builtin plugin code path to work exactly the same as dynamic.
27
  pandora_builtin_symbols_list=`echo $pandora_builtin_symbols_list | sed 's/, *$//'`
28
  AS_IF([test "x$pandora_builtin_symbols_list" = "x"], pandora_builtin_symbols_list="NULL")
1126.6.1 by Monty Taylor
pandora-build v0.58
29
  AC_SUBST([PANDORA_BUILTIN_LIST],[$pandora_builtin_list])
1530.2.3 by Monty Taylor
Changed the builtin plugin code path to work exactly the same as dynamic.
30
  AC_SUBST([PANDORA_BUILTIN_SYMBOLS_LIST],[$pandora_builtin_symbols_list])
1192.3.7 by Monty Taylor
Added code necessary for building plugins dynamically.
31
  AC_SUBST([PANDORA_PLUGIN_LIST],[$pandora_default_plugin_list])
1126.7.2 by mordred
pandora-build v0.59 - fixed for old autoconf.
32
  m4_ifval(m4_normalize([$1]),[
1126.7.3 by mordred
pandora-build v0.60 - check for -Wattributes with -fvisibility=hidden issues.
33
    AC_CONFIG_FILES($*)
34
    ],[
1530.2.3 by Monty Taylor
Changed the builtin plugin code path to work exactly the same as dynamic.
35
    AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],["$pandora_builtin_list"],
1126.6.1 by Monty Taylor
pandora-build v0.58
36
                       [List of plugins to be built in])
1530.2.3 by Monty Taylor
Changed the builtin plugin code path to work exactly the same as dynamic.
37
    AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_SYMBOLS_LIST],["$pandora_builtin_symbols_list"],
38
                       [List of builtin plugin symbols to be built in])
1192.3.7 by Monty Taylor
Added code necessary for building plugins dynamically.
39
    AC_DEFINE_UNQUOTED([PANDORA_PLUGIN_LIST],["$pandora_default_plugin_list"],
40
                       [List of plugins that should be loaded on startup if no
41
                        value is given for --plugin-load])
1126.6.1 by Monty Taylor
pandora-build v0.58
42
  ])
43
1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
44
45
  AC_SUBST(pandora_plugin_test_list)
46
  AC_SUBST(pandora_plugin_libs)
47
48
  pandora_plugin_defs=`echo $pandora_plugin_defs | sed 's/, *$//'`
49
  AC_SUBST(pandora_plugin_defs)
50
51
  AC_SUBST(PANDORA_PLUGIN_DEP_LIBS)
1273.23.1 by Monty Taylor
Merged in latest pandora-build changes. Install plugins in pkglibdir now
52
  AC_SUBST(pkgplugindir,"\$(pkglibdir)")
1093.9.13 by Monty Taylor
pandora-build v0.42 - Started splitting out plugin system into pandora-build
53
])
54
55
AC_DEFUN([PANDORA_ADD_PLUGIN_DEP_LIB],[
56
  PANDORA_PLUGIN_DEP_LIBS="${PANDORA_PLUGIN_DEP_LIBS} $*"
1093.9.19 by Monty Taylor
pandora-build v0.46
57
])