aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-24 10:46:10 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-24 10:46:10 +0000
commitb5b6b35d5970361f9aa971b85054456ec5aa5bf4 (patch)
treee12a4505af9f1437760985ebfac46af80c35a9ee
parent3bdf7846f18b4dc6649c9e0cd35988ba05b1c86f (diff)
downloadpaludis-b5b6b35d5970361f9aa971b85054456ec5aa5bf4.tar.gz
paludis-b5b6b35d5970361f9aa971b85054456ec5aa5bf4.tar.xz
Add some more configure sanity checks for our standard library.
-rw-r--r--configure.ac39
1 files changed, 39 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1c7046b..2ebaa25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,45 @@ int main(int, char **)
])
dnl }}}
+dnl {{{ check for broken std::set<>::const_reverse_iterator
+AC_MSG_CHECKING([for a usable std::set<>::const_reverse_iterator])
+AC_COMPILE_IFELSE([
+#include <set>
+int main(int, char **)
+{
+ std::set<int> s;
+ s.insert(1);
+ std::set<int>::const_reverse_iterator i;
+ return *i;
+}
+],
+ [AC_MSG_RESULT([yes])],
+ [
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Your std::set<>::const_reverse_iterator is h0rked])
+ ])
+
+dnl {{{ check for broken std::deque<NoDefaultConstructor>
+AC_MSG_CHECKING([for a usable std::deque<NoDefaultConstructor>])
+AC_COMPILE_IFELSE([
+#include <deque>
+struct NoDefaultConstructor
+{
+ NoDefaultConstructor(int);
+};
+int main(int, char **)
+{
+ std::deque<NoDefaultConstructor> d, e;
+ d = e;
+}
+],
+ [AC_MSG_RESULT([yes])],
+ [
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Your std::deque doesn't work])
+ ])
+dnl }}}
+
dnl {{{ we need libebt.
dnl don't use AC_CHECK_HEADER, it does silly things
AC_MSG_CHECKING([for libebt])