diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.in | 25 | ||||
-rw-r--r-- | tests/Makefile.am | 2 |
3 files changed, 31 insertions, 4 deletions
@@ -1,5 +1,13 @@ 2008-08-13 Jonathon Jongsma <jjongsma@gnome.org> + * configure.in: fix boost unit test detection (hack stolen from Dodji from + nemiver) + * tests/Makefile.am: explicitly link against the static unit test lib. This + should fix the test build on (at least) Ubuntu Hardy, where previously I was + getting an undefined reference to main() + +2008-08-13 Jonathon Jongsma <jjongsma@gnome.org> + * cairomm/enums.h: update to include new surface types. Remove an unnecessary cairo version check since we depend on a higher version of cairo for other stuff anyway diff --git a/configure.in b/configure.in index 55c7b82..4f2884c 100644 --- a/configure.in +++ b/configure.in @@ -124,9 +124,28 @@ if test x$ENABLE_TESTS = xauto ; then fi if test x$ENABLE_TESTS = xyes ; then -AX_BOOST_BASE([1.33.1]) -AX_BOOST_UNIT_TEST_FRAMEWORK -AC_MSG_NOTICE(support of automated tests enabled) +####################################################### +#boost build system sucks no end. +#it is damn hard to detect the version of boost +#that is installed. All that because our friends of +#the boost project don't want to integrate to autofoo. +#So we resort to hugly hacks to detect the version of +#boost that is installed. +####################################################### + AX_BOOST_BASE([1.33.1]) + AX_BOOST_UNIT_TEST_FRAMEWORK + AX_BOOST_TEST_EXEC_MONITOR + + unit_framework_lib_candidates="/usr/lib/libboost_unit_test_framework-st.a /usr/lib/libboost_unit_test_framework.a" + unit_framework_lib_candidates=$unit_framework_lib_candidates" /usr/lib64/libboost_unit_test_framework-st.a /usr/lib64/libboost_unit_test_framework.a" + for i in $unit_framework_lib_candidates ; do + if test -f $i ; then + BOOST_UNIT_TEST_FRAMEWORK_STATIC_LIB=$i + break + fi + done + AC_SUBST(BOOST_UNIT_TEST_FRAMEWORK_STATIC_LIB) + AC_MSG_NOTICE(support of automated tests enabled) else AC_MSG_NOTICE(disabled support of automated tests) fi diff --git a/tests/Makefile.am b/tests/Makefile.am index 366ccfe..7f69eb0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,4 +16,4 @@ endif INCLUDES = -I$(top_srcdir) @CAIROMM_CFLAGS@ #The libraries that the executable needs to link against: -LIBS = $(top_builddir)/cairomm/libcairomm-1.0.la @LIBS@ @CAIROMM_LIBS@ @BOOST_UNIT_TEST_FRAMEWORK_LIB@ +LIBS = $(top_builddir)/cairomm/libcairomm-1.0.la @LIBS@ @CAIROMM_LIBS@ @BOOST_UNIT_TEST_FRAMEWORK_STATIC_LIB@ |