]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
configure: Disable python3 builds with clang
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 23 Dec 2013 21:11:58 +0000 (22:11 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 23 Dec 2013 22:06:56 +0000 (16:06 -0600)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
configure.ac

index 9b2a55b50efa0d6aaac69c6b453831ff1b3e1d7e..4c5f0028e4aea2e5b01c4fce42b79e94a999751d 100644 (file)
@@ -217,6 +217,13 @@ AC_ARG_ENABLE([python],
 
 if test "x$enable_python" = "xauto"; then
        PKG_CHECK_MODULES([PYTHONDEV], [python3 >= 3.2],[enable_python=yes],[enable_python=no])
+       if test "$CC" = "clang"; then
+               enable_python=no
+       fi
+fi
+
+if test "x$enable_python" = "xyes" && test "$CC" = "clang"; then
+       AC_MSG_ERROR([Python3 is incompatible with the clang compiler])
 fi
 
 AM_CONDITIONAL([ENABLE_PYTHON], [test "x$enable_python" = "xyes"])