2 dnl checks whether the C compiler supports the given flag, and if so, adds
3 dnl it to $CFLAGS. If the flag is already present in the list, then the
4 dnl check is not performed.
5 AC_DEFUN([JH_ADD_CFLAG],
8 *@<:@\ \ @:>@$1@<:@\ \ @:>@*)
13 AC_MSG_CHECKING([whether [$]CC understands $1])
14 AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no])
15 AC_MSG_RESULT($jh_has_option)
16 if test $jh_has_option = no; then