From 294b0779779aefac4eef9f7fa8f6062e625f7da3 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 25 Mar 2011 12:17:13 -0500 Subject: [PATCH] FS-3182: fix mod_dingaling/iksemel/gnutls link error when using newer autotools --- acinclude.m4 | 1 + build/modmake.rules.in | 1 + configure.in | 2 ++ src/mod/endpoints/mod_dingaling/Makefile | 2 ++ 4 files changed, 6 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 705b9458b5..aeba17b5c3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -12,4 +12,5 @@ m4_include([build/config/sched_setaffinity.m4]) m4_include([libs/apr/build/apr_common.m4]) m4_include([libs/sofia-sip/m4/sac-pkg-config.m4]) m4_include([libs/sofia-sip/m4/sac-openssl.m4]) +m4_include([libs/iksemel/build/libgnutls.m4]) m4_include([build/config/libcurl.m4]) diff --git a/build/modmake.rules.in b/build/modmake.rules.in index f1b30c8a18..51923ec3dd 100644 --- a/build/modmake.rules.in +++ b/build/modmake.rules.in @@ -27,6 +27,7 @@ INSTALL=@INSTALL@ GETLIB=@GETLIB@ LIBTOOL=@LIBTOOL@ AR=@AR@ +LIBGNUTLS_LIBS=@LIBGNUTLS_LIBS@ LTINSTALL=$(LIBTOOL) --quiet --mode=install $(INSTALL) LTUNINSTALL=$(LIBTOOL) --mode=uninstall rm -f CCLD = $(CC) diff --git a/configure.in b/configure.in index d56116a9a6..4ae6dc7b59 100644 --- a/configure.in +++ b/configure.in @@ -144,6 +144,8 @@ if test "${enable_optimizer}" = "yes" ; then AX_CC_MAXOPT fi +AX_PATH_LIBGNUTLS() + # set defaults for use on all platforms SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${switch_builddir}/src/include -I${switch_srcdir}/libs/libteletone/src" SWITCH_AM_CXXFLAGS="-I${switch_srcdir}/src/include -I${switch_builddir}/src/include -I${switch_srcdir}/libs/libteletone/src" diff --git a/src/mod/endpoints/mod_dingaling/Makefile b/src/mod/endpoints/mod_dingaling/Makefile index d23c3b200c..f2ac13bb7a 100644 --- a/src/mod/endpoints/mod_dingaling/Makefile +++ b/src/mod/endpoints/mod_dingaling/Makefile @@ -10,8 +10,10 @@ DING_DIR=$(BASE)/libs/libdingaling LOCAL_CFLAGS += -I$(DING_DIR)/src -I$(BASE)/libs/iksemel/include LOCAL_OBJS=$(DING_DIR)/src/libdingaling.o $(DING_DIR)/src/sha1.o $(IKS_LA) LOCAL_SOURCES=$(DING_DIR)/src/libdingaling.c $(DING_DIR)/src/sha1.c +LOCAL_LDFLAGS=$(LIBGNUTLS_LIBS) include $(BASE)/build/modmake.rules + $(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update @cd $(IKS_DIR) && $(MAKE) @$(TOUCH_TARGET)