Commit c6b74b77 authored by Thomas White's avatar Thomas White
Browse files

Sort out libraries and cflags

parent f09b0fc4
......@@ -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)
bin_PROGRAMS = pattern_sim
AM_CFLAGS = -Wall -g @CFLAGS@
pattern_sim_SOURCES = main.c diffraction.c utils.c image.c cell.c hdf5-file.c
pattern_sim_LDADD = @LIBS@ -lm -lgsl -lgslcblas
pattern_sim_LDADD = @LIBS@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment