From c6b74b77b111c4e45b93ef9f02863dceafe0d047 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 12 Nov 2009 12:06:06 +0100 Subject: Sort out libraries and cflags --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8b746557..1eac1a93 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,13 @@ AC_FUNC_MALLOC AC_TYPE_SIGNAL AC_CHECK_FUNCS([strdup]) -LIBS="$LIBS -lhdf5" +AC_ARG_WITH(hdf5, +[AS_HELP_STRING([--with-hdf5], [specify location of HDF5 library])], +[HDF5_CFLAGS="-I$withval/include" + HDF5_LIBS="-L$withval/lib -lhdf5"], +[]) + +CFLAGS="$CFLAGS $HDF5_CFLAGS" +LIBS="$LIBS $HDF5_LIBS -lm -lgsl -lgslcblas" AC_OUTPUT(Makefile src/Makefile) -- cgit v1.2.3