aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-05-04 20:57:02 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-05-04 20:57:02 +0100
commitc602c1908277ecefede071329ffe13f046b24336 (patch)
treec1c80bf703f8adf36d3db9e1a0e25557264819c3
parent89c4742ff09fbdd24a3cf78aaed53d45b5601d2a (diff)
downloadpaludis-c602c1908277ecefede071329ffe13f046b24336.tar.gz
paludis-c602c1908277ecefede071329ffe13f046b24336.tar.xz
gcc 4.4 wants -std=gnu++0x
-rw-r--r--configure.ac23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2996d0a..fef2cf9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -749,6 +749,29 @@ int main(int, char **)
],
[AC_MSG_RESULT([no])])
+AC_MSG_CHECKING([whether we want -std=gnu++0x])
+AC_COMPILE_IFELSE([
+#ifndef __GNUC__
+# error not gcc
+#endif
+
+#if __GNUC__ != 4
+# error not gcc 4
+#endif
+
+#if __GNUC_MINOR__ != 4
+# error not gcc 4.4
+#endif
+
+int main(int, char **)
+{
+}
+],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -std=gnu++0x"
+ ],
+ [AC_MSG_RESULT([no])])
+
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=$PALUDIS_CXXFLAGS
AC_MSG_CHECKING([whether -pedantic works if we use extern template])