Ensure AM_CONDITIONAL is always defined when entering the
else-branch, even when the library is not found. Previously,
when with_udev=auto (default) and libudev was not available,
the conditional was never defined, causing a configure error.
)
AS_IF([test "x$have_audit" = xyes], [
AC_DEFINE([HAVE_LIBAUDIT], [1], [Define if audit is available])
- AM_CONDITIONAL([HAVE_AUDIT], [true])
])
+ AM_CONDITIONAL([HAVE_AUDIT], [test "x$have_audit" = xyes])
])
AC_SUBST([AUDIT_LIBS])
)
AS_IF([test "x$have_udev" = xyes], [
AC_DEFINE([HAVE_LIBUDEV], [1], [Define if udev is available])
- AM_CONDITIONAL([HAVE_UDEV], [true])
])
+ AM_CONDITIONAL([HAVE_UDEV], [test "x$have_udev" = xyes])
])
AC_SUBST([UDEV_LIBS])