From: Reinhard Pfau Date: Tue, 24 Mar 2009 19:32:50 +0000 (+0100) Subject: some updates to libt2n macro X-Git-Tag: v0.3~77 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=5e89bf055793a8d3b80c8f394fe79992b4e6e9ce;p=libasyncio some updates to libt2n macro --- diff --git a/m4macros/libt2n.m4 b/m4macros/libt2n.m4 index 0b7aed4..f17bc2e 100644 --- a/m4macros/libt2n.m4 +++ b/m4macros/libt2n.m4 @@ -2,11 +2,14 @@ dnl test for libt2n and libt2n-codegen dnl LIBT2N(VERSION, action-if, action-not) AC_DEFUN([LIBT2N_CHECK], [ - PKG_CHECK_MODULES(LIBT2N, [$1], [$2], [$3]) - LIBT2N_CODEGEN=`$PKG_CONFIG --variable libt2n_codegen libt2n` - LIBT2N_DATADIR=`$PKG_CONFIG --variable libt2n_datadir libt2n` - LIBT2N_CLIENT_PCTEMPLATE="$LIBT2N_DATADIR/clientlib.pc.in" + PKG_CHECK_MODULES(LIBT2N, [$1], [ + LIBT2N_CODEGEN=`$PKG_CONFIG --variable libt2n_codegen libt2n` + LIBT2N_DATADIR=`$PKG_CONFIG --variable libt2n_datadir libt2n` + LIBT2N_CLIENT_PCTEMPLATE="$LIBT2N_DATADIR/clientlib.pc.in" + $2 + ], [$3]) AC_SUBST(LIBT2N_CODEGEN) + AC_SUBST(LIBT2N_DATADIR) AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) dnl newer automake versions do not allow to use += on undefined variables