|author||nobled <email@example.com>||2010-08-29 20:03:37 -0400|
|committer||Eric Anholt <firstname.lastname@example.org>||2010-08-30 13:59:18 -0700|
Make configure work with clang
It was mistaking clang for gcc and deciding its version was too low.
Diffstat (limited to 'configure.ac')
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 45188544fb0..cf2e200db3f 100644
@@ -48,9 +48,23 @@ solaris*)
+dnl clang is mostly GCC-compatible, but its version is much lower,
+dnl so we have to check for it.
+AC_MSG_CHECKING([if compiling with clang])
+ not clang
dnl If we're using GCC, make sure that it is at least version 3.3.0. Older
dnl versions are explictly not supported.
-if test "x$GCC" = xyes; then
+if test "x$GCC" = xyes -a "x$CLANG" = xno; then
AC_MSG_CHECKING([whether gcc version is sufficient])