--- imap/src/osdep/unix/Makefile.ssl.orig	Fri Jan 14 20:56:16 2000
+++ imap/src/osdep/unix/Makefile.ssl	Tue Feb  1 00:34:17 2000
@@ -1,12 +1,11 @@
 
 # Extended flags needed for additional authenticators.  You may need to modify.
 
-SSLDIR=/usr/local
-SSLCFLAGS= -I$(SSLDIR)/include
-SSLLDFLAGS= -L$(SSLDIR)/lib -lssl -lcrypto
+SSLCFLAGS= -I$(OPENSSLINC)
+SSLLDFLAGS= -L$(OPENSSLLIB) -lssl -lcrypto $(EXTRA_SSL_LIBS)
 
 .ifdef RSAREF
-SSLLDFLAGS+= -lRSAglue -lrsaref
+SSLLDFLAGS+= -lRSAglue -L${LOCALBASE}/lib -lrsaref
 .endif
 
 ssl:	# SSL flags
