build: force a c++ standard to be specified

Newer compilers may switch to newer standards by default. For example, gcc6
uses std=gnu++14 by default.
This commit is contained in:
Cory Fields
2017-02-22 13:33:22 -05:00
committed by Jack Grigg
parent 0bcd85bee8
commit 943f19fec7
2 changed files with 8 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ case $host in
;;
esac
dnl Require C++11 compiler (no GNU extensions)
AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory], [nodefault])
dnl Check if -latomic is required for <std::atomic>
CHECK_ATOMIC