On Sun, 27 Sep 2020, Gavin Smith wrote:
It might help if you could post what the AC_TRY_COMPILE statements were changed into. If I understand correctly the definition in autoconf/general.m4
That would certainly help and it is perhaps likely that there is some syntax weakness in the original. See below.
Since the problem also occurs with Autoconf 2.69 autoupdate, that is what I use for the test case.
Input: # Test for C compiler __func__ support if test "$ac_cv_have_C__func__" != 'yes' ; then AC_CACHE_CHECK(for C compiler __func__ support, ac_cv_have_C__func__, [AC_TRY_COMPILE( , changequote(<<, >>)dnl << const char *func=__func__; return (func != 0 ? 0 : 1);
,
changequote([, ])dnl 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 After Autoconf 2.69 autoupdate: # Test for C compiler __func__ support 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([[]], [[changequote(<<, >>)dnl << const char *func=__func__; return (func != 0 ? 0 : 1);
]])],[changequote(, )dnl
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 Bob -- Bob Friesenhahn bfriesen@xxxxxxxxxxxxxxxxxxx, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt