Commit e6800864 authored by Leo Pound Singer's avatar Leo Pound Singer
Browse files

Make LALInference depend on libhdf5, libhdf5_hl, and LAL HDF5 support

Original: 4a0505e7c0e2ae6acd9c704ba49cecd86258b753
parent 7454ce9c
......@@ -173,9 +173,8 @@ AC_CHECK_HEADERS([metaio.h],,[AC_MSG_ERROR([could not find the metaio.h header])
# check for hdf5 support
HDF5_ENABLE_VAL="DISABLED"
AX_LIB_HDF5()
if test "${with_hdf5}" = "yes"; then
AC_DEFINE([LAL_HDF5_ENABLED],[1],[Define if using HDF5 library])
HDF5_ENABLE_VAL="ENABLED"
if test "${with_hdf5}" != "yes"; then
AC_MSG_ERROR([could not find the HDF5 library])
fi
if test "$lalxml" = "true"; then
......@@ -198,6 +197,27 @@ LALSUITE_CHECK_LIB([LALBurst],[1.4.2],[XLALEPSearch],[lal/EPSearch.h])
# check for lalxml
LALSUITE_CHECK_OPT_LIB([LALXML],[1.2.2],[XLALXMLFilePrintElements],[lal/LALXML.h])
AC_MSG_CHECKING([if LAL was built with HDF5 support])
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[
#include <lal/H5FileIO.h>
#include <lal/XLALError.h>
],
[
int ret;
(void)XLALSetSilentErrorHandler();
(void)XLALH5FileOpen(NULL, NULL);
return xlalErrno != XLAL_EFAULT;
]
)],
[AC_MSG_RESULT([yes])],
[
AC_MSG_RESULT([no])
AC_MSG_ERROR([LAL must be built with HDF5 support in order to build LALInference])
]
)
# configure SWIG wrapping modules
LALSUITE_USE_SWIG
......@@ -248,7 +268,6 @@ AC_MSG_NOTICE([
LALInference has now been successfully configured:
* Python support is $PYTHON_ENABLE_VAL
* HDF5 support is $HDF5_ENABLE_VAL
* LALXML library support is $LALXML_ENABLE_VAL
* SWIG bindings for Octave are $SWIG_BUILD_OCTAVE_ENABLE_VAL
* SWIG bindings for Python are $SWIG_BUILD_PYTHON_ENABLE_VAL
......
......@@ -73,7 +73,10 @@ liblalinference_la_SOURCES = \
$(XMLSRC)
nodist_liblalinference_la_SOURCES = LALInferenceBuildInfo.c
liblalinference_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBVERSION)
liblalinference_la_LDFLAGS = $(AM_LDFLAGS) $(HDF5_LDFLAGS) -version-info $(LIBVERSION)
liblalinference_la_LIBADD = $(HDF5_LIBS)
liblalinference_la_CFLAGS = $(AM_CFLAGS) $(HDF5_CFLAGS)
liblalinference_la_CPPFLAGS = $(AM_CPPFLAGS) $(HDF5_CPPFLAGS)
bin_PROGRAMS = \
lalinference_nest \
......
Markdown is supported
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