]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Use python3 found by configure
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 12 May 2025 09:03:57 +0000 (12:03 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 13 May 2025 05:23:06 +0000 (08:23 +0300)
This allows better errors if python3 wasn't found.

configure.ac
src/lib-settings/Makefile.am

index 9680421873cda31804db4ad7731e362f6098dbbe..4ed0c3fde3967c0f9d4b2e7f0e248ebea447d7b2 100644 (file)
@@ -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])
index 92323ed901ab9e8df7b5e237ce6202e3e1323bd5..8c789a242830c7e5a544c22834bee319ec886a3f 100644 (file)
@@ -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 \