From 26eca3d84050172b9485555ee63e7f2ba19f5c51 Mon Sep 17 00:00:00 2001 From: Jens Thiele Date: Mon, 4 Dec 2006 13:49:15 +0000 Subject: [PATCH] added variables to pc file --- codegen/TODO | 19 +++++++++++++++++++ libt2n.pc.in | 3 +++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/codegen/TODO b/codegen/TODO index 2e00c40..cbc6c1c 100644 --- a/codegen/TODO +++ b/codegen/TODO @@ -11,7 +11,26 @@ open questions: - makefile snippet must work for builds outside of libt2n (=> some variables must be set by configure, the snippet must be installed => pc file template must be installed, too) + + the variables which must be set: + LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen" + LIBT2N_CLIENT_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in" + LIBT2N_CODEGEN_MAKESNIPPET="include \$(top_srcdir)/codegen/codegen.make" + + LIBT2N_CODEGEN will be handled by AC_PATH_PROG + the other two? can't we use pkgconfig?! + perhaps best provide a m4 macro for use with autoconf? + + AC_DEFUN([LIBT2N_CODEGEN ... + + alternatively we could add a option --datadir to codegen which prints out the + path to clientlib.pc.in and codegen.make + (first solution is the better one) + + we can use pkg-config => best solution + - it would really be much nicer if the client lib includes would not depend upon boost serialization i thought a solution would be to provide this optionally by wrapping the corresponding includes in a #ifdef but this does not work since command.hxx is included which depends on boost serialization headers anyway => we do not provide this for now + diff --git a/libt2n.pc.in b/libt2n.pc.in index 03d773f..343998a 100644 --- a/libt2n.pc.in +++ b/libt2n.pc.in @@ -1,7 +1,10 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ +bindir=@bindir@ libdir=@libdir@ includedir=@includedir@/libt2n +libt2n_codegen=@bindir@/libt2n-codegen +libt2n_datadir=@datadir@/libt2n Name: libt2n Description: talk2neighbor - C++ IPC library -- 1.7.1