diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-02 07:44:07 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-02 07:44:07 +0200 |
commit | 25daa04902f2754a487973c4de707869d66b84c1 (patch) | |
tree | 4ffb814a353fb16fc701a06bd3d034585763228d | |
parent | 02d8dc27f991d19f63c3fd9edb02610a97f003b3 (diff) | |
download | rsyslog-25daa04902f2754a487973c4de707869d66b84c1.tar.gz rsyslog-25daa04902f2754a487973c4de707869d66b84c1.tar.xz rsyslog-25daa04902f2754a487973c4de707869d66b84c1.zip |
added support for custom modules
... this provides some basic support to integrate extensions that
are not direct parts of rsyslog to be built during its build
process.
-rw-r--r-- | Makefile.am | 4 | ||||
-rw-r--r-- | configure.ac | 16 | ||||
-rw-r--r-- | plugins/cust1/Makefile.am | 6 |
3 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e991f323..8a130655 100644 --- a/Makefile.am +++ b/Makefile.am @@ -84,6 +84,10 @@ if ENABLE_SNMP SUBDIRS += plugins/omsnmp endif +if ENABLE_CUST1 +SUBDIRS += plugins/cust1 +endif + if ENABLE_IMTEMPLATE SUBDIRS += plugins/imtemplate endif diff --git a/configure.ac b/configure.ac index 7150d211..9fc59f76 100644 --- a/configure.ac +++ b/configure.ac @@ -716,6 +716,20 @@ AC_ARG_ENABLE(omstdout, ) AM_CONDITIONAL(ENABLE_OMSTDOUT, test x$enable_omstdout = xyes) +# This provides a vehicle to integrate custom modules, that are not +# part of rsyslog, into the build process. It is named cust1, so that +# additional such modules can easily be added. +AC_ARG_ENABLE(cust1, + [AS_HELP_STRING([--enable-cust1],[Compiles stdout module @<:@default=no@:>@])], + [case "${enableval}" in + yes) enable_cust1="yes" ;; + no) enable_cust1="no" ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-cust1) ;; + esac], + [enable_cust1=no] +) +AM_CONDITIONAL(ENABLE_CUST1, test x$enable_cust1 = xyes) + # settings for the template input module; copy and modify this code # if you intend to add your own module. Be sure to replace imtemplate @@ -789,6 +803,7 @@ AC_CONFIG_FILES([Makefile \ plugins/ommail/Makefile \ plugins/omsnmp/Makefile \ plugins/omoracle/Makefile \ + plugins/cust1/Makefile \ tests/Makefile]) AC_OUTPUT @@ -802,6 +817,7 @@ echo " Regular expressions support enabled: $enable_regexp" echo " Zlib compression support enabled: $enable_zlib" echo " rsyslog runtime will be built: $enable_rsyslogrt" echo " rsyslogd will be built: $enable_rsyslogd" +echo " custom module 1 will be built: $enable_cust1" echo echo "---{ input plugins }---" echo " Klog functionality enabled: $enable_klog ($os_type)" diff --git a/plugins/cust1/Makefile.am b/plugins/cust1/Makefile.am new file mode 100644 index 00000000..d2e075f9 --- /dev/null +++ b/plugins/cust1/Makefile.am @@ -0,0 +1,6 @@ +pkglib_LTLIBRARIES = cust1.la + +cust1_la_SOURCES = cust1.c +cust1_la_CPPFLAGS = -I$(top_srcdir) $(PTHREADS_CFLAGS) $(RSRT_CFLAGS) +cust1_la_LDFLAGS = -module -avoid-version +cust1_la_LIBADD = |