build: enable c++1z

This commit is contained in:
Danny Robson 2015-04-29 17:43:37 +10:00
parent 5744b82825
commit d804f0e4b6

View File

@ -1,10 +1,12 @@
AC_DEFUN([NC_CXX],[
AX_CHECK_COMPILE_FLAG(
[-std=c++1y],
[AX_APPEND_FLAG([-std=c++1y], [CXXFLAGS])],
[-std=c++1z],
[AX_APPEND_FLAG([-std=c++1z], [CXXFLAGS])],
[AC_ERROR([Unable to enable c++1y])]
)
AX_APPEND_COMPILE_FLAGS([-pipe], [], [-Werror])
AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])
AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])