summaryrefslogtreecommitdiffstats
path: root/build/linux/Makefile.in
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <wjp@usecode.org>2015-03-06 21:23:19 +0100
committerWillem Jan Palenstijn <wjp@usecode.org>2015-03-06 21:23:19 +0100
commitc58a0f821cf494741e039d4b56aabb7a9ffe85bf (patch)
treea72d7e80b18bab5b0288e263d6fa5cf928e064d5 /build/linux/Makefile.in
parent8a1001f236cc0d31d24c250e6eb1f0cd1c419ebc (diff)
downloadastra-c58a0f821cf494741e039d4b56aabb7a9ffe85bf.tar.gz
astra-c58a0f821cf494741e039d4b56aabb7a9ffe85bf.tar.bz2
astra-c58a0f821cf494741e039d4b56aabb7a9ffe85bf.tar.xz
astra-c58a0f821cf494741e039d4b56aabb7a9ffe85bf.zip
Make boost-unit-test-framework optional in configure
Diffstat (limited to 'build/linux/Makefile.in')
-rw-r--r--build/linux/Makefile.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in
index 2d62a17..f647299 100644
--- a/build/linux/Makefile.in
+++ b/build/linux/Makefile.in
@@ -1,6 +1,7 @@
cuda=@HAVECUDA@
matlab=@HAVEMATLAB@
python=@HAVEPYTHON@
+boostutf=@HAVEBOOSTUTF@
MATLAB_ROOT=@MATLAB_ROOT@
@@ -59,6 +60,8 @@ endif
BOOST_CPPFLAGS=
BOOST_LDFLAGS=
+BOOSTUTF_LIBS=@LIBS_BOOSTUTF@
+
CPPFLAGS+=$(BOOST_CPPFLAGS)
LDFLAGS+=$(BOOST_LDFLAGS)
@@ -290,11 +293,16 @@ ifeq ($(cuda),yes)
@rm -f $(*F).linkinfo
endif
+ifeq ($(boostutf),yes)
test.bin: $(ALL_OBJECTS) $(TEST_OBJECTS)
- ./libtool --mode=link $(LD) -o $@ $(LDFLAGS) $(LIBS) $+ -lboost_unit_test_framework
+ ./libtool --mode=link $(LD) -o $@ $(LDFLAGS) $+ $(LIBS) $(BOOSTUTF_LIBS)
test: test.bin
./test.bin
+else
+test:
+ @echo "Tests have been disabled by configure"
+endif
clean:
rm -f $(MATLAB_MEX) libastra.la