1 AC_DEFUN([COMPILER_HAS_FUNCTION_MACRO], [
2 AC_MSG_CHECKING(for __FUNCTION__ and __LINE__ macros)
3 AC_CACHE_VAL(ac_cv_compiler_has_function_macro,
7 [printf("%s:%d", __FUNCTION__, __LINE__);],
8 ac_cv_compiler_has_function_macro=yes,
9 ac_cv_compiler_has_function_macro=no)])
10 AC_MSG_RESULT($ac_cv_compiler_has_function_macro)
11 if test "$ac_cv_compiler_has_function_macro" = "yes"; then
12 AC_DEFINE(HAVE_FUNCTION_MACRO, 1, [define if compiler has __FUNCTION__])