From 3dea025bc3b57a04c16e9f0d33a682891a0d2f5a Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Tue, 16 Mar 2010 21:01:50 +0200 Subject: [PATCH] debian: implement Kerberos autodetection in rules No need to change rules for Maemo builds anymore... --- contrib/debian/rules | 8 +++++++- contrib/opensuse-build-service/debian.rules | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/contrib/debian/rules b/contrib/debian/rules index 47027896..fdf36bb1 100755 --- a/contrib/debian/rules +++ b/contrib/debian/rules @@ -3,7 +3,13 @@ include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk -DEB_CONFIGURE_EXTRA_FLAGS := --with-purple --without-telepathy --with-krb5=yes +DEB_CONFIGURE_EXTRA_FLAGS := --with-purple --without-telepathy + +# autodetect Kerberos support +ifneq ($(shell krb5-config --version 2>/dev/null),) +DEB_CONFIGURE_EXTRA_FLAGS += --with-krb5=yes +endif + # Don't run unnecessary ldconfig on postinst and postrm. DEB_DH_MAKESHLIBS_ARGS_pidgin-sipe=-n diff --git a/contrib/opensuse-build-service/debian.rules b/contrib/opensuse-build-service/debian.rules index 47027896..fdf36bb1 100644 --- a/contrib/opensuse-build-service/debian.rules +++ b/contrib/opensuse-build-service/debian.rules @@ -3,7 +3,13 @@ include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk -DEB_CONFIGURE_EXTRA_FLAGS := --with-purple --without-telepathy --with-krb5=yes +DEB_CONFIGURE_EXTRA_FLAGS := --with-purple --without-telepathy + +# autodetect Kerberos support +ifneq ($(shell krb5-config --version 2>/dev/null),) +DEB_CONFIGURE_EXTRA_FLAGS += --with-krb5=yes +endif + # Don't run unnecessary ldconfig on postinst and postrm. DEB_DH_MAKESHLIBS_ARGS_pidgin-sipe=-n -- 2.11.4.GIT