[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-dev
Subject:    Re: Wish: configure should allow specifying path for SSL libs
From:       Tommi Komulainen <Tommi.Komulainen () iki ! fi>
Date:       2000-02-29 20:51:39
[Download RAW message or body]

On Tue, Feb 29, 2000 at 01:13:05PM +0200, Heikki Kantola wrote:
> Hmm, can't get the patch working, it seems to disable whole SSL 
> checking... :-\

There was a typo in it, that could be the reason. The typo was mentioned 
on this list about right away after the patch. I though it was trivial, 
but I'll attach the fixed patch here.


> > script will try to find the libraries in /usr/local/ssl/lib and the
> > header files in /usr/local/ssl/include[/openssl].
>                                           ^^^^^^^
> ...and looks like I can't use the system installed SSL-libs as they
> happen to be SSLey ones and not OpenSSL. :(

Well, then you're on your own. Anyway, in theory it should be sufficient 
to replace #includes in imap_ssl.c to point to the right directory. The 
API could have been significantly different, but I can't verify that as
I'm not downgrading that far. I think you should consider upgrading to
openssl too.


-- 
Tommi Komulainen                               Tommi.Komulainen@iki.fi

["ssldir.patch" (text/plain)]

--- configure.in.orig	Tue Feb 15 11:02:10 2000
+++ configure.in	Sun Feb 20 16:36:57 2000
@@ -487,12 +487,17 @@
 ])
 AM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)
 
-AC_ARG_ENABLE(ssl, [    --enable-ssl             Enable SSL support for IMAP],
+AC_ARG_WITH(ssl, [    --with-ssl[=PFX]         Compile in SSL socket support for IMAP],
 [	if test "$need_imap" != "yes"; then
 	   AC_MSG_ERROR([SSL support is only for IMAP, but IMAP is not enabled])
 	fi
-
+	
+        if test "x$withval" != "x"; then
+	   LDFLAGS="$LDFLAGS -L$withval/lib"
+	   CPPFLAGS="$CPPFLAGS -I$withval/include"
+	fi
 	saved_LIBS="$LIBS"
+
 	AC_CHECK_LIB(crypto, X509_new,, AC_MSG_ERROR([Unable to find SSL library]))
 	AC_CHECK_LIB(ssl, SSL_new,, AC_MSG_ERROR([Unable to find SSL library]), -lcrypto)
 	AC_DEFINE(USE_SSL)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic