Skip to content

Commit 6232e98

Browse files
authored
Merge pull request #4397 from roystgnr/try_hdf5_required
Try configuring against HDF5 when --enable-hdf5-required
2 parents 9c303bf + 5c13669 commit 6232e98

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

configure

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61329,7 +61329,6 @@ esac
6132961329
fi
6133061330

6133161331

61332-
6133361332
if test "x$enablehdf5" = "xyes"
6133461333
then :
6133561334

@@ -61369,6 +61368,11 @@ fi
6136961368

6137061369
is_package_required=$hdf5required
6137161370

61371+
if test "x$is_package_required" = "xyes"
61372+
then :
61373+
with_hdf5=yes
61374+
fi
61375+
6137261376
if test "x${with_hdf5}" != "xno"
6137361377
then :
6137461378

m4/hdf5.m4

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ AC_DEFUN([CONFIGURE_HDF5],
3333
[AC_MSG_ERROR(bad value ${enableval} for --enable-hdf5-required)])],
3434
[hdf5required=no])
3535
36-
3736
AS_IF([test "x$enablehdf5" = "xyes"],
3837
[
3938
AX_PATH_HDF5(1.8.0,$hdf5required)
@@ -120,6 +119,14 @@ dnl expands to the string in 'equal', otherwise to the string in
120119
dnl 'not-equal'.
121120
is_package_required=ifelse([$2], ,no, $2)
122121
122+
dnl If we're told that HDF5 is required, but we weren't told where to
123+
dnl look for it, let's hope it's in the compiler paths already: we'll
124+
dnl set with_hdf5=yes so that we have a chance to auto-detect it and
125+
dnl so that we hit the code paths where we scream if we don't detect
126+
dnl it (or detect too old a version of it).
127+
AS_IF([test "x$is_package_required" = "xyes"],
128+
[with_hdf5=yes])
129+
123130
AS_IF([test "x${with_hdf5}" != "xno"],
124131
[
125132
AS_IF([test -d "${HDF5_PREFIX}/lib"],

0 commit comments

Comments
 (0)