X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=m4%2Flibt2n.m4;fp=m4%2Flibt2n.m4;h=6d3ba2203c84b9f5a7a122bf1842869967b62f90;hp=0000000000000000000000000000000000000000;hb=ab0a5465f83a5bee0f2f029bfb03edc4c5022515;hpb=ed4d3113311e6474d0f8b3ed94894284c6a3ea0e diff --git a/m4/libt2n.m4 b/m4/libt2n.m4 new file mode 100644 index 0000000..6d3ba22 --- /dev/null +++ b/m4/libt2n.m4 @@ -0,0 +1,11 @@ +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" + AC_SUBST(LIBT2N_CODEGEN) + AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) +])