[cyrus-sasl-2.1.22] autoconf should detect -lsocket for openssl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

autoconf should detect and include -lsocket into the LIBS variable.
This is an issue for a static openssl on Solaris 8/sparc.

The attached patch works as follows:

IMHO CMU_SOCKET should modify the global $LIBS variable because it would be tedious to include LIB_SOCKET into every library which depends on it. It does no harm to be included unnessesarily. Without this mod some other tests in cyrus-sasl failed, too.

The OpenSSL test requires the CMU_SOCKET test to be run before the detection routine. OpenSSL detection fails without -lsocket LIBS.

Olaf
diff -cr cyrus-sasl-2.1.22/cmulocal/bsd_sockets.m4 ../cyrus-sasl-2.1.22/cmulocal/bsd_sockets.m4
*** ../cyrus-sasl-2.1.22/cmulocal/bsd_sockets.m4	Tue Apr 26 21:14:07 2005
--- cyrus-sasl-2.1.22/cmulocal/bsd_sockets.m4	Wed Nov 29 12:01:15 2006
***************
*** 34,39 ****
          )
  	LIBS="$LIB_SOCKET $save_LIBS"
  	AC_CHECK_FUNCS(dn_expand dns_lookup)
- 	LIBS="$save_LIBS"
  	AC_SUBST(LIB_SOCKET)
  	])
--- 34,38 ----
Only in ../cyrus-sasl-2.1.22/cmulocal/: common.m4~
diff -cr cyrus-sasl-2.1.22/cmulocal/openssl.m4 ../cyrus-sasl-2.1.22/cmulocal/openssl.m4
*** ../cyrus-sasl-2.1.22/cmulocal/openssl.m4	Wed May 17 20:43:25 2006
--- cyrus-sasl-2.1.22/cmulocal/openssl.m4	Wed Nov 29 12:02:53 2006
***************
*** 5,10 ****
--- 5,11 ----
  
  AC_DEFUN([CMU_HAVE_OPENSSL], [
  AC_REQUIRE([CMU_FIND_LIB_SUBDIR])
+ AC_REQUIRE([CMU_SOCKETS])
  AC_ARG_WITH(openssl,[  --with-openssl=PATH     use OpenSSL from PATH],
  	with_openssl=$withval, with_openssl="yes")
  

begin:vcard
fn:Dr. Olaf Flebbe
n:Flebbe;Olaf
org:science+computing ag;Software Solutions
adr;quoted-printable:;;Hagellocher Weg 73;T=C3=BCbingen;;72070;Germany
email;internet:o.flebbe@xxxxxxxxxxxxxxxxxxxx
title:Leiter Softwareentwicklung
tel;work:+49 7071 9457 254
tel;fax:+49 7071 9457 511
x-mozilla-html:FALSE
url:http://www.science-computing.de
version:2.1
end:vcard


[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux