From e994d63fb2c566dca596dfc6e3947b3c4ae58241 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 2 Jun 2005 12:23:58 +0000 Subject: [PATCH] If HDF5HOME is not defined, search h5dump in PATH --- salome_adm/unix/config_files/check_hdf5.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/salome_adm/unix/config_files/check_hdf5.m4 b/salome_adm/unix/config_files/check_hdf5.m4 index b3658afc1..a7d75efa1 100644 --- a/salome_adm/unix/config_files/check_hdf5.m4 +++ b/salome_adm/unix/config_files/check_hdf5.m4 @@ -46,6 +46,16 @@ LOCAL_LIBS="" if test -z $HDF5HOME then AC_MSG_WARN(undefined HDF5HOME variable which specify hdf5 installation directory) + dnl E.A. : If HDF5HOME is not defined, trying to find h5dump in PATH + AC_PATH_PROG(H5DUMP, h5dump) + if test "xH5DUMP" != "x" ; then + HDF5HOME=$H5DUMP + HDF5HOME=`echo ${HDF5HOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` + HDF5HOME=`echo ${HDF5HOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` + fi +fi +if test ! -z $HDF5HOME +then else LOCAL_INCLUDES="-I$HDF5HOME/include" LOCAL_LIBS="-L$HDF5HOME/lib" -- 2.39.2