changeset 7373:1dbf83536d83

[gaim-migrate @ 7968] Patch by Etan Reisner that lets people compiling gaim specify exactly what prpls to compile dynamically, rather than having to compile them all. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 29 Oct 2003 23:46:19 +0000
parents 4ce6952d7908
children c75f6c9d2f70
files configure.ac src/protocols/Makefile.am
diffstat 2 files changed, 33 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Wed Oct 29 21:44:11 2003 +0000
+++ b/configure.ac	Wed Oct 29 23:46:19 2003 +0000
@@ -121,6 +121,37 @@
 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto },
 	[Loads static protocol plugin module initialization functions.])
 
+AC_ARG_WITH(dynamic_prpls,   [ --with-dynamic-prpls    specify which protocols to build dynamically],[DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`],DYNAMIC_PRPLS="all")
+if test "x$DYNAMIC_PRPLS" = "xall" ; then
+	DYNAMIC_PRPLS="gg irc jabber msn napster oscar toc yahoo zephyr"
+fi
+AC_SUBST(DYNAMIC_PRPLS)
+for i in $DYNAMIC_PRPLS ; do
+	case $i in
+		gg)      dynamic_gg=yes ;;
+		irc)     dynamic_irc=yes ;;
+		jabber)  dynamic_jabber=yes ;;
+		msn)     dynamic_msn=yes ;;
+		napster) dynamic_napster=yes ;;
+		oscar)   dynamic_oscar=yes ;;
+		toc)     dynamic_toc=yes ;;
+		trepia)  dynamic_trepia=yes ;;
+		yahoo)   dynamic_yahoo=yes ;;
+		zephyr)  dynamic_zephyr=yes ;;
+		*)       echo "Invalid dynamic protocol $i!!" ; exit ;;
+	esac
+done
+AM_CONDITIONAL(DYNAMIC_GG, test "x$dynamic_gg" = "xyes")
+AM_CONDITIONAL(DYNAMIC_IRC, test "x$dynamic_irc" = "xyes")
+AM_CONDITIONAL(DYNAMIC_JABBER, test "x$dynamic_jabber" = "xyes")
+AM_CONDITIONAL(DYNAMIC_MSN, test "x$dynamic_msn" = "xyes")
+AM_CONDITIONAL(DYNAMIC_NAPSTER, test "x$dynamic_napster" = "xyes")
+AM_CONDITIONAL(DYNAMIC_OSCAR, test "x$dynamic_oscar" = "xyes")
+AM_CONDITIONAL(DYNAMIC_TOC, test "x$dynamic_toc" = "xyes")
+AM_CONDITIONAL(DYNAMIC_TREPIA, test "x$dynamic_trepia" = "xyes")
+AM_CONDITIONAL(DYNAMIC_YAHOO, test "x$dynamic_yahoo" = "xyes")
+AM_CONDITIONAL(DYNAMIC_ZEPHYR, test "x$dynamic_zephyr" = "xyes")
+
 AC_ARG_ENABLE(audio,   [  --disable-audio         compile without libao/libaudiofile for sound playing],,enable_audio=yes)
 AC_ARG_ENABLE(nas,     [  --enable-nas            enable NAS (Network Audio System) support],,enable_nas=no)
 AC_ARG_ENABLE(plugins, [  --disable-plugins       compile without plugin support],,enable_plugins=yes)
@@ -997,6 +1028,7 @@
 echo Allow Multiple Connections.... : $enable_multi
 echo Build Protocol Plugins........ : $enable_prpls
 echo Protocols to link statically.. : $STATIC_PRPLS
+echo Protocols to build dynamically : $DYNAMIC_PRPLS
 echo
 echo UI Library.................... : GTK 2.x
 echo SSL Library/Libraries......... : $msg_ssl
--- a/src/protocols/Makefile.am	Wed Oct 29 21:44:11 2003 +0000
+++ b/src/protocols/Makefile.am	Wed Oct 29 23:46:19 2003 +0000
@@ -1,11 +1,3 @@
 DIST_SUBDIRS = gg irc jabber msn napster oscar toc yahoo zephyr
 
-if PRPLS
-
-SUBDIRS = $(DIST_SUBDIRS)
-
-else
-
-SUBDIRS = $(STATIC_PRPLS)
-
-endif
+SUBDIRS = $(DYNAMIC_PRPLS) $(STATIC_PRPLS)