File hdf5-1.8.11-abort_unknown_host_config.patch of Package hdf5

Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -4214,6 +4214,8 @@ done
 if test "X$host_config" != "Xnone"; then
   CC_BASENAME="`echo $CC | cut -f1 -d' ' | xargs basename 2>/dev/null`"
   . $host_config
+else
+  as_fn_error $? "no usable host config found" "$LINENO" 5
 fi
 
 ## Source any special site-specific file
Index: configure.ac
===================================================================
--- configure.ac.orig
+++ configure.ac
@@ -305,6 +305,8 @@ done
 if test "X$host_config" != "Xnone"; then
   CC_BASENAME="`echo $CC | cut -f1 -d' ' | xargs basename 2>/dev/null`"
   . $host_config
+else
+  AC_MSG_ERROR([no usable host config found])
 fi
 
 ## Source any special site-specific file