On 2023-02-04 05:42, Florian Weimer wrote:
Is there are some explanation somewhere why it's not permitted to invoke AC_CHECK_HEADER under shell conditional statement? I couldn't find it in the manual.
The restriction is documented here: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Common-Shell-Constructs.html (look under AS_IF) and here: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/html_node/Prerequisite-Macros.html Admittedly the doc could be clearer. It's widely understood to be a misfeature, but it's gonna be hard to fix.