From: Stéphane Graber Date: Mon, 23 Dec 2013 21:11:58 +0000 (+0100) Subject: configure: Disable python3 builds with clang X-Git-Tag: lxc-1.0.0.beta2~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc93759f6407181586d851be47b60ed1330c723;p=thirdparty%2Flxc.git configure: Disable python3 builds with clang Signed-off-by: Stéphane Graber Signed-off-by: Serge Hallyn --- diff --git a/configure.ac b/configure.ac index 9b2a55b50..4c5f0028e 100644 --- a/configure.ac +++ b/configure.ac @@ -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"])