URL:
https://svn.lrde.epita.fr/svn/oln/trunk/milena
ChangeLog:
2007-12-04 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
Update fits Makefile.
* tests/io/fits/Makefile.am: Compile the fits test only when
CFITSIO is available (thanks to cfitsio.m4).
---
Makefile.am | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Index: trunk/milena/tests/io/fits/Makefile.am
===================================================================
--- trunk/milena/tests/io/fits/Makefile.am (revision 1590)
+++ trunk/milena/tests/io/fits/Makefile.am (revision 1591)
@@ -2,9 +2,14 @@
include $(top_srcdir)/milena/tests/tests.mk
-check_PROGRAMS = \
- fits
+check_PROGRAMS =
+if CFITSIO
+ check_PROGRAMS += fits
fits_SOURCES = fits.cc
+ fits_CPPFLAGS = $(AM_CPPFLAGS) $(CFITSIO_CPPFLAGS)
+ fits_LDFLAGS = $(AM_LDFLAGS) $(CFITSIO_LDFLAGS)
+
+endif
TESTS = $(check_PROGRAMS)