Open fweimer-rh opened 1 year ago
Upstream for autoconf provided the following reference:
This macro should be used instead of plain
if
in code outside of anAC_DEFUN
macro, when the contents of theif' use
AC_REQUIRE` directly or indirectly (see Prerequisite Macros).
The
configure.ac
contains this:The first
AC_CHECK_HEADER
is where autoconf 2.71 chooses to inject all the system header probes. If--without-v4l
is specified, these probes never run, andHAVE_SYS_STAT_H
is not set. This causes thelstat
check to go fromto
because it no longer includes
<sys/stat.h>
.I believe there is a rule that
AC_CHECK_HEADER
must not be called conditionally. I have asked about it on the autoconf list:Related to: