fixed acessing members of freed pfile struct
[claws.git] / configure.in
index d875ec1b5d236d7f52a4df873714b29b0fd7adbe..1a405eca2c3f5e99dbe1d5ddf31350591f2103c2 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws3
+EXTRA_VERSION=claws38
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
@@ -373,7 +373,6 @@ dnl ** section for plugins **
 dnl *************************
 
 PLUGINS=""
-PLUGINDIR=${prefix}/${DATADIRNAME}/${PACKAGE}/plugins
 
 AC_ARG_ENABLE(demo-plugin,
        [  --enable-demo-plugin    Build demo plugin [default=no]],
@@ -382,9 +381,17 @@ if test x"$ac_cv_enable_demo_plugin" = xyes; then
        PLUGINS="demo $PLUGINS"
 fi
 
+AC_ARG_ENABLE(spamassassin-plugin,
+       [  --enable-spamassassin-plugin    Build spamassassin plugin [default=no]],
+       [ac_cv_enable_spamassassin_plugin=$enableval], [ac_cv_enable_spamassassin_plugin=no])
+if test x"$ac_cv_enable_spamassassin_plugin" = xyes; then
+       AC_SPAMASSASSIN
+
+       PLUGINS="spamassassin $PLUGINS"
+fi
+
 AC_SUBST(PLUGINS)
 AC_SUBST(PLUGINDIR)
-AC_DEFINE(PLUGINDIR, "$PLUGINDIR", Path where plugins will be installed)
 
 dnl ****************************
 dnl ** Final configure output **
@@ -402,6 +409,7 @@ src/common/Makefile
 src/gtk/Makefile
 src/plugins/Makefile
 src/plugins/demo/Makefile
+src/plugins/spamassassin/Makefile
 faq/Makefile
 faq/de/Makefile
 faq/en/Makefile