From 7fb7246717d8759deed79b1332d62cf5d8c6770a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 3 Aug 2010 13:50:09 +0000 Subject: [PATCH] closes #6 --- configure.in | 2 +- src/makefile.am | 6 ++++-- src/xml-cxx/xml.hxx | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 0c88704..03e9536 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,7 @@ done AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org]) # files to create -AC_CONFIG_FILES(makefile +AC_CONFIG_FILES(makefile src/version.cxx src/makefile test/makefile doc/examples/makefile doc/doxyfile doc/makefile src/libxml-cxx.pc debian/changelog diff --git a/src/makefile.am b/src/makefile.am index 604c7e4..ad4ce0c 100644 --- a/src/makefile.am +++ b/src/makefile.am @@ -10,13 +10,15 @@ pkgconfig_DATA = libxml-cxx.pc pkgconfig2dir = $(datarootdir)/pkgconfig pkgconfig2_DATA = $(pkgconfig_DATA) -EXTRA_DIST = $(pkgconfig_DATA).in +EXTRA_DIST = $(pkgconfig_DATA).in version.cxx.in + +BUILT_SOURCES = version.cxx AM_CXXFLAGS += -I ${top_srcdir}/src lib_LTLIBRARIES = libxml-cxx.la nobase_include_HEADERS = xml-cxx/xml.hxx xml-cxx/any.hxx -libxml_cxx_la_SOURCES = xml.cxx +libxml_cxx_la_SOURCES = xml.cxx version.cxx DISTCLEANFILES = $(pkgconfig_DATA) MAINTAINERCLEANFILES = makefile.in diff --git a/src/xml-cxx/xml.hxx b/src/xml-cxx/xml.hxx index 5a820f0..d049239 100644 --- a/src/xml-cxx/xml.hxx +++ b/src/xml-cxx/xml.hxx @@ -455,6 +455,8 @@ class MethodTrace { //! Everything is in namespace xml namespace xml { + std::string version(); + //! @addtogroup freexml //@{