From 1771d32e945b758326951384f0e17121042ad74e Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Fri, 7 Aug 2009 15:50:34 -0400 Subject: ELAPI Next round of functionality - logging part of the interface a) Added the main logging interface which allows creating dispatcher and logging messages or events. Can't actully log anything yet since the sinks are stubbed out. b) Made default template be a part of the default dispatcher. c) Updated UNIT test. d) Some of the calls are stubbed out but they are there to indicate where next round of work will be. --- common/elapi/conf_macros.m4 | 56 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 common/elapi/conf_macros.m4 (limited to 'common/elapi/conf_macros.m4') diff --git a/common/elapi/conf_macros.m4 b/common/elapi/conf_macros.m4 new file mode 100644 index 00000000..e20dfdba --- /dev/null +++ b/common/elapi/conf_macros.m4 @@ -0,0 +1,56 @@ + +AC_DEFUN([WITH_CONFIG_DIR], + [ AC_ARG_WITH([config-dir], + [AC_HELP_STRING([--with-config-dir=DIR], + [The name of the default ELAPI config directory [SYSCONFDIR/elapi]] + ) + ] + ) + elapiconfdir="$sysconfdir/elapi" + if test x"$with_config_dir" != x; then + elapiconfdir=$with_config_dir + fi + AC_SUBST(elapiconfdir) + ]) + +AC_DEFUN([WITH_CONFIG_APP_DIR], + [ AC_ARG_WITH([config-app-dir], + [AC_HELP_STRING([--with-config-app-dir=DIR], + [The name of the ELAPI application config directory [SYSCONFDIR/elapi/apps.d]] + ) + ] + ) + elapiconfappdir="$sysconfdir/elapi/apps.d" + if test x"$with_config_app_dir" != x; then + elapiconfappdir=$with_config_app_dir + fi + AC_SUBST(elapiconfappdir) + ]) + +AC_DEFUN([WITH_APP_NAME], + [ AC_ARG_WITH([app-name], + [AC_HELP_STRING([--with-app-name=], + [The name of the default ELAPI application [default]] + ) + ] + ) + appname="default" + if test x"$with_app_name" != x; then + appname=$with_app_name + fi + AC_SUBST(appname) + ]) + +AC_DEFUN([WITH_APP_NAME_SIZE], + [ AC_ARG_WITH([app-name-size], + [AC_HELP_STRING([--with-app-name-size=], + [The maximum size of the name for an ELAPI application [127]] + ) + ] + ) + appnamesize="127" + if test x"$with_app_name_size" != x; then + appnamesize=$with_app_name_size + fi + AC_SUBST(appnamesize) + ]) -- cgit