1 dnl @synopsis MN_ADD_CXXFLAGS
3 dnl Add the given option to CXXFLAGS, if it doesn't break the compiler
5 AC_DEFUN([MN_ADD_CXXFLAGS],
6 [AC_MSG_CHECKING([if $CXX accepts $1])
8 ac_add_cxxflags__old_cxxflags="$CXXFLAGS"
13 [puts("Hello, World!"); return 0;],
15 CXXFLAGS="$ac_add_cxxflags__old_cxxflags $1",
17 CXXFLAGS="$ac_add_cxxflags__old_cxxflags"