aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-05-16 16:26:36 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-05-22 16:43:42 +0100
commit9c7d9f9aef92e9073ee9d295b1ed5ea779f8a96d (patch)
tree819d9ef6fabaa7a4c91b0beeaf1ac8a895cdaf29 /configure.ac
parenta61bc76abeb201333fc28276d3d87d3a128c6f0e (diff)
downloadpaludis-9c7d9f9aef92e9073ee9d295b1ed5ea779f8a96d.tar.gz
paludis-9c7d9f9aef92e9073ee9d295b1ed5ea779f8a96d.tar.xz
Use std::thread
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index da77ac698..6c9a2818c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -710,6 +710,20 @@ int main(int, char **)
AC_MSG_ERROR([Your compiler does not support unordered containers])])
dnl }}}
+dnl {{{ check for threads
+AC_MSG_CHECKING([for threads])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+#include <thread>
+int main(int, char **)
+{
+ std::thread t;
+}
+])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([Your compiler does not support threads])])
+dnl }}}
+
dnl {{{ shared pointers
AC_MSG_CHECKING([for std::shared_ptr<>])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([