[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: autoconf-2.69c released [beta]
From: |
Bob Friesenhahn |
Subject: |
Re: autoconf-2.69c released [beta] |
Date: |
Sun, 27 Sep 2020 13:56:06 -0500 (CDT) |
User-agent: |
Alpine 2.20 (GSO 67 2015-01-07) |
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@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
Re: autoconf-2.69c released [beta], Bob Friesenhahn, 2020/09/27
Re: autoconf-2.69c released [beta], Gavin Smith, 2020/09/27
- Re: autoconf-2.69c released [beta],
Bob Friesenhahn <=
- Re: autoconf-2.69c released [beta], Gavin Smith, 2020/09/27
- Re: autoconf-2.69c released [beta], Gavin Smith, 2020/09/27
- Re: autoconf-2.69c released [beta], Bob Friesenhahn, 2020/09/29
- Re: autoconf-2.69c released [beta], Russ Allbery, 2020/09/29
- Re: autoconf-2.69c released [beta], Zack Weinberg, 2020/09/30
Re: autoconf-2.69c released [beta], Zack Weinberg, 2020/09/30
Message not available