From e5f4c4d217a35f5405dc1f2a6ff9f79e2ecad705 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Tue, 17 Jul 2012 19:19:48 +0200 Subject: [PATCH] Add make support for SASL on Unix --- configure.in | 29 ++++++++++++++++++++++++++--- plugins/Makefile.am | 6 +++++- plugins/sasl/Makefile.am | 10 ++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 plugins/sasl/Makefile.am diff --git a/configure.in b/configure.in index a65823fa..6c5e60b6 100644 --- a/configure.in +++ b/configure.in @@ -129,6 +129,10 @@ AC_ARG_ENABLE(tcl, [ --enable-tcl[=PATH] directory with Tcl config file: tclConfig.sh], tcl=$enableval, tcl=yes) +AC_ARG_ENABLE(sasl, +[ --disable-sasl disable the SASL plugin], + sasl=$enableval, sasl=yes) + AC_ARG_ENABLE(plugin, [ --disable-plugin disable plugin support], plugin=$enableval, plugin=yes) @@ -362,6 +366,21 @@ if test "$tcl" != "no"; then fi fi +dnl ********************************************************************* +dnl ** SASL ************************************************************* +dnl ********************************************************************* + +if test "$sasl" != "no"; then +AC_MSG_CHECKING(for plugin interface used by SASL) + sasl=no + if test "$plugin" = yes; then + sasl=yes + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([plugins are disabled, use the --enable-plugin option for SASL]) + fi +fi + dnl ********************************************************************* dnl ** IPv6 ************************************************************* dnl ********************************************************************* @@ -575,6 +594,7 @@ AM_CONDITIONAL(DO_GTK, test "x$gtkfe" = "xyes") AM_CONDITIONAL(DO_PERL, test "x$perl" = "xyes") AM_CONDITIONAL(DO_PYTHON, test "x$python" = "xyes") AM_CONDITIONAL(DO_TCL, test "x$tcl" = "xyes") +AM_CONDITIONAL(DO_SASL, test "x$sasl" = "xyes") AM_CONDITIONAL(DO_PLUGIN, test "x$plugin" = "xyes") AM_CONDITIONAL(USE_DBUS, test "x$dbus" = "xyes") AM_CONDITIONAL(DO_GCONF, test "x$GCONFTOOL" != "xno") @@ -837,18 +857,17 @@ plugins/Makefile plugins/python/Makefile plugins/perl/Makefile plugins/tcl/Makefile +plugins/sasl/Makefile intl/Makefile po/Makefile.in ]) echo -echo hexchat $VERSION +echo HexChat $VERSION echo echo Building GTK+ Interface .... : $gtkfe echo Building TEXT Interface .... : $textfe echo -echo PLUGINS: Perl: $perl Python: $python TCL: $tcl -echo echo mmx tinting ......... : $mmx\ spelling .............. : $spell echo XShm tinting ........ : $shm\ plugin interface ...... : $plugin if test "$xft" = no; then @@ -860,6 +879,10 @@ echo openssl support ..... : $openssl\ ipv6 support .......... : $ipv6 echo dbus support ........ : $dbus\ msproxy ntlm \(ISA\) .... : $have_ntlm echo libnotify support ... : $libnotify echo +echo Perl ................ : $perl\ SASL .................. : $sasl +echo Python .............. : $python +echo Tcl ................. : $tcl +echo echo The binary will be installed in $prefix/bin echo diff --git a/plugins/Makefile.am b/plugins/Makefile.am index d90f813a..dd33d8c7 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -17,5 +17,9 @@ if DO_TCL tcldir = tcl endif +if DO_SASL +sasldir = sasl +endif + #SUBDIRS = . $(pythondir) $(perldir) mailcheck xdcc -SUBDIRS = . $(pythondir) $(perldir) $(tcldir) +SUBDIRS = . $(pythondir) $(perldir) $(tcldir) $(sasldir) diff --git a/plugins/sasl/Makefile.am b/plugins/sasl/Makefile.am new file mode 100644 index 00000000..d6f74797 --- /dev/null +++ b/plugins/sasl/Makefile.am @@ -0,0 +1,10 @@ +EXTRA_DIST = + +libdir = $(hexchatlibdir)/plugins + +lib_LTLIBRARIES = sasl.la +sasl_la_SOURCES = sasl.c +sasl_la_LDFLAGS = -avoid-version -module +sasl_la_LIBADD = +INCLUDES = $(COMMON_CFLAGS) -I$(srcdir)/.. +