configure.ac: Refuse to build with Sun C compiler.
authorJose Fonseca <jfonseca@vmware.com>
Tue, 1 Dec 2015 22:43:46 +0000 (22:43 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Wed, 2 Dec 2015 07:51:04 +0000 (07:51 +0000)
https://bugs.freedesktop.org/show_bug.cgi?id=93189

Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com>
configure.ac

index 40168715fc677624803225bd870599506b84f857..b6680d04fd1fcfe99c393d9bd22e9498a02f9210 100644 (file)
@@ -197,6 +197,13 @@ if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
     fi
 fi
 
+dnl We don't support building Mesa with Sun C compiler
+dnl https://bugs.freedesktop.org/show_bug.cgi?id=93189
+AC_CHECK_DECL([__SUNPRO_C], [SUNCC=yes], [SUNCC=no])
+if test "x$SUNCC" = xyes; then
+    AC_MSG_ERROR([Building with Sun C compiler is not supported, use GCC instead.])
+fi
+
 dnl Check for compiler builtins
 AX_GCC_BUILTIN([__builtin_bswap32])
 AX_GCC_BUILTIN([__builtin_bswap64])