From 4a62a40390e16d23df0322da2318535e181c9bb0 Mon Sep 17 00:00:00 2001 From: Etienne Malaboeuf Date: Thu, 29 Aug 2024 15:56:56 +0200 Subject: [PATCH] Ensure no space in hdf5_libs variable --- install/m4/x_ac_qe_hdf5.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/m4/x_ac_qe_hdf5.m4 b/install/m4/x_ac_qe_hdf5.m4 index c936176e6..6e09b42bc 100644 --- a/install/m4/x_ac_qe_hdf5.m4 +++ b/install/m4/x_ac_qe_hdf5.m4 @@ -129,27 +129,27 @@ if test "$use_parallel" -ne 0; then if test $with_hdf5_libs -eq 1; then hdf5_libs=$with_hdf5_libline else - hdf5_libs=`$with_hdf5_path/bin/h5pfc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}'` + hdf5_libs=`$with_hdf5_path/bin/h5pfc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}' | xargs` fi elif command -v h5pfc >/dev/null; then if test $with_hdf5_libs -eq 1; then hdf5_libs=$with_hdf5_libline else - hdf5_libs=`h5pfc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}'` + hdf5_libs=`h5pfc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}' | xargs` fi elif test -e $with_hdf5_path/bin/h5fc; then if test $with_hdf5_libs -eq 1; then hdf5_libs=$with_hdf5_libline else - hdf5_libs=`$with_hdf5_path/bin/h5fc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}'` + hdf5_libs=`$with_hdf5_path/bin/h5fc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}' | xargs` fi try_dflags="$try_dflags -D__HDF5_SERIAL" elif command -v h5fc>/dev/null; then if test $with_hdf5_libs -eq 1; then hdf5_libs=$with_hdf5_libline else - hdf5_libs=`h5fc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}'` + hdf5_libs=`h5fc -show | awk -F'-L' '{@S|@1=""; for (i=2; i<=NF;i++) @S|@i="-L"@S|@i; print @S|@0}' | xargs` fi try_dflags="$try_dflags -D__HDF5_SERIAL"