added configure.in to built example completely seperately (using installed version...
authorJens Thiele <jens.thiele@intra2net.com>
Mon, 4 Dec 2006 15:18:00 +0000 (15:18 +0000)
committerJens Thiele <jens.thiele@intra2net.com>
Mon, 4 Dec 2006 15:18:00 +0000 (15:18 +0000)
example-codegen/configure.in [new file with mode: 0644]

diff --git a/example-codegen/configure.in b/example-codegen/configure.in
new file mode 100644 (file)
index 0000000..e02f97f
--- /dev/null
@@ -0,0 +1,21 @@
+AC_INIT(configure.in)
+
+AM_INIT_AUTOMAKE(libt2n-example, 0.1)
+
+AC_LANG_CPLUSPLUS
+AC_PROG_CXX
+AM_PROG_LIBTOOL
+
+
+dnl: todo wrap this in a m4 macro?
+
+PKG_CHECK_MODULES(LIBT2N, libt2n = 0.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"
+LIBT2N_CODEGEN_MAKESNIPPET="include $LIBT2N_DATADIR/codegen.make"
+AC_SUBST(LIBT2N_CODEGEN)
+AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE)
+AC_SUBST(LIBT2N_CODEGEN_MAKESNIPPET)
+
+AC_OUTPUT(Makefile)