5864N/A# Developed in-house at Oracle
5864N/A# Commented on bugzilla Bug 3401 sasldir and plugindir in Makefile.am
5864N/A# Upstream is considering multiple solutions, attached this patch to the bug.
5053N/A
5053N/Adiff -rupN old/configure.in new/configure.in
5053N/A--- old/configure.in 2015-01-16 16:06:51.953695234 -0800
5053N/A+++ new/configure.in 2015-01-16 16:09:35.970052678 -0800
5053N/A@@ -1019,6 +1019,12 @@ AC_ARG_WITH(configdir, [ --with-config
5053N/A AC_DEFINE_UNQUOTED(CONFIGDIR, "$configdir", [Runtime config file location])
5053N/A AC_SUBST(configdir)
5053N/A
5053N/A+AC_ARG_WITH(sasldir, [ --with-sasldir=DIR set the directory where plugins
5739N/A+ will be installed, possibly 32 vs 64 [[/usr/lib/sasl2]] ],
5739N/A+ sasldir=$withval, sasldir=/usr/lib/sasl2)
5053N/A+AC_DEFINE_UNQUOTED(SASLDIR, "$sasldir", [Installtime plugin location])
5053N/A+AC_SUBST(sasldir)
5053N/A+
5053N/A dnl look for rc4 libraries. we accept the CMU one or one from openSSL
5053N/A AC_ARG_WITH(rc4, [ --with-rc4 use internal rc4 routines [[yes]] ],
5053N/A with_rc4=$withval,
5053N/Adiff -rupN old/Makefile.am new/Makefile.am
5053N/A--- old/Makefile.am 2015-01-16 16:11:08.980698791 -0800
5053N/A+++ new/Makefile.am 2015-01-16 16:16:28.670281716 -0800
5053N/A@@ -83,14 +83,15 @@ dist-hook:
5053N/A
5053N/A framedir = /Library/Frameworks/SASL2.framework
5053N/A install-exec-local: $(INSTALLOSX)
5053N/A- @if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \
5053N/A+ @if test "$(plugindir)" != "$(sasldir)"; then \
5053N/A echo "********************************************************"; \
5053N/A echo "* WARNING:"; \
5053N/A- echo "* Plugins are being installed into $(prefix)/lib/sasl2,"; \
5053N/A+ echo "* Plugins are being installed into $(sasldir),"; \
5053N/A echo "* but the library will look for them in $(plugindir)."; \
5053N/A- echo "* You need to make sure that the plugins will eventually"; \
5053N/A+ echo "* If this is not deliberate (for 32/64 bits), make " ; \
5053N/A+ echo "* sure that the plugins will eventually"; \
5053N/A echo "* be in $(plugindir) -- the easiest way is to make a"; \
5053N/A- echo "* symbolic link from $(plugindir) to $(prefix)/lib/sasl2,"; \
5053N/A+ echo "* symbolic link from $(plugindir) to $(sasldir),"; \
5053N/A echo "* but this may not be appropriate for your site, so this"; \
5053N/A echo "* installation procedure won't do it for you."; \
5053N/A echo "*"; \
5053N/Adiff -rupN old/plugins/Makefile.am new/plugins/Makefile.am
5053N/A--- old/plugins/Makefile.am 2015-01-16 16:17:16.113465999 -0800
5053N/A+++ new/plugins/Makefile.am 2015-01-16 16:18:02.347850991 -0800
5053N/A@@ -63,7 +63,7 @@ plugindir = @plugindir@
5053N/A
5053N/A common_sources = plugin_common.c plugin_common.h
5053N/A
5053N/A-sasldir = $(prefix)/lib/sasl2
5053N/A+sasldir = @sasldir@
5053N/A sasl_LTLIBRARIES = @SASL_MECHS@
5053N/A EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \
5053N/A libgs2.la libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \