On Sun, Mar 14, 2010 at 06:23:54PM -0700, Ray Van Dolson wrote:
> I've been working today on getting freehoo to build against the latest
> SVN snapshot of libyahoo (libyahoo2 updated sometime last year to
> work with the new, SSL-based Yahoo authentication protocol).
> 
> The following patch gets things to build for me:
> 
>   http://rayvd.fedorapeople.org/freehoo/freehoo-3.5.3-ssl.patch
> 
> Though there are a few compilation warnings.  The biggest thing I want
> to address however, is the _correct_ way to use autoconf/automake to
> populate the SSL_LIBS variable in the Makefile.
> 
> I assume I need to do some magic in configure.ac.
> 
> Anyone want to tackle this or have a quick suggestion?

Well, think I have a working solution.  Patch attached.

Ray
Index: configure.ac
===================================================================
RCS file: /sources/freehoo/freehoo/configure.ac,v
retrieving revision 1.36
diff -u -r1.36 configure.ac
--- configure.ac        21 Jan 2009 22:18:21 -0000      1.36
+++ configure.ac        15 Mar 2010 01:57:40 -0000
@@ -54,6 +54,10 @@
 dnl Extra include and library paths
 dnl AC_DEFINE(USE_STRUCT_CALLBACKS, 1, [Define if you want to use a callback 
structure instead of callback functions])
 
+PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.6)
+AC_SUBST(OPENSSL_CFLAGS)
+AC_SUBST(OPENSSL_LIBS)
+
 PKG_CHECK_MODULES(GLIB, glib-2.0 > 2.0.0)
 AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
Index: src/Makefile.am
===================================================================
RCS file: /sources/freehoo/freehoo/src/Makefile.am,v
retrieving revision 1.14
diff -u -r1.14 Makefile.am
--- src/Makefile.am     14 Oct 2007 09:30:33 -0000      1.14
+++ src/Makefile.am     15 Mar 2010 01:57:40 -0000
@@ -1,5 +1,5 @@
 CC = @CC@
-AM_CFLAGS = -Wall -D_GNU_SOURCE -DPATH_CFG=\"$(sysconfdir)\" 
-DDATADIR=\"$(datadir)\" $(YAHOO2_CFLAGS) $(GUILE_CFLAGS) $(GLIB_CFLAGS) 
+AM_CFLAGS = -Wall -D_GNU_SOURCE -DPATH_CFG=\"$(sysconfdir)\" 
-DDATADIR=\"$(datadir)\" $(YAHOO2_CFLAGS) $(GUILE_CFLAGS) $(GLIB_CFLAGS) 
$(OPENSSL_CFLAGS)
 
 bin_PROGRAMS = freehoo
 
@@ -13,7 +13,7 @@
                  yahoo-backend.h fh-utils.h guile-wrapper.h yahoo-adapter.h \
                  yahoo-utils.h
 
-freehoo_LDADD = $(YAHOO2_LIBS) $(GLIB_LIBS) $(GUILE_LDFLAGS) $(READLINE_LIBS)
+freehoo_LDADD = $(YAHOO2_LIBS) $(GLIB_LIBS) $(GUILE_LDFLAGS) $(READLINE_LIBS) 
$(OPENSSL_LIBS)
 
 CLEANFILES = *~
 DISTCLEANFILES = .deps/*.P
_______________________________________________
Freehoo-devel mailing list
Freehoo-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freehoo-devel

Reply via email to