summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-09-06 11:43:35 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-09-06 11:43:35 +0200
commit34fcbdac42ee29170a7a270cd02ea30d80c2a0cd (patch)
treece945bd39761f6e4103afb6b5dd98badab8117c2
parent267c298a6eac0b90111eb91395086ab8f3efbd76 (diff)
Fix atomic configure test (again).
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index cbc460a..e1fcec5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -470,17 +470,17 @@ dnl ======================
dnl Check for the atomic library
dnl ======================
AC_LANG_PUSH([C++])
-AC_LINK_IFELSE(
- [AC_LANG_SOURCE[
+AC_COMPILE_IFELSE(
+ AC_LANG_SOURCE(
#include <atomic>
int main() {
struct Test { int val; };
std::atomic<Test> s;
s.is_lock_free();
}
- ]],
- [needs_libatomic=yes],
- [needs_libatomic=no])
+ ),
+ [needs_libatomic=no],
+ [needs_libatomic=yes])
ATOMIC_LIBS=""
if test x$needs_libatomic = xyes; then