Add configure check for -latomic

This commit is contained in:
Anthony Towns
2016-08-23 16:55:15 +10:00
committed by lateminer
parent f3298b9ce7
commit d69798cd45
2 changed files with 43 additions and 0 deletions

View File

@@ -54,6 +54,9 @@ case $host in
esac
dnl Require C++11 compiler (no GNU extensions)
AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory], [nodefault])
dnl Check if -latomic is required for <std::atomic>
CHECK_ATOMIC
dnl Unless the user specified OBJCXX, force it to be the same as CXX. This ensures
dnl that we get the same -std flags for both.
m4_ifdef([AC_PROG_OBJCXX],[