1 dnl @synopsis XIPH_ADD_CXXFLAGS
3 dnl Add the given option to CXXFLAGS, if it doesn't break the compiler
5 AC_DEFUN([XIPH_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"