From: David Levine Date: Tue, 10 Dec 2013 22:16:59 +0000 (-0600) Subject: Try -v with SunStudio cc. Also, try setting CC instead of modifying X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5d61001a51f3c0c48d6cd296155607dea302a88b?ds=sidebyside Try -v with SunStudio cc. Also, try setting CC instead of modifying AC_PROC_CC to pick up cc on the buildbot Solaris host. --- diff --git a/configure.ac b/configure.ac index 127eea2e..4b4e42b4 100644 --- a/configure.ac +++ b/configure.ac @@ -97,7 +97,14 @@ if test x"$enable_debug" = x"yes"; then test -z "$LDFLAGS" && LDFLAGS=-g fi -AC_PROG_CC([cc clang gcc]) +dnl Use SunStudio cc, with -v, on Solaris if user didn't set CC. +if test -z "$CC" -a -d /opt/solarisstudio12.3/bin; then + CC=cc; export CC + ${CC} -V + CFLAGS="${CFLAGS:+$CFLAGS }-v" +fi + +AC_PROG_CC AM_PROG_CC_C_O AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_has_wextra],