Ensure no space in hdf5_libs variable

This commit is contained in:
Etienne Malaboeuf 2024-08-29 15:56:56 +02:00
parent f14a94d8fd
commit 4a62a40390
1 changed files with 4 additions and 4 deletions

View File

@ -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"