changeset 19168:f63e38e33811

Some lines to the auto-thingies to aid in libgnt building standalone
author Eric Polino <aluink@pidgin.im>
date Mon, 16 Jul 2007 19:49:59 +0000
parents 42fc16a234ec
children 3432d37a4a77
files configure.ac finch/libgnt/configure.ac finch/libgnt/wms/Makefile.am
diffstat 3 files changed, 13 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Jul 13 18:19:55 2007 +0000
+++ b/configure.ac	Mon Jul 16 19:49:59 2007 +0000
@@ -2038,6 +2038,8 @@
 	AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
 fi
 
+AM_CONDITIONAL(PURPLE_AVAILABLE, true)
+
 AC_OUTPUT([Makefile
 		   Doxyfile
 		   doc/Makefile
--- a/finch/libgnt/configure.ac	Fri Jul 13 18:19:55 2007 +0000
+++ b/finch/libgnt/configure.ac	Mon Jul 16 19:49:59 2007 +0000
@@ -314,6 +314,8 @@
 	AC_DEFINE(NO_LIBXML, 1, [Do not have libxml2.])
 fi
 
+AM_CONDITIONAL(PURPLE_AVAILABLE, false)
+
 AC_OUTPUT([Makefile
            gnt.pc
            wms/Makefile
--- a/finch/libgnt/wms/Makefile.am	Fri Jul 13 18:19:55 2007 +0000
+++ b/finch/libgnt/wms/Makefile.am	Mon Jul 16 19:49:59 2007 +0000
@@ -1,10 +1,16 @@
+if PURPLE_AVAILABLE
+# These custom wms depend on libpurple
+purple_wms = s.la irssi.la
+else
+purple_wms =
+endif
+
 s_la_LDFLAGS             = -module -avoid-version
 irssi_la_LDFLAGS         = -module -avoid-version
 
 plugin_LTLIBRARIES = \
-	s.la \
-	irssi.la
-
+	$(purple_wms)
+ 
 plugindir = $(libdir)/gnt
 
 irssi_la_SOURCES = irssi.c