]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Add and use WGET
authorAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 30 Sep 2022 07:57:06 +0000 (10:57 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 30 Sep 2022 08:47:39 +0000 (11:47 +0300)
configure.ac
doc/Makefile.am
src/lib-fts/Makefile.am
src/lib/Makefile.am

index 23e1f5a71ffc59de5ab740ebb826f007e9580436..f4fa2c767c8dc4b61c1945dae2d5a78a38b77333 100644 (file)
@@ -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])
 ])
index b7217db24f5e668666b5746938e3f4b3204a2901..2a57e552a0c85c9f9482c198c4612646bcd80ad3 100644 (file)
@@ -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)
 
index 04c47b4a9ee67fd1848b908f27e8df1c4bea8215..5ce22599fa13e8aca39bb6583f9616d8db5c6ed1 100644 (file)
@@ -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 > $@
 
index 001ac9e3bc8b8c56c8b325901c36feea4155c047..e7adbbc48470d8d5ada8faada43020d55c9e2be1 100644 (file)
@@ -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 > $@