From 8d4497a764594f16175294e372e9d21b94f12146 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 24 Mar 2006 09:57:22 +0000 Subject: [PATCH] Fixed --disable-plugins option in configure script --- ChangeLog | 1 + configure.in | 8 ++++++++ src/gui/curses/gui-input.c | 4 +++- weechat/ChangeLog | 1 + weechat/configure.in | 8 ++++++++ weechat/src/gui/curses/gui-input.c | 4 +++- 6 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f2dcae151..f7ea5d7d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ ChangeLog - 2006-03-24 Version 0.1.9 (under dev!): + * fixed --disable-plugins option in configure script * added /setp command (set plugin options) * fixed high CPU usage when running under a screen that has been killed * aliases are executed before WeeChat/IRC commands, /builtin command added diff --git a/configure.in b/configure.in index 2a9e3640b..5919d9823 100644 --- a/configure.in +++ b/configure.in @@ -184,6 +184,14 @@ fi PLUGINS_LIBS= +if test "x$enable_plugins" != "xyes" ; then + enable_plugins="no" + enable_perl="no" + enable_python="no" + enable_ruby="no" + enable_lua="no" +fi + if test "x$enable_perl" = "xyes" ; then enable_plugins="yes" diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c index cd4215629..ff18657c6 100644 --- a/src/gui/curses/gui-input.c +++ b/src/gui/curses/gui-input.c @@ -392,9 +392,11 @@ gui_main_loop () server_check_away (); } } - + +#ifdef PLUGINS /* call timer handlers */ plugin_timer_handler_exec (); +#endif } /* read keyboard */ diff --git a/weechat/ChangeLog b/weechat/ChangeLog index f2dcae151..f7ea5d7d7 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -5,6 +5,7 @@ ChangeLog - 2006-03-24 Version 0.1.9 (under dev!): + * fixed --disable-plugins option in configure script * added /setp command (set plugin options) * fixed high CPU usage when running under a screen that has been killed * aliases are executed before WeeChat/IRC commands, /builtin command added diff --git a/weechat/configure.in b/weechat/configure.in index 2a9e3640b..5919d9823 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -184,6 +184,14 @@ fi PLUGINS_LIBS= +if test "x$enable_plugins" != "xyes" ; then + enable_plugins="no" + enable_perl="no" + enable_python="no" + enable_ruby="no" + enable_lua="no" +fi + if test "x$enable_perl" = "xyes" ; then enable_plugins="yes" diff --git a/weechat/src/gui/curses/gui-input.c b/weechat/src/gui/curses/gui-input.c index cd4215629..ff18657c6 100644 --- a/weechat/src/gui/curses/gui-input.c +++ b/weechat/src/gui/curses/gui-input.c @@ -392,9 +392,11 @@ gui_main_loop () server_check_away (); } } - + +#ifdef PLUGINS /* call timer handlers */ plugin_timer_handler_exec (); +#endif } /* read keyboard */