summaryrefslogtreecommitdiffstats
path: root/config/cmake/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2020-04-08 21:51:38 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2020-04-08 21:51:38 (GMT)
commit664fc6af47e369152727ff66d68d8532feb0e210 (patch)
treefc065511b53c9f91cb69737e43787b222345fdcf /config/cmake/ConfigureChecks.cmake
parent075e74e9b2e2ad761af44237aa78acc6ff3c3c24 (diff)
downloadhdf5-664fc6af47e369152727ff66d68d8532feb0e210.zip
hdf5-664fc6af47e369152727ff66d68d8532feb0e210.tar.gz
hdf5-664fc6af47e369152727ff66d68d8532feb0e210.tar.bz2
Add enable-mirror-vfd flag to configure options.
Diffstat (limited to 'config/cmake/ConfigureChecks.cmake')
-rw-r--r--config/cmake/ConfigureChecks.cmake16
1 files changed, 11 insertions, 5 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 1c3d5f9..5a401f7 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -175,11 +175,17 @@ endif ()
# Check whether we can build the Mirror VFD
# Header-check flags set in config/cmake_ext_mod/ConfigureChecks.cmake
# ----------------------------------------------------------------------
-if ( ${HDF_PREFIX}_HAVE_NETINET_IN_H AND
- ${HDF_PREFIX}_HAVE_NETDB_H AND
- ${HDF_PREFIX}_HAVE_ARPA_INET_H AND
- ${HDF_PREFIX}_HAVE_SYS_SOCKET_H)
- set (${HDF_PREFIX}_HAVE_MIRROR_VFD 1)
+option (HDF5_ENABLE_MIRROR_VFD "Build the Mirror Virtual File Driver" OFF)
+if (H5FD_ENABLE_MIRROR_VFD)
+ if ( ${HDF_PREFIX}_HAVE_NETINET_IN_H AND
+ ${HDF_PREFIX}_HAVE_NETDB_H AND
+ ${HDF_PREFIX}_HAVE_ARPA_INET_H AND
+ ${HDF_PREFIX}_HAVE_SYS_SOCKET_H AND
+ ${HDF_PREFIX}_HAVE_FORK)
+ set (${HDF_PREFIX}_HAVE_MIRROR_VFD 1)
+ else()
+ message(STATUS "The socket-based Mirror VFD was requested but cannot be built. System prerequisites are not met.")
+ endif()
endif()
#-----------------------------------------------------------------------------