From: Ivan Maidanski Date: Tue, 14 Mar 2017 22:45:16 +0000 (+0300) Subject: Refine configure messages when checking for compiler option support X-Git-Tag: v8.0.0~861 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b86daadddbe8aa7496a929df6a127a4f17f00bcb;p=gc Refine configure messages when checking for compiler option support * configure.ac (AC_MSG_CHECKING): Refine message when checking for a compiler option support (replace "gcc" with "compiler"). --- diff --git a/configure.ac b/configure.ac index 4c678820..6e96dae9 100644 --- a/configure.ac +++ b/configure.ac @@ -403,14 +403,14 @@ esac if test "$GCC" = yes; then # Output all warnings. - AC_MSG_CHECKING(for gcc -Wextra) + AC_MSG_CHECKING([whether compiler supports -Wextra]) old_CFLAGS="$CFLAGS" CFLAGS="-Wextra $CFLAGS" AC_TRY_COMPILE([],[], [ac_cv_cc_wextra=yes], [ac_cv_cc_wextra=no]) CFLAGS="$old_CFLAGS" AC_MSG_RESULT($ac_cv_cc_wextra) AS_IF([test "$ac_cv_cc_wextra" = yes], [WEXTRA="-Wextra"], [WEXTRA="-W"]) - AC_MSG_CHECKING(for gcc -Wpedantic) + AC_MSG_CHECKING([whether compiler supports -Wpedantic]) CFLAGS="-Wpedantic -Wno-long-long $CFLAGS" AC_TRY_COMPILE([],[ extern int quiet; @@ -442,7 +442,7 @@ AM_CONDITIONAL([ASM_WITH_CPP_UNSUPPORTED], if test "$GCC" = yes; then # Disable aliasing optimization unless forced to. - AC_MSG_CHECKING([whether gcc supports -fno-strict-aliasing]) + AC_MSG_CHECKING([whether compiler supports -fno-strict-aliasing]) ac_cv_fno_strict_aliasing=no for cflag in $CFLAGS; do case "$cflag" in @@ -574,7 +574,7 @@ if test "${enable_shared}" = yes; then AC_DEFINE(GC_DLL) if test "$GCC" = yes; then # Pass -fvisibility=hidden option if supported - AC_MSG_CHECKING([whether gcc supports -fvisibility]) + AC_MSG_CHECKING([whether compiler supports -fvisibility]) old_CFLAGS="$CFLAGS" CFLAGS="-Werror -fvisibility=hidden $CFLAGS" AC_TRY_COMPILE([],[], [ac_cv_fvisibility_hidden=yes],