The option is not supported on the original Solaris' grep. Given that there
is also a redirection to /dev/null at the end, it is superfluous.
Tested on x86_64-suse-linux, applied on the mainline as obvious.
2018-02-06 Eric Botcazou <ebotca...@adacore.com>
config/
* gcc-plugin.m4 (GCC_ENABLE_PLUGINS): Remove -q option passed to grep.
2018-02-06 Eric Botcazou <ebotca...@adacore.com>
gcc/
* configure: Regenerate.
--
Eric Botcazou
Index: gcc-plugin.m4
===================================================================
--- gcc-plugin.m4 (revision 257404)
+++ gcc-plugin.m4 (working copy)
@@ -60,14 +60,14 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
if test "x$export_sym_check" != x; then
echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
- if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
+ if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
: # No need to use a flag
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([yes])
AC_MSG_CHECKING([for -rdynamic])
${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
- if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
+ if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
plugin_rdynamic=yes
pluginlibs="-rdynamic"
else