From 5d61001a51f3c0c48d6cd296155607dea302a88b Mon Sep 17 00:00:00 2001 From: David Levine Date: Tue, 10 Dec 2013 16:16:59 -0600 Subject: [PATCH] Try -v with SunStudio cc. Also, try setting CC instead of modifying AC_PROC_CC to pick up cc on the buildbot Solaris host. --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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], -- 2.56.0