Skip to content

Commit

Permalink
Merge pull request #794 from wangvsa/dev
Browse files Browse the repository at this point in the history
Handle the case where h5cc -show returns multiple lines
  • Loading branch information
adammoody authored Sep 1, 2023
2 parents 12507a7 + 673853c commit 35f5136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m4/ax_lib_hdf5.m4
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ HDF5 support is being disabled (equivalent to --with-hdf5=no).
HDF5_SHOW=$(eval $H5CC -show)
dnl Get the actual compiler used
HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]1}')
HDF5_CC=$(eval $H5CC -show | $AWK 'NR==1{print $[]1}')
if test "$HDF5_CC" = "ccache"; then
HDF5_CC=$(eval $H5CC -show | $AWK '{print $[]2}')
HDF5_CC=$(eval $H5CC -show | $AWK 'NR==1{print $[]2}')
fi
dnl h5cc provides both AM_ and non-AM_ options
Expand Down

0 comments on commit 35f5136

Please sign in to comment.