66 |
AH_VERBATIM([PLUGINS], [#undef PLUGINS]) |
AH_VERBATIM([PLUGINS], [#undef PLUGINS]) |
67 |
AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL]) |
AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL]) |
68 |
AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON]) |
AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON]) |
69 |
|
AH_VERBATIM([PLUGIN_RUBY], [#undef PLUGIN_RUBY]) |
70 |
AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS]) |
AH_VERBATIM([HAVE_GNUTLS], [#undef HAVE_GNUTLS]) |
71 |
AH_VERBATIM([DEBUG], [#undef DEBUG]) |
AH_VERBATIM([DEBUG], [#undef DEBUG]) |
72 |
|
|
76 |
AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no)],enable_qt=$enableval,enable_qt=no) |
AC_ARG_ENABLE(qt, [ --enable-qt Turn on Qt interface (default=no)],enable_qt=$enableval,enable_qt=no) |
77 |
AC_ARG_ENABLE(perl, [ --enable-perl Turn on Perl plugins (default=no)],enable_perl=$enableval,enable_perl=no) |
AC_ARG_ENABLE(perl, [ --enable-perl Turn on Perl plugins (default=no)],enable_perl=$enableval,enable_perl=no) |
78 |
AC_ARG_ENABLE(python, [ --enable-python Turn on Python plugins (default=no)],enable_python=$enableval,enable_python=no) |
AC_ARG_ENABLE(python, [ --enable-python Turn on Python plugins (default=no)],enable_python=$enableval,enable_python=no) |
79 |
|
AC_ARG_ENABLE(ruby, [ --enable-ruby Turn on Ruby plugins (default=no)],enable_ruby=$enableval,enable_ruby=no) |
80 |
AC_ARG_ENABLE(gnutls, [ --disable-gnutls Turn off gnutls support (default=auto)],enable_gnutls=$enableval,enable_gnutls=yes) |
AC_ARG_ENABLE(gnutls, [ --disable-gnutls Turn off gnutls support (default=auto)],enable_gnutls=$enableval,enable_gnutls=yes) |
81 |
AC_ARG_WITH(debug, [ --with-debug Debugging: 0=no debug, 1=debug compilation, 2=debug compilation + verbose msgs (default=0)],debug=$withval,debug=0) |
AC_ARG_WITH(debug, [ --with-debug Debugging: 0=no debug, 1=debug compilation, 2=debug compilation + verbose msgs (default=0)],debug=$withval,debug=0) |
82 |
|
|
83 |
enable_plugins="no" |
enable_plugins="no" |
|
enable_ruby="no" |
|
|
RUBY_CFLAGS= |
|
84 |
|
|
85 |
AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") |
AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes") |
86 |
AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes") |
AM_CONDITIONAL(GUI_WXWIDGETS, test "$enable_wxwidgets" = "yes") |
88 |
AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") |
AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") |
89 |
AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes") |
AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes") |
90 |
AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes") |
AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes") |
91 |
# AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes") |
AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes") |
92 |
AM_CONDITIONAL(HAVE_GNUTLS, test "$enable_gnutls" = "yes") |
AM_CONDITIONAL(HAVE_GNUTLS, test "$enable_gnutls" = "yes") |
93 |
|
|
94 |
if test "x$enable_ncurses" = "xyes" ; then |
if test "x$enable_ncurses" = "xyes" ; then |
225 |
AC_DEFINE(PLUGIN_PYTHON) |
AC_DEFINE(PLUGIN_PYTHON) |
226 |
fi |
fi |
227 |
|
|
228 |
|
if test "x$enable_ruby" = "xyes" ; then |
229 |
|
enable_plugins="yes" |
230 |
|
|
231 |
|
# TODO: check that ruby lib and headers are installed |
232 |
|
|
233 |
|
RUBY_CFLAGS=-I`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` |
234 |
|
RUBY_LFLAGS=-L`ruby -rrbconfig -e "puts Config::CONFIG[['archdir']]"` -lruby |
235 |
|
PLUGINS_LIBS="$PLUGINS_LIBS ../../plugins/ruby/lib_weechat_ruby.a $RUBY_LFLAGS" |
236 |
|
AC_SUBST(RUBY_CFLAGS) |
237 |
|
AC_DEFINE(PLUGIN_RUBY) |
238 |
|
fi |
239 |
|
|
240 |
if test "x$enable_plugins" = "xyes" ; then |
if test "x$enable_plugins" = "xyes" ; then |
241 |
AC_DEFINE(PLUGINS) |
AC_DEFINE(PLUGINS) |
242 |
fi |
fi |
284 |
src/plugins/Makefile |
src/plugins/Makefile |
285 |
src/plugins/perl/Makefile |
src/plugins/perl/Makefile |
286 |
src/plugins/python/Makefile |
src/plugins/python/Makefile |
287 |
|
src/plugins/ruby/Makefile |
288 |
src/gui/Makefile |
src/gui/Makefile |
289 |
src/gui/curses/Makefile |
src/gui/curses/Makefile |
290 |
src/gui/wxwidgets/Makefile |
src/gui/wxwidgets/Makefile |