diff options
author | Greg Steuck <greg@nest.cx> | 2022-07-09 19:07:03 -0700 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-07-15 22:22:52 -0400 |
commit | 06ea642a394c98fa9cfd385b82c2b2105d5783af (patch) | |
tree | 3dbfe7c2759c6b614709fdcf4d29fcd33d84a543 | |
parent | 805a4b1fe0b6679d27089766d50bcaaed3110864 (diff) | |
download | haskell-06ea642a394c98fa9cfd385b82c2b2105d5783af.tar.gz |
Suppress extra output from configure check for c++ libraries
(cherry picked from commit ac6a1a1366d6b9c045b3837c832f7e0fa312d42b)
-rw-r--r-- | m4/fp_find_cxx_std_lib.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/fp_find_cxx_std_lib.m4 b/m4/fp_find_cxx_std_lib.m4 index d0bb3195c6..68ac0e617d 100644 --- a/m4/fp_find_cxx_std_lib.m4 +++ b/m4/fp_find_cxx_std_lib.m4 @@ -19,7 +19,7 @@ unknown EOF AC_MSG_CHECKING([C++ standard library flavour]) if "$CXX" -E actest.cpp -o actest.out; then - if grep "libc++" actest.out; then + if grep "libc++" actest.out >/dev/null; then CXX_STD_LIB_LIBS="c++ c++abi" p="`"$CXX" --print-file-name libc++.so`" d="`dirname "$p"`" @@ -32,7 +32,7 @@ EOF CXX_STD_LIB_LIB_DIRS="$d" CXX_STD_LIB_DYN_LIB_DIRS="$d" AC_MSG_RESULT([libc++]) - elif grep "libstdc++" actest.out; then + elif grep "libstdc++" actest.out >/dev/null; then CXX_STD_LIB_LIBS="stdc++" p="`"$CXX" --print-file-name libstdc++.so`" d="`dirname "$p"`" |