From 81d3f8e8a1fe075b99c51fee895da94536f4c972 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 26 Apr 2006 14:20:46 +0000 Subject: r15280: - remove the 2nd check for __FUNCTION__ - fallback to __func__ if __FUNCTION__ isn't there metze (This used to be commit 6c5a2b08ca2f0db6b39808740a06ed165e8b9ade) --- source4/lib/replace/config.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/lib/replace/config.m4') diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4 index bac38f6439..bf46bdcc58 100644 --- a/source4/lib/replace/config.m4 +++ b/source4/lib/replace/config.m4 @@ -167,6 +167,14 @@ AC_TRY_COMPILE([#include ], [printf("%s\n", __FUNCTION__);], samba_cv_HAVE_FUNCTION_MACRO=yes,samba_cv_HAVE_FUNCTION_MACRO=no)]) if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then AC_DEFINE(HAVE_FUNCTION_MACRO,1,[Whether there is a __FUNCTION__ macro]) +else + dnl __func__ macro + AC_CACHE_CHECK([for __func__ macro],samba_cv_HAVE_func_MACRO,[ + AC_TRY_COMPILE([#include ], [printf("%s\n", __func__);], + samba_cv_HAVE_func_MACRO=yes,samba_cv_HAVE_func_MACRO=no)]) + if test x"$samba_cv_HAVE_func_MACRO" = x"yes"; then + AC_DEFINE(HAVE_func_MACRO,1,[Whether there is a __func__ macro]) + fi fi AC_CHECK_HEADERS([sys/param.h]) -- cgit