Commit 8d4b707b authored by Martti Mela's avatar Martti Mela

removed nested function call when testing whether __func__ works (in sac-general.m4)

darcs-hash:20060530062009-1b897-a239469ec6c56a53bdb8bc968e4e2bbfedcb4420.gz
parent 5c8c815e
......@@ -345,9 +345,8 @@ AC_DEFUN([AC_C_VAR_FUNC],
[AC_REQUIRE([AC_PROG_CC])
AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func,
AC_TRY_COMPILE(,
[int main() {
char *s = __func__;
}],
[char *s = __func__;
],
ac_cv_c_var_func=yes, ac_cv_c_var_func=no))
if test $ac_cv_c_var_func = "yes"; then
AC_DEFINE([HAVE_FUNC], 1, [Define to 1 if the C compiler supports __func__])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment