This allows better errors if python3 wasn't found.
AC_CHECK_TOOL([FLEX],[flex],[:])
AC_CHECK_TOOL([BISON],[bison],[:])
AM_MISSING_PROG([WGET], [wget])
+AM_MISSING_PROG([PYTHON], [python3])
AS_IF([test "$BISON" = ":" && test ! -e "$srcdir/src/lib/event-filter-parser.h"],
AC_MSG_ERROR([Bison is required when building from git])
settings-history.c: settings-history-core.h
settings-history-core.h: $(srcdir)/settings-history-core.txt $(srcdir)/settings-history.py
- $(AM_V_GEN)$(srcdir)/settings-history.py --pro $(DOVECOT_PRO_BUILD) $< $@
+ $(AM_V_GEN)$(PYTHON) $(srcdir)/settings-history.py --pro $(DOVECOT_PRO_BUILD) $< $@
EXTRA_DIST = \
settings-history-core.txt \