|
From: | Zack Weinberg |
Subject: | Re: Possible regressions with trunk autoconf (vs 2.71) |
Date: | Thu, 17 Nov 2022 12:53:25 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
On 2022-11-17 9:30 AM, Zack Weinberg wrote:
Or even better, get rid of the AC_EGREP_CPP at the same time AC_CACHE_CHECK([whether we need to define $1], ac_var, [AC_PREPROC_IFELSE([[#ifndef $1 #error not defined #endif]], [AS_VAR_SET(ac_var,yes)],[AS_VAR_SET(ac_var,no)])])
Correction, this should have been AC_CACHE_CHECK([whether we need to define $1], ac_var, [AC_PREPROC_IFELSE([[#ifndef $1 #error not defined #endif]], [AS_VAR_SET(ac_var,no)], [AS_VAR_SET(ac_var,yes)])])Converting it to AC_PREPROC_IFELSE inverts the sense of the "then" and "else" clauses.
zw
[Prev in Thread] | Current Thread | [Next in Thread] |