Browse Source

build: AC_EGREPP_CPP actions wrong way around, worked by accident mostly.

* configure.ac: Sense of actions wrong way around. Guess it worked by accident
  by virtue of any non-GCC compilers being used having GCC still set, or
  else working with SUNPRO cflags.
Paul Jakma 2 years ago
parent
commit
fa8555562d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -116,9 +116,9 @@ AM_CONDITIONAL([HAVE_PANDOC], [test "x$HAVE_PANDOC" = "xtrue"])
 if test "x${GCC}" != "xyes" ; then
   AC_MSG_CHECKING([whether we are using SunPro compiler])
   AC_EGREP_CPP([^__SUNPRO_C.*0x5(7|8|9)], ["__SUNPRO_C" __SUNPRO_C],
-      [AC_MSG_RESULT([no])],
       [COMPILER="SUNPRO"
-       AC_MSG_RESULT([yes])]
+       AC_MSG_RESULT([yes])],
+      [AC_MSG_RESULT([no])]
   )
 fi