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

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

index 4ed0c3fde3967c0f9d4b2e7f0e248ebea447d7b2..0b50c3bbbe4bc53f473f0c28f8fc95ba426c959a 100644 (file)
@@ -255,6 +255,7 @@ AC_CHECK_TOOL([FLEX],[flex],[:])
 AC_CHECK_TOOL([BISON],[bison],[:])
 AM_MISSING_PROG([WGET], [wget])
 AM_MISSING_PROG([PYTHON], [python3])
+AM_MISSING_PROG([PERL], [perl])
 
 AS_IF([test "$BISON" = ":" && test ! -e "$srcdir/src/lib/event-filter-parser.h"],
   AC_MSG_ERROR([Bison is required when building from git])
index 8cea78ff953ac54624c8134a619feecc9aea1285..5c0e6c7397914390e9e81bbfc8d73992f8afc1f9 100644 (file)
@@ -48,12 +48,12 @@ EXTRA_DIST = \
 $(srcdir)/WordBreakProperty.txt:
        $(AM_V_at)test -f $@ || $(WGET) -nv -O $@ https://dovecot.org/res/WordBreakProperty.txt
 $(srcdir)/word-boundary-data.c: $(srcdir)/word-properties.pl $(srcdir)/WordBreakProperty.txt
-       $(AM_V_at)perl $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@
+       $(AM_V_at)$(PERL) $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@
 
 $(srcdir)/PropList.txt:
        $(AM_V_at)test -f $@ || $(WGET) -nv -O $@ https://dovecot.org/res/PropList.txt
 $(srcdir)/word-break-data.c: $(srcdir)/word-properties.pl $(srcdir)/PropList.txt
-       $(AM_V_at)perl $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@
+       $(AM_V_at)$(PERL) $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@
 
 
 if BUILD_LANG_STEMMER
index 6da8a308e5bbb9a93ddd7364a33a16d3114819b9..d2909ba545c78b78d6d066ce3d176d887acdee35 100644 (file)
@@ -34,7 +34,7 @@ $(srcdir)/UnicodeData.txt:
        $(AM_V_at)test -f $@ || $(WGET) -nv -O $@ https://dovecot.org/res/UnicodeData.txt
 
 $(srcdir)/unicodemap.c: $(srcdir)/unicodemap.pl $(srcdir)/UnicodeData.txt
-       $(AM_V_GEN)perl $(srcdir)/unicodemap.pl < $(srcdir)/UnicodeData.txt > $@
+       $(AM_V_GEN)$(PERL) $(srcdir)/unicodemap.pl < $(srcdir)/UnicodeData.txt > $@
 
 liblib_la_LIBADD = $(LIBUNWIND_LIBS)
 liblib_la_SOURCES = \