Skip to content

Commit baa215b

Browse files
committed
Fix gsl and improve hdf5 detection without Conda
1 parent d128ce7 commit baa215b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

support/configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3119,7 +3119,7 @@ then
31193119
# we assume that the conda metadata is correct, and that if it isn't there's
31203120
# an expert packager who can fix things.
31213121
printf "%s\n" "Conda package build detected, skipping checks for dependencies."
3122-
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 netcdf4 sapporo_light"
3122+
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 libz netcdf4 sapporo_light"
31233123
31243124
else
31253125
if test "x" != "x$CONDA_DEFAULT_ENV"
@@ -15584,7 +15584,7 @@ if test "x" != "x${HAVE_LAPACK}"
1558415584
then :
1558515585
FEATURES="${FEATURES} lapack"
1558615586
fi
15587-
if test "x" != "x${FOUND_GSL}"
15587+
if test "x${FOUND_GSL}" = "xyes"
1558815588
then :
1558915589
FEATURES="${FEATURES} gsl"
1559015590
fi
@@ -15604,7 +15604,7 @@ if test "x${FOUND_LIBZ}" = "xyes"
1560415604
then :
1560515605
FEATURES="${FEATURES} libz"
1560615606
fi
15607-
if test "x" != "x${with_hdf5}"
15607+
if test "x${with_hdf5}" = "xyes"
1560815608
then :
1560915609
FEATURES="${FEATURES} hdf5"
1561015610
fi

support/configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ then
2323
# we assume that the conda metadata is correct, and that if it isn't there's
2424
# an expert packager who can fix things.
2525
AS_ECHO(["Conda package build detected, skipping checks for dependencies."])
26-
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 netcdf4 sapporo_light"
26+
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 libz netcdf4 sapporo_light"
2727

2828
else
2929
if test "x" != "x$CONDA_DEFAULT_ENV"
@@ -219,12 +219,12 @@ ENABLE_FEATURE_IF_DEFINED([cuda], [CUDA_TK])
219219
ENABLE_FEATURE_IF_EQUALS([opencl], [FOUND_OPENCL], [yes])
220220
ENABLE_FEATURE_IF_DEFINED([blas], [BLAS_LIBS])
221221
ENABLE_FEATURE_IF_DEFINED([lapack], [HAVE_LAPACK])
222-
ENABLE_FEATURE_IF_DEFINED([gsl], [FOUND_GSL])
222+
ENABLE_FEATURE_IF_EQUALS([gsl], [FOUND_GSL], [yes])
223223
ENABLE_FEATURE_IF_EQUALS([gmp], [FOUND_GMP], [yes])
224224
ENABLE_FEATURE_IF_EQUALS([mpfr], [FOUND_MPFR], [yes])
225225
ENABLE_FEATURE_IF_EQUALS([fftw], [FOUND_FFTW], [yes])
226226
ENABLE_FEATURE_IF_EQUALS([libz], [FOUND_LIBZ], [yes])
227-
ENABLE_FEATURE_IF_DEFINED([hdf5], [with_hdf5])
227+
ENABLE_FEATURE_IF_EQUALS([hdf5], [with_hdf5], [yes])
228228
ENABLE_FEATURE_IF_EQUALS([netcdf4], [FOUND_NETCDF], [yes])
229229
ENABLE_FEATURE_IF_EQUALS([qhull], [FOUND_QHULL], [yes])
230230
ENABLE_FEATURE_IF_EQUALS([healpix-cxx], [FOUND_HEALPIX_CXX], [yes])

0 commit comments

Comments
 (0)