mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-24 22:21:43 +02:00
Fixed pkg-config
This commit is contained in:
parent
a385fa7010
commit
aa4e9ca7d3
@ -135,10 +135,10 @@ AS_IF([test "x$with_hdf5" == "xno"], [
|
||||
HDF5_CFLAGS="-I$HDF5_PATH/include"
|
||||
AC_DEFINE([HAVE_HDF5], 1, [Define to 1 if HDF5 is available]) ],
|
||||
[
|
||||
PKG_CHECK_MODULES([HDF5], [hdf5 >= 1.8])
|
||||
AS_IF([ test "${HDF5_LIBS}" == "" ], [
|
||||
AC_CHECK_LIB([hdf5], [H5Fcreate], [ HDF5_LIBS="-lhdf5" ])
|
||||
AC_CHECK_HEADER([hdf5.h], [HDF5_CFLAGS=""], [AC_MSG_ERROR([HDF5 header not found]) ]) ])
|
||||
AC_CHECK_LIB([hdf5], [H5Fcreate], [ HDF5_LIBS="-lhdf5" ], [
|
||||
PKG_CHECK_MODULES([HDF5], [hdf5 >= 1.8])
|
||||
] )
|
||||
AC_CHECK_HEADER([hdf5.h], [HDF5_CFLAGS=""], [AC_MSG_ERROR([HDF5 header not found]) ])
|
||||
AC_DEFINE([HAVE_HDF5], 1, [Define to 1 if HDF5 is available])
|
||||
])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user