If your compiler doesn't support these we're not going to fake it. Fix your damn compiler.
19 lines
482 B
Plaintext
19 lines
482 B
Plaintext
AC_DEFUN([NC_CXX],[
|
|
AX_CHECK_COMPILE_FLAG(
|
|
[-std=c++1z],
|
|
[AX_APPEND_FLAG([-std=c++1z], [CXXFLAGS])],
|
|
[AC_ERROR([Unable to enable c++1z])]
|
|
)
|
|
|
|
AX_APPEND_COMPILE_FLAGS([-pipe], [], [-Werror])
|
|
|
|
AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])
|
|
AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])
|
|
|
|
AC_C_CONST
|
|
AC_C_RESTRICT
|
|
AC_C_INLINE
|
|
|
|
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden], [], [-Werror])
|
|
])
|