aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-18 13:03:27 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-18 15:25:25 +0100
commitd1bf557556c570e133df1c94269979d1c71bde5a (patch)
tree3e4f35e9f2120287379052e4bd6523da62264436
parentf255f2d56fc29fe6487d1cdb595f9933c1b39ebe (diff)
downloadpaludis-d1bf557556c570e133df1c94269979d1c71bde5a.tar.gz
paludis-d1bf557556c570e133df1c94269979d1c71bde5a.tar.xz
Add checks for c++0x default and deleted functions
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 26cc6fc..9163e25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -349,6 +349,23 @@ int main(int, char **)
])
dnl }}}
+dnl {{{ c++0x default and deleted functions
+AC_MSG_CHECKING([for c++0x default and deleted functions])
+AC_COMPILE_IFELSE([
+struct S
+{
+ S() = default;
+ S & operator= (const S &) = delete;
+};
+],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_DEFAULT_DELETED=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_DEFAULT_DELETED=1"
+ ],
+ [AC_MSG_RESULT([no])
+ ])
+dnl }}}
+
need_xml_check=
need_pcrepp_check=
need_syck_check=