From: Aki Tuomi Date: Fri, 30 Sep 2022 07:57:06 +0000 (+0300) Subject: configure: Add and use WGET X-Git-Tag: 2.4.0~3602 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dac5f45c8809c81ad94ffe27fd9540388d6e785b;p=thirdparty%2Fdovecot%2Fcore.git configure: Add and use WGET --- diff --git a/configure.ac b/configure.ac index 23e1f5a71f..f4fa2c767c 100644 --- a/configure.ac +++ b/configure.ac @@ -243,6 +243,7 @@ AC_PROG_CPP AC_PROG_CXX # lucene plugin needs this AC_CHECK_TOOL([FLEX],[flex],[:]) AC_CHECK_TOOL([BISON],[bison],[:]) +AC_PATH_TOOL([WGET], [wget], [missing]) 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/doc/Makefile.am b/doc/Makefile.am index b7217db24f..2a57e552a0 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -30,7 +30,7 @@ documentation_sources = $(top_srcdir)/doc/documentation-main # extracting the documentation tarball from github yields the # "documentation-main" directory documentation-main: - $(AM_V_GEN)wget $(AM_V_Q) -O - \ + $(AM_V_GEN)$(WGET) $(AM_V_Q) -O - \ https://github.com/dovecot/documentation/archive/refs/heads/main.tar.gz | \ gunzip | $(am__untar) diff --git a/src/lib-fts/Makefile.am b/src/lib-fts/Makefile.am index 04c47b4a9e..5ce22599fa 100644 --- a/src/lib-fts/Makefile.am +++ b/src/lib-fts/Makefile.am @@ -44,12 +44,12 @@ EXTRA_DIST = \ stopwords/stopwords_malformed.txt $(srcdir)/WordBreakProperty.txt: - $(AM_V_GEN)test -f $@ || wget -qO $@ https://dovecot.org/res/WordBreakProperty.txt + $(AM_V_GEN)test -f $@ || $(WGET) -qO $@ https://dovecot.org/res/WordBreakProperty.txt $(srcdir)/word-boundary-data.c: $(srcdir)/word-properties.pl $(srcdir)/WordBreakProperty.txt $(AM_V_GEN)perl $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@ $(srcdir)/PropList.txt: - $(AM_V_GEN)test -f $@ || wget -qO $@ https://dovecot.org/res/PropList.txt + $(AM_V_GEN)test -f $@ || $(WGET) -qO $@ https://dovecot.org/res/PropList.txt $(srcdir)/word-break-data.c: $(srcdir)/word-properties.pl $(srcdir)/PropList.txt $(AM_V_GEN)perl $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@ diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 001ac9e3bc..e7adbbc484 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -36,7 +36,7 @@ am__v_Q_1 = event-filter-parser.h: event-filter-parser.c $(srcdir)/UnicodeData.txt: - $(AM_V_GEN)test -f $@ || wget $(AM_V_Q) -O $@ https://dovecot.org/res/UnicodeData.txt + $(AM_V_GEN)test -f $@ || $(WGET) $(AM_V_Q) -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 > $@