autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf-2.69c released [beta]


From: Gavin Smith
Subject: Re: autoconf-2.69c released [beta]
Date: Sun, 27 Sep 2020 20:36:54 +0100
User-agent: Mutt/1.9.4 (2018-02-28)

> Maybe it is a problem with changequote being used inside an argument to 
> a macro.  Does it work OK when you remove the changequote lines?
> 
> if test "$ac_cv_have_C__func__" != 'yes' ; then
> AC_CACHE_CHECK(for C compiler __func__ support, ac_cv_have_C__func__,
> [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
> <<
> const char *func=__func__;
> return (func != 0 ? 0 : 1);
> >> ]])],
> [ac_cv_have_C__func__='yes'],
> [ac_cv_have_C__func__='no']])])
> 
> if test "$ac_cv_have_C__func__" = 'yes' ; then
>  AC_DEFINE(HAS_C__func__,1,Define if C compiler supports __func__)
> fi
> fi

That should be:

if test "$ac_cv_have_C__func__" != 'yes' ; then
AC_CACHE_CHECK(for C compiler __func__ support, ac_cv_have_C__func__,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],
[[const char *func=__func__;
return (func != 0 ? 0 : 1);
]])],
[ac_cv_have_C__func__='yes'],
[ac_cv_have_C__func__='no']])])

if test "$ac_cv_have_C__func__" = 'yes' ; then
 AC_DEFINE(HAS_C__func__,1,Define if C compiler supports __func__)
fi
fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]