1 dnl @synopsis MN_ADD_CFLAGS
3 dnl Add the given option to CFLAGS, if it doesn't break the compiler
5 AC_DEFUN([MN_ADD_CFLAGS],
6 [AC_MSG_CHECKING([if $CC accepts $1])
7 ac_add_cflags__old_cflags="$CFLAGS"
12 [puts("Hello, World!"); return 0;],
14 CFLAGS="$ac_add_cflags__old_cflags $1",
16 CFLAGS="$ac_add_cflags__old_cflags"