aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-28 10:23:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-02-28 10:23:26 +0000
commit938e49aaa920e3a1badf61c66e7af914663d462c (patch)
treef1d0a54fd975e76359b990ea769c4043500ac998
parentf74b950a0277937a13b83cecd84615a11902ade5 (diff)
downloadpaludis-938e49aaa920e3a1badf61c66e7af914663d462c.tar.gz
paludis-938e49aaa920e3a1badf61c66e7af914663d462c.tar.xz
We need gcc 4 for Python
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0c968fd..de13196 100644
--- a/configure.ac
+++ b/configure.ac
@@ -662,6 +662,7 @@ elif test "x${ac_cv_cxx_compiler_gnu}" = "xyes" ; then
if test "x$cxxflag_success" = "xyes" ; then
PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=-Wno-write-strings
fi
+ CHECK_CXXFLAG([-Wno-ignored-qualifiers])
CHECK_CXXFLAG([-pedantic])
else
CHECK_CXXFLAG([-Wall])
@@ -951,6 +952,18 @@ if test "x$enable_python" = "xyes" ; then
fi
AC_SUBST([PYTHON_INSTALL_DIR])
+ AC_MSG_CHECKING([whether your gcc is new enough to enable Python])
+ AC_COMPILE_IFELSE([
+#ifdef __GNUC__
+# if __GNUC__ < 4
+# error too old
+# endif
+#endif
+ ],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])]
+ AC_MSG_ERROR([Your gcc is too old for Python support]))
+
AC_MSG_CHECKING(for headers required to compile python extensions)
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`