From: Aki Tuomi Date: Mon, 12 May 2025 09:03:57 +0000 (+0300) Subject: lib-settings: Use python3 found by configure X-Git-Tag: 2.4.2~791 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecd50658a3905631af5c3fa658451b422ec86019;p=thirdparty%2Fdovecot%2Fcore.git lib-settings: Use python3 found by configure This allows better errors if python3 wasn't found. --- diff --git a/configure.ac b/configure.ac index 9680421873..4ed0c3fde3 100644 --- a/configure.ac +++ b/configure.ac @@ -254,6 +254,7 @@ AC_PROG_CXX # lucene plugin needs this 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]) diff --git a/src/lib-settings/Makefile.am b/src/lib-settings/Makefile.am index 92323ed901..8c789a2428 100644 --- a/src/lib-settings/Makefile.am +++ b/src/lib-settings/Makefile.am @@ -24,7 +24,7 @@ BUILT_SOURCES = settings-history-core.h 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 \