changeset 1457:71138874c5fd

fixed linking
author Cristi Magherusan <majeru@atheme-project.org>
date Sat, 11 Aug 2007 02:22:54 +0300
parents 475eac76a8ba
children b2debf8c9ec8
files configure.ac mk/rules.mk.in
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sat Aug 11 01:52:28 2007 +0300
+++ b/configure.ac	Sat Aug 11 02:22:54 2007 +0300
@@ -1237,9 +1237,12 @@
     have_mtp_up=yes
     PKG_CHECK_MODULES(MTP, [libmtp >= 0.1.0], [GENERAL_PLUGINS="$GENERAL_PLUGINS mtp_up" ], [have_mtp_up="no"])
     MTP_LIBS=`pkg-config --libs libmtp`
+    MTP_CFLAGS=`pkg-config --cflags libmtp`
 else
     have_mtp_up=no
 fi
+AC_SUBST(MTP_LIBS)
+AC_SUBST(MTP_CFLAGS)
 
 dnl *** libparanormal checks
 
--- a/mk/rules.mk.in	Sat Aug 11 01:52:28 2007 +0300
+++ b/mk/rules.mk.in	Sat Aug 11 02:22:54 2007 +0300
@@ -226,6 +226,8 @@
 MKINSTALLDIRS ?= @MKINSTALLDIRS@
 MSGFMT ?= @MSGFMT@
 MSGMERGE ?= @MSGMERGE@
+MTP_CFLAGS ?= @MTP_CFLAGS@
+MTP_LIBS ?= @MTP_LIBS@
 OBJEXT ?= @OBJEXT@
 OGG_VORBIS_CFLAGS ?= @OGG_VORBIS_CFLAGS@
 OGG_VORBIS_LIBS ?= @OGG_VORBIS_LIBS@